2001-04-21 Toon Moene <toon@moene.indiv.nluug.nl>
[official-gcc.git] / libstdc++-v3 / configure
blobdbca343c0ec492602fb53bb609766e5f354a407e
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --enable-multilib build hella library versions (default)"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-debug extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39 --enable-cstdio enable stdio for target io package.
40 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
42 ac_help="$ac_help
43 --enable-clocale enable model for target locale package.
44 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
46 ac_help="$ac_help
47 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51 --enable-long-long turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53 --enable-cheaders construct "C" header files for
54 g++ [default=c_std]"
55 ac_help="$ac_help
56 --enable-threads enable thread usage for target GCC.
57 --enable-threads=LIB use LIB thread package for target GCC. [default=no]
59 ac_help="$ac_help
60 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
61 [default=none]"
62 ac_help="$ac_help
63 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
64 ac_help="$ac_help
65 --with-gxx-include-dir the installation directory for include files"
66 ac_help="$ac_help
67 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
72 build=NONE
73 cache_file=./config.cache
74 exec_prefix=NONE
75 host=NONE
76 no_create=
77 nonopt=NONE
78 no_recursion=
79 prefix=NONE
80 program_prefix=NONE
81 program_suffix=NONE
82 program_transform_name=s,x,x,
83 silent=
84 site=
85 srcdir=
86 target=NONE
87 verbose=
88 x_includes=NONE
89 x_libraries=NONE
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
104 subdirs=
105 MFLAGS= MAKEFLAGS=
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
108 ac_max_here_lines=12
110 ac_prev=
111 for ac_option
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
117 ac_prev=
118 continue
121 case "$ac_option" in
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 *) ac_optarg= ;;
124 esac
126 # Accept the important Cygnus configure options, so we can diagnose typos.
128 case "$ac_option" in
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 ac_prev=bindir ;;
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
136 ac_prev=build ;;
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 ac_prev=datadir ;;
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 | --da=*)
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 case "$ac_option" in
170 *=*) ;;
171 *) ac_optarg=yes ;;
172 esac
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
186 with_gas=yes ;;
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
191 cat << EOF
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
194 Configuration:
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
202 [$ac_default_prefix]
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 [same as prefix]
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
209 [PREFIX/share]
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 [PREFIX/com]
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
225 cat << EOF
226 Host type:
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
241 exit 0 ;;
243 -host | --host | --hos | --ho)
244 ac_prev=host ;;
245 -host=* | --host=* | --hos=* | --ho=*)
246 host="$ac_optarg" ;;
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 | --no-cr | --no-c)
292 no_create=yes ;;
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 no_recursion=yes ;;
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 ac_prev=sbindir ;;
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 | --sbi=* | --sb=*)
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
356 | --sha | --sh)
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 | --sha=* | --sh=*)
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
367 site="$ac_optarg" ;;
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 ac_prev=srcdir ;;
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
382 ac_prev=target ;;
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 verbose=yes ;;
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.13"
391 exit 0 ;;
393 -with-* | --with-*)
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 case "$ac_option" in
401 *=*) ;;
402 *) ac_optarg=yes ;;
403 esac
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
415 --x)
416 # Obsolete; use --with-x.
417 with_x=yes ;;
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 nonopt="$ac_option"
446 esac
447 done
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
456 # 0 standard input
457 # 1 file creation
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
464 exec 6>/dev/null
465 else
466 exec 6>&1
468 exec 5>./config.log
470 echo "\
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
473 " 1>&5
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
477 ac_configure_args=
478 for ac_arg
480 case "$ac_arg" in
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 esac
489 done
491 # NLS nuisances.
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 echo > confdefs.h
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=src/ios.cc
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
514 ac_prog=$0
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 srcdir=$ac_confdir
518 if test ! -r $srcdir/$ac_unique_file; then
519 srcdir=..
521 else
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 else
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 else
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
544 . "$ac_site_file"
546 done
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
550 . $cache_file
551 else
552 echo "creating cache $cache_file"
553 > $cache_file
556 ac_ext=c
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
563 ac_exeext=
564 ac_objext=o
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='
569 ' ac_t=' '
570 else
571 ac_n=-n ac_c= ac_t=
573 else
574 ac_n= ac_c='\c' ac_t=
579 # When building with srcdir == objdir, links to the source files will
580 # be created in directories within the target_subdir. We have to
581 # adjust toplevel_srcdir accordingly, so that configure finds
582 # install-sh and other auxiliary files that live in the top-level
583 # source directory.
584 if test "${srcdir}" = "."; then
585 if test -z "${with_target_subdir}"; then
586 toplevel_srcdir="\${top_srcdir}/.."
587 auxdir="${srcdir}/.."
588 else
589 if test "${with_target_subdir}" != "."; then
590 toplevel_srcdir="\${top_srcdir}/${with_multisrctop}../.."
591 auxdir="${srcdir}/${with_multisrctop}../.."
592 else
593 toplevel_srcdir="\${top_srcdir}/${with_multisrctop}.."
594 auxdir="${srcdir}/${with_multisrctop}.."
597 else
598 toplevel_srcdir="\${top_srcdir}/.."
599 auxdir="${srcdir}/.."
601 ac_aux_dir=
602 for ac_dir in $auxdir $srcdir/$auxdir; do
603 if test -f $ac_dir/install-sh; then
604 ac_aux_dir=$ac_dir
605 ac_install_sh="$ac_aux_dir/install-sh -c"
606 break
607 elif test -f $ac_dir/install.sh; then
608 ac_aux_dir=$ac_dir
609 ac_install_sh="$ac_aux_dir/install.sh -c"
610 break
612 done
613 if test -z "$ac_aux_dir"; then
614 { echo "configure: error: can not find install-sh or install.sh in $auxdir $srcdir/$auxdir" 1>&2; exit 1; }
616 ac_config_guess=$ac_aux_dir/config.guess
617 ac_config_sub=$ac_aux_dir/config.sub
618 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
624 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
626 # Do some error checking and defaulting for the host and target type.
627 # The inputs are:
628 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
630 # The rules are:
631 # 1. You are not allowed to specify --host, --target, and nonopt at the
632 # same time.
633 # 2. Host defaults to nonopt.
634 # 3. If nonopt is not specified, then host defaults to the current host,
635 # as determined by config.guess.
636 # 4. Target and build default to nonopt.
637 # 5. If nonopt is not specified, then target and build default to host.
639 # The aliases save the names the user supplied, while $host etc.
640 # will get canonicalized.
641 case $host---$target---$nonopt in
642 NONE---*---* | *---NONE---* | *---*---NONE) ;;
643 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
644 esac
647 # Make sure we can run config.sub.
648 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
649 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
652 echo $ac_n "checking host system type""... $ac_c" 1>&6
653 echo "configure:654: checking host system type" >&5
655 host_alias=$host
656 case "$host_alias" in
657 NONE)
658 case $nonopt in
659 NONE)
660 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
661 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
662 fi ;;
663 *) host_alias=$nonopt ;;
664 esac ;;
665 esac
667 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
668 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
669 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
670 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671 echo "$ac_t""$host" 1>&6
673 echo $ac_n "checking target system type""... $ac_c" 1>&6
674 echo "configure:675: checking target system type" >&5
676 target_alias=$target
677 case "$target_alias" in
678 NONE)
679 case $nonopt in
680 NONE) target_alias=$host_alias ;;
681 *) target_alias=$nonopt ;;
682 esac ;;
683 esac
685 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
686 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
687 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
688 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
689 echo "$ac_t""$target" 1>&6
691 echo $ac_n "checking build system type""... $ac_c" 1>&6
692 echo "configure:693: checking build system type" >&5
694 build_alias=$build
695 case "$build_alias" in
696 NONE)
697 case $nonopt in
698 NONE) build_alias=$host_alias ;;
699 *) build_alias=$nonopt ;;
700 esac ;;
701 esac
703 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
704 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
705 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
706 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
707 echo "$ac_t""$build" 1>&6
709 test "$host_alias" != "$target_alias" &&
710 test "$program_prefix$program_suffix$program_transform_name" = \
711 NONENONEs,x,x, &&
712 program_prefix=${target_alias}-
715 # We use these options to decide which functions to include.
716 # Check whether --with-target-subdir or --without-target-subdir was given.
717 if test "${with_target_subdir+set}" = set; then
718 withval="$with_target_subdir"
722 # Check whether --with-cross-host or --without-cross-host was given.
723 if test "${with_cross_host+set}" = set; then
724 withval="$with_cross_host"
729 # Runs configure.host and configure.target. Have to run this before
730 # the GLIBCPP_ENABLE_* macros below.
731 # Find a good install program. We prefer a C program (faster),
732 # so one script is as good as another. But avoid the broken or
733 # incompatible versions:
734 # SysV /etc/install, /usr/sbin/install
735 # SunOS /usr/etc/install
736 # IRIX /sbin/install
737 # AIX /bin/install
738 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
739 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
740 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
741 # ./install, which can be erroneously created by make from ./install.sh.
742 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
743 echo "configure:744: checking for a BSD compatible install" >&5
744 if test -z "$INSTALL"; then
745 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
746 echo $ac_n "(cached) $ac_c" 1>&6
747 else
748 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
749 for ac_dir in $PATH; do
750 # Account for people who put trailing slashes in PATH elements.
751 case "$ac_dir/" in
752 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
754 # OSF1 and SCO ODT 3.0 have their own names for install.
755 # Don't use installbsd from OSF since it installs stuff as root
756 # by default.
757 for ac_prog in ginstall scoinst install; do
758 if test -f $ac_dir/$ac_prog; then
759 if test $ac_prog = install &&
760 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
761 # AIX install. It has an incompatible calling convention.
763 else
764 ac_cv_path_install="$ac_dir/$ac_prog -c"
765 break 2
768 done
770 esac
771 done
772 IFS="$ac_save_IFS"
775 if test "${ac_cv_path_install+set}" = set; then
776 INSTALL="$ac_cv_path_install"
777 else
778 # As a last resort, use the slow shell script. We don't cache a
779 # path for INSTALL within a source directory, because that will
780 # break other packages using the cache if that directory is
781 # removed, or if the path is relative.
782 INSTALL="$ac_install_sh"
785 echo "$ac_t""$INSTALL" 1>&6
787 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
788 # It thinks the first close brace ends the variable substitution.
789 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
791 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
793 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
795 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
796 echo "configure:797: checking whether build environment is sane" >&5
797 # Just in case
798 sleep 1
799 echo timestamp > conftestfile
800 # Do `set' in a subshell so we don't clobber the current shell's
801 # arguments. Must try -L first in case configure is actually a
802 # symlink; some systems play weird games with the mod time of symlinks
803 # (eg FreeBSD returns the mod time of the symlink's containing
804 # directory).
805 if (
806 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
807 if test "$*" = "X"; then
808 # -L didn't work.
809 set X `ls -t $srcdir/configure conftestfile`
811 if test "$*" != "X $srcdir/configure conftestfile" \
812 && test "$*" != "X conftestfile $srcdir/configure"; then
814 # If neither matched, then we have a broken ls. This can happen
815 # if, for instance, CONFIG_SHELL is bash and it inherits a
816 # broken ls alias from the environment. This has actually
817 # happened. Such a system could not be considered "sane".
818 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
819 alias in your environment" 1>&2; exit 1; }
822 test "$2" = conftestfile
824 then
825 # Ok.
827 else
828 { echo "configure: error: newly created file is older than distributed files!
829 Check your system clock" 1>&2; exit 1; }
831 rm -f conftest*
832 echo "$ac_t""yes" 1>&6
833 if test "$program_transform_name" = s,x,x,; then
834 program_transform_name=
835 else
836 # Double any \ or $. echo might interpret backslashes.
837 cat <<\EOF_SED > conftestsed
838 s,\\,\\\\,g; s,\$,$$,g
839 EOF_SED
840 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
841 rm -f conftestsed
843 test "$program_prefix" != NONE &&
844 program_transform_name="s,^,${program_prefix},; $program_transform_name"
845 # Use a double $ so make ignores it.
846 test "$program_suffix" != NONE &&
847 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
849 # sed with no file args requires a program.
850 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
852 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
853 echo "configure:854: checking whether ${MAKE-make} sets \${MAKE}" >&5
854 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
855 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
857 else
858 cat > conftestmake <<\EOF
859 all:
860 @echo 'ac_maketemp="${MAKE}"'
862 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
863 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
864 if test -n "$ac_maketemp"; then
865 eval ac_cv_prog_make_${ac_make}_set=yes
866 else
867 eval ac_cv_prog_make_${ac_make}_set=no
869 rm -f conftestmake
871 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
872 echo "$ac_t""yes" 1>&6
873 SET_MAKE=
874 else
875 echo "$ac_t""no" 1>&6
876 SET_MAKE="MAKE=${MAKE-make}"
879 if test $host != $build; then
880 ac_tool_prefix=${host_alias}-
881 else
882 ac_tool_prefix=
885 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
886 echo "configure:887: checking for Cygwin environment" >&5
887 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
889 else
890 cat > conftest.$ac_ext <<EOF
891 #line 892 "configure"
892 #include "confdefs.h"
894 int main() {
896 #ifndef __CYGWIN__
897 #define __CYGWIN__ __CYGWIN32__
898 #endif
899 return __CYGWIN__;
900 ; return 0; }
902 if { (eval echo configure:903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
903 rm -rf conftest*
904 ac_cv_cygwin=yes
905 else
906 echo "configure: failed program was:" >&5
907 cat conftest.$ac_ext >&5
908 rm -rf conftest*
909 ac_cv_cygwin=no
911 rm -f conftest*
912 rm -f conftest*
915 echo "$ac_t""$ac_cv_cygwin" 1>&6
916 CYGWIN=
917 test "$ac_cv_cygwin" = yes && CYGWIN=yes
918 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
919 echo "configure:920: checking for mingw32 environment" >&5
920 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
921 echo $ac_n "(cached) $ac_c" 1>&6
922 else
923 cat > conftest.$ac_ext <<EOF
924 #line 925 "configure"
925 #include "confdefs.h"
927 int main() {
928 return __MINGW32__;
929 ; return 0; }
931 if { (eval echo configure:932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
932 rm -rf conftest*
933 ac_cv_mingw32=yes
934 else
935 echo "configure: failed program was:" >&5
936 cat conftest.$ac_ext >&5
937 rm -rf conftest*
938 ac_cv_mingw32=no
940 rm -f conftest*
941 rm -f conftest*
944 echo "$ac_t""$ac_cv_mingw32" 1>&6
945 MINGW32=
946 test "$ac_cv_mingw32" = yes && MINGW32=yes
948 # Check whether --enable-multilib or --disable-multilib was given.
949 if test "${enable_multilib+set}" = set; then
950 enableval="$enable_multilib"
951 case "${enableval}" in
952 yes) multilib=yes ;;
953 no) multilib=no ;;
954 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
955 esac
956 else
957 multilib=yes
960 glibcpp_basedir=$auxdir/./libstdc++-v3
964 PACKAGE=libstdc++
966 VERSION=2.91
968 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
969 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
971 cat >> confdefs.h <<EOF
972 #define PACKAGE "$PACKAGE"
975 cat >> confdefs.h <<EOF
976 #define VERSION "$VERSION"
981 missing_dir=`cd $ac_aux_dir && pwd`
982 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
983 echo "configure:984: checking for working aclocal" >&5
984 # Run test in a subshell; some versions of sh will print an error if
985 # an executable is not found, even if stderr is redirected.
986 # Redirect stdin to placate older versions of autoconf. Sigh.
987 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
988 ACLOCAL=aclocal
989 echo "$ac_t""found" 1>&6
990 else
991 ACLOCAL="$missing_dir/missing aclocal"
992 echo "$ac_t""missing" 1>&6
995 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
996 echo "configure:997: checking for working autoconf" >&5
997 # Run test in a subshell; some versions of sh will print an error if
998 # an executable is not found, even if stderr is redirected.
999 # Redirect stdin to placate older versions of autoconf. Sigh.
1000 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1001 AUTOCONF=autoconf
1002 echo "$ac_t""found" 1>&6
1003 else
1004 AUTOCONF="$missing_dir/missing autoconf"
1005 echo "$ac_t""missing" 1>&6
1008 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1009 echo "configure:1010: checking for working automake" >&5
1010 # Run test in a subshell; some versions of sh will print an error if
1011 # an executable is not found, even if stderr is redirected.
1012 # Redirect stdin to placate older versions of autoconf. Sigh.
1013 if (automake --version) < /dev/null > /dev/null 2>&1; then
1014 AUTOMAKE=automake
1015 echo "$ac_t""found" 1>&6
1016 else
1017 AUTOMAKE="$missing_dir/missing automake"
1018 echo "$ac_t""missing" 1>&6
1021 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1022 echo "configure:1023: checking for working autoheader" >&5
1023 # Run test in a subshell; some versions of sh will print an error if
1024 # an executable is not found, even if stderr is redirected.
1025 # Redirect stdin to placate older versions of autoconf. Sigh.
1026 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1027 AUTOHEADER=autoheader
1028 echo "$ac_t""found" 1>&6
1029 else
1030 AUTOHEADER="$missing_dir/missing autoheader"
1031 echo "$ac_t""missing" 1>&6
1034 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1035 echo "configure:1036: checking for working makeinfo" >&5
1036 # Run test in a subshell; some versions of sh will print an error if
1037 # an executable is not found, even if stderr is redirected.
1038 # Redirect stdin to placate older versions of autoconf. Sigh.
1039 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1040 MAKEINFO=makeinfo
1041 echo "$ac_t""found" 1>&6
1042 else
1043 MAKEINFO="$missing_dir/missing makeinfo"
1044 echo "$ac_t""missing" 1>&6
1049 # Never versions of autoconf add an underscore to these functions.
1050 # Prevent future problems ...
1056 # AC_PROG_CC
1058 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1059 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1060 # are probably using a cross compiler, which will not be able to fully
1061 # link an executable. This should really be fixed in autoconf
1062 # itself.
1067 # Extract the first word of "gcc", so it can be a program name with args.
1068 set dummy gcc; ac_word=$2
1069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1070 echo "configure:1071: checking for $ac_word" >&5
1071 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1073 else
1074 if test -n "$CC"; then
1075 ac_cv_prog_CC="$CC" # Let the user override the test.
1076 else
1077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1078 ac_dummy="$PATH"
1079 for ac_dir in $ac_dummy; do
1080 test -z "$ac_dir" && ac_dir=.
1081 if test -f $ac_dir/$ac_word; then
1082 ac_cv_prog_CC="gcc"
1083 break
1085 done
1086 IFS="$ac_save_ifs"
1089 CC="$ac_cv_prog_CC"
1090 if test -n "$CC"; then
1091 echo "$ac_t""$CC" 1>&6
1092 else
1093 echo "$ac_t""no" 1>&6
1096 if test -z "$CC"; then
1097 # Extract the first word of "cc", so it can be a program name with args.
1098 set dummy cc; ac_word=$2
1099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100 echo "configure:1101: checking for $ac_word" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1103 else
1104 if test -n "$CC"; then
1105 ac_cv_prog_CC="$CC" # Let the user override the test.
1106 else
1107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1108 ac_prog_rejected=no
1109 ac_dummy="$PATH"
1110 for ac_dir in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir=.
1112 if test -f $ac_dir/$ac_word; then
1113 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1114 ac_prog_rejected=yes
1115 continue
1117 ac_cv_prog_CC="cc"
1118 break
1120 done
1121 IFS="$ac_save_ifs"
1122 if test $ac_prog_rejected = yes; then
1123 # We found a bogon in the path, so make sure we never use it.
1124 set dummy $ac_cv_prog_CC
1125 shift
1126 if test $# -gt 0; then
1127 # We chose a different compiler from the bogus one.
1128 # However, it has the same basename, so the bogon will be chosen
1129 # first if we set CC to just the basename; use the full file name.
1130 shift
1131 set dummy "$ac_dir/$ac_word" "$@"
1132 shift
1133 ac_cv_prog_CC="$@"
1138 CC="$ac_cv_prog_CC"
1139 if test -n "$CC"; then
1140 echo "$ac_t""$CC" 1>&6
1141 else
1142 echo "$ac_t""no" 1>&6
1145 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1148 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether we are using GNU C" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153 cat > conftest.c <<EOF
1154 #ifdef __GNUC__
1155 yes;
1156 #endif
1158 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1159 ac_cv_prog_gcc=yes
1160 else
1161 ac_cv_prog_gcc=no
1165 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1167 if test $ac_cv_prog_gcc = yes; then
1168 GCC=yes
1169 ac_test_CFLAGS="${CFLAGS+set}"
1170 ac_save_CFLAGS="$CFLAGS"
1171 CFLAGS=
1172 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1173 echo "configure:1174: checking whether ${CC-cc} accepts -g" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1176 else
1177 echo 'void f(){}' > conftest.c
1178 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1179 ac_cv_prog_cc_g=yes
1180 else
1181 ac_cv_prog_cc_g=no
1183 rm -f conftest*
1187 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1188 if test "$ac_test_CFLAGS" = set; then
1189 CFLAGS="$ac_save_CFLAGS"
1190 elif test $ac_cv_prog_cc_g = yes; then
1191 CFLAGS="-g -O2"
1192 else
1193 CFLAGS="-O2"
1195 else
1196 GCC=
1197 test "${CFLAGS+set}" = set || CFLAGS="-g"
1201 # Can't just call these here as g++ requires libstc++ to be built....
1202 # AC_PROG_CXX
1204 # Likewise for AC_PROG_CXX.
1208 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1209 # flags that come in CXX while configuring libstdc++. They're different
1210 # from those used for all other target libraries. If CXX is set in
1211 # the environment, respect that here.
1212 glibcpp_CXX=$CXX
1213 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1215 # Extract the first word of "$ac_prog", so it can be a program name with args.
1216 set dummy $ac_prog; ac_word=$2
1217 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1218 echo "configure:1219: checking for $ac_word" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1221 else
1222 if test -n "$glibcpp_CXX"; then
1223 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1224 else
1225 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1226 ac_dummy="$PATH"
1227 for ac_dir in $ac_dummy; do
1228 test -z "$ac_dir" && ac_dir=.
1229 if test -f $ac_dir/$ac_word; then
1230 ac_cv_prog_glibcpp_CXX="$ac_prog"
1231 break
1233 done
1234 IFS="$ac_save_ifs"
1237 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1238 if test -n "$glibcpp_CXX"; then
1239 echo "$ac_t""$glibcpp_CXX" 1>&6
1240 else
1241 echo "$ac_t""no" 1>&6
1244 test -n "$glibcpp_CXX" && break
1245 done
1246 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1249 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1251 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1252 echo "configure:1253: checking whether we are using GNU C++" >&5
1253 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1255 else
1256 cat > conftest.C <<EOF
1257 #ifdef __GNUC__
1258 yes;
1259 #endif
1261 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1262 ac_cv_prog_gxx=yes
1263 else
1264 ac_cv_prog_gxx=no
1268 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1270 if test $ac_cv_prog_gxx = yes; then
1271 GXX=yes
1272 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1273 ac_save_CXXFLAGS="$CXXFLAGS"
1274 CXXFLAGS=
1275 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1276 echo "configure:1277: checking whether ${CXX-g++} accepts -g" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280 echo 'void f(){}' > conftest.cc
1281 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1282 ac_cv_prog_cxx_g=yes
1283 else
1284 ac_cv_prog_cxx_g=no
1286 rm -f conftest*
1290 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1291 if test "$ac_test_CXXFLAGS" = set; then
1292 CXXFLAGS="$ac_save_CXXFLAGS"
1293 elif test $ac_cv_prog_cxx_g = yes; then
1294 CXXFLAGS="-g -O2"
1295 else
1296 CXXFLAGS="-O2"
1298 else
1299 GXX=
1300 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1304 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1305 set dummy ${ac_tool_prefix}as; ac_word=$2
1306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1307 echo "configure:1308: checking for $ac_word" >&5
1308 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1310 else
1311 if test -n "$AS"; then
1312 ac_cv_prog_AS="$AS" # Let the user override the test.
1313 else
1314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1315 ac_dummy="$PATH"
1316 for ac_dir in $ac_dummy; do
1317 test -z "$ac_dir" && ac_dir=.
1318 if test -f $ac_dir/$ac_word; then
1319 ac_cv_prog_AS="${ac_tool_prefix}as"
1320 break
1322 done
1323 IFS="$ac_save_ifs"
1324 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1327 AS="$ac_cv_prog_AS"
1328 if test -n "$AS"; then
1329 echo "$ac_t""$AS" 1>&6
1330 else
1331 echo "$ac_t""no" 1>&6
1336 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1337 set dummy ${ac_tool_prefix}ar; ac_word=$2
1338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1339 echo "configure:1340: checking for $ac_word" >&5
1340 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1342 else
1343 if test -n "$AR"; then
1344 ac_cv_prog_AR="$AR" # Let the user override the test.
1345 else
1346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1347 ac_dummy="$PATH"
1348 for ac_dir in $ac_dummy; do
1349 test -z "$ac_dir" && ac_dir=.
1350 if test -f $ac_dir/$ac_word; then
1351 ac_cv_prog_AR="${ac_tool_prefix}ar"
1352 break
1354 done
1355 IFS="$ac_save_ifs"
1356 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1359 AR="$ac_cv_prog_AR"
1360 if test -n "$AR"; then
1361 echo "$ac_t""$AR" 1>&6
1362 else
1363 echo "$ac_t""no" 1>&6
1368 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1369 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1371 echo "configure:1372: checking for $ac_word" >&5
1372 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1374 else
1375 if test -n "$RANLIB"; then
1376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1377 else
1378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1379 ac_dummy="$PATH"
1380 for ac_dir in $ac_dummy; do
1381 test -z "$ac_dir" && ac_dir=.
1382 if test -f $ac_dir/$ac_word; then
1383 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1384 break
1386 done
1387 IFS="$ac_save_ifs"
1390 RANLIB="$ac_cv_prog_RANLIB"
1391 if test -n "$RANLIB"; then
1392 echo "$ac_t""$RANLIB" 1>&6
1393 else
1394 echo "$ac_t""no" 1>&6
1398 if test -z "$ac_cv_prog_RANLIB"; then
1399 if test -n "$ac_tool_prefix"; then
1400 # Extract the first word of "ranlib", so it can be a program name with args.
1401 set dummy ranlib; ac_word=$2
1402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1403 echo "configure:1404: checking for $ac_word" >&5
1404 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1406 else
1407 if test -n "$RANLIB"; then
1408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1409 else
1410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1411 ac_dummy="$PATH"
1412 for ac_dir in $ac_dummy; do
1413 test -z "$ac_dir" && ac_dir=.
1414 if test -f $ac_dir/$ac_word; then
1415 ac_cv_prog_RANLIB="ranlib"
1416 break
1418 done
1419 IFS="$ac_save_ifs"
1420 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1423 RANLIB="$ac_cv_prog_RANLIB"
1424 if test -n "$RANLIB"; then
1425 echo "$ac_t""$RANLIB" 1>&6
1426 else
1427 echo "$ac_t""no" 1>&6
1430 else
1431 RANLIB="ranlib-not-found-in-path-error"
1435 # Extract the first word of "${ac_tool_prefix}expect", so it can be a program name with args.
1436 set dummy ${ac_tool_prefix}expect; ac_word=$2
1437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1438 echo "configure:1439: checking for $ac_word" >&5
1439 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_expect'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1441 else
1442 if test -n "$glibcpp_expect"; then
1443 ac_cv_prog_glibcpp_expect="$glibcpp_expect" # Let the user override the test.
1444 else
1445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1446 ac_dummy="$PATH"
1447 for ac_dir in $ac_dummy; do
1448 test -z "$ac_dir" && ac_dir=.
1449 if test -f $ac_dir/$ac_word; then
1450 ac_cv_prog_glibcpp_expect="${ac_tool_prefix}expect"
1451 break
1453 done
1454 IFS="$ac_save_ifs"
1457 glibcpp_expect="$ac_cv_prog_glibcpp_expect"
1458 if test -n "$glibcpp_expect"; then
1459 echo "$ac_t""$glibcpp_expect" 1>&6
1460 else
1461 echo "$ac_t""no" 1>&6
1465 if test -z "$ac_cv_prog_glibcpp_expect"; then
1466 if test -n "$ac_tool_prefix"; then
1467 # Extract the first word of "expect", so it can be a program name with args.
1468 set dummy expect; ac_word=$2
1469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1470 echo "configure:1471: checking for $ac_word" >&5
1471 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_expect'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1473 else
1474 if test -n "$glibcpp_expect"; then
1475 ac_cv_prog_glibcpp_expect="$glibcpp_expect" # Let the user override the test.
1476 else
1477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1478 ac_dummy="$PATH"
1479 for ac_dir in $ac_dummy; do
1480 test -z "$ac_dir" && ac_dir=.
1481 if test -f $ac_dir/$ac_word; then
1482 ac_cv_prog_glibcpp_expect="expect"
1483 break
1485 done
1486 IFS="$ac_save_ifs"
1487 test -z "$ac_cv_prog_glibcpp_expect" && ac_cv_prog_glibcpp_expect="expect-not-found-in-path-error"
1490 glibcpp_expect="$ac_cv_prog_glibcpp_expect"
1491 if test -n "$glibcpp_expect"; then
1492 echo "$ac_t""$glibcpp_expect" 1>&6
1493 else
1494 echo "$ac_t""no" 1>&6
1497 else
1498 glibcpp_expect="expect-not-found-in-path-error"
1502 # Extract the first word of "${ac_tool_prefix}runtest", so it can be a program name with args.
1503 set dummy ${ac_tool_prefix}runtest; ac_word=$2
1504 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1505 echo "configure:1506: checking for $ac_word" >&5
1506 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_runtest'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1508 else
1509 if test -n "$glibcpp_runtest"; then
1510 ac_cv_prog_glibcpp_runtest="$glibcpp_runtest" # Let the user override the test.
1511 else
1512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1513 ac_dummy="$PATH"
1514 for ac_dir in $ac_dummy; do
1515 test -z "$ac_dir" && ac_dir=.
1516 if test -f $ac_dir/$ac_word; then
1517 ac_cv_prog_glibcpp_runtest="${ac_tool_prefix}runtest"
1518 break
1520 done
1521 IFS="$ac_save_ifs"
1524 glibcpp_runtest="$ac_cv_prog_glibcpp_runtest"
1525 if test -n "$glibcpp_runtest"; then
1526 echo "$ac_t""$glibcpp_runtest" 1>&6
1527 else
1528 echo "$ac_t""no" 1>&6
1532 if test -z "$ac_cv_prog_glibcpp_runtest"; then
1533 if test -n "$ac_tool_prefix"; then
1534 # Extract the first word of "runtest", so it can be a program name with args.
1535 set dummy runtest; ac_word=$2
1536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1537 echo "configure:1538: checking for $ac_word" >&5
1538 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_runtest'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1540 else
1541 if test -n "$glibcpp_runtest"; then
1542 ac_cv_prog_glibcpp_runtest="$glibcpp_runtest" # Let the user override the test.
1543 else
1544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1545 ac_dummy="$PATH"
1546 for ac_dir in $ac_dummy; do
1547 test -z "$ac_dir" && ac_dir=.
1548 if test -f $ac_dir/$ac_word; then
1549 ac_cv_prog_glibcpp_runtest="runtest"
1550 break
1552 done
1553 IFS="$ac_save_ifs"
1554 test -z "$ac_cv_prog_glibcpp_runtest" && ac_cv_prog_glibcpp_runtest="runtest-not-found-in-path-error"
1557 glibcpp_runtest="$ac_cv_prog_glibcpp_runtest"
1558 if test -n "$glibcpp_runtest"; then
1559 echo "$ac_t""$glibcpp_runtest" 1>&6
1560 else
1561 echo "$ac_t""no" 1>&6
1564 else
1565 glibcpp_runtest="runtest-not-found-in-path-error"
1571 # Find a good install program. We prefer a C program (faster),
1572 # so one script is as good as another. But avoid the broken or
1573 # incompatible versions:
1574 # SysV /etc/install, /usr/sbin/install
1575 # SunOS /usr/etc/install
1576 # IRIX /sbin/install
1577 # AIX /bin/install
1578 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1581 # ./install, which can be erroneously created by make from ./install.sh.
1582 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1583 echo "configure:1584: checking for a BSD compatible install" >&5
1584 if test -z "$INSTALL"; then
1585 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1587 else
1588 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1589 for ac_dir in $PATH; do
1590 # Account for people who put trailing slashes in PATH elements.
1591 case "$ac_dir/" in
1592 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1594 # OSF1 and SCO ODT 3.0 have their own names for install.
1595 # Don't use installbsd from OSF since it installs stuff as root
1596 # by default.
1597 for ac_prog in ginstall scoinst install; do
1598 if test -f $ac_dir/$ac_prog; then
1599 if test $ac_prog = install &&
1600 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1601 # AIX install. It has an incompatible calling convention.
1603 else
1604 ac_cv_path_install="$ac_dir/$ac_prog -c"
1605 break 2
1608 done
1610 esac
1611 done
1612 IFS="$ac_save_IFS"
1615 if test "${ac_cv_path_install+set}" = set; then
1616 INSTALL="$ac_cv_path_install"
1617 else
1618 # As a last resort, use the slow shell script. We don't cache a
1619 # path for INSTALL within a source directory, because that will
1620 # break other packages using the cache if that directory is
1621 # removed, or if the path is relative.
1622 INSTALL="$ac_install_sh"
1625 echo "$ac_t""$INSTALL" 1>&6
1627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1628 # It thinks the first close brace ends the variable substitution.
1629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1636 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1637 echo "configure:1638: checking whether to enable maintainer-specific portions of Makefiles" >&5
1638 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1639 if test "${enable_maintainer_mode+set}" = set; then
1640 enableval="$enable_maintainer_mode"
1641 USE_MAINTAINER_MODE=$enableval
1642 else
1643 USE_MAINTAINER_MODE=no
1646 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1649 if test $USE_MAINTAINER_MODE = yes; then
1650 MAINTAINER_MODE_TRUE=
1651 MAINTAINER_MODE_FALSE='#'
1652 else
1653 MAINTAINER_MODE_TRUE='#'
1654 MAINTAINER_MODE_FALSE=
1656 MAINT=$MAINTAINER_MODE_TRUE
1660 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1661 # at least currently, we never actually build a program, so we never
1662 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1663 # fails, because we are probably configuring with a cross compiler
1664 # which cant create executables. So we include AC_EXEEXT to keep
1665 # automake happy, but we dont execute it, since we dont care about
1666 # the result.
1667 if false; then
1670 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1671 echo "configure:1672: checking for executable suffix" >&5
1672 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1674 else
1675 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1676 ac_cv_exeext=.exe
1677 else
1678 rm -f conftest*
1679 echo 'int main () { return 0; }' > conftest.$ac_ext
1680 ac_cv_exeext=
1681 if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1682 for file in conftest.*; do
1683 case $file in
1684 *.c | *.o | *.obj) ;;
1685 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1686 esac
1687 done
1688 else
1689 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1691 rm -f conftest*
1692 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1696 EXEEXT=""
1697 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1698 echo "$ac_t""${ac_cv_exeext}" 1>&6
1699 ac_exeext=$EXEEXT
1703 . ${glibcpp_basedir}/configure.host
1705 case ${glibcpp_basedir} in
1706 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1707 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1708 esac
1710 # This does for the target what configure.host does for the host. In
1711 # addition to possibly modifying the same flags, it also sets up symlinks.
1713 . ${glibcpp_basedir}/configure.target
1714 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1715 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1721 # Check whether --enable-shared or --disable-shared was given.
1722 if test "${enable_shared+set}" = set; then
1723 enableval="$enable_shared"
1724 p=${PACKAGE-default}
1725 case $enableval in
1726 yes) enable_shared=yes ;;
1727 no) enable_shared=no ;;
1729 enable_shared=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_shared=yes
1736 done
1737 IFS="$ac_save_ifs"
1739 esac
1740 else
1741 enable_shared=yes
1744 # Check whether --enable-static or --disable-static was given.
1745 if test "${enable_static+set}" = set; then
1746 enableval="$enable_static"
1747 p=${PACKAGE-default}
1748 case $enableval in
1749 yes) enable_static=yes ;;
1750 no) enable_static=no ;;
1752 enable_static=no
1753 # Look at the argument we got. We use all the common list separators.
1754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1755 for pkg in $enableval; do
1756 if test "X$pkg" = "X$p"; then
1757 enable_static=yes
1759 done
1760 IFS="$ac_save_ifs"
1762 esac
1763 else
1764 enable_static=yes
1767 # Check whether --enable-fast-install or --disable-fast-install was given.
1768 if test "${enable_fast_install+set}" = set; then
1769 enableval="$enable_fast_install"
1770 p=${PACKAGE-default}
1771 case $enableval in
1772 yes) enable_fast_install=yes ;;
1773 no) enable_fast_install=no ;;
1775 enable_fast_install=no
1776 # Look at the argument we got. We use all the common list separators.
1777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1778 for pkg in $enableval; do
1779 if test "X$pkg" = "X$p"; then
1780 enable_fast_install=yes
1782 done
1783 IFS="$ac_save_ifs"
1785 esac
1786 else
1787 enable_fast_install=yes
1790 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1791 if test "${with_gnu_ld+set}" = set; then
1792 withval="$with_gnu_ld"
1793 test "$withval" = no || with_gnu_ld=yes
1794 else
1795 with_gnu_ld=no
1798 ac_prog=ld
1799 if test "$GCC" = yes; then
1800 # Check if gcc -print-prog-name=ld gives a path.
1801 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1802 echo "configure:1803: checking for ld used by GCC" >&5
1803 case $host in
1804 *-*-mingw*)
1805 # gcc leaves a trailing carriage return which upsets mingw
1806 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1808 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1809 esac
1810 case $ac_prog in
1811 # Accept absolute paths.
1812 [\\/]* | [A-Za-z]:[\\/]*)
1813 re_direlt='/[^/][^/]*/\.\./'
1814 # Canonicalize the path of ld
1815 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1816 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1817 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1818 done
1819 test -z "$LD" && LD="$ac_prog"
1822 # If it fails, then pretend we aren't using GCC.
1823 ac_prog=ld
1826 # If it is relative, then search for the first ld in PATH.
1827 with_gnu_ld=unknown
1829 esac
1830 elif test "$with_gnu_ld" = yes; then
1831 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1832 echo "configure:1833: checking for GNU ld" >&5
1833 else
1834 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1835 echo "configure:1836: checking for non-GNU ld" >&5
1837 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1839 else
1840 if test -z "$LD"; then
1841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1842 for ac_dir in $PATH; do
1843 test -z "$ac_dir" && ac_dir=.
1844 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1845 lt_cv_path_LD="$ac_dir/$ac_prog"
1846 # Check to see if the program is GNU ld. I'd rather use --version,
1847 # but apparently some GNU ld's only accept -v.
1848 # Break only if it was the GNU/non-GNU ld that we prefer.
1849 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1850 test "$with_gnu_ld" != no && break
1851 else
1852 test "$with_gnu_ld" != yes && break
1855 done
1856 IFS="$ac_save_ifs"
1857 else
1858 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1862 LD="$lt_cv_path_LD"
1863 if test -n "$LD"; then
1864 echo "$ac_t""$LD" 1>&6
1865 else
1866 echo "$ac_t""no" 1>&6
1868 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1869 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1870 echo "configure:1871: checking if the linker ($LD) is GNU ld" >&5
1871 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1873 else
1874 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1875 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1876 lt_cv_prog_gnu_ld=yes
1877 else
1878 lt_cv_prog_gnu_ld=no
1882 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1883 with_gnu_ld=$lt_cv_prog_gnu_ld
1886 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1887 echo "configure:1888: checking for $LD option to reload object files" >&5
1888 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1890 else
1891 lt_cv_ld_reload_flag='-r'
1894 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1895 reload_flag=$lt_cv_ld_reload_flag
1896 test -n "$reload_flag" && reload_flag=" $reload_flag"
1898 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1899 echo "configure:1900: checking for BSD-compatible nm" >&5
1900 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1901 echo $ac_n "(cached) $ac_c" 1>&6
1902 else
1903 if test -n "$NM"; then
1904 # Let the user override the test.
1905 lt_cv_path_NM="$NM"
1906 else
1907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1908 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1909 test -z "$ac_dir" && ac_dir=.
1910 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1911 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1912 # Check to see if the nm accepts a BSD-compat flag.
1913 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1914 # nm: unknown option "B" ignored
1915 # Tru64's nm complains that /dev/null is an invalid object file
1916 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1917 lt_cv_path_NM="$tmp_nm -B"
1918 break
1919 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1920 lt_cv_path_NM="$tmp_nm -p"
1921 break
1922 else
1923 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1924 continue # so that we can try to find one that supports BSD flags
1927 done
1928 IFS="$ac_save_ifs"
1929 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1933 NM="$lt_cv_path_NM"
1934 echo "$ac_t""$NM" 1>&6
1936 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1937 echo "configure:1938: checking whether ln -s works" >&5
1938 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1940 else
1941 rm -f conftestdata
1942 if ln -s X conftestdata 2>/dev/null
1943 then
1944 rm -f conftestdata
1945 ac_cv_prog_LN_S="ln -s"
1946 else
1947 ac_cv_prog_LN_S=ln
1950 LN_S="$ac_cv_prog_LN_S"
1951 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1952 echo "$ac_t""yes" 1>&6
1953 else
1954 echo "$ac_t""no" 1>&6
1957 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1958 echo "configure:1959: checking how to recognise dependant libraries" >&5
1959 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1961 else
1962 lt_cv_file_magic_cmd='$MAGIC_CMD'
1963 lt_cv_file_magic_test_file=
1964 lt_cv_deplibs_check_method='unknown'
1965 # Need to set the preceding variable on all platforms that support
1966 # interlibrary dependencies.
1967 # 'none' -- dependencies not supported.
1968 # `unknown' -- same as none, but documents that we really don't know.
1969 # 'pass_all' -- all dependencies passed with no checks.
1970 # 'test_compile' -- check by making test program.
1971 # 'file_magic [regex]' -- check by looking for files in library path
1972 # which responds to the $file_magic_cmd with a given egrep regex.
1973 # If you have `file' or equivalent on your system and you're not sure
1974 # whether `pass_all' will *always* work, you probably want this one.
1976 case $host_os in
1977 aix*)
1978 lt_cv_deplibs_check_method=pass_all
1981 beos*)
1982 lt_cv_deplibs_check_method=pass_all
1985 bsdi4*)
1986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1987 lt_cv_file_magic_cmd='/usr/bin/file -L'
1988 lt_cv_file_magic_test_file=/shlib/libc.so
1991 cygwin* | mingw* |pw32*)
1992 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1993 lt_cv_file_magic_cmd='$OBJDUMP -f'
1996 darwin* | rhapsody*)
1997 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1998 lt_cv_file_magic_cmd='/usr/bin/file -L'
1999 case "$host_os" in
2000 rhapsody* | darwin1.012)
2001 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2003 *) # Darwin 1.3 on
2004 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2006 esac
2009 freebsd* )
2010 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2011 case $host_cpu in
2012 i*86 )
2013 # Not sure whether the presence of OpenBSD here was a mistake.
2014 # Let's accept both of them until this is cleared up.
2015 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2016 lt_cv_file_magic_cmd=/usr/bin/file
2017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2019 esac
2020 else
2021 lt_cv_deplibs_check_method=pass_all
2025 gnu*)
2026 lt_cv_deplibs_check_method=pass_all
2029 hpux10.20*|hpux11*)
2030 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2031 lt_cv_file_magic_cmd=/usr/bin/file
2032 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2035 irix5* | irix6*)
2036 case $host_os in
2037 irix5*)
2038 # this will be overridden with pass_all, but let us keep it just in case
2039 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2042 case $LD in
2043 *-32|*"-32 ") libmagic=32-bit;;
2044 *-n32|*"-n32 ") libmagic=N32;;
2045 *-64|*"-64 ") libmagic=64-bit;;
2046 *) libmagic=never-match;;
2047 esac
2048 # this will be overridden with pass_all, but let us keep it just in case
2049 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2051 esac
2052 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2053 lt_cv_deplibs_check_method=pass_all
2056 # This must be Linux ELF.
2057 linux-gnu*)
2058 case $host_cpu in
2059 alpha* | i*86 | powerpc* | sparc* | ia64* )
2060 lt_cv_deplibs_check_method=pass_all ;;
2062 # glibc up to 2.1.1 does not perform some relocations on ARM
2063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2064 esac
2065 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2068 netbsd*)
2069 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2070 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2071 else
2072 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2076 newsos6)
2077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2078 lt_cv_file_magic_cmd=/usr/bin/file
2079 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2082 osf3* | osf4* | osf5*)
2083 # this will be overridden with pass_all, but let us keep it just in case
2084 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2085 lt_cv_file_magic_test_file=/shlib/libc.so
2086 lt_cv_deplibs_check_method=pass_all
2089 sco3.2v5*)
2090 lt_cv_deplibs_check_method=pass_all
2093 solaris*)
2094 lt_cv_deplibs_check_method=pass_all
2095 lt_cv_file_magic_test_file=/lib/libc.so
2098 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2099 case $host_vendor in
2100 ncr)
2101 lt_cv_deplibs_check_method=pass_all
2103 motorola)
2104 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]'
2105 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2107 esac
2109 esac
2113 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2114 file_magic_cmd=$lt_cv_file_magic_cmd
2115 deplibs_check_method=$lt_cv_deplibs_check_method
2117 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2118 echo "configure:2119: checking for object suffix" >&5
2119 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2121 else
2122 rm -f conftest*
2123 echo 'int i = 1;' > conftest.$ac_ext
2124 if { (eval echo configure:2125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2125 for ac_file in conftest.*; do
2126 case $ac_file in
2127 *.c) ;;
2128 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2129 esac
2130 done
2131 else
2132 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2134 rm -f conftest*
2137 echo "$ac_t""$ac_cv_objext" 1>&6
2138 OBJEXT=$ac_cv_objext
2139 ac_objext=$ac_cv_objext
2141 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2143 # Only perform the check for file, if the check method requires it
2144 case $deplibs_check_method in
2145 file_magic*)
2146 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2147 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2148 echo "configure:2149: checking for ${ac_tool_prefix}file" >&5
2149 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2151 else
2152 case $MAGIC_CMD in
2154 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2156 ?:/*)
2157 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2160 ac_save_MAGIC_CMD="$MAGIC_CMD"
2161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2162 ac_dummy="/usr/bin:$PATH"
2163 for ac_dir in $ac_dummy; do
2164 test -z "$ac_dir" && ac_dir=.
2165 if test -f $ac_dir/${ac_tool_prefix}file; then
2166 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2167 if test -n "$file_magic_test_file"; then
2168 case $deplibs_check_method in
2169 "file_magic "*)
2170 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2172 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2173 egrep "$file_magic_regex" > /dev/null; then
2175 else
2176 cat <<EOF 1>&2
2178 *** Warning: the command libtool uses to detect shared libraries,
2179 *** $file_magic_cmd, produces output that libtool cannot recognize.
2180 *** The result is that libtool may fail to recognize shared libraries
2181 *** as such. This will affect the creation of libtool libraries that
2182 *** depend on shared libraries, but programs linked with such libtool
2183 *** libraries will work regardless of this problem. Nevertheless, you
2184 *** may want to report the problem to your system manager and/or to
2185 *** bug-libtool@gnu.org
2188 fi ;;
2189 esac
2191 break
2193 done
2194 IFS="$ac_save_ifs"
2195 MAGIC_CMD="$ac_save_MAGIC_CMD"
2197 esac
2200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2201 if test -n "$MAGIC_CMD"; then
2202 echo "$ac_t""$MAGIC_CMD" 1>&6
2203 else
2204 echo "$ac_t""no" 1>&6
2207 if test -z "$lt_cv_path_MAGIC_CMD"; then
2208 if test -n "$ac_tool_prefix"; then
2209 echo $ac_n "checking for file""... $ac_c" 1>&6
2210 echo "configure:2211: checking for file" >&5
2211 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2213 else
2214 case $MAGIC_CMD in
2216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2218 ?:/*)
2219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2222 ac_save_MAGIC_CMD="$MAGIC_CMD"
2223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2224 ac_dummy="/usr/bin:$PATH"
2225 for ac_dir in $ac_dummy; do
2226 test -z "$ac_dir" && ac_dir=.
2227 if test -f $ac_dir/file; then
2228 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2229 if test -n "$file_magic_test_file"; then
2230 case $deplibs_check_method in
2231 "file_magic "*)
2232 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2234 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2235 egrep "$file_magic_regex" > /dev/null; then
2237 else
2238 cat <<EOF 1>&2
2240 *** Warning: the command libtool uses to detect shared libraries,
2241 *** $file_magic_cmd, produces output that libtool cannot recognize.
2242 *** The result is that libtool may fail to recognize shared libraries
2243 *** as such. This will affect the creation of libtool libraries that
2244 *** depend on shared libraries, but programs linked with such libtool
2245 *** libraries will work regardless of this problem. Nevertheless, you
2246 *** may want to report the problem to your system manager and/or to
2247 *** bug-libtool@gnu.org
2250 fi ;;
2251 esac
2253 break
2255 done
2256 IFS="$ac_save_ifs"
2257 MAGIC_CMD="$ac_save_MAGIC_CMD"
2259 esac
2262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2263 if test -n "$MAGIC_CMD"; then
2264 echo "$ac_t""$MAGIC_CMD" 1>&6
2265 else
2266 echo "$ac_t""no" 1>&6
2269 else
2270 MAGIC_CMD=:
2276 esac
2278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2281 echo "configure:2282: checking for $ac_word" >&5
2282 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2284 else
2285 if test -n "$RANLIB"; then
2286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2287 else
2288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2289 ac_dummy="$PATH"
2290 for ac_dir in $ac_dummy; do
2291 test -z "$ac_dir" && ac_dir=.
2292 if test -f $ac_dir/$ac_word; then
2293 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2294 break
2296 done
2297 IFS="$ac_save_ifs"
2300 RANLIB="$ac_cv_prog_RANLIB"
2301 if test -n "$RANLIB"; then
2302 echo "$ac_t""$RANLIB" 1>&6
2303 else
2304 echo "$ac_t""no" 1>&6
2308 if test -z "$ac_cv_prog_RANLIB"; then
2309 if test -n "$ac_tool_prefix"; then
2310 # Extract the first word of "ranlib", so it can be a program name with args.
2311 set dummy ranlib; ac_word=$2
2312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2313 echo "configure:2314: checking for $ac_word" >&5
2314 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2316 else
2317 if test -n "$RANLIB"; then
2318 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2319 else
2320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2321 ac_dummy="$PATH"
2322 for ac_dir in $ac_dummy; do
2323 test -z "$ac_dir" && ac_dir=.
2324 if test -f $ac_dir/$ac_word; then
2325 ac_cv_prog_RANLIB="ranlib"
2326 break
2328 done
2329 IFS="$ac_save_ifs"
2330 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2333 RANLIB="$ac_cv_prog_RANLIB"
2334 if test -n "$RANLIB"; then
2335 echo "$ac_t""$RANLIB" 1>&6
2336 else
2337 echo "$ac_t""no" 1>&6
2340 else
2341 RANLIB=":"
2345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2346 set dummy ${ac_tool_prefix}strip; ac_word=$2
2347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2348 echo "configure:2349: checking for $ac_word" >&5
2349 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2351 else
2352 if test -n "$STRIP"; then
2353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2354 else
2355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2356 ac_dummy="$PATH"
2357 for ac_dir in $ac_dummy; do
2358 test -z "$ac_dir" && ac_dir=.
2359 if test -f $ac_dir/$ac_word; then
2360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2361 break
2363 done
2364 IFS="$ac_save_ifs"
2367 STRIP="$ac_cv_prog_STRIP"
2368 if test -n "$STRIP"; then
2369 echo "$ac_t""$STRIP" 1>&6
2370 else
2371 echo "$ac_t""no" 1>&6
2375 if test -z "$ac_cv_prog_STRIP"; then
2376 if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "strip", so it can be a program name with args.
2378 set dummy strip; ac_word=$2
2379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2380 echo "configure:2381: checking for $ac_word" >&5
2381 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2383 else
2384 if test -n "$STRIP"; then
2385 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2386 else
2387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2388 ac_dummy="$PATH"
2389 for ac_dir in $ac_dummy; do
2390 test -z "$ac_dir" && ac_dir=.
2391 if test -f $ac_dir/$ac_word; then
2392 ac_cv_prog_STRIP="strip"
2393 break
2395 done
2396 IFS="$ac_save_ifs"
2397 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2400 STRIP="$ac_cv_prog_STRIP"
2401 if test -n "$STRIP"; then
2402 echo "$ac_t""$STRIP" 1>&6
2403 else
2404 echo "$ac_t""no" 1>&6
2407 else
2408 STRIP=":"
2413 # Check for any special flags to pass to ltconfig.
2414 libtool_flags="--cache-file=$cache_file"
2415 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2416 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2417 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2418 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2419 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2420 libtool_flags="$libtool_flags --enable-dlopen"
2422 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2423 if test "${enable_libtool_lock+set}" = set; then
2424 enableval="$enable_libtool_lock"
2428 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2429 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2431 # Check whether --with-pic or --without-pic was given.
2432 if test "${with_pic+set}" = set; then
2433 withval="$with_pic"
2434 pic_mode="$withval"
2435 else
2436 pic_mode=default
2439 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2440 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2442 # Some flags need to be propagated to the compiler or linker for good
2443 # libtool support.
2444 case $host in
2445 *-*-irix6*)
2446 # Find out which ABI we are using.
2447 echo '#line 2448 "configure"' > conftest.$ac_ext
2448 if { (eval echo configure:2449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2449 case `/usr/bin/file conftest.$ac_objext` in
2450 *32-bit*)
2451 LD="${LD-ld} -32"
2453 *N32*)
2454 LD="${LD-ld} -n32"
2456 *64-bit*)
2457 LD="${LD-ld} -64"
2459 esac
2461 rm -rf conftest*
2464 *-*-sco3.2v5*)
2465 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2466 SAVE_CFLAGS="$CFLAGS"
2467 CFLAGS="$CFLAGS -belf"
2468 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2469 echo "configure:2470: checking whether the C compiler needs -belf" >&5
2470 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2472 else
2474 ac_ext=c
2475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2476 ac_cpp='$CPP $CPPFLAGS'
2477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2479 cross_compiling=$ac_cv_prog_cc_cross
2481 cat > conftest.$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2485 int main() {
2487 ; return 0; }
2489 if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2490 rm -rf conftest*
2491 lt_cv_cc_needs_belf=yes
2492 else
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2495 rm -rf conftest*
2496 lt_cv_cc_needs_belf=no
2498 rm -f conftest*
2499 ac_ext=c
2500 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2501 ac_cpp='$CPP $CPPFLAGS'
2502 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2503 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2504 cross_compiling=$ac_cv_prog_cc_cross
2508 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2509 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2510 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2511 CFLAGS="$SAVE_CFLAGS"
2516 esac
2518 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2519 echo "configure:2520: checking how to run the C++ preprocessor" >&5
2520 if test -z "$CXXCPP"; then
2521 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2523 else
2524 ac_ext=C
2525 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2526 ac_cpp='$CXXCPP $CPPFLAGS'
2527 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2528 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2529 cross_compiling=$ac_cv_prog_cxx_cross
2530 CXXCPP="${CXX-g++} -E"
2531 cat > conftest.$ac_ext <<EOF
2532 #line 2533 "configure"
2533 #include "confdefs.h"
2534 #include <stdlib.h>
2536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2537 { (eval echo configure:2538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2539 if test -z "$ac_err"; then
2541 else
2542 echo "$ac_err" >&5
2543 echo "configure: failed program was:" >&5
2544 cat conftest.$ac_ext >&5
2545 rm -rf conftest*
2546 CXXCPP=/lib/cpp
2548 rm -f conftest*
2549 ac_cv_prog_CXXCPP="$CXXCPP"
2550 ac_ext=c
2551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2552 ac_cpp='$CPP $CPPFLAGS'
2553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2555 cross_compiling=$ac_cv_prog_cc_cross
2558 CXXCPP="$ac_cv_prog_CXXCPP"
2559 echo "$ac_t""$CXXCPP" 1>&6
2562 # Save cache, so that ltconfig can load it
2563 cat > confcache <<\EOF
2564 # This file is a shell script that caches the results of configure
2565 # tests run on this system so they can be shared between configure
2566 # scripts and configure runs. It is not useful on other systems.
2567 # If it contains results you don't want to keep, you may remove or edit it.
2569 # By default, configure uses ./config.cache as the cache file,
2570 # creating it if it does not exist already. You can give configure
2571 # the --cache-file=FILE option to use a different cache file; that is
2572 # what configure does when it calls configure scripts in
2573 # subdirectories, so they share the cache.
2574 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2575 # config.status only pays attention to the cache file if you give it the
2576 # --recheck option to rerun configure.
2579 # The following way of writing the cache mishandles newlines in values,
2580 # but we know of no workaround that is simple, portable, and efficient.
2581 # So, don't put newlines in cache variables' values.
2582 # Ultrix sh set writes to stderr and can't be redirected directly,
2583 # and sets the high bit in the cache file unless we assign to the vars.
2584 (set) 2>&1 |
2585 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2586 *ac_space=\ *)
2587 # `set' does not quote correctly, so add quotes (double-quote substitution
2588 # turns \\\\ into \\, and sed turns \\ into \).
2589 sed -n \
2590 -e "s/'/'\\\\''/g" \
2591 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2594 # `set' quotes correctly as required by POSIX, so do not add quotes.
2595 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2597 esac >> confcache
2598 if cmp -s $cache_file confcache; then
2600 else
2601 if test -w $cache_file; then
2602 echo "updating cache $cache_file"
2603 cat confcache > $cache_file
2604 else
2605 echo "not updating unwritable cache $cache_file"
2608 rm -f confcache
2611 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2612 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2613 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2614 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2615 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2616 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2617 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2618 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2619 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2620 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2622 # Reload cache, that may have been modified by ltconfig
2623 if test -r "$cache_file"; then
2624 echo "loading cache $cache_file"
2625 . $cache_file
2626 else
2627 echo "creating cache $cache_file"
2628 > $cache_file
2632 # This can be used to rebuild libtool when needed
2633 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2635 # Always use our own libtool.
2636 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2638 # Redirect the config.log output again, so that the ltconfig log is not
2639 # clobbered by the next message.
2640 exec 5>>./config.log
2644 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2645 lt_save_CC="$CC"
2646 lt_save_CFLAGS="$CFLAGS"
2647 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2648 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2649 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2650 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2651 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2652 deplibs_check_method="$deplibs_check_method" \
2653 file_magic_cmd="$file_magic_cmd" \
2654 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2655 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2656 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2657 CC="$lt_save_CC"
2658 CFLAGS="$lt_save_CFLAGS"
2660 # Redirect the config.log output again, so that the ltconfig log is not
2661 # clobbered by the next message.
2662 exec 5>>./config.log
2671 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2672 echo "configure:2673: checking for GNU make" >&5
2673 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2675 else
2676 _cv_gnu_make_command='' ;
2677 for a in "${MAKE-make}" make gmake gnumake ; do
2678 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2679 then
2680 _cv_gnu_make_command=$a ;
2681 break;
2683 done ;
2687 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2688 if test "x$_cv_gnu_make_command" != "x" ; then
2689 ifGNUmake='' ;
2690 else
2691 ifGNUmake='#' ;
2695 if test "x$_cv_gnu_make_command" = "x"; then
2696 { echo "configure: error: GNU make not found. Please install it or correct your path." 1>&2; exit 1; }
2702 # Check for c++ or library specific bits that don't require linking.
2704 if test ! -f stamp-sanity-compiler; then
2705 echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2706 echo "configure:2707: checking for g++ that will successfully compile libstdc++-v3" >&5
2708 ac_ext=C
2709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2710 ac_cpp='$CXXCPP $CPPFLAGS'
2711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2713 cross_compiling=$ac_cv_prog_cxx_cross
2715 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2719 #if __GNUC__ >= 3
2721 #endif
2724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2725 egrep "ok" >/dev/null 2>&1; then
2726 rm -rf conftest*
2727 gpp_satisfactory=yes
2728 else
2729 rm -rf conftest*
2730 { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2732 rm -f conftest*
2734 ac_ext=c
2735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2736 ac_cpp='$CPP $CPPFLAGS'
2737 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2738 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2739 cross_compiling=$ac_cv_prog_cc_cross
2741 echo "$ac_t""$gpp_satisfactory" 1>&6
2742 touch stamp-sanity-compiler
2746 # Enable all the crazy c++ stuff. C_MBCHAR must come early.
2747 # Check whether --enable-debug or --disable-debug was given.
2748 if test "${enable_debug+set}" = set; then
2749 enableval="$enable_debug"
2750 case "${enableval}" in
2751 yes) enable_debug=yes ;;
2752 no) enable_debug=no ;;
2753 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2754 esac
2755 else
2756 enable_debug=no
2759 case "${enable_debug}" in
2760 yes)
2761 DEBUG_FLAGS='-O0 -ggdb3'
2763 no)
2764 DEBUG_FLAGS='-g'
2766 esac
2769 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2770 echo "configure:2771: checking how to run the C preprocessor" >&5
2771 # On Suns, sometimes $CPP names a directory.
2772 if test -n "$CPP" && test -d "$CPP"; then
2773 CPP=
2775 if test -z "$CPP"; then
2776 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2778 else
2779 # This must be in double quotes, not single quotes, because CPP may get
2780 # substituted into the Makefile and "${CC-cc}" will confuse make.
2781 CPP="${CC-cc} -E"
2782 # On the NeXT, cc -E runs the code through the compiler's parser,
2783 # not just through cpp.
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2787 #include <assert.h>
2788 Syntax Error
2790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2791 { (eval echo configure:2792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2793 if test -z "$ac_err"; then
2795 else
2796 echo "$ac_err" >&5
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2799 rm -rf conftest*
2800 CPP="${CC-cc} -E -traditional-cpp"
2801 cat > conftest.$ac_ext <<EOF
2802 #line 2803 "configure"
2803 #include "confdefs.h"
2804 #include <assert.h>
2805 Syntax Error
2807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2808 { (eval echo configure:2809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2810 if test -z "$ac_err"; then
2812 else
2813 echo "$ac_err" >&5
2814 echo "configure: failed program was:" >&5
2815 cat conftest.$ac_ext >&5
2816 rm -rf conftest*
2817 CPP="${CC-cc} -nologo -E"
2818 cat > conftest.$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2821 #include <assert.h>
2822 Syntax Error
2824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2825 { (eval echo configure:2826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2827 if test -z "$ac_err"; then
2829 else
2830 echo "$ac_err" >&5
2831 echo "configure: failed program was:" >&5
2832 cat conftest.$ac_ext >&5
2833 rm -rf conftest*
2834 CPP=/lib/cpp
2836 rm -f conftest*
2838 rm -f conftest*
2840 rm -f conftest*
2841 ac_cv_prog_CPP="$CPP"
2843 CPP="$ac_cv_prog_CPP"
2844 else
2845 ac_cv_prog_CPP="$CPP"
2847 echo "$ac_t""$CPP" 1>&6
2850 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2851 echo "configure:2852: checking for cstdio to use" >&5
2852 # Check whether --enable-cstdio or --disable-cstdio was given.
2853 if test "${enable_cstdio+set}" = set; then
2854 enableval="$enable_cstdio"
2855 if test x$enable_cstdio = xno; then
2856 enable_cstdio=stdio
2858 else
2859 enable_cstdio=stdio
2863 enable_cstdio_flag=$enable_cstdio
2865 case x${enable_cstdio_flag} in
2866 xlibio)
2867 CSTDIO_H=config/c_io_libio.h
2868 BASIC_FILE_H=config/basic_file_libio.h
2869 BASIC_FILE_CC=config/basic_file_libio.cc
2870 echo "$ac_t""libio" 1>&6
2872 # see if we are on a system with libio native (ie, linux)
2873 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2874 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2875 echo "configure:2876: checking for libio.h" >&5
2876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2878 else
2879 cat > conftest.$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2882 #include <libio.h>
2884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2885 { (eval echo configure:2886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2887 if test -z "$ac_err"; then
2888 rm -rf conftest*
2889 eval "ac_cv_header_$ac_safe=yes"
2890 else
2891 echo "$ac_err" >&5
2892 echo "configure: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2894 rm -rf conftest*
2895 eval "ac_cv_header_$ac_safe=no"
2897 rm -f conftest*
2899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2900 echo "$ac_t""yes" 1>&6
2901 has_libio=yes
2902 else
2903 echo "$ac_t""no" 1>&6
2904 has_libio=no
2908 # Need to check and see what version of glibc is being used. If
2909 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2910 # compile most of libio for linux systems.
2911 if test x$has_libio = x"yes"; then
2912 case "$target" in
2913 *-*-linux*)
2914 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2915 echo "configure:2916: checking for glibc version >= 2.2" >&5
2916 cat > conftest.$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2920 #include <features.h>
2921 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2923 #endif
2926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2927 egrep "ok" >/dev/null 2>&1; then
2928 rm -rf conftest*
2929 glibc_satisfactory=yes
2930 else
2931 rm -rf conftest*
2932 glibc_satisfactory=no
2934 rm -f conftest*
2936 echo "$ac_t""$glibc_satisfactory" 1>&6
2938 esac
2940 # XXX at the moment, admit defeat and force the recompilation
2941 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2942 glibc_satisfactory=no
2944 if test x$glibc_satisfactory = x"yes"; then
2945 need_libio=no
2946 need_wlibio=no
2947 else
2948 need_libio=yes
2949 # bkoz XXX need to add checks to enable this
2950 # pme XXX here's a first pass at such a check
2951 if test x$enable_c_mbchar != xno; then
2952 need_wlibio=yes
2953 else
2954 need_wlibio=no
2958 else
2959 # Using libio, but <libio.h> doesn't exist on the target system. . .
2960 need_libio=yes
2961 # bkoz XXX need to add checks to enable this
2962 # pme XXX here's a first pass at such a check
2963 if test x$enable_c_mbchar != xno; then
2964 need_wlibio=yes
2965 else
2966 need_wlibio=no
2970 xstdio | x | xno | xnone | xyes)
2971 # default
2972 CSTDIO_H=config/c_io_stdio.h
2973 BASIC_FILE_H=config/basic_file_stdio.h
2974 BASIC_FILE_CC=config/basic_file_stdio.cc
2975 echo "$ac_t""stdio" 1>&6
2977 # We're not using stdio.
2978 need_libio=no
2979 need_wlibio=no
2982 echo "$enable_cstdio is an unknown io package" 1>&2
2983 exit 1
2985 esac
2990 # 2000-08-04 bkoz hack
2991 CCODECVT_C=config/c_io_libio_codecvt.c
2993 # 2000-08-04 bkoz hack
2997 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2998 GLIBCPP_BUILD_LIBIO_TRUE=
2999 GLIBCPP_BUILD_LIBIO_FALSE='#'
3000 else
3001 GLIBCPP_BUILD_LIBIO_TRUE='#'
3002 GLIBCPP_BUILD_LIBIO_FALSE=
3006 if test "$need_libio" = yes; then
3007 GLIBCPP_NEED_LIBIO_TRUE=
3008 GLIBCPP_NEED_LIBIO_FALSE='#'
3009 else
3010 GLIBCPP_NEED_LIBIO_TRUE='#'
3011 GLIBCPP_NEED_LIBIO_FALSE=
3015 if test "$need_wlibio" = yes; then
3016 GLIBCPP_NEED_WLIBIO_TRUE=
3017 GLIBCPP_NEED_WLIBIO_FALSE='#'
3018 else
3019 GLIBCPP_NEED_WLIBIO_TRUE='#'
3020 GLIBCPP_NEED_WLIBIO_FALSE=
3022 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3023 libio_la=../libio/libio.la
3024 else
3025 libio_la=
3030 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3031 echo "configure:3032: checking for clocale to use" >&5
3032 # Check whether --enable-clocale or --disable-clocale was given.
3033 if test "${enable_clocale+set}" = set; then
3034 enableval="$enable_clocale"
3035 if test x$enable_clocale = xno; then
3036 enable_clocale=generic
3038 else
3039 enable_clocale=generic
3043 enable_clocale_flag=$enable_clocale
3045 case x${enable_clocale_flag} in
3046 xgnu)
3047 CLOCALE_H=config/c_locale_gnu.h
3048 CLOCALE_CC=config/c_locale_gnu.cc
3049 echo "$ac_t""gnu" 1>&6
3051 xgeneric)
3052 CLOCALE_H=config/c_locale_generic.h
3053 CLOCALE_CC=config/c_locale_generic.cc
3054 echo "$ac_t""generic" 1>&6
3057 echo "$enable_clocale is an unknown locale package" 1>&2
3058 exit 1
3060 esac
3065 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3066 if test "${enable_c_mbchar+set}" = set; then
3067 enableval="$enable_c_mbchar"
3068 case "$enableval" in
3069 yes) enable_c_mbchar=yes ;;
3070 no) enable_c_mbchar=no ;;
3071 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3072 esac
3073 else
3074 enable_c_mbchar=yes
3078 # Check whether --enable-c99 or --disable-c99 was given.
3079 if test "${enable_c99+set}" = set; then
3080 enableval="$enable_c99"
3081 case "$enableval" in
3082 yes) enable_c99=yes ;;
3083 no) enable_c99=no ;;
3084 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3085 esac
3086 else
3087 enable_c99=yes
3091 ac_ext=C
3092 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3093 ac_cpp='$CXXCPP $CPPFLAGS'
3094 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3095 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3096 cross_compiling=$ac_cv_prog_cxx_cross
3099 # Check for the existence of <math.h> functions used if C99 is enabled.
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3103 #include <math.h>
3104 int main() {
3105 fpclassify(0.0);
3106 ; return 0; }
3108 if { (eval echo configure:3109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3110 else
3111 echo "configure: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3113 rm -rf conftest*
3114 ac_c99_math=no
3116 rm -f conftest*
3117 cat > conftest.$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3120 #include <math.h>
3121 int main() {
3122 isfinite(0.0);
3123 ; return 0; }
3125 if { (eval echo configure:3126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3127 else
3128 echo "configure: failed program was:" >&5
3129 cat conftest.$ac_ext >&5
3130 rm -rf conftest*
3131 ac_c99_math=no
3133 rm -f conftest*
3134 cat > conftest.$ac_ext <<EOF
3135 #line 3136 "configure"
3136 #include "confdefs.h"
3137 #include <math.h>
3138 int main() {
3139 isinf(0.0);
3140 ; return 0; }
3142 if { (eval echo configure:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3144 else
3145 echo "configure: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3147 rm -rf conftest*
3148 ac_c99_math=no
3150 rm -f conftest*
3151 cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3154 #include <math.h>
3155 int main() {
3156 isnan(0.0);
3157 ; return 0; }
3159 if { (eval echo configure:3160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3161 else
3162 echo "configure: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3164 rm -rf conftest*
3165 ac_c99_math=no
3167 rm -f conftest*
3168 cat > conftest.$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3171 #include <math.h>
3172 int main() {
3173 isnormal(0.0);
3174 ; return 0; }
3176 if { (eval echo configure:3177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3178 else
3179 echo "configure: failed program was:" >&5
3180 cat conftest.$ac_ext >&5
3181 rm -rf conftest*
3182 ac_c99_math=no
3184 rm -f conftest*
3185 cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3188 #include <math.h>
3189 int main() {
3190 signbit(0.0);
3191 ; return 0; }
3193 if { (eval echo configure:3194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3195 else
3196 echo "configure: failed program was:" >&5
3197 cat conftest.$ac_ext >&5
3198 rm -rf conftest*
3199 ac_c99_math=no
3201 rm -f conftest*
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 #include <math.h>
3206 int main() {
3207 isgreater(0,0);
3208 ; return 0; }
3210 if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3212 else
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3215 rm -rf conftest*
3216 ac_c99_math=no
3218 rm -f conftest*
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 #include <math.h>
3223 int main() {
3224 isgreaterequal(0,0);
3225 ; return 0; }
3227 if { (eval echo configure:3228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3229 else
3230 echo "configure: failed program was:" >&5
3231 cat conftest.$ac_ext >&5
3232 rm -rf conftest*
3233 ac_c99_math=no
3235 rm -f conftest*
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 #include <math.h>
3240 int main() {
3241 isless(0,0);
3242 ; return 0; }
3244 if { (eval echo configure:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3246 else
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3249 rm -rf conftest*
3250 ac_c99_math=no
3252 rm -f conftest*
3253 cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3256 #include <math.h>
3257 int main() {
3258 islessequal(0,0);
3259 ; return 0; }
3261 if { (eval echo configure:3262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3263 else
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3266 rm -rf conftest*
3267 ac_c99_math=no
3269 rm -f conftest*
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 #include <math.h>
3274 int main() {
3275 islessgreater(0,0);
3276 ; return 0; }
3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3280 else
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3283 rm -rf conftest*
3284 ac_c99_math=no
3286 rm -f conftest*
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 #include <math.h>
3291 int main() {
3292 isunordered(0,0);
3293 ; return 0; }
3295 if { (eval echo configure:3296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3297 else
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3300 rm -rf conftest*
3301 ac_c99_math=no
3303 rm -f conftest*
3305 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3306 echo $ac_n "checking for strtoll""... $ac_c" 1>&6
3307 echo "configure:3308: checking for strtoll" >&5
3308 if eval "test \"`echo '$''{'ac_cv_func_strtoll'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3310 else
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 /* System header to define __stub macros and hopefully few prototypes,
3315 which can conflict with char strtoll(); below. */
3316 #include <assert.h>
3317 /* Override any gcc2 internal prototype to avoid an error. */
3318 #ifdef __cplusplus
3319 extern "C"
3320 #endif
3321 /* We use char because int might match the return type of a gcc2
3322 builtin and then its argument prototype would still apply. */
3323 char strtoll();
3325 int main() {
3327 /* The GNU C library defines this for functions which it implements
3328 to always fail with ENOSYS. Some functions are actually named
3329 something starting with __ and the normal name is an alias. */
3330 #if defined (__stub_strtoll) || defined (__stub___strtoll)
3331 choke me
3332 #else
3333 strtoll();
3334 #endif
3336 ; return 0; }
3338 if { (eval echo configure:3339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3339 rm -rf conftest*
3340 eval "ac_cv_func_strtoll=yes"
3341 else
3342 echo "configure: failed program was:" >&5
3343 cat conftest.$ac_ext >&5
3344 rm -rf conftest*
3345 eval "ac_cv_func_strtoll=no"
3347 rm -f conftest*
3350 if eval "test \"`echo '$ac_cv_func_'strtoll`\" = yes"; then
3351 echo "$ac_t""yes" 1>&6
3353 else
3354 echo "$ac_t""no" 1>&6
3355 ac_c99_stdlib=no
3358 echo $ac_n "checking for strtoull""... $ac_c" 1>&6
3359 echo "configure:3360: checking for strtoull" >&5
3360 if eval "test \"`echo '$''{'ac_cv_func_strtoull'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3362 else
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 /* System header to define __stub macros and hopefully few prototypes,
3367 which can conflict with char strtoull(); below. */
3368 #include <assert.h>
3369 /* Override any gcc2 internal prototype to avoid an error. */
3370 #ifdef __cplusplus
3371 extern "C"
3372 #endif
3373 /* We use char because int might match the return type of a gcc2
3374 builtin and then its argument prototype would still apply. */
3375 char strtoull();
3377 int main() {
3379 /* The GNU C library defines this for functions which it implements
3380 to always fail with ENOSYS. Some functions are actually named
3381 something starting with __ and the normal name is an alias. */
3382 #if defined (__stub_strtoull) || defined (__stub___strtoull)
3383 choke me
3384 #else
3385 strtoull();
3386 #endif
3388 ; return 0; }
3390 if { (eval echo configure:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3391 rm -rf conftest*
3392 eval "ac_cv_func_strtoull=yes"
3393 else
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3396 rm -rf conftest*
3397 eval "ac_cv_func_strtoull=no"
3399 rm -f conftest*
3402 if eval "test \"`echo '$ac_cv_func_'strtoull`\" = yes"; then
3403 echo "$ac_t""yes" 1>&6
3405 else
3406 echo "$ac_t""no" 1>&6
3407 ac_c99_stdlib=no
3410 echo $ac_n "checking for llabs""... $ac_c" 1>&6
3411 echo "configure:3412: checking for llabs" >&5
3412 if eval "test \"`echo '$''{'ac_cv_func_llabs'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3414 else
3415 cat > conftest.$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3418 /* System header to define __stub macros and hopefully few prototypes,
3419 which can conflict with char llabs(); below. */
3420 #include <assert.h>
3421 /* Override any gcc2 internal prototype to avoid an error. */
3422 #ifdef __cplusplus
3423 extern "C"
3424 #endif
3425 /* We use char because int might match the return type of a gcc2
3426 builtin and then its argument prototype would still apply. */
3427 char llabs();
3429 int main() {
3431 /* The GNU C library defines this for functions which it implements
3432 to always fail with ENOSYS. Some functions are actually named
3433 something starting with __ and the normal name is an alias. */
3434 #if defined (__stub_llabs) || defined (__stub___llabs)
3435 choke me
3436 #else
3437 llabs();
3438 #endif
3440 ; return 0; }
3442 if { (eval echo configure:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3443 rm -rf conftest*
3444 eval "ac_cv_func_llabs=yes"
3445 else
3446 echo "configure: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3448 rm -rf conftest*
3449 eval "ac_cv_func_llabs=no"
3451 rm -f conftest*
3454 if eval "test \"`echo '$ac_cv_func_'llabs`\" = yes"; then
3455 echo "$ac_t""yes" 1>&6
3457 else
3458 echo "$ac_t""no" 1>&6
3459 ac_c99_stdlib=no
3462 echo $ac_n "checking for lldiv""... $ac_c" 1>&6
3463 echo "configure:3464: checking for lldiv" >&5
3464 if eval "test \"`echo '$''{'ac_cv_func_lldiv'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3466 else
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 /* System header to define __stub macros and hopefully few prototypes,
3471 which can conflict with char lldiv(); below. */
3472 #include <assert.h>
3473 /* Override any gcc2 internal prototype to avoid an error. */
3474 #ifdef __cplusplus
3475 extern "C"
3476 #endif
3477 /* We use char because int might match the return type of a gcc2
3478 builtin and then its argument prototype would still apply. */
3479 char lldiv();
3481 int main() {
3483 /* The GNU C library defines this for functions which it implements
3484 to always fail with ENOSYS. Some functions are actually named
3485 something starting with __ and the normal name is an alias. */
3486 #if defined (__stub_lldiv) || defined (__stub___lldiv)
3487 choke me
3488 #else
3489 lldiv();
3490 #endif
3492 ; return 0; }
3494 if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3495 rm -rf conftest*
3496 eval "ac_cv_func_lldiv=yes"
3497 else
3498 echo "configure: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3500 rm -rf conftest*
3501 eval "ac_cv_func_lldiv=no"
3503 rm -f conftest*
3506 if eval "test \"`echo '$ac_cv_func_'lldiv`\" = yes"; then
3507 echo "$ac_t""yes" 1>&6
3509 else
3510 echo "$ac_t""no" 1>&6
3511 ac_c99_stdlib=no
3514 echo $ac_n "checking for atoll""... $ac_c" 1>&6
3515 echo "configure:3516: checking for atoll" >&5
3516 if eval "test \"`echo '$''{'ac_cv_func_atoll'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3518 else
3519 cat > conftest.$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3522 /* System header to define __stub macros and hopefully few prototypes,
3523 which can conflict with char atoll(); below. */
3524 #include <assert.h>
3525 /* Override any gcc2 internal prototype to avoid an error. */
3526 #ifdef __cplusplus
3527 extern "C"
3528 #endif
3529 /* We use char because int might match the return type of a gcc2
3530 builtin and then its argument prototype would still apply. */
3531 char atoll();
3533 int main() {
3535 /* The GNU C library defines this for functions which it implements
3536 to always fail with ENOSYS. Some functions are actually named
3537 something starting with __ and the normal name is an alias. */
3538 #if defined (__stub_atoll) || defined (__stub___atoll)
3539 choke me
3540 #else
3541 atoll();
3542 #endif
3544 ; return 0; }
3546 if { (eval echo configure:3547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3547 rm -rf conftest*
3548 eval "ac_cv_func_atoll=yes"
3549 else
3550 echo "configure: failed program was:" >&5
3551 cat conftest.$ac_ext >&5
3552 rm -rf conftest*
3553 eval "ac_cv_func_atoll=no"
3555 rm -f conftest*
3558 if eval "test \"`echo '$ac_cv_func_'atoll`\" = yes"; then
3559 echo "$ac_t""yes" 1>&6
3561 else
3562 echo "$ac_t""no" 1>&6
3563 ac_c99_stdlib=no
3567 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3568 echo "configure:3569: checking for lldiv_t declaration" >&5
3569 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3571 else
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3576 #include <stdlib.h>
3577 int main() {
3578 lldiv_t mydivt;
3579 ; return 0; }
3581 if { (eval echo configure:3582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3582 rm -rf conftest*
3583 ac_c99_lldiv_t=yes
3584 else
3585 echo "configure: failed program was:" >&5
3586 cat conftest.$ac_ext >&5
3587 rm -rf conftest*
3588 ac_c99_lldiv_t=no
3590 rm -f conftest*
3594 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3595 if test x"$ac_c99_lldiv_t" = x"no"; then
3596 ac_c99_stdlib=no;
3597 fi;
3599 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3600 echo $ac_n "checking for wcstold""... $ac_c" 1>&6
3601 echo "configure:3602: checking for wcstold" >&5
3602 if eval "test \"`echo '$''{'ac_cv_func_wcstold'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3604 else
3605 cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 /* System header to define __stub macros and hopefully few prototypes,
3609 which can conflict with char wcstold(); below. */
3610 #include <assert.h>
3611 /* Override any gcc2 internal prototype to avoid an error. */
3612 #ifdef __cplusplus
3613 extern "C"
3614 #endif
3615 /* We use char because int might match the return type of a gcc2
3616 builtin and then its argument prototype would still apply. */
3617 char wcstold();
3619 int main() {
3621 /* The GNU C library defines this for functions which it implements
3622 to always fail with ENOSYS. Some functions are actually named
3623 something starting with __ and the normal name is an alias. */
3624 #if defined (__stub_wcstold) || defined (__stub___wcstold)
3625 choke me
3626 #else
3627 wcstold();
3628 #endif
3630 ; return 0; }
3632 if { (eval echo configure:3633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3633 rm -rf conftest*
3634 eval "ac_cv_func_wcstold=yes"
3635 else
3636 echo "configure: failed program was:" >&5
3637 cat conftest.$ac_ext >&5
3638 rm -rf conftest*
3639 eval "ac_cv_func_wcstold=no"
3641 rm -f conftest*
3644 if eval "test \"`echo '$ac_cv_func_'wcstold`\" = yes"; then
3645 echo "$ac_t""yes" 1>&6
3647 else
3648 echo "$ac_t""no" 1>&6
3649 ac_c99_wchar=no
3652 echo $ac_n "checking for wcstoll""... $ac_c" 1>&6
3653 echo "configure:3654: checking for wcstoll" >&5
3654 if eval "test \"`echo '$''{'ac_cv_func_wcstoll'+set}'`\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3656 else
3657 cat > conftest.$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3660 /* System header to define __stub macros and hopefully few prototypes,
3661 which can conflict with char wcstoll(); below. */
3662 #include <assert.h>
3663 /* Override any gcc2 internal prototype to avoid an error. */
3664 #ifdef __cplusplus
3665 extern "C"
3666 #endif
3667 /* We use char because int might match the return type of a gcc2
3668 builtin and then its argument prototype would still apply. */
3669 char wcstoll();
3671 int main() {
3673 /* The GNU C library defines this for functions which it implements
3674 to always fail with ENOSYS. Some functions are actually named
3675 something starting with __ and the normal name is an alias. */
3676 #if defined (__stub_wcstoll) || defined (__stub___wcstoll)
3677 choke me
3678 #else
3679 wcstoll();
3680 #endif
3682 ; return 0; }
3684 if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3685 rm -rf conftest*
3686 eval "ac_cv_func_wcstoll=yes"
3687 else
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3690 rm -rf conftest*
3691 eval "ac_cv_func_wcstoll=no"
3693 rm -f conftest*
3696 if eval "test \"`echo '$ac_cv_func_'wcstoll`\" = yes"; then
3697 echo "$ac_t""yes" 1>&6
3699 else
3700 echo "$ac_t""no" 1>&6
3701 ac_c99_wchar=no
3704 echo $ac_n "checking for wcstoull""... $ac_c" 1>&6
3705 echo "configure:3706: checking for wcstoull" >&5
3706 if eval "test \"`echo '$''{'ac_cv_func_wcstoull'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3708 else
3709 cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 /* System header to define __stub macros and hopefully few prototypes,
3713 which can conflict with char wcstoull(); below. */
3714 #include <assert.h>
3715 /* Override any gcc2 internal prototype to avoid an error. */
3716 #ifdef __cplusplus
3717 extern "C"
3718 #endif
3719 /* We use char because int might match the return type of a gcc2
3720 builtin and then its argument prototype would still apply. */
3721 char wcstoull();
3723 int main() {
3725 /* The GNU C library defines this for functions which it implements
3726 to always fail with ENOSYS. Some functions are actually named
3727 something starting with __ and the normal name is an alias. */
3728 #if defined (__stub_wcstoull) || defined (__stub___wcstoull)
3729 choke me
3730 #else
3731 wcstoull();
3732 #endif
3734 ; return 0; }
3736 if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3737 rm -rf conftest*
3738 eval "ac_cv_func_wcstoull=yes"
3739 else
3740 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3742 rm -rf conftest*
3743 eval "ac_cv_func_wcstoull=no"
3745 rm -f conftest*
3748 if eval "test \"`echo '$ac_cv_func_'wcstoull`\" = yes"; then
3749 echo "$ac_t""yes" 1>&6
3751 else
3752 echo "$ac_t""no" 1>&6
3753 ac_c99_wchar=no
3757 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3758 echo "configure:3759: checking for enabled ISO C99 support" >&5
3759 if test x"$ac_c99_math" = x"no" || test x"$ac_c99_wchar" = x"no" \
3760 || test x"$ac_c99_stdlib" = x"no"; then
3761 enable_c99=no;
3762 fi;
3763 echo "$ac_t""$enable_c99" 1>&6
3765 # Option parsed, now set things appropriately
3766 if test x"$enable_c99" = x"yes"; then
3767 cat >> confdefs.h <<\EOF
3768 #define _GLIBCPP_USE_C99 1
3773 ac_ext=c
3774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3778 cross_compiling=$ac_cv_prog_cc_cross
3782 # Check whether --enable-long-long or --disable-long-long was given.
3783 if test "${enable_long_long+set}" = set; then
3784 enableval="$enable_long_long"
3785 case "$enableval" in
3786 yes) enable_long_long=yes ;;
3787 no) enable_long_long=no ;;
3788 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3789 esac
3790 else
3791 enable_long_long=yes
3794 # iostreams require strtoll, strtoull to compile. If the
3795 # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3796 # go ahead and allow long long to be used.
3797 if test x"$enable_c99" = x"no"; then
3798 enable_long_long=no;
3801 # Option parsed, now set things appropriately
3802 echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3803 echo "configure:3804: checking for enabled long long support" >&5
3804 if test x"$enable_long_long" = xyes; then
3805 cat >> confdefs.h <<\EOF
3806 #define _GLIBCPP_USE_LONG_LONG 1
3810 echo "$ac_t""$enable_long_long" 1>&6
3812 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3813 echo "configure:3814: checking for c header strategy to use" >&5
3814 # Check whether --enable-cheaders or --disable-cheaders was given.
3815 if test "${enable_cheaders+set}" = set; then
3816 enableval="$enable_cheaders"
3818 case "$enableval" in
3820 enable_cheaders=c
3822 c_std)
3823 enable_cheaders=c_std
3825 c_shadow)
3826 enable_cheaders=c_shadow
3828 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3830 esac
3831 else
3832 enable_cheaders=c_std
3835 echo "$ac_t""$enable_cheaders" 1>&6
3837 case "$enable_cheaders" in
3838 c_shadow)
3839 CSHADOW_FLAGS="-fno-builtin"
3840 C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3841 cat >> confdefs.h <<\EOF
3842 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3846 c_std)
3847 CSHADOW_FLAGS=""
3848 C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3851 CSHADOW_FLAGS=""
3852 C_INCLUDE_DIR='${top_srcdir}/include/c'
3854 esac
3860 if test "$enable_cheaders" = c_shadow; then
3861 GLIBCPP_USE_CSHADOW_TRUE=
3862 GLIBCPP_USE_CSHADOW_FALSE='#'
3863 else
3864 GLIBCPP_USE_CSHADOW_TRUE='#'
3865 GLIBCPP_USE_CSHADOW_FALSE=
3869 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3870 echo "configure:3871: checking for threads package to use" >&5
3871 # Check whether --enable-threads or --disable-threads was given.
3872 if test "${enable_threads+set}" = set; then
3873 enableval="$enable_threads"
3874 if test x$enable_threads = xno; then
3875 enable_threads=''
3877 else
3878 enable_threads=''
3882 enable_threads_flag=$enable_threads
3884 case x${enable_threads_flag} in
3885 x | xno | xnone)
3886 # No threads
3887 target_thread_file='single'
3889 xyes)
3890 # default
3891 target_thread_file='posix'
3893 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
3894 xsolaris | xwin32 | xdce | xvxworks)
3895 target_thread_file=$enable_threads_flag
3898 echo "$enable_threads is an unknown thread package" 1>&2
3899 exit 1
3901 esac
3903 THREADH=
3904 case "$target_thread_file" in
3905 no | none | single)
3906 THREADH=threads-no.h
3908 posix | pthreads)
3909 THREADH=threads-posix.h
3911 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3912 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3915 { echo "configure: error: $THREADS is an unsupported/unknown thread package" 1>&2; exit 1; }
3917 esac
3918 echo "$ac_t""$THREADH" 1>&6
3921 if test $THREADH != threads-no.h; then
3922 cat >> confdefs.h <<\EOF
3923 #define _GLIBCPP_USE_THREADS 1
3928 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3929 if test "${enable_cxx_flags+set}" = set; then
3930 enableval="$enable_cxx_flags"
3931 case "x$enableval" in
3932 xyes)
3933 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3934 xno|x)
3935 enable_cxx_flags='' ;;
3937 enable_cxx_flags="$enableval" ;;
3938 esac
3939 else
3940 enable_cxx_flags='none'
3944 if test "$enable_cxx_flags" = "none"; then
3945 enable_cxx_flags='';
3948 if test -n "$enable_cxx_flags"; then
3949 for f in $enable_cxx_flags; do
3950 case "$f" in
3951 -fhonor-std) ;;
3952 -*) ;;
3953 *) # and we're trying to pass /what/ exactly?
3954 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3955 esac
3956 done
3958 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3962 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3963 echo "configure:3964: checking for exception model to use" >&5
3965 ac_ext=C
3966 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3967 ac_cpp='$CXXCPP $CPPFLAGS'
3968 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3969 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3970 cross_compiling=$ac_cv_prog_cxx_cross
3972 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3973 if test "${enable_sjlj_exceptions+set}" = set; then
3974 enableval="$enable_sjlj_exceptions"
3976 else
3977 cat > conftest.$ac_ext << EOF
3978 #line 3979 "configure"
3979 struct S { ~S(); };
3980 void bar();
3981 void foo()
3983 S s;
3984 bar();
3987 old_CXXFLAGS="$CXXFLAGS"
3988 CXXFLAGS=-S
3989 if { (eval echo configure:3990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3990 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3991 enable_sjlj_exceptions=yes
3992 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3993 enable_sjlj_exceptions=no
3996 CXXFLAGS="$old_CXXFLAGS"
3997 rm -f conftest*
4000 if test x$enable_sjlj_exceptions = xyes; then
4001 cat >> confdefs.h <<\EOF
4002 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4005 ac_exception_model_name=sjlj
4006 elif test x$enable_sjlj_exceptions = xno; then
4007 ac_exception_model_name="call frame"
4008 else
4009 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4011 ac_ext=c
4012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4013 ac_cpp='$CPP $CPPFLAGS'
4014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4016 cross_compiling=$ac_cv_prog_cc_cross
4018 echo "$ac_t""$ac_exception_model_name" 1>&6
4021 if test -n "$with_cross_host"; then
4023 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4024 # may not work correctly, because the compiler may not be able to
4025 # link executables.
4026 xcompiling=1
4027 NATIVE=no
4029 # If Canadian cross, then don't pick up tools from the build
4030 # directory.
4031 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
4032 CANADIAN=yes
4033 NULL_TARGET=yes
4034 else
4035 CANADIAN=no
4036 NULL_TARGET=no
4039 case "$target_alias" in
4040 *-linux*)
4041 # Construct linux crosses by hand, eliminating bits that need ld...
4042 # Check for available headers.
4043 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4044 machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
4045 float.h inttypes.h
4047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4049 echo "configure:4050: checking for $ac_hdr" >&5
4050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4052 else
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4056 #include <$ac_hdr>
4058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4059 { (eval echo configure:4060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4061 if test -z "$ac_err"; then
4062 rm -rf conftest*
4063 eval "ac_cv_header_$ac_safe=yes"
4064 else
4065 echo "$ac_err" >&5
4066 echo "configure: failed program was:" >&5
4067 cat conftest.$ac_ext >&5
4068 rm -rf conftest*
4069 eval "ac_cv_header_$ac_safe=no"
4071 rm -f conftest*
4073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4074 echo "$ac_t""yes" 1>&6
4075 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4076 cat >> confdefs.h <<EOF
4077 #define $ac_tr_hdr 1
4080 else
4081 echo "$ac_t""no" 1>&6
4083 done
4086 # GLIBCPP_CHECK_COMPILER_FEATURES
4087 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4090 # If we're not using GNU ld, then there's no point in even trying these
4091 # tests. Check for that first. We should have already tested for gld
4092 # by now (in libtool), but require it now just to be safe...
4093 SECTION_LDFLAGS=''
4094 OPT_LDFLAGS=''
4097 # Set --gc-sections.
4098 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4099 # GNU ld it is! Joy and bunny rabbits!
4101 # All these tests are for C++; save the language and the compiler flags.
4102 # Need to do this so that g++ won't try to link in libstdc++
4103 ac_test_CFLAGS="${CFLAGS+set}"
4104 ac_save_CFLAGS="$CFLAGS"
4105 CFLAGS='-x c++ -Wl,--gc-sections'
4107 # Check for -Wl,--gc-sections
4108 # XXX This test is broken at the moment, as symbols required for
4109 # linking are now in libsupc++ (not built yet.....). In addition,
4110 # this test has cored on solaris in the past. In addition,
4111 # --gc-sections doesn't really work at the moment (keeps on discarding
4112 # used sections, first .eh_frame and now some of the glibc sections for
4113 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4114 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4115 echo "configure:4116: checking for ld that supports -Wl,--gc-sections" >&5
4116 if test "$cross_compiling" = yes; then
4117 ac_sectionLDflags=yes
4118 else
4119 cat > conftest.$ac_ext <<EOF
4120 #line 4121 "configure"
4121 #include "confdefs.h"
4123 int main(void)
4125 try { throw 1; }
4126 catch (...) { };
4127 return 0;
4131 if { (eval echo configure:4132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4132 then
4133 ac_sectionLDflags=yes
4134 else
4135 echo "configure: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4137 rm -fr conftest*
4138 ac_sectionLFflags=no
4140 rm -fr conftest*
4143 if test "$ac_test_CFLAGS" = set; then
4144 CFLAGS="$ac_save_CFLAGS"
4145 else
4146 # this is the suspicious part
4147 CFLAGS=''
4149 if test "$ac_sectionLDflags" = "yes"; then
4150 SECTION_LDFLAGS='-Wl,--gc-sections'
4152 echo "$ac_t""$ac_sectionLDflags" 1>&6
4155 # Set linker optimization flags.
4156 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4157 OPT_LDFLAGS='-Wl,-O1'
4163 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4164 # GLIBCPP_CHECK_MATH_SUPPORT
4165 cat >> confdefs.h <<\EOF
4166 #define HAVE_ACOSF 1
4169 cat >> confdefs.h <<\EOF
4170 #define HAVE_ASINF 1
4173 cat >> confdefs.h <<\EOF
4174 #define HAVE_ATAN2F 1
4177 cat >> confdefs.h <<\EOF
4178 #define HAVE_ATANF 1
4181 cat >> confdefs.h <<\EOF
4182 #define HAVE_CEILF 1
4185 cat >> confdefs.h <<\EOF
4186 #define HAVE_COPYSIGN 1
4189 cat >> confdefs.h <<\EOF
4190 #define HAVE_COPYSIGNF 1
4193 cat >> confdefs.h <<\EOF
4194 #define HAVE_COSF 1
4197 cat >> confdefs.h <<\EOF
4198 #define HAVE_COSHF 1
4201 cat >> confdefs.h <<\EOF
4202 #define HAVE_EXPF 1
4205 cat >> confdefs.h <<\EOF
4206 #define HAVE_FABSF 1
4209 cat >> confdefs.h <<\EOF
4210 #define HAVE_FINITE 1
4213 cat >> confdefs.h <<\EOF
4214 #define HAVE_FINITEF 1
4217 cat >> confdefs.h <<\EOF
4218 #define HAVE_FLOORF 1
4221 cat >> confdefs.h <<\EOF
4222 #define HAVE_FMODF 1
4225 cat >> confdefs.h <<\EOF
4226 #define HAVE_FREXPF 1
4229 cat >> confdefs.h <<\EOF
4230 #define HAVE_ISINF 1
4233 cat >> confdefs.h <<\EOF
4234 #define HAVE_ISINFF 1
4237 cat >> confdefs.h <<\EOF
4238 #define HAVE_ISNAN 1
4241 cat >> confdefs.h <<\EOF
4242 #define HAVE_ISNANF 1
4245 cat >> confdefs.h <<\EOF
4246 #define HAVE_LDEXPF 1
4249 cat >> confdefs.h <<\EOF
4250 #define HAVE_LOG10F 1
4253 cat >> confdefs.h <<\EOF
4254 #define HAVE_LOGF 1
4257 cat >> confdefs.h <<\EOF
4258 #define HAVE_MODFF 1
4261 cat >> confdefs.h <<\EOF
4262 #define HAVE_POWF 1
4265 cat >> confdefs.h <<\EOF
4266 #define HAVE_SINCOS 1
4269 cat >> confdefs.h <<\EOF
4270 #define HAVE_SINCOSF 1
4273 cat >> confdefs.h <<\EOF
4274 #define HAVE_SINF 1
4277 cat >> confdefs.h <<\EOF
4278 #define HAVE_SINHF 1
4281 cat >> confdefs.h <<\EOF
4282 #define HAVE_SQRTF 1
4285 cat >> confdefs.h <<\EOF
4286 #define HAVE_TANF 1
4289 cat >> confdefs.h <<\EOF
4290 #define HAVE_TANHF 1
4294 # At some point, we should differentiate between architectures
4295 # like x86, which have long double versions, and alpha/powerpc/etc.,
4296 # which don't. For the time being, punt.
4297 if test x"long_double_math_on_this_cpu" = x"yes"; then
4298 cat >> confdefs.h <<\EOF
4299 #define HAVE_ACOSL 1
4302 cat >> confdefs.h <<\EOF
4303 #define HAVE_ASINL 1
4306 cat >> confdefs.h <<\EOF
4307 #define HAVE_ATAN2L 1
4310 cat >> confdefs.h <<\EOF
4311 #define HAVE_ATANL 1
4314 cat >> confdefs.h <<\EOF
4315 #define HAVE_CEILL 1
4318 cat >> confdefs.h <<\EOF
4319 #define HAVE_COPYSIGNL 1
4322 cat >> confdefs.h <<\EOF
4323 #define HAVE_COSL 1
4326 cat >> confdefs.h <<\EOF
4327 #define HAVE_COSHL 1
4330 cat >> confdefs.h <<\EOF
4331 #define HAVE_EXPL 1
4334 cat >> confdefs.h <<\EOF
4335 #define HAVE_FABSL 1
4338 cat >> confdefs.h <<\EOF
4339 #define HAVE_FINITEL 1
4342 cat >> confdefs.h <<\EOF
4343 #define HAVE_FLOORL 1
4346 cat >> confdefs.h <<\EOF
4347 #define HAVE_FMODL 1
4350 cat >> confdefs.h <<\EOF
4351 #define HAVE_FREXPL 1
4354 cat >> confdefs.h <<\EOF
4355 #define HAVE_ISINFL 1
4358 cat >> confdefs.h <<\EOF
4359 #define HAVE_ISNANL 1
4362 cat >> confdefs.h <<\EOF
4363 #define HAVE_LDEXPL 1
4366 cat >> confdefs.h <<\EOF
4367 #define HAVE_LOG10L 1
4370 cat >> confdefs.h <<\EOF
4371 #define HAVE_LOGL 1
4374 cat >> confdefs.h <<\EOF
4375 #define HAVE_MODFL 1
4378 cat >> confdefs.h <<\EOF
4379 #define HAVE_POWL 1
4382 cat >> confdefs.h <<\EOF
4383 #define HAVE_SINCOSL 1
4386 cat >> confdefs.h <<\EOF
4387 #define HAVE_SINL 1
4390 cat >> confdefs.h <<\EOF
4391 #define HAVE_SINHL 1
4394 cat >> confdefs.h <<\EOF
4395 #define HAVE_SQRTL 1
4398 cat >> confdefs.h <<\EOF
4399 #define HAVE_TANL 1
4402 cat >> confdefs.h <<\EOF
4403 #define HAVE_TANHL 1
4408 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4409 echo "configure:4410: checking for main in -lm" >&5
4410 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4412 echo $ac_n "(cached) $ac_c" 1>&6
4413 else
4414 ac_save_LIBS="$LIBS"
4415 LIBS="-lm $LIBS"
4416 cat > conftest.$ac_ext <<EOF
4417 #line 4418 "configure"
4418 #include "confdefs.h"
4420 int main() {
4421 main()
4422 ; return 0; }
4424 if { (eval echo configure:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4425 rm -rf conftest*
4426 eval "ac_cv_lib_$ac_lib_var=yes"
4427 else
4428 echo "configure: failed program was:" >&5
4429 cat conftest.$ac_ext >&5
4430 rm -rf conftest*
4431 eval "ac_cv_lib_$ac_lib_var=no"
4433 rm -f conftest*
4434 LIBS="$ac_save_LIBS"
4437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4438 echo "$ac_t""yes" 1>&6
4439 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4440 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4441 cat >> confdefs.h <<EOF
4442 #define $ac_tr_lib 1
4445 LIBS="-lm $LIBS"
4447 else
4448 echo "$ac_t""no" 1>&6
4451 for ac_func in nan hypot hypotf atan2f expf copysignf
4453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_func" >&5
4455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4457 else
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4461 /* System header to define __stub macros and hopefully few prototypes,
4462 which can conflict with char $ac_func(); below. */
4463 #include <assert.h>
4464 /* Override any gcc2 internal prototype to avoid an error. */
4465 /* We use char because int might match the return type of a gcc2
4466 builtin and then its argument prototype would still apply. */
4467 char $ac_func();
4469 int main() {
4471 /* The GNU C library defines this for functions which it implements
4472 to always fail with ENOSYS. Some functions are actually named
4473 something starting with __ and the normal name is an alias. */
4474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4475 choke me
4476 #else
4477 $ac_func();
4478 #endif
4480 ; return 0; }
4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4483 rm -rf conftest*
4484 eval "ac_cv_func_$ac_func=yes"
4485 else
4486 echo "configure: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4488 rm -rf conftest*
4489 eval "ac_cv_func_$ac_func=no"
4491 rm -f conftest*
4494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4495 echo "$ac_t""yes" 1>&6
4496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4497 cat >> confdefs.h <<EOF
4498 #define $ac_tr_func 1
4501 else
4502 echo "$ac_t""no" 1>&6
4503 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4505 done
4509 USE_COMPLEX_LONG_DOUBLE=no
4510 if test x$ac_cv_func_atan2l = x"yes" \
4511 && test x$ac_cv_func_copysignl = x"yes"; then
4512 USE_COMPLEX_LONG_DOUBLE=yes
4513 for ac_func in hypotl signbitl
4515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4516 echo "configure:4517: checking for $ac_func" >&5
4517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4519 else
4520 cat > conftest.$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4523 /* System header to define __stub macros and hopefully few prototypes,
4524 which can conflict with char $ac_func(); below. */
4525 #include <assert.h>
4526 /* Override any gcc2 internal prototype to avoid an error. */
4527 /* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4529 char $ac_func();
4531 int main() {
4533 /* The GNU C library defines this for functions which it implements
4534 to always fail with ENOSYS. Some functions are actually named
4535 something starting with __ and the normal name is an alias. */
4536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4537 choke me
4538 #else
4539 $ac_func();
4540 #endif
4542 ; return 0; }
4544 if { (eval echo configure:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4545 rm -rf conftest*
4546 eval "ac_cv_func_$ac_func=yes"
4547 else
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4550 rm -rf conftest*
4551 eval "ac_cv_func_$ac_func=no"
4553 rm -f conftest*
4556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4557 echo "$ac_t""yes" 1>&6
4558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4559 cat >> confdefs.h <<EOF
4560 #define $ac_tr_func 1
4563 else
4564 echo "$ac_t""no" 1>&6
4565 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4567 done
4577 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
4578 echo "configure:4579: checking for GNU C++ __complex__ support" >&5
4579 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4581 else
4584 ac_ext=C
4585 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4586 ac_cpp='$CXXCPP $CPPFLAGS'
4587 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4588 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4589 cross_compiling=$ac_cv_prog_cxx_cross
4591 cat > conftest.$ac_ext <<EOF
4592 #line 4593 "configure"
4593 #include "confdefs.h"
4594 struct dcomplex { __complex__ double x; }; \
4595 dcomplex f(const dcomplex& x) { return dcomplex(x); }
4596 int main() {
4598 dcomplex x; f(x);
4599 ; return 0; }
4601 if { (eval echo configure:4602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4602 rm -rf conftest*
4603 glibcpp_cv_complex=ok
4604 else
4605 echo "configure: failed program was:" >&5
4606 cat conftest.$ac_ext >&5
4607 rm -rf conftest*
4608 glibcpp_cv_complex=buggy
4611 rm -f conftest*
4612 ac_ext=c
4613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4614 ac_cpp='$CPP $CPPFLAGS'
4615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4617 cross_compiling=$ac_cv_prog_cc_cross
4622 echo "$ac_t""$glibcpp_cv_complex" 1>&6
4623 if test $glibcpp_cv_complex = buggy; then
4624 cat >> confdefs.h <<\EOF
4625 #define _GLIBCPP_BUGGY_COMPLEX 1
4630 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
4631 echo "configure:4632: checking for GNU C++ __complex__ float support" >&5
4632 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
4633 echo $ac_n "(cached) $ac_c" 1>&6
4634 else
4637 ac_ext=C
4638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4639 ac_cpp='$CXXCPP $CPPFLAGS'
4640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4642 cross_compiling=$ac_cv_prog_cxx_cross
4644 rm -f conftest.h
4645 cat > conftest.h <<EOB
4647 // Check for buggy __complex__ that causes ICE in most versions of egcs
4648 // and gcc-2.95.x on certain platforms (eg., x86-win32).
4650 // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
4651 // more info on the bug itself.
4653 struct
4654 float_complex
4656 __complex__ float m_value;
4657 float_complex (float = 0.0f, float = 0.0f);
4658 float_complex (__complex__ float val) : m_value (val) {}
4659 float_complex foo (const float_complex &val)
4660 { return float_complex (~val.m_value); }
4663 cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4666 #include "conftest.h"
4667 int main() {
4669 ; return 0; }
4671 if { (eval echo configure:4672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4672 rm -rf conftest*
4673 glibcpp_cv_float_complex=ok
4674 else
4675 echo "configure: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4677 rm -rf conftest*
4678 glibcpp_cv_float_complex=buggy
4681 rm -f conftest*
4682 ac_ext=c
4683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4684 ac_cpp='$CPP $CPPFLAGS'
4685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4687 cross_compiling=$ac_cv_prog_cc_cross
4692 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
4693 if test $glibcpp_cv_float_complex = buggy; then
4694 cat >> confdefs.h <<\EOF
4695 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
4702 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4703 echo "configure:4704: checking for mbstate_t" >&5
4704 cat > conftest.$ac_ext <<EOF
4705 #line 4706 "configure"
4706 #include "confdefs.h"
4707 #include <wchar.h>
4708 int main() {
4709 mbstate_t teststate;
4710 ; return 0; }
4712 if { (eval echo configure:4713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4713 rm -rf conftest*
4714 have_mbstate_t=yes
4715 else
4716 echo "configure: failed program was:" >&5
4717 cat conftest.$ac_ext >&5
4718 rm -rf conftest*
4719 have_mbstate_t=no
4721 rm -f conftest*
4722 echo "$ac_t""$have_mbstate_t" 1>&6
4723 if test x"$have_mbstate_t" = xyes; then
4724 cat >> confdefs.h <<\EOF
4725 #define HAVE_MBSTATE_T 1
4730 for ac_hdr in wchar.h
4732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4734 echo "configure:4735: checking for $ac_hdr" >&5
4735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4737 else
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4741 #include <$ac_hdr>
4743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4744 { (eval echo configure:4745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4746 if test -z "$ac_err"; then
4747 rm -rf conftest*
4748 eval "ac_cv_header_$ac_safe=yes"
4749 else
4750 echo "$ac_err" >&5
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4753 rm -rf conftest*
4754 eval "ac_cv_header_$ac_safe=no"
4756 rm -f conftest*
4758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4759 echo "$ac_t""yes" 1>&6
4760 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4761 cat >> confdefs.h <<EOF
4762 #define $ac_tr_hdr 1
4764 ac_has_wchar_h=yes
4765 else
4766 echo "$ac_t""no" 1>&6
4767 ac_has_wchar_h=no
4769 done
4771 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4772 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4773 echo "configure:4774: checking for wctype.h" >&5
4774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4776 else
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 #include <wctype.h>
4782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4783 { (eval echo configure:4784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4785 if test -z "$ac_err"; then
4786 rm -rf conftest*
4787 eval "ac_cv_header_$ac_safe=yes"
4788 else
4789 echo "$ac_err" >&5
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4792 rm -rf conftest*
4793 eval "ac_cv_header_$ac_safe=no"
4795 rm -f conftest*
4797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4799 ac_has_wctype_h=yes
4800 else
4801 echo "$ac_t""no" 1>&6
4802 ac_has_wctype_h=no
4806 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
4807 && test x"$enable_c_mbchar" != xno; then
4809 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4810 echo "configure:4811: checking for WCHAR_MIN and WCHAR_MAX" >&5
4811 cat > conftest.$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4814 #include <wchar.h>
4815 int main() {
4816 int i = WCHAR_MIN; int j = WCHAR_MAX;
4817 ; return 0; }
4819 if { (eval echo configure:4820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4820 rm -rf conftest*
4821 has_wchar_minmax=yes
4822 else
4823 echo "configure: failed program was:" >&5
4824 cat conftest.$ac_ext >&5
4825 rm -rf conftest*
4826 has_wchar_minmax=no
4828 rm -f conftest*
4829 echo "$ac_t""$has_wchar_minmax" 1>&6
4831 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4832 echo "configure:4833: checking for WEOF" >&5
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4837 #include <wchar.h>
4838 #include <stddef.h>
4839 int main() {
4840 wint_t i = WEOF;
4841 ; return 0; }
4843 if { (eval echo configure:4844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4844 rm -rf conftest*
4845 has_weof=yes
4846 else
4847 echo "configure: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4849 rm -rf conftest*
4850 has_weof=no
4852 rm -f conftest*
4853 echo "$ac_t""$has_weof" 1>&6
4855 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
4856 wcsrtombs mbsrtowcs
4858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4859 echo "configure:4860: checking for $ac_func" >&5
4860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4862 else
4863 cat > conftest.$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4866 /* System header to define __stub macros and hopefully few prototypes,
4867 which can conflict with char $ac_func(); below. */
4868 #include <assert.h>
4869 /* Override any gcc2 internal prototype to avoid an error. */
4870 /* We use char because int might match the return type of a gcc2
4871 builtin and then its argument prototype would still apply. */
4872 char $ac_func();
4874 int main() {
4876 /* The GNU C library defines this for functions which it implements
4877 to always fail with ENOSYS. Some functions are actually named
4878 something starting with __ and the normal name is an alias. */
4879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4880 choke me
4881 #else
4882 $ac_func();
4883 #endif
4885 ; return 0; }
4887 if { (eval echo configure:4888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4888 rm -rf conftest*
4889 eval "ac_cv_func_$ac_func=yes"
4890 else
4891 echo "configure: failed program was:" >&5
4892 cat conftest.$ac_ext >&5
4893 rm -rf conftest*
4894 eval "ac_cv_func_$ac_func=no"
4896 rm -f conftest*
4899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4900 echo "$ac_t""yes" 1>&6
4901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4902 cat >> confdefs.h <<EOF
4903 #define $ac_tr_func 1
4905 ac_wfuncs=yes
4906 else
4907 echo "$ac_t""no" 1>&6
4908 ac_wfuncs=no
4910 done
4913 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4914 echo "configure:4915: checking for ISO C99 wchar_t support" >&5
4915 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
4916 && test x"$ac_wfuncs" = xyes; then
4917 ac_isoC99_wchar_t=yes
4918 else
4919 ac_isoC99_wchar_t=no
4921 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4923 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4924 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4925 echo "configure:4926: checking for iconv.h" >&5
4926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4927 echo $ac_n "(cached) $ac_c" 1>&6
4928 else
4929 cat > conftest.$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4932 #include <iconv.h>
4934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4935 { (eval echo configure:4936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4937 if test -z "$ac_err"; then
4938 rm -rf conftest*
4939 eval "ac_cv_header_$ac_safe=yes"
4940 else
4941 echo "$ac_err" >&5
4942 echo "configure: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4944 rm -rf conftest*
4945 eval "ac_cv_header_$ac_safe=no"
4947 rm -f conftest*
4949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4950 echo "$ac_t""yes" 1>&6
4951 ac_has_iconv_h=yes
4952 else
4953 echo "$ac_t""no" 1>&6
4954 ac_has_iconv_h=no
4957 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4958 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4959 echo "configure:4960: checking for langinfo.h" >&5
4960 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4961 echo $ac_n "(cached) $ac_c" 1>&6
4962 else
4963 cat > conftest.$ac_ext <<EOF
4964 #line 4965 "configure"
4965 #include "confdefs.h"
4966 #include <langinfo.h>
4968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4969 { (eval echo configure:4970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4971 if test -z "$ac_err"; then
4972 rm -rf conftest*
4973 eval "ac_cv_header_$ac_safe=yes"
4974 else
4975 echo "$ac_err" >&5
4976 echo "configure: failed program was:" >&5
4977 cat conftest.$ac_ext >&5
4978 rm -rf conftest*
4979 eval "ac_cv_header_$ac_safe=no"
4981 rm -f conftest*
4983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4984 echo "$ac_t""yes" 1>&6
4985 ac_has_langinfo_h=yes
4986 else
4987 echo "$ac_t""no" 1>&6
4988 ac_has_langinfo_h=no
4992 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4993 echo "configure:4994: checking for iconv in -liconv" >&5
4994 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4997 else
4998 ac_save_LIBS="$LIBS"
4999 LIBS="-liconv $LIBS"
5000 cat > conftest.$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5003 /* Override any gcc2 internal prototype to avoid an error. */
5004 /* We use char because int might match the return type of a gcc2
5005 builtin and then its argument prototype would still apply. */
5006 char iconv();
5008 int main() {
5009 iconv()
5010 ; return 0; }
5012 if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5013 rm -rf conftest*
5014 eval "ac_cv_lib_$ac_lib_var=yes"
5015 else
5016 echo "configure: failed program was:" >&5
5017 cat conftest.$ac_ext >&5
5018 rm -rf conftest*
5019 eval "ac_cv_lib_$ac_lib_var=no"
5021 rm -f conftest*
5022 LIBS="$ac_save_LIBS"
5025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5026 echo "$ac_t""yes" 1>&6
5027 libiconv="-liconv"
5028 else
5029 echo "$ac_t""no" 1>&6
5032 ac_save_LIBS="$LIBS"
5033 LIBS="$LIBS $libiconv"
5035 for ac_func in iconv_open iconv_close iconv nl_langinfo
5037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5038 echo "configure:5039: checking for $ac_func" >&5
5039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5041 else
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 /* System header to define __stub macros and hopefully few prototypes,
5046 which can conflict with char $ac_func(); below. */
5047 #include <assert.h>
5048 /* Override any gcc2 internal prototype to avoid an error. */
5049 /* We use char because int might match the return type of a gcc2
5050 builtin and then its argument prototype would still apply. */
5051 char $ac_func();
5053 int main() {
5055 /* The GNU C library defines this for functions which it implements
5056 to always fail with ENOSYS. Some functions are actually named
5057 something starting with __ and the normal name is an alias. */
5058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5059 choke me
5060 #else
5061 $ac_func();
5062 #endif
5064 ; return 0; }
5066 if { (eval echo configure:5067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5067 rm -rf conftest*
5068 eval "ac_cv_func_$ac_func=yes"
5069 else
5070 echo "configure: failed program was:" >&5
5071 cat conftest.$ac_ext >&5
5072 rm -rf conftest*
5073 eval "ac_cv_func_$ac_func=no"
5075 rm -f conftest*
5078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5079 echo "$ac_t""yes" 1>&6
5080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5081 cat >> confdefs.h <<EOF
5082 #define $ac_tr_func 1
5085 ac_XPG2funcs=yes
5086 else
5087 echo "$ac_t""no" 1>&6
5088 ac_XPG2funcs=no
5090 done
5093 LIBS="$ac_save_LIBS"
5095 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5096 echo "configure:5097: checking for XPG2 wchar_t support" >&5
5097 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
5098 && test x"$ac_XPG2funcs" = xyes; then
5099 ac_XPG2_wchar_t=yes
5100 else
5101 ac_XPG2_wchar_t=no
5103 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5105 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5106 echo "configure:5107: checking for enabled wchar_t specializations" >&5
5107 if test x"$ac_isoC99_wchar_t" = xyes \
5108 && test x"$ac_XPG2_wchar_t" = xyes; then
5109 cat >> confdefs.h <<\EOF
5110 #define _GLIBCPP_USE_WCHAR_T 1
5113 echo "$ac_t"""yes"" 1>&6
5114 else
5115 echo "$ac_t"""no"" 1>&6
5117 else
5118 echo "configure: warning: wchar_t support disabled." 1>&2
5121 os_include_dir="config/os/gnu-linux"
5122 # GLIBCPP_CHECK_STDLIB_SUPPORT
5123 cat >> confdefs.h <<\EOF
5124 #define HAVE_STRTOF 1
5127 cat >> confdefs.h <<\EOF
5128 #define HAVE_STRTOLD 1
5131 # AC_FUNC_MMAP
5132 cat >> confdefs.h <<\EOF
5133 #define HAVE_MMAP 1
5138 # We assume newlib. This lets us hard-code the functions we know
5139 # we'll have.
5140 cat >> confdefs.h <<\EOF
5141 #define HAVE_FINITE 1
5144 cat >> confdefs.h <<\EOF
5145 #define HAVE_ISNAN 1
5148 cat >> confdefs.h <<\EOF
5149 #define HAVE_ISNANF 1
5152 cat >> confdefs.h <<\EOF
5153 #define HAVE_ISINF 1
5156 cat >> confdefs.h <<\EOF
5157 #define HAVE_ISINFF 1
5161 os_include_dir="config/os/newlib"
5163 cat >> confdefs.h <<\EOF
5164 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
5167 cat >> confdefs.h <<\EOF
5168 #define _GLIBCPP_BUGGY_COMPLEX 1
5171 # need to check for faster f versions of math functions, ie sinf?
5173 esac
5174 else
5176 # We are being configured natively. We can do more elaborate tests
5177 # that include AC_TRY_COMPILE now, as the linker is assumed to be
5178 # working.
5179 xcompiling=0
5180 NATIVE=yes
5181 CANADIAN=no
5182 NULL_TARGET=no
5184 # Check for available headers.
5185 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
5186 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
5188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5190 echo "configure:5191: checking for $ac_hdr" >&5
5191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5192 echo $ac_n "(cached) $ac_c" 1>&6
5193 else
5194 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5197 #include <$ac_hdr>
5199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5200 { (eval echo configure:5201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5202 if test -z "$ac_err"; then
5203 rm -rf conftest*
5204 eval "ac_cv_header_$ac_safe=yes"
5205 else
5206 echo "$ac_err" >&5
5207 echo "configure: failed program was:" >&5
5208 cat conftest.$ac_ext >&5
5209 rm -rf conftest*
5210 eval "ac_cv_header_$ac_safe=no"
5212 rm -f conftest*
5214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5215 echo "$ac_t""yes" 1>&6
5216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5217 cat >> confdefs.h <<EOF
5218 #define $ac_tr_hdr 1
5221 else
5222 echo "$ac_t""no" 1>&6
5224 done
5228 # All these tests are for C++; save the language and the compiler flags.
5229 # The CXXFLAGS thing is suspicious, but based on similar bits
5230 # found in GLIBCPP_CONFIGURE.
5232 ac_ext=C
5233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5234 ac_cpp='$CXXCPP $CPPFLAGS'
5235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5237 cross_compiling=$ac_cv_prog_cxx_cross
5239 ac_test_CXXFLAGS="${CXXFLAGS+set}"
5240 ac_save_CXXFLAGS="$CXXFLAGS"
5242 # Check for maintainer-mode bits.
5243 if test x"$USE_MAINTAINER_MODE" = xno; then
5244 WERROR=''
5245 else
5246 WERROR='-Werror'
5249 # Check for -ffunction-sections -fdata-sections
5250 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
5251 echo "configure:5252: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
5252 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
5253 cat > conftest.$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5257 int main() {
5258 int foo;
5260 ; return 0; }
5262 if { (eval echo configure:5263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5263 rm -rf conftest*
5264 ac_fdsections=yes
5265 else
5266 echo "configure: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5268 rm -rf conftest*
5269 ac_fdsections=no
5271 rm -f conftest*
5272 if test "$ac_test_CXXFLAGS" = set; then
5273 CXXFLAGS="$ac_save_CXXFLAGS"
5274 else
5275 # this is the suspicious part
5276 CXXFLAGS=''
5278 if test x"$ac_fdsections" = x"yes" && test x"$enable_debug" = x"no"; then
5279 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5281 echo "$ac_t""$ac_fdsections" 1>&6
5283 ac_ext=c
5284 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5285 ac_cpp='$CPP $CPPFLAGS'
5286 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5287 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5288 cross_compiling=$ac_cv_prog_cc_cross
5294 # If we're not using GNU ld, then there's no point in even trying these
5295 # tests. Check for that first. We should have already tested for gld
5296 # by now (in libtool), but require it now just to be safe...
5297 SECTION_LDFLAGS=''
5298 OPT_LDFLAGS=''
5301 # Set --gc-sections.
5302 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5303 # GNU ld it is! Joy and bunny rabbits!
5305 # All these tests are for C++; save the language and the compiler flags.
5306 # Need to do this so that g++ won't try to link in libstdc++
5307 ac_test_CFLAGS="${CFLAGS+set}"
5308 ac_save_CFLAGS="$CFLAGS"
5309 CFLAGS='-x c++ -Wl,--gc-sections'
5311 # Check for -Wl,--gc-sections
5312 # XXX This test is broken at the moment, as symbols required for
5313 # linking are now in libsupc++ (not built yet.....). In addition,
5314 # this test has cored on solaris in the past. In addition,
5315 # --gc-sections doesn't really work at the moment (keeps on discarding
5316 # used sections, first .eh_frame and now some of the glibc sections for
5317 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5318 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5319 echo "configure:5320: checking for ld that supports -Wl,--gc-sections" >&5
5320 if test "$cross_compiling" = yes; then
5321 ac_sectionLDflags=yes
5322 else
5323 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5327 int main(void)
5329 try { throw 1; }
5330 catch (...) { };
5331 return 0;
5335 if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5336 then
5337 ac_sectionLDflags=yes
5338 else
5339 echo "configure: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5341 rm -fr conftest*
5342 ac_sectionLFflags=no
5344 rm -fr conftest*
5347 if test "$ac_test_CFLAGS" = set; then
5348 CFLAGS="$ac_save_CFLAGS"
5349 else
5350 # this is the suspicious part
5351 CFLAGS=''
5353 if test "$ac_sectionLDflags" = "yes"; then
5354 SECTION_LDFLAGS='-Wl,--gc-sections'
5356 echo "$ac_t""$ac_sectionLDflags" 1>&6
5359 # Set linker optimization flags.
5360 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5361 OPT_LDFLAGS='-Wl,-O1'
5369 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5370 echo "configure:5371: checking for __builtin_abs declaration" >&5
5371 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5372 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5373 echo $ac_n "(cached) $ac_c" 1>&6
5374 else
5377 ac_ext=C
5378 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5379 ac_cpp='$CXXCPP $CPPFLAGS'
5380 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5381 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5382 cross_compiling=$ac_cv_prog_cxx_cross
5384 cat > conftest.$ac_ext <<EOF
5385 #line 5386 "configure"
5386 #include "confdefs.h"
5387 #include <math.h>
5388 int main() {
5389 __builtin_abs(0);
5390 ; return 0; }
5392 if { (eval echo configure:5393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5393 rm -rf conftest*
5394 glibcpp_cv_func___builtin_abs_use=yes
5395 else
5396 echo "configure: failed program was:" >&5
5397 cat conftest.$ac_ext >&5
5398 rm -rf conftest*
5399 glibcpp_cv_func___builtin_abs_use=no
5401 rm -f conftest*
5402 ac_ext=c
5403 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5404 ac_cpp='$CPP $CPPFLAGS'
5405 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5406 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5407 cross_compiling=$ac_cv_prog_cc_cross
5413 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5414 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5415 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5416 echo "configure:5417: checking for __builtin_abs linkage" >&5
5417 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5418 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5420 else
5422 cat > conftest.$ac_ext <<EOF
5423 #line 5424 "configure"
5424 #include "confdefs.h"
5425 #include <math.h>
5426 int main() {
5427 __builtin_abs(0);
5428 ; return 0; }
5430 if { (eval echo configure:5431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5431 rm -rf conftest*
5432 glibcpp_cv_func___builtin_abs_link=yes
5433 else
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5436 rm -rf conftest*
5437 glibcpp_cv_func___builtin_abs_link=no
5439 rm -f conftest*
5444 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5445 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5446 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5447 cat >> confdefs.h <<EOF
5448 #define ${ac_tr_func} 1
5455 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5456 echo "configure:5457: checking for __builtin_fabsf declaration" >&5
5457 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5458 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5459 echo $ac_n "(cached) $ac_c" 1>&6
5460 else
5463 ac_ext=C
5464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5465 ac_cpp='$CXXCPP $CPPFLAGS'
5466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5468 cross_compiling=$ac_cv_prog_cxx_cross
5470 cat > conftest.$ac_ext <<EOF
5471 #line 5472 "configure"
5472 #include "confdefs.h"
5473 #include <math.h>
5474 int main() {
5475 __builtin_fabsf(0);
5476 ; return 0; }
5478 if { (eval echo configure:5479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5479 rm -rf conftest*
5480 glibcpp_cv_func___builtin_fabsf_use=yes
5481 else
5482 echo "configure: failed program was:" >&5
5483 cat conftest.$ac_ext >&5
5484 rm -rf conftest*
5485 glibcpp_cv_func___builtin_fabsf_use=no
5487 rm -f conftest*
5488 ac_ext=c
5489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5490 ac_cpp='$CPP $CPPFLAGS'
5491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5493 cross_compiling=$ac_cv_prog_cc_cross
5499 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5500 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5501 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5502 echo "configure:5503: checking for __builtin_fabsf linkage" >&5
5503 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5504 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5506 else
5508 cat > conftest.$ac_ext <<EOF
5509 #line 5510 "configure"
5510 #include "confdefs.h"
5511 #include <math.h>
5512 int main() {
5513 __builtin_fabsf(0);
5514 ; return 0; }
5516 if { (eval echo configure:5517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5517 rm -rf conftest*
5518 glibcpp_cv_func___builtin_fabsf_link=yes
5519 else
5520 echo "configure: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5522 rm -rf conftest*
5523 glibcpp_cv_func___builtin_fabsf_link=no
5525 rm -f conftest*
5530 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5531 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5532 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5533 cat >> confdefs.h <<EOF
5534 #define ${ac_tr_func} 1
5541 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5542 echo "configure:5543: checking for __builtin_fabs declaration" >&5
5543 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5544 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5545 echo $ac_n "(cached) $ac_c" 1>&6
5546 else
5549 ac_ext=C
5550 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5551 ac_cpp='$CXXCPP $CPPFLAGS'
5552 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5553 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5554 cross_compiling=$ac_cv_prog_cxx_cross
5556 cat > conftest.$ac_ext <<EOF
5557 #line 5558 "configure"
5558 #include "confdefs.h"
5559 #include <math.h>
5560 int main() {
5561 __builtin_fabs(0);
5562 ; return 0; }
5564 if { (eval echo configure:5565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5565 rm -rf conftest*
5566 glibcpp_cv_func___builtin_fabs_use=yes
5567 else
5568 echo "configure: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5570 rm -rf conftest*
5571 glibcpp_cv_func___builtin_fabs_use=no
5573 rm -f conftest*
5574 ac_ext=c
5575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5576 ac_cpp='$CPP $CPPFLAGS'
5577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5578 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5579 cross_compiling=$ac_cv_prog_cc_cross
5585 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5586 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5587 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5588 echo "configure:5589: checking for __builtin_fabs linkage" >&5
5589 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5590 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5591 echo $ac_n "(cached) $ac_c" 1>&6
5592 else
5594 cat > conftest.$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5597 #include <math.h>
5598 int main() {
5599 __builtin_fabs(0);
5600 ; return 0; }
5602 if { (eval echo configure:5603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5603 rm -rf conftest*
5604 glibcpp_cv_func___builtin_fabs_link=yes
5605 else
5606 echo "configure: failed program was:" >&5
5607 cat conftest.$ac_ext >&5
5608 rm -rf conftest*
5609 glibcpp_cv_func___builtin_fabs_link=no
5611 rm -f conftest*
5616 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5617 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5618 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5619 cat >> confdefs.h <<EOF
5620 #define ${ac_tr_func} 1
5627 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5628 echo "configure:5629: checking for __builtin_fabsl declaration" >&5
5629 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5630 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5631 echo $ac_n "(cached) $ac_c" 1>&6
5632 else
5635 ac_ext=C
5636 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5637 ac_cpp='$CXXCPP $CPPFLAGS'
5638 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5639 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5640 cross_compiling=$ac_cv_prog_cxx_cross
5642 cat > conftest.$ac_ext <<EOF
5643 #line 5644 "configure"
5644 #include "confdefs.h"
5645 #include <math.h>
5646 int main() {
5647 __builtin_fabsl(0);
5648 ; return 0; }
5650 if { (eval echo configure:5651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5651 rm -rf conftest*
5652 glibcpp_cv_func___builtin_fabsl_use=yes
5653 else
5654 echo "configure: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5656 rm -rf conftest*
5657 glibcpp_cv_func___builtin_fabsl_use=no
5659 rm -f conftest*
5660 ac_ext=c
5661 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5662 ac_cpp='$CPP $CPPFLAGS'
5663 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5664 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5665 cross_compiling=$ac_cv_prog_cc_cross
5671 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5672 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5673 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5674 echo "configure:5675: checking for __builtin_fabsl linkage" >&5
5675 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5676 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5677 echo $ac_n "(cached) $ac_c" 1>&6
5678 else
5680 cat > conftest.$ac_ext <<EOF
5681 #line 5682 "configure"
5682 #include "confdefs.h"
5683 #include <math.h>
5684 int main() {
5685 __builtin_fabsl(0);
5686 ; return 0; }
5688 if { (eval echo configure:5689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5689 rm -rf conftest*
5690 glibcpp_cv_func___builtin_fabsl_link=yes
5691 else
5692 echo "configure: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5694 rm -rf conftest*
5695 glibcpp_cv_func___builtin_fabsl_link=no
5697 rm -f conftest*
5702 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5703 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5704 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5705 cat >> confdefs.h <<EOF
5706 #define ${ac_tr_func} 1
5713 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5714 echo "configure:5715: checking for __builtin_labs declaration" >&5
5715 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5716 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5717 echo $ac_n "(cached) $ac_c" 1>&6
5718 else
5721 ac_ext=C
5722 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5723 ac_cpp='$CXXCPP $CPPFLAGS'
5724 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5725 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5726 cross_compiling=$ac_cv_prog_cxx_cross
5728 cat > conftest.$ac_ext <<EOF
5729 #line 5730 "configure"
5730 #include "confdefs.h"
5731 #include <math.h>
5732 int main() {
5733 __builtin_labs(0);
5734 ; return 0; }
5736 if { (eval echo configure:5737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5737 rm -rf conftest*
5738 glibcpp_cv_func___builtin_labs_use=yes
5739 else
5740 echo "configure: failed program was:" >&5
5741 cat conftest.$ac_ext >&5
5742 rm -rf conftest*
5743 glibcpp_cv_func___builtin_labs_use=no
5745 rm -f conftest*
5746 ac_ext=c
5747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5748 ac_cpp='$CPP $CPPFLAGS'
5749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5751 cross_compiling=$ac_cv_prog_cc_cross
5757 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5758 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5759 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5760 echo "configure:5761: checking for __builtin_labs linkage" >&5
5761 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5762 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5763 echo $ac_n "(cached) $ac_c" 1>&6
5764 else
5766 cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure"
5768 #include "confdefs.h"
5769 #include <math.h>
5770 int main() {
5771 __builtin_labs(0);
5772 ; return 0; }
5774 if { (eval echo configure:5775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5775 rm -rf conftest*
5776 glibcpp_cv_func___builtin_labs_link=yes
5777 else
5778 echo "configure: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5780 rm -rf conftest*
5781 glibcpp_cv_func___builtin_labs_link=no
5783 rm -f conftest*
5788 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5789 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5790 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5791 cat >> confdefs.h <<EOF
5792 #define ${ac_tr_func} 1
5800 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5801 echo "configure:5802: checking for __builtin_sqrtf declaration" >&5
5802 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5803 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5804 echo $ac_n "(cached) $ac_c" 1>&6
5805 else
5808 ac_ext=C
5809 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5810 ac_cpp='$CXXCPP $CPPFLAGS'
5811 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5812 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5813 cross_compiling=$ac_cv_prog_cxx_cross
5815 cat > conftest.$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5818 #include <math.h>
5819 int main() {
5820 __builtin_sqrtf(0);
5821 ; return 0; }
5823 if { (eval echo configure:5824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5824 rm -rf conftest*
5825 glibcpp_cv_func___builtin_sqrtf_use=yes
5826 else
5827 echo "configure: failed program was:" >&5
5828 cat conftest.$ac_ext >&5
5829 rm -rf conftest*
5830 glibcpp_cv_func___builtin_sqrtf_use=no
5832 rm -f conftest*
5833 ac_ext=c
5834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5835 ac_cpp='$CPP $CPPFLAGS'
5836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5838 cross_compiling=$ac_cv_prog_cc_cross
5844 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5845 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5846 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5847 echo "configure:5848: checking for __builtin_sqrtf linkage" >&5
5848 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5849 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5850 echo $ac_n "(cached) $ac_c" 1>&6
5851 else
5853 cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5856 #include <math.h>
5857 int main() {
5858 __builtin_sqrtf(0);
5859 ; return 0; }
5861 if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5862 rm -rf conftest*
5863 glibcpp_cv_func___builtin_sqrtf_link=yes
5864 else
5865 echo "configure: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5867 rm -rf conftest*
5868 glibcpp_cv_func___builtin_sqrtf_link=no
5870 rm -f conftest*
5875 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5876 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5877 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5878 cat >> confdefs.h <<EOF
5879 #define ${ac_tr_func} 1
5886 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5887 echo "configure:5888: checking for __builtin_fsqrt declaration" >&5
5888 if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5889 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5890 echo $ac_n "(cached) $ac_c" 1>&6
5891 else
5894 ac_ext=C
5895 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5896 ac_cpp='$CXXCPP $CPPFLAGS'
5897 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5898 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5899 cross_compiling=$ac_cv_prog_cxx_cross
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5904 #include <math.h>
5905 int main() {
5906 __builtin_fsqrt(0);
5907 ; return 0; }
5909 if { (eval echo configure:5910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5910 rm -rf conftest*
5911 glibcpp_cv_func___builtin_fsqrt_use=yes
5912 else
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5915 rm -rf conftest*
5916 glibcpp_cv_func___builtin_fsqrt_use=no
5918 rm -f conftest*
5919 ac_ext=c
5920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5921 ac_cpp='$CPP $CPPFLAGS'
5922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5924 cross_compiling=$ac_cv_prog_cc_cross
5930 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5931 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5932 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5933 echo "configure:5934: checking for __builtin_fsqrt linkage" >&5
5934 if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5935 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5937 else
5939 cat > conftest.$ac_ext <<EOF
5940 #line 5941 "configure"
5941 #include "confdefs.h"
5942 #include <math.h>
5943 int main() {
5944 __builtin_fsqrt(0);
5945 ; return 0; }
5947 if { (eval echo configure:5948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5948 rm -rf conftest*
5949 glibcpp_cv_func___builtin_fsqrt_link=yes
5950 else
5951 echo "configure: failed program was:" >&5
5952 cat conftest.$ac_ext >&5
5953 rm -rf conftest*
5954 glibcpp_cv_func___builtin_fsqrt_link=no
5956 rm -f conftest*
5961 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5962 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5963 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5964 cat >> confdefs.h <<EOF
5965 #define ${ac_tr_func} 1
5972 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5973 echo "configure:5974: checking for __builtin_sqrtl declaration" >&5
5974 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5975 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5976 echo $ac_n "(cached) $ac_c" 1>&6
5977 else
5980 ac_ext=C
5981 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5982 ac_cpp='$CXXCPP $CPPFLAGS'
5983 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5984 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5985 cross_compiling=$ac_cv_prog_cxx_cross
5987 cat > conftest.$ac_ext <<EOF
5988 #line 5989 "configure"
5989 #include "confdefs.h"
5990 #include <math.h>
5991 int main() {
5992 __builtin_sqrtl(0);
5993 ; return 0; }
5995 if { (eval echo configure:5996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5996 rm -rf conftest*
5997 glibcpp_cv_func___builtin_sqrtl_use=yes
5998 else
5999 echo "configure: failed program was:" >&5
6000 cat conftest.$ac_ext >&5
6001 rm -rf conftest*
6002 glibcpp_cv_func___builtin_sqrtl_use=no
6004 rm -f conftest*
6005 ac_ext=c
6006 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6007 ac_cpp='$CPP $CPPFLAGS'
6008 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6009 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6010 cross_compiling=$ac_cv_prog_cc_cross
6016 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
6017 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
6018 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
6019 echo "configure:6020: checking for __builtin_sqrtl linkage" >&5
6020 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
6021 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
6022 echo $ac_n "(cached) $ac_c" 1>&6
6023 else
6025 cat > conftest.$ac_ext <<EOF
6026 #line 6027 "configure"
6027 #include "confdefs.h"
6028 #include <math.h>
6029 int main() {
6030 __builtin_sqrtl(0);
6031 ; return 0; }
6033 if { (eval echo configure:6034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6034 rm -rf conftest*
6035 glibcpp_cv_func___builtin_sqrtl_link=yes
6036 else
6037 echo "configure: failed program was:" >&5
6038 cat conftest.$ac_ext >&5
6039 rm -rf conftest*
6040 glibcpp_cv_func___builtin_sqrtl_link=no
6042 rm -f conftest*
6047 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
6048 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
6049 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6050 cat >> confdefs.h <<EOF
6051 #define ${ac_tr_func} 1
6059 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
6060 echo "configure:6061: checking for __builtin_sinf declaration" >&5
6061 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
6062 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6064 else
6067 ac_ext=C
6068 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6069 ac_cpp='$CXXCPP $CPPFLAGS'
6070 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6071 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6072 cross_compiling=$ac_cv_prog_cxx_cross
6074 cat > conftest.$ac_ext <<EOF
6075 #line 6076 "configure"
6076 #include "confdefs.h"
6077 #include <math.h>
6078 int main() {
6079 __builtin_sinf(0);
6080 ; return 0; }
6082 if { (eval echo configure:6083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6083 rm -rf conftest*
6084 glibcpp_cv_func___builtin_sinf_use=yes
6085 else
6086 echo "configure: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6088 rm -rf conftest*
6089 glibcpp_cv_func___builtin_sinf_use=no
6091 rm -f conftest*
6092 ac_ext=c
6093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6094 ac_cpp='$CPP $CPPFLAGS'
6095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6097 cross_compiling=$ac_cv_prog_cc_cross
6103 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
6104 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
6105 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
6106 echo "configure:6107: checking for __builtin_sinf linkage" >&5
6107 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
6108 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
6109 echo $ac_n "(cached) $ac_c" 1>&6
6110 else
6112 cat > conftest.$ac_ext <<EOF
6113 #line 6114 "configure"
6114 #include "confdefs.h"
6115 #include <math.h>
6116 int main() {
6117 __builtin_sinf(0);
6118 ; return 0; }
6120 if { (eval echo configure:6121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6121 rm -rf conftest*
6122 glibcpp_cv_func___builtin_sinf_link=yes
6123 else
6124 echo "configure: failed program was:" >&5
6125 cat conftest.$ac_ext >&5
6126 rm -rf conftest*
6127 glibcpp_cv_func___builtin_sinf_link=no
6129 rm -f conftest*
6134 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
6135 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
6136 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6137 cat >> confdefs.h <<EOF
6138 #define ${ac_tr_func} 1
6145 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
6146 echo "configure:6147: checking for __builtin_sin declaration" >&5
6147 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
6148 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
6149 echo $ac_n "(cached) $ac_c" 1>&6
6150 else
6153 ac_ext=C
6154 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6155 ac_cpp='$CXXCPP $CPPFLAGS'
6156 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6157 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6158 cross_compiling=$ac_cv_prog_cxx_cross
6160 cat > conftest.$ac_ext <<EOF
6161 #line 6162 "configure"
6162 #include "confdefs.h"
6163 #include <math.h>
6164 int main() {
6165 __builtin_sin(0);
6166 ; return 0; }
6168 if { (eval echo configure:6169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6169 rm -rf conftest*
6170 glibcpp_cv_func___builtin_sin_use=yes
6171 else
6172 echo "configure: failed program was:" >&5
6173 cat conftest.$ac_ext >&5
6174 rm -rf conftest*
6175 glibcpp_cv_func___builtin_sin_use=no
6177 rm -f conftest*
6178 ac_ext=c
6179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6180 ac_cpp='$CPP $CPPFLAGS'
6181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6182 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6183 cross_compiling=$ac_cv_prog_cc_cross
6189 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
6190 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
6191 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
6192 echo "configure:6193: checking for __builtin_sin linkage" >&5
6193 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
6194 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6196 else
6198 cat > conftest.$ac_ext <<EOF
6199 #line 6200 "configure"
6200 #include "confdefs.h"
6201 #include <math.h>
6202 int main() {
6203 __builtin_sin(0);
6204 ; return 0; }
6206 if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6207 rm -rf conftest*
6208 glibcpp_cv_func___builtin_sin_link=yes
6209 else
6210 echo "configure: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6212 rm -rf conftest*
6213 glibcpp_cv_func___builtin_sin_link=no
6215 rm -f conftest*
6220 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
6221 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
6222 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6223 cat >> confdefs.h <<EOF
6224 #define ${ac_tr_func} 1
6231 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
6232 echo "configure:6233: checking for __builtin_sinl declaration" >&5
6233 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
6234 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
6235 echo $ac_n "(cached) $ac_c" 1>&6
6236 else
6239 ac_ext=C
6240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6241 ac_cpp='$CXXCPP $CPPFLAGS'
6242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6244 cross_compiling=$ac_cv_prog_cxx_cross
6246 cat > conftest.$ac_ext <<EOF
6247 #line 6248 "configure"
6248 #include "confdefs.h"
6249 #include <math.h>
6250 int main() {
6251 __builtin_sinl(0);
6252 ; return 0; }
6254 if { (eval echo configure:6255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6255 rm -rf conftest*
6256 glibcpp_cv_func___builtin_sinl_use=yes
6257 else
6258 echo "configure: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6260 rm -rf conftest*
6261 glibcpp_cv_func___builtin_sinl_use=no
6263 rm -f conftest*
6264 ac_ext=c
6265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6266 ac_cpp='$CPP $CPPFLAGS'
6267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6269 cross_compiling=$ac_cv_prog_cc_cross
6275 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6276 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6277 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6278 echo "configure:6279: checking for __builtin_sinl linkage" >&5
6279 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6280 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6281 echo $ac_n "(cached) $ac_c" 1>&6
6282 else
6284 cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure"
6286 #include "confdefs.h"
6287 #include <math.h>
6288 int main() {
6289 __builtin_sinl(0);
6290 ; return 0; }
6292 if { (eval echo configure:6293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6293 rm -rf conftest*
6294 glibcpp_cv_func___builtin_sinl_link=yes
6295 else
6296 echo "configure: failed program was:" >&5
6297 cat conftest.$ac_ext >&5
6298 rm -rf conftest*
6299 glibcpp_cv_func___builtin_sinl_link=no
6301 rm -f conftest*
6306 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
6307 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
6308 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6309 cat >> confdefs.h <<EOF
6310 #define ${ac_tr_func} 1
6318 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
6319 echo "configure:6320: checking for __builtin_cosf declaration" >&5
6320 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
6321 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
6322 echo $ac_n "(cached) $ac_c" 1>&6
6323 else
6326 ac_ext=C
6327 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6328 ac_cpp='$CXXCPP $CPPFLAGS'
6329 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6330 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6331 cross_compiling=$ac_cv_prog_cxx_cross
6333 cat > conftest.$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6336 #include <math.h>
6337 int main() {
6338 __builtin_cosf(0);
6339 ; return 0; }
6341 if { (eval echo configure:6342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6342 rm -rf conftest*
6343 glibcpp_cv_func___builtin_cosf_use=yes
6344 else
6345 echo "configure: failed program was:" >&5
6346 cat conftest.$ac_ext >&5
6347 rm -rf conftest*
6348 glibcpp_cv_func___builtin_cosf_use=no
6350 rm -f conftest*
6351 ac_ext=c
6352 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6353 ac_cpp='$CPP $CPPFLAGS'
6354 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6355 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6356 cross_compiling=$ac_cv_prog_cc_cross
6362 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6363 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6364 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6365 echo "configure:6366: checking for __builtin_cosf linkage" >&5
6366 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6367 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6368 echo $ac_n "(cached) $ac_c" 1>&6
6369 else
6371 cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6374 #include <math.h>
6375 int main() {
6376 __builtin_cosf(0);
6377 ; return 0; }
6379 if { (eval echo configure:6380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6380 rm -rf conftest*
6381 glibcpp_cv_func___builtin_cosf_link=yes
6382 else
6383 echo "configure: failed program was:" >&5
6384 cat conftest.$ac_ext >&5
6385 rm -rf conftest*
6386 glibcpp_cv_func___builtin_cosf_link=no
6388 rm -f conftest*
6393 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6394 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6395 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6396 cat >> confdefs.h <<EOF
6397 #define ${ac_tr_func} 1
6404 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6405 echo "configure:6406: checking for __builtin_cos declaration" >&5
6406 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6407 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6408 echo $ac_n "(cached) $ac_c" 1>&6
6409 else
6412 ac_ext=C
6413 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6414 ac_cpp='$CXXCPP $CPPFLAGS'
6415 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6416 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6417 cross_compiling=$ac_cv_prog_cxx_cross
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6422 #include <math.h>
6423 int main() {
6424 __builtin_cos(0);
6425 ; return 0; }
6427 if { (eval echo configure:6428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6428 rm -rf conftest*
6429 glibcpp_cv_func___builtin_cos_use=yes
6430 else
6431 echo "configure: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6433 rm -rf conftest*
6434 glibcpp_cv_func___builtin_cos_use=no
6436 rm -f conftest*
6437 ac_ext=c
6438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6439 ac_cpp='$CPP $CPPFLAGS'
6440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6442 cross_compiling=$ac_cv_prog_cc_cross
6448 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6449 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6450 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6451 echo "configure:6452: checking for __builtin_cos linkage" >&5
6452 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6453 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6454 echo $ac_n "(cached) $ac_c" 1>&6
6455 else
6457 cat > conftest.$ac_ext <<EOF
6458 #line 6459 "configure"
6459 #include "confdefs.h"
6460 #include <math.h>
6461 int main() {
6462 __builtin_cos(0);
6463 ; return 0; }
6465 if { (eval echo configure:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6466 rm -rf conftest*
6467 glibcpp_cv_func___builtin_cos_link=yes
6468 else
6469 echo "configure: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6471 rm -rf conftest*
6472 glibcpp_cv_func___builtin_cos_link=no
6474 rm -f conftest*
6479 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6480 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6481 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6482 cat >> confdefs.h <<EOF
6483 #define ${ac_tr_func} 1
6490 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6491 echo "configure:6492: checking for __builtin_cosl declaration" >&5
6492 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6493 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6494 echo $ac_n "(cached) $ac_c" 1>&6
6495 else
6498 ac_ext=C
6499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6500 ac_cpp='$CXXCPP $CPPFLAGS'
6501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6503 cross_compiling=$ac_cv_prog_cxx_cross
6505 cat > conftest.$ac_ext <<EOF
6506 #line 6507 "configure"
6507 #include "confdefs.h"
6508 #include <math.h>
6509 int main() {
6510 __builtin_cosl(0);
6511 ; return 0; }
6513 if { (eval echo configure:6514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6514 rm -rf conftest*
6515 glibcpp_cv_func___builtin_cosl_use=yes
6516 else
6517 echo "configure: failed program was:" >&5
6518 cat conftest.$ac_ext >&5
6519 rm -rf conftest*
6520 glibcpp_cv_func___builtin_cosl_use=no
6522 rm -f conftest*
6523 ac_ext=c
6524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6525 ac_cpp='$CPP $CPPFLAGS'
6526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6528 cross_compiling=$ac_cv_prog_cc_cross
6534 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6535 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6536 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6537 echo "configure:6538: checking for __builtin_cosl linkage" >&5
6538 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6539 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6541 else
6543 cat > conftest.$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6546 #include <math.h>
6547 int main() {
6548 __builtin_cosl(0);
6549 ; return 0; }
6551 if { (eval echo configure:6552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6552 rm -rf conftest*
6553 glibcpp_cv_func___builtin_cosl_link=yes
6554 else
6555 echo "configure: failed program was:" >&5
6556 cat conftest.$ac_ext >&5
6557 rm -rf conftest*
6558 glibcpp_cv_func___builtin_cosl_link=no
6560 rm -f conftest*
6565 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6566 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6567 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6568 cat >> confdefs.h <<EOF
6569 #define ${ac_tr_func} 1
6576 dummyvar=no
6577 if test x$dummyvar = x"yes"; then
6578 cat >> confdefs.h <<\EOF
6579 #define HAVE___BUILTIN_ABS 1
6582 cat >> confdefs.h <<\EOF
6583 #define HAVE___BUILTIN_LABS 1
6586 cat >> confdefs.h <<\EOF
6587 #define HAVE___BUILTIN_COS 1
6590 cat >> confdefs.h <<\EOF
6591 #define HAVE___BUILTIN_COSF 1
6594 cat >> confdefs.h <<\EOF
6595 #define HAVE___BUILTIN_COSL 1
6598 cat >> confdefs.h <<\EOF
6599 #define HAVE___BUILTIN_FABS 1
6602 cat >> confdefs.h <<\EOF
6603 #define HAVE___BUILTIN_FABSF 1
6606 cat >> confdefs.h <<\EOF
6607 #define HAVE___BUILTIN_FABSL 1
6610 cat >> confdefs.h <<\EOF
6611 #define HAVE___BUILTIN_SIN 1
6614 cat >> confdefs.h <<\EOF
6615 #define HAVE___BUILTIN_SINF 1
6618 cat >> confdefs.h <<\EOF
6619 #define HAVE___BUILTIN_SINL 1
6622 cat >> confdefs.h <<\EOF
6623 #define HAVE___BUILTIN_FSQRT 1
6626 cat >> confdefs.h <<\EOF
6627 #define HAVE___BUILTIN_SQRTF 1
6630 cat >> confdefs.h <<\EOF
6631 #define HAVE___BUILTIN_SQRTL 1
6637 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6638 ac_save_CXXFLAGS="$CXXFLAGS"
6639 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6641 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6642 echo "configure:6643: checking for sin in -lm" >&5
6643 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6645 echo $ac_n "(cached) $ac_c" 1>&6
6646 else
6647 ac_save_LIBS="$LIBS"
6648 LIBS="-lm $LIBS"
6649 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6652 /* Override any gcc2 internal prototype to avoid an error. */
6653 /* We use char because int might match the return type of a gcc2
6654 builtin and then its argument prototype would still apply. */
6655 char sin();
6657 int main() {
6658 sin()
6659 ; return 0; }
6661 if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6662 rm -rf conftest*
6663 eval "ac_cv_lib_$ac_lib_var=yes"
6664 else
6665 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6667 rm -rf conftest*
6668 eval "ac_cv_lib_$ac_lib_var=no"
6670 rm -f conftest*
6671 LIBS="$ac_save_LIBS"
6674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6675 echo "$ac_t""yes" 1>&6
6676 libm="-lm"
6677 else
6678 echo "$ac_t""no" 1>&6
6681 ac_save_LIBS="$LIBS"
6682 LIBS="$LIBS $libm"
6686 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6687 echo "configure:6688: checking for isinf declaration" >&5
6688 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6689 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6691 else
6694 ac_ext=C
6695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6696 ac_cpp='$CXXCPP $CPPFLAGS'
6697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6699 cross_compiling=$ac_cv_prog_cxx_cross
6701 cat > conftest.$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6704 #include <math.h>
6705 #ifdef HAVE_IEEEFP_H
6706 #include <ieeefp.h>
6707 #endif
6709 int main() {
6710 isinf(0);
6711 ; return 0; }
6713 if { (eval echo configure:6714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6714 rm -rf conftest*
6715 glibcpp_cv_func_isinf_use=yes
6716 else
6717 echo "configure: failed program was:" >&5
6718 cat conftest.$ac_ext >&5
6719 rm -rf conftest*
6720 glibcpp_cv_func_isinf_use=no
6722 rm -f conftest*
6723 ac_ext=c
6724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6725 ac_cpp='$CPP $CPPFLAGS'
6726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6728 cross_compiling=$ac_cv_prog_cc_cross
6734 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6736 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6737 for ac_func in isinf
6739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6740 echo "configure:6741: checking for $ac_func" >&5
6741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6742 echo $ac_n "(cached) $ac_c" 1>&6
6743 else
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 /* System header to define __stub macros and hopefully few prototypes,
6748 which can conflict with char $ac_func(); below. */
6749 #include <assert.h>
6750 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6753 char $ac_func();
6755 int main() {
6757 /* The GNU C library defines this for functions which it implements
6758 to always fail with ENOSYS. Some functions are actually named
6759 something starting with __ and the normal name is an alias. */
6760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6761 choke me
6762 #else
6763 $ac_func();
6764 #endif
6766 ; return 0; }
6768 if { (eval echo configure:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6769 rm -rf conftest*
6770 eval "ac_cv_func_$ac_func=yes"
6771 else
6772 echo "configure: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6774 rm -rf conftest*
6775 eval "ac_cv_func_$ac_func=no"
6777 rm -f conftest*
6780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6781 echo "$ac_t""yes" 1>&6
6782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6783 cat >> confdefs.h <<EOF
6784 #define $ac_tr_func 1
6787 else
6788 echo "$ac_t""no" 1>&6
6790 done
6792 else
6794 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6795 echo "configure:6796: checking for _isinf declaration" >&5
6796 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6797 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6799 else
6802 ac_ext=C
6803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6804 ac_cpp='$CXXCPP $CPPFLAGS'
6805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6807 cross_compiling=$ac_cv_prog_cxx_cross
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 #include <math.h>
6813 #ifdef HAVE_IEEEFP_H
6814 #include <ieeefp.h>
6815 #endif
6817 int main() {
6818 _isinf(0);
6819 ; return 0; }
6821 if { (eval echo configure:6822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6822 rm -rf conftest*
6823 glibcpp_cv_func__isinf_use=yes
6824 else
6825 echo "configure: failed program was:" >&5
6826 cat conftest.$ac_ext >&5
6827 rm -rf conftest*
6828 glibcpp_cv_func__isinf_use=no
6830 rm -f conftest*
6831 ac_ext=c
6832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6833 ac_cpp='$CPP $CPPFLAGS'
6834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6836 cross_compiling=$ac_cv_prog_cc_cross
6842 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6844 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6845 for ac_func in _isinf
6847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6848 echo "configure:6849: checking for $ac_func" >&5
6849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6850 echo $ac_n "(cached) $ac_c" 1>&6
6851 else
6852 cat > conftest.$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6855 /* System header to define __stub macros and hopefully few prototypes,
6856 which can conflict with char $ac_func(); below. */
6857 #include <assert.h>
6858 /* Override any gcc2 internal prototype to avoid an error. */
6859 /* We use char because int might match the return type of a gcc2
6860 builtin and then its argument prototype would still apply. */
6861 char $ac_func();
6863 int main() {
6865 /* The GNU C library defines this for functions which it implements
6866 to always fail with ENOSYS. Some functions are actually named
6867 something starting with __ and the normal name is an alias. */
6868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6869 choke me
6870 #else
6871 $ac_func();
6872 #endif
6874 ; return 0; }
6876 if { (eval echo configure:6877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6877 rm -rf conftest*
6878 eval "ac_cv_func_$ac_func=yes"
6879 else
6880 echo "configure: failed program was:" >&5
6881 cat conftest.$ac_ext >&5
6882 rm -rf conftest*
6883 eval "ac_cv_func_$ac_func=no"
6885 rm -f conftest*
6888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6889 echo "$ac_t""yes" 1>&6
6890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6891 cat >> confdefs.h <<EOF
6892 #define $ac_tr_func 1
6895 else
6896 echo "$ac_t""no" 1>&6
6898 done
6905 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6906 echo "configure:6907: checking for isnan declaration" >&5
6907 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6908 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6910 else
6913 ac_ext=C
6914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6915 ac_cpp='$CXXCPP $CPPFLAGS'
6916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6918 cross_compiling=$ac_cv_prog_cxx_cross
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 #include <math.h>
6924 #ifdef HAVE_IEEEFP_H
6925 #include <ieeefp.h>
6926 #endif
6928 int main() {
6929 isnan(0);
6930 ; return 0; }
6932 if { (eval echo configure:6933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6933 rm -rf conftest*
6934 glibcpp_cv_func_isnan_use=yes
6935 else
6936 echo "configure: failed program was:" >&5
6937 cat conftest.$ac_ext >&5
6938 rm -rf conftest*
6939 glibcpp_cv_func_isnan_use=no
6941 rm -f conftest*
6942 ac_ext=c
6943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6944 ac_cpp='$CPP $CPPFLAGS'
6945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6947 cross_compiling=$ac_cv_prog_cc_cross
6953 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6955 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6956 for ac_func in isnan
6958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6959 echo "configure:6960: checking for $ac_func" >&5
6960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6961 echo $ac_n "(cached) $ac_c" 1>&6
6962 else
6963 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure"
6965 #include "confdefs.h"
6966 /* System header to define __stub macros and hopefully few prototypes,
6967 which can conflict with char $ac_func(); below. */
6968 #include <assert.h>
6969 /* Override any gcc2 internal prototype to avoid an error. */
6970 /* We use char because int might match the return type of a gcc2
6971 builtin and then its argument prototype would still apply. */
6972 char $ac_func();
6974 int main() {
6976 /* The GNU C library defines this for functions which it implements
6977 to always fail with ENOSYS. Some functions are actually named
6978 something starting with __ and the normal name is an alias. */
6979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6980 choke me
6981 #else
6982 $ac_func();
6983 #endif
6985 ; return 0; }
6987 if { (eval echo configure:6988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6988 rm -rf conftest*
6989 eval "ac_cv_func_$ac_func=yes"
6990 else
6991 echo "configure: failed program was:" >&5
6992 cat conftest.$ac_ext >&5
6993 rm -rf conftest*
6994 eval "ac_cv_func_$ac_func=no"
6996 rm -f conftest*
6999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7000 echo "$ac_t""yes" 1>&6
7001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7002 cat >> confdefs.h <<EOF
7003 #define $ac_tr_func 1
7006 else
7007 echo "$ac_t""no" 1>&6
7009 done
7011 else
7013 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
7014 echo "configure:7015: checking for _isnan declaration" >&5
7015 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
7016 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
7017 echo $ac_n "(cached) $ac_c" 1>&6
7018 else
7021 ac_ext=C
7022 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7023 ac_cpp='$CXXCPP $CPPFLAGS'
7024 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7025 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7026 cross_compiling=$ac_cv_prog_cxx_cross
7028 cat > conftest.$ac_ext <<EOF
7029 #line 7030 "configure"
7030 #include "confdefs.h"
7031 #include <math.h>
7032 #ifdef HAVE_IEEEFP_H
7033 #include <ieeefp.h>
7034 #endif
7036 int main() {
7037 _isnan(0);
7038 ; return 0; }
7040 if { (eval echo configure:7041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7041 rm -rf conftest*
7042 glibcpp_cv_func__isnan_use=yes
7043 else
7044 echo "configure: failed program was:" >&5
7045 cat conftest.$ac_ext >&5
7046 rm -rf conftest*
7047 glibcpp_cv_func__isnan_use=no
7049 rm -f conftest*
7050 ac_ext=c
7051 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7052 ac_cpp='$CPP $CPPFLAGS'
7053 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7054 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7055 cross_compiling=$ac_cv_prog_cc_cross
7061 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
7063 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
7064 for ac_func in _isnan
7066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7067 echo "configure:7068: checking for $ac_func" >&5
7068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7069 echo $ac_n "(cached) $ac_c" 1>&6
7070 else
7071 cat > conftest.$ac_ext <<EOF
7072 #line 7073 "configure"
7073 #include "confdefs.h"
7074 /* System header to define __stub macros and hopefully few prototypes,
7075 which can conflict with char $ac_func(); below. */
7076 #include <assert.h>
7077 /* Override any gcc2 internal prototype to avoid an error. */
7078 /* We use char because int might match the return type of a gcc2
7079 builtin and then its argument prototype would still apply. */
7080 char $ac_func();
7082 int main() {
7084 /* The GNU C library defines this for functions which it implements
7085 to always fail with ENOSYS. Some functions are actually named
7086 something starting with __ and the normal name is an alias. */
7087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7088 choke me
7089 #else
7090 $ac_func();
7091 #endif
7093 ; return 0; }
7095 if { (eval echo configure:7096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7096 rm -rf conftest*
7097 eval "ac_cv_func_$ac_func=yes"
7098 else
7099 echo "configure: failed program was:" >&5
7100 cat conftest.$ac_ext >&5
7101 rm -rf conftest*
7102 eval "ac_cv_func_$ac_func=no"
7104 rm -f conftest*
7107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7108 echo "$ac_t""yes" 1>&6
7109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7110 cat >> confdefs.h <<EOF
7111 #define $ac_tr_func 1
7114 else
7115 echo "$ac_t""no" 1>&6
7117 done
7124 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
7125 echo "configure:7126: checking for finite declaration" >&5
7126 if test x${glibcpp_cv_func_finite_use+set} != xset; then
7127 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
7128 echo $ac_n "(cached) $ac_c" 1>&6
7129 else
7132 ac_ext=C
7133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7134 ac_cpp='$CXXCPP $CPPFLAGS'
7135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7137 cross_compiling=$ac_cv_prog_cxx_cross
7139 cat > conftest.$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7142 #include <math.h>
7143 #ifdef HAVE_IEEEFP_H
7144 #include <ieeefp.h>
7145 #endif
7147 int main() {
7148 finite(0);
7149 ; return 0; }
7151 if { (eval echo configure:7152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7152 rm -rf conftest*
7153 glibcpp_cv_func_finite_use=yes
7154 else
7155 echo "configure: failed program was:" >&5
7156 cat conftest.$ac_ext >&5
7157 rm -rf conftest*
7158 glibcpp_cv_func_finite_use=no
7160 rm -f conftest*
7161 ac_ext=c
7162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7163 ac_cpp='$CPP $CPPFLAGS'
7164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7166 cross_compiling=$ac_cv_prog_cc_cross
7172 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
7174 if test x$glibcpp_cv_func_finite_use = x"yes"; then
7175 for ac_func in finite
7177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7178 echo "configure:7179: checking for $ac_func" >&5
7179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7180 echo $ac_n "(cached) $ac_c" 1>&6
7181 else
7182 cat > conftest.$ac_ext <<EOF
7183 #line 7184 "configure"
7184 #include "confdefs.h"
7185 /* System header to define __stub macros and hopefully few prototypes,
7186 which can conflict with char $ac_func(); below. */
7187 #include <assert.h>
7188 /* Override any gcc2 internal prototype to avoid an error. */
7189 /* We use char because int might match the return type of a gcc2
7190 builtin and then its argument prototype would still apply. */
7191 char $ac_func();
7193 int main() {
7195 /* The GNU C library defines this for functions which it implements
7196 to always fail with ENOSYS. Some functions are actually named
7197 something starting with __ and the normal name is an alias. */
7198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7199 choke me
7200 #else
7201 $ac_func();
7202 #endif
7204 ; return 0; }
7206 if { (eval echo configure:7207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7207 rm -rf conftest*
7208 eval "ac_cv_func_$ac_func=yes"
7209 else
7210 echo "configure: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7212 rm -rf conftest*
7213 eval "ac_cv_func_$ac_func=no"
7215 rm -f conftest*
7218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7219 echo "$ac_t""yes" 1>&6
7220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7221 cat >> confdefs.h <<EOF
7222 #define $ac_tr_func 1
7225 else
7226 echo "$ac_t""no" 1>&6
7228 done
7230 else
7232 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
7233 echo "configure:7234: checking for _finite declaration" >&5
7234 if test x${glibcpp_cv_func__finite_use+set} != xset; then
7235 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
7236 echo $ac_n "(cached) $ac_c" 1>&6
7237 else
7240 ac_ext=C
7241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7242 ac_cpp='$CXXCPP $CPPFLAGS'
7243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7245 cross_compiling=$ac_cv_prog_cxx_cross
7247 cat > conftest.$ac_ext <<EOF
7248 #line 7249 "configure"
7249 #include "confdefs.h"
7250 #include <math.h>
7251 #ifdef HAVE_IEEEFP_H
7252 #include <ieeefp.h>
7253 #endif
7255 int main() {
7256 _finite(0);
7257 ; return 0; }
7259 if { (eval echo configure:7260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7260 rm -rf conftest*
7261 glibcpp_cv_func__finite_use=yes
7262 else
7263 echo "configure: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7265 rm -rf conftest*
7266 glibcpp_cv_func__finite_use=no
7268 rm -f conftest*
7269 ac_ext=c
7270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7271 ac_cpp='$CPP $CPPFLAGS'
7272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7273 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7274 cross_compiling=$ac_cv_prog_cc_cross
7280 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7282 if test x$glibcpp_cv_func__finite_use = x"yes"; then
7283 for ac_func in _finite
7285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7286 echo "configure:7287: checking for $ac_func" >&5
7287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7288 echo $ac_n "(cached) $ac_c" 1>&6
7289 else
7290 cat > conftest.$ac_ext <<EOF
7291 #line 7292 "configure"
7292 #include "confdefs.h"
7293 /* System header to define __stub macros and hopefully few prototypes,
7294 which can conflict with char $ac_func(); below. */
7295 #include <assert.h>
7296 /* Override any gcc2 internal prototype to avoid an error. */
7297 /* We use char because int might match the return type of a gcc2
7298 builtin and then its argument prototype would still apply. */
7299 char $ac_func();
7301 int main() {
7303 /* The GNU C library defines this for functions which it implements
7304 to always fail with ENOSYS. Some functions are actually named
7305 something starting with __ and the normal name is an alias. */
7306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7307 choke me
7308 #else
7309 $ac_func();
7310 #endif
7312 ; return 0; }
7314 if { (eval echo configure:7315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7315 rm -rf conftest*
7316 eval "ac_cv_func_$ac_func=yes"
7317 else
7318 echo "configure: failed program was:" >&5
7319 cat conftest.$ac_ext >&5
7320 rm -rf conftest*
7321 eval "ac_cv_func_$ac_func=no"
7323 rm -f conftest*
7326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7327 echo "$ac_t""yes" 1>&6
7328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7329 cat >> confdefs.h <<EOF
7330 #define $ac_tr_func 1
7333 else
7334 echo "$ac_t""no" 1>&6
7336 done
7343 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7344 echo "configure:7345: checking for copysign declaration" >&5
7345 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7346 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7347 echo $ac_n "(cached) $ac_c" 1>&6
7348 else
7351 ac_ext=C
7352 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7353 ac_cpp='$CXXCPP $CPPFLAGS'
7354 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7355 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7356 cross_compiling=$ac_cv_prog_cxx_cross
7358 cat > conftest.$ac_ext <<EOF
7359 #line 7360 "configure"
7360 #include "confdefs.h"
7361 #include <math.h>
7362 int main() {
7363 copysign(0, 0);
7364 ; return 0; }
7366 if { (eval echo configure:7367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7367 rm -rf conftest*
7368 glibcpp_cv_func_copysign_use=yes
7369 else
7370 echo "configure: failed program was:" >&5
7371 cat conftest.$ac_ext >&5
7372 rm -rf conftest*
7373 glibcpp_cv_func_copysign_use=no
7375 rm -f conftest*
7376 ac_ext=c
7377 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7378 ac_cpp='$CPP $CPPFLAGS'
7379 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7380 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7381 cross_compiling=$ac_cv_prog_cc_cross
7387 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7389 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7390 for ac_func in copysign
7392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7393 echo "configure:7394: checking for $ac_func" >&5
7394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7395 echo $ac_n "(cached) $ac_c" 1>&6
7396 else
7397 cat > conftest.$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7400 /* System header to define __stub macros and hopefully few prototypes,
7401 which can conflict with char $ac_func(); below. */
7402 #include <assert.h>
7403 /* Override any gcc2 internal prototype to avoid an error. */
7404 /* We use char because int might match the return type of a gcc2
7405 builtin and then its argument prototype would still apply. */
7406 char $ac_func();
7408 int main() {
7410 /* The GNU C library defines this for functions which it implements
7411 to always fail with ENOSYS. Some functions are actually named
7412 something starting with __ and the normal name is an alias. */
7413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7414 choke me
7415 #else
7416 $ac_func();
7417 #endif
7419 ; return 0; }
7421 if { (eval echo configure:7422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7422 rm -rf conftest*
7423 eval "ac_cv_func_$ac_func=yes"
7424 else
7425 echo "configure: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7427 rm -rf conftest*
7428 eval "ac_cv_func_$ac_func=no"
7430 rm -f conftest*
7433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7434 echo "$ac_t""yes" 1>&6
7435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7436 cat >> confdefs.h <<EOF
7437 #define $ac_tr_func 1
7440 else
7441 echo "$ac_t""no" 1>&6
7443 done
7445 else
7447 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7448 echo "configure:7449: checking for _copysign declaration" >&5
7449 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7450 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7451 echo $ac_n "(cached) $ac_c" 1>&6
7452 else
7455 ac_ext=C
7456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7457 ac_cpp='$CXXCPP $CPPFLAGS'
7458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7460 cross_compiling=$ac_cv_prog_cxx_cross
7462 cat > conftest.$ac_ext <<EOF
7463 #line 7464 "configure"
7464 #include "confdefs.h"
7465 #include <math.h>
7466 int main() {
7467 _copysign(0, 0);
7468 ; return 0; }
7470 if { (eval echo configure:7471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7471 rm -rf conftest*
7472 glibcpp_cv_func__copysign_use=yes
7473 else
7474 echo "configure: failed program was:" >&5
7475 cat conftest.$ac_ext >&5
7476 rm -rf conftest*
7477 glibcpp_cv_func__copysign_use=no
7479 rm -f conftest*
7480 ac_ext=c
7481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7482 ac_cpp='$CPP $CPPFLAGS'
7483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7485 cross_compiling=$ac_cv_prog_cc_cross
7491 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7493 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7494 for ac_func in _copysign
7496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7497 echo "configure:7498: checking for $ac_func" >&5
7498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7499 echo $ac_n "(cached) $ac_c" 1>&6
7500 else
7501 cat > conftest.$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7504 /* System header to define __stub macros and hopefully few prototypes,
7505 which can conflict with char $ac_func(); below. */
7506 #include <assert.h>
7507 /* Override any gcc2 internal prototype to avoid an error. */
7508 /* We use char because int might match the return type of a gcc2
7509 builtin and then its argument prototype would still apply. */
7510 char $ac_func();
7512 int main() {
7514 /* The GNU C library defines this for functions which it implements
7515 to always fail with ENOSYS. Some functions are actually named
7516 something starting with __ and the normal name is an alias. */
7517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7518 choke me
7519 #else
7520 $ac_func();
7521 #endif
7523 ; return 0; }
7525 if { (eval echo configure:7526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7526 rm -rf conftest*
7527 eval "ac_cv_func_$ac_func=yes"
7528 else
7529 echo "configure: failed program was:" >&5
7530 cat conftest.$ac_ext >&5
7531 rm -rf conftest*
7532 eval "ac_cv_func_$ac_func=no"
7534 rm -f conftest*
7537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7538 echo "$ac_t""yes" 1>&6
7539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7540 cat >> confdefs.h <<EOF
7541 #define $ac_tr_func 1
7544 else
7545 echo "$ac_t""no" 1>&6
7547 done
7554 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7555 echo "configure:7556: checking for sincos declaration" >&5
7556 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7557 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7558 echo $ac_n "(cached) $ac_c" 1>&6
7559 else
7562 ac_ext=C
7563 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7564 ac_cpp='$CXXCPP $CPPFLAGS'
7565 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7566 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7567 cross_compiling=$ac_cv_prog_cxx_cross
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7572 #include <math.h>
7573 int main() {
7574 sincos(0, 0, 0);
7575 ; return 0; }
7577 if { (eval echo configure:7578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7578 rm -rf conftest*
7579 glibcpp_cv_func_sincos_use=yes
7580 else
7581 echo "configure: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7583 rm -rf conftest*
7584 glibcpp_cv_func_sincos_use=no
7586 rm -f conftest*
7587 ac_ext=c
7588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7589 ac_cpp='$CPP $CPPFLAGS'
7590 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7591 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7592 cross_compiling=$ac_cv_prog_cc_cross
7598 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7600 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7601 for ac_func in sincos
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 done
7656 else
7658 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7659 echo "configure:7660: checking for _sincos declaration" >&5
7660 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7661 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7662 echo $ac_n "(cached) $ac_c" 1>&6
7663 else
7666 ac_ext=C
7667 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7668 ac_cpp='$CXXCPP $CPPFLAGS'
7669 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7670 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7671 cross_compiling=$ac_cv_prog_cxx_cross
7673 cat > conftest.$ac_ext <<EOF
7674 #line 7675 "configure"
7675 #include "confdefs.h"
7676 #include <math.h>
7677 int main() {
7678 _sincos(0, 0, 0);
7679 ; return 0; }
7681 if { (eval echo configure:7682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7682 rm -rf conftest*
7683 glibcpp_cv_func__sincos_use=yes
7684 else
7685 echo "configure: failed program was:" >&5
7686 cat conftest.$ac_ext >&5
7687 rm -rf conftest*
7688 glibcpp_cv_func__sincos_use=no
7690 rm -f conftest*
7691 ac_ext=c
7692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7693 ac_cpp='$CPP $CPPFLAGS'
7694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7696 cross_compiling=$ac_cv_prog_cc_cross
7702 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7704 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7705 for ac_func in _sincos
7707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7708 echo "configure:7709: checking for $ac_func" >&5
7709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7710 echo $ac_n "(cached) $ac_c" 1>&6
7711 else
7712 cat > conftest.$ac_ext <<EOF
7713 #line 7714 "configure"
7714 #include "confdefs.h"
7715 /* System header to define __stub macros and hopefully few prototypes,
7716 which can conflict with char $ac_func(); below. */
7717 #include <assert.h>
7718 /* Override any gcc2 internal prototype to avoid an error. */
7719 /* We use char because int might match the return type of a gcc2
7720 builtin and then its argument prototype would still apply. */
7721 char $ac_func();
7723 int main() {
7725 /* The GNU C library defines this for functions which it implements
7726 to always fail with ENOSYS. Some functions are actually named
7727 something starting with __ and the normal name is an alias. */
7728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7729 choke me
7730 #else
7731 $ac_func();
7732 #endif
7734 ; return 0; }
7736 if { (eval echo configure:7737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7737 rm -rf conftest*
7738 eval "ac_cv_func_$ac_func=yes"
7739 else
7740 echo "configure: failed program was:" >&5
7741 cat conftest.$ac_ext >&5
7742 rm -rf conftest*
7743 eval "ac_cv_func_$ac_func=no"
7745 rm -f conftest*
7748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7749 echo "$ac_t""yes" 1>&6
7750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7751 cat >> confdefs.h <<EOF
7752 #define $ac_tr_func 1
7755 else
7756 echo "$ac_t""no" 1>&6
7758 done
7765 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7766 echo "configure:7767: checking for fpclass declaration" >&5
7767 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7768 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7769 echo $ac_n "(cached) $ac_c" 1>&6
7770 else
7773 ac_ext=C
7774 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7775 ac_cpp='$CXXCPP $CPPFLAGS'
7776 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7777 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7778 cross_compiling=$ac_cv_prog_cxx_cross
7780 cat > conftest.$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7783 #include <math.h>
7784 #ifdef HAVE_IEEEFP_H
7785 #include <ieeefp.h>
7786 #endif
7788 int main() {
7789 fpclass(0);
7790 ; return 0; }
7792 if { (eval echo configure:7793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7793 rm -rf conftest*
7794 glibcpp_cv_func_fpclass_use=yes
7795 else
7796 echo "configure: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7798 rm -rf conftest*
7799 glibcpp_cv_func_fpclass_use=no
7801 rm -f conftest*
7802 ac_ext=c
7803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7807 cross_compiling=$ac_cv_prog_cc_cross
7813 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7815 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7816 for ac_func in fpclass
7818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7819 echo "configure:7820: checking for $ac_func" >&5
7820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
7822 else
7823 cat > conftest.$ac_ext <<EOF
7824 #line 7825 "configure"
7825 #include "confdefs.h"
7826 /* System header to define __stub macros and hopefully few prototypes,
7827 which can conflict with char $ac_func(); below. */
7828 #include <assert.h>
7829 /* Override any gcc2 internal prototype to avoid an error. */
7830 /* We use char because int might match the return type of a gcc2
7831 builtin and then its argument prototype would still apply. */
7832 char $ac_func();
7834 int main() {
7836 /* The GNU C library defines this for functions which it implements
7837 to always fail with ENOSYS. Some functions are actually named
7838 something starting with __ and the normal name is an alias. */
7839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7840 choke me
7841 #else
7842 $ac_func();
7843 #endif
7845 ; return 0; }
7847 if { (eval echo configure:7848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7848 rm -rf conftest*
7849 eval "ac_cv_func_$ac_func=yes"
7850 else
7851 echo "configure: failed program was:" >&5
7852 cat conftest.$ac_ext >&5
7853 rm -rf conftest*
7854 eval "ac_cv_func_$ac_func=no"
7856 rm -f conftest*
7859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7860 echo "$ac_t""yes" 1>&6
7861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7862 cat >> confdefs.h <<EOF
7863 #define $ac_tr_func 1
7866 else
7867 echo "$ac_t""no" 1>&6
7869 done
7871 else
7873 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7874 echo "configure:7875: checking for _fpclass declaration" >&5
7875 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7876 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7877 echo $ac_n "(cached) $ac_c" 1>&6
7878 else
7881 ac_ext=C
7882 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7883 ac_cpp='$CXXCPP $CPPFLAGS'
7884 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7885 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7886 cross_compiling=$ac_cv_prog_cxx_cross
7888 cat > conftest.$ac_ext <<EOF
7889 #line 7890 "configure"
7890 #include "confdefs.h"
7891 #include <math.h>
7892 #ifdef HAVE_IEEEFP_H
7893 #include <ieeefp.h>
7894 #endif
7896 int main() {
7897 _fpclass(0);
7898 ; return 0; }
7900 if { (eval echo configure:7901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7901 rm -rf conftest*
7902 glibcpp_cv_func__fpclass_use=yes
7903 else
7904 echo "configure: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7906 rm -rf conftest*
7907 glibcpp_cv_func__fpclass_use=no
7909 rm -f conftest*
7910 ac_ext=c
7911 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7912 ac_cpp='$CPP $CPPFLAGS'
7913 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7914 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7915 cross_compiling=$ac_cv_prog_cc_cross
7921 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7923 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7924 for ac_func in _fpclass
7926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7927 echo "configure:7928: checking for $ac_func" >&5
7928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7929 echo $ac_n "(cached) $ac_c" 1>&6
7930 else
7931 cat > conftest.$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7934 /* System header to define __stub macros and hopefully few prototypes,
7935 which can conflict with char $ac_func(); below. */
7936 #include <assert.h>
7937 /* Override any gcc2 internal prototype to avoid an error. */
7938 /* We use char because int might match the return type of a gcc2
7939 builtin and then its argument prototype would still apply. */
7940 char $ac_func();
7942 int main() {
7944 /* The GNU C library defines this for functions which it implements
7945 to always fail with ENOSYS. Some functions are actually named
7946 something starting with __ and the normal name is an alias. */
7947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7948 choke me
7949 #else
7950 $ac_func();
7951 #endif
7953 ; return 0; }
7955 if { (eval echo configure:7956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7956 rm -rf conftest*
7957 eval "ac_cv_func_$ac_func=yes"
7958 else
7959 echo "configure: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7961 rm -rf conftest*
7962 eval "ac_cv_func_$ac_func=no"
7964 rm -f conftest*
7967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7968 echo "$ac_t""yes" 1>&6
7969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7970 cat >> confdefs.h <<EOF
7971 #define $ac_tr_func 1
7974 else
7975 echo "$ac_t""no" 1>&6
7977 done
7984 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7985 echo "configure:7986: checking for qfpclass declaration" >&5
7986 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7987 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7988 echo $ac_n "(cached) $ac_c" 1>&6
7989 else
7992 ac_ext=C
7993 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7994 ac_cpp='$CXXCPP $CPPFLAGS'
7995 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7996 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7997 cross_compiling=$ac_cv_prog_cxx_cross
7999 cat > conftest.$ac_ext <<EOF
8000 #line 8001 "configure"
8001 #include "confdefs.h"
8002 #include <math.h>
8003 #ifdef HAVE_IEEEFP_H
8004 #include <ieeefp.h>
8005 #endif
8007 int main() {
8008 qfpclass(0);
8009 ; return 0; }
8011 if { (eval echo configure:8012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8012 rm -rf conftest*
8013 glibcpp_cv_func_qfpclass_use=yes
8014 else
8015 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8017 rm -rf conftest*
8018 glibcpp_cv_func_qfpclass_use=no
8020 rm -f conftest*
8021 ac_ext=c
8022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8023 ac_cpp='$CPP $CPPFLAGS'
8024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8026 cross_compiling=$ac_cv_prog_cc_cross
8032 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
8034 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
8035 for ac_func in qfpclass
8037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8038 echo "configure:8039: checking for $ac_func" >&5
8039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8040 echo $ac_n "(cached) $ac_c" 1>&6
8041 else
8042 cat > conftest.$ac_ext <<EOF
8043 #line 8044 "configure"
8044 #include "confdefs.h"
8045 /* System header to define __stub macros and hopefully few prototypes,
8046 which can conflict with char $ac_func(); below. */
8047 #include <assert.h>
8048 /* Override any gcc2 internal prototype to avoid an error. */
8049 /* We use char because int might match the return type of a gcc2
8050 builtin and then its argument prototype would still apply. */
8051 char $ac_func();
8053 int main() {
8055 /* The GNU C library defines this for functions which it implements
8056 to always fail with ENOSYS. Some functions are actually named
8057 something starting with __ and the normal name is an alias. */
8058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8059 choke me
8060 #else
8061 $ac_func();
8062 #endif
8064 ; return 0; }
8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8067 rm -rf conftest*
8068 eval "ac_cv_func_$ac_func=yes"
8069 else
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8072 rm -rf conftest*
8073 eval "ac_cv_func_$ac_func=no"
8075 rm -f conftest*
8078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8079 echo "$ac_t""yes" 1>&6
8080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8081 cat >> confdefs.h <<EOF
8082 #define $ac_tr_func 1
8085 else
8086 echo "$ac_t""no" 1>&6
8088 done
8090 else
8092 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
8093 echo "configure:8094: checking for _qfpclass declaration" >&5
8094 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
8095 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
8096 echo $ac_n "(cached) $ac_c" 1>&6
8097 else
8100 ac_ext=C
8101 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8102 ac_cpp='$CXXCPP $CPPFLAGS'
8103 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8104 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8105 cross_compiling=$ac_cv_prog_cxx_cross
8107 cat > conftest.$ac_ext <<EOF
8108 #line 8109 "configure"
8109 #include "confdefs.h"
8110 #include <math.h>
8111 #ifdef HAVE_IEEEFP_H
8112 #include <ieeefp.h>
8113 #endif
8115 int main() {
8116 _qfpclass(0);
8117 ; return 0; }
8119 if { (eval echo configure:8120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8120 rm -rf conftest*
8121 glibcpp_cv_func__qfpclass_use=yes
8122 else
8123 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8125 rm -rf conftest*
8126 glibcpp_cv_func__qfpclass_use=no
8128 rm -f conftest*
8129 ac_ext=c
8130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8131 ac_cpp='$CPP $CPPFLAGS'
8132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8133 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8134 cross_compiling=$ac_cv_prog_cc_cross
8140 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
8142 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
8143 for ac_func in _qfpclass
8145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8146 echo "configure:8147: checking for $ac_func" >&5
8147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8148 echo $ac_n "(cached) $ac_c" 1>&6
8149 else
8150 cat > conftest.$ac_ext <<EOF
8151 #line 8152 "configure"
8152 #include "confdefs.h"
8153 /* System header to define __stub macros and hopefully few prototypes,
8154 which can conflict with char $ac_func(); below. */
8155 #include <assert.h>
8156 /* Override any gcc2 internal prototype to avoid an error. */
8157 /* We use char because int might match the return type of a gcc2
8158 builtin and then its argument prototype would still apply. */
8159 char $ac_func();
8161 int main() {
8163 /* The GNU C library defines this for functions which it implements
8164 to always fail with ENOSYS. Some functions are actually named
8165 something starting with __ and the normal name is an alias. */
8166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8167 choke me
8168 #else
8169 $ac_func();
8170 #endif
8172 ; return 0; }
8174 if { (eval echo configure:8175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8175 rm -rf conftest*
8176 eval "ac_cv_func_$ac_func=yes"
8177 else
8178 echo "configure: failed program was:" >&5
8179 cat conftest.$ac_ext >&5
8180 rm -rf conftest*
8181 eval "ac_cv_func_$ac_func=no"
8183 rm -f conftest*
8186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8187 echo "$ac_t""yes" 1>&6
8188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8189 cat >> confdefs.h <<EOF
8190 #define $ac_tr_func 1
8193 else
8194 echo "$ac_t""no" 1>&6
8196 done
8203 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
8204 echo "configure:8205: checking for float trig functions" >&5
8205 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
8206 echo $ac_n "(cached) $ac_c" 1>&6
8207 else
8210 ac_ext=C
8211 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8212 ac_cpp='$CXXCPP $CPPFLAGS'
8213 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8214 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8215 cross_compiling=$ac_cv_prog_cxx_cross
8217 cat > conftest.$ac_ext <<EOF
8218 #line 8219 "configure"
8219 #include "confdefs.h"
8220 #include <math.h>
8221 int main() {
8222 `for x in acosf asinf atanf \
8223 cosf sinf tanf \
8224 coshf sinhf tanhf; do echo "$x (0);"; done`
8225 ; return 0; }
8227 if { (eval echo configure:8228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8228 rm -rf conftest*
8229 glibcpp_cv_func_float_trig_use=yes
8230 else
8231 echo "configure: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8233 rm -rf conftest*
8234 glibcpp_cv_func_float_trig_use=no
8236 rm -f conftest*
8237 ac_ext=c
8238 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8239 ac_cpp='$CPP $CPPFLAGS'
8240 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8241 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8242 cross_compiling=$ac_cv_prog_cc_cross
8246 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
8247 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
8248 for ac_func in acosf asinf atanf \
8249 cosf sinf tanf \
8250 coshf sinhf tanhf
8252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8253 echo "configure:8254: checking for $ac_func" >&5
8254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8255 echo $ac_n "(cached) $ac_c" 1>&6
8256 else
8257 cat > conftest.$ac_ext <<EOF
8258 #line 8259 "configure"
8259 #include "confdefs.h"
8260 /* System header to define __stub macros and hopefully few prototypes,
8261 which can conflict with char $ac_func(); below. */
8262 #include <assert.h>
8263 /* Override any gcc2 internal prototype to avoid an error. */
8264 /* We use char because int might match the return type of a gcc2
8265 builtin and then its argument prototype would still apply. */
8266 char $ac_func();
8268 int main() {
8270 /* The GNU C library defines this for functions which it implements
8271 to always fail with ENOSYS. Some functions are actually named
8272 something starting with __ and the normal name is an alias. */
8273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8274 choke me
8275 #else
8276 $ac_func();
8277 #endif
8279 ; return 0; }
8281 if { (eval echo configure:8282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8282 rm -rf conftest*
8283 eval "ac_cv_func_$ac_func=yes"
8284 else
8285 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8287 rm -rf conftest*
8288 eval "ac_cv_func_$ac_func=no"
8290 rm -f conftest*
8293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8294 echo "$ac_t""yes" 1>&6
8295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8296 cat >> confdefs.h <<EOF
8297 #define $ac_tr_func 1
8300 else
8301 echo "$ac_t""no" 1>&6
8303 done
8308 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
8309 echo "configure:8310: checking for float round functions" >&5
8310 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8312 else
8315 ac_ext=C
8316 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8317 ac_cpp='$CXXCPP $CPPFLAGS'
8318 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8319 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8320 cross_compiling=$ac_cv_prog_cxx_cross
8322 cat > conftest.$ac_ext <<EOF
8323 #line 8324 "configure"
8324 #include "confdefs.h"
8325 #include <math.h>
8326 int main() {
8327 `for x in ceilf floorf; do echo "$x (0);"; done`
8328 ; return 0; }
8330 if { (eval echo configure:8331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8331 rm -rf conftest*
8332 glibcpp_cv_func_float_round_use=yes
8333 else
8334 echo "configure: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8336 rm -rf conftest*
8337 glibcpp_cv_func_float_round_use=no
8339 rm -f conftest*
8340 ac_ext=c
8341 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8342 ac_cpp='$CPP $CPPFLAGS'
8343 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8344 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8345 cross_compiling=$ac_cv_prog_cc_cross
8349 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8350 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8351 for ac_func in ceilf floorf
8353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8354 echo "configure:8355: checking for $ac_func" >&5
8355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8356 echo $ac_n "(cached) $ac_c" 1>&6
8357 else
8358 cat > conftest.$ac_ext <<EOF
8359 #line 8360 "configure"
8360 #include "confdefs.h"
8361 /* System header to define __stub macros and hopefully few prototypes,
8362 which can conflict with char $ac_func(); below. */
8363 #include <assert.h>
8364 /* Override any gcc2 internal prototype to avoid an error. */
8365 /* We use char because int might match the return type of a gcc2
8366 builtin and then its argument prototype would still apply. */
8367 char $ac_func();
8369 int main() {
8371 /* The GNU C library defines this for functions which it implements
8372 to always fail with ENOSYS. Some functions are actually named
8373 something starting with __ and the normal name is an alias. */
8374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8375 choke me
8376 #else
8377 $ac_func();
8378 #endif
8380 ; return 0; }
8382 if { (eval echo configure:8383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8383 rm -rf conftest*
8384 eval "ac_cv_func_$ac_func=yes"
8385 else
8386 echo "configure: failed program was:" >&5
8387 cat conftest.$ac_ext >&5
8388 rm -rf conftest*
8389 eval "ac_cv_func_$ac_func=no"
8391 rm -f conftest*
8394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8395 echo "$ac_t""yes" 1>&6
8396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8397 cat >> confdefs.h <<EOF
8398 #define $ac_tr_func 1
8401 else
8402 echo "$ac_t""no" 1>&6
8404 done
8410 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8411 echo "configure:8412: checking for isnanf declaration" >&5
8412 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8413 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8414 echo $ac_n "(cached) $ac_c" 1>&6
8415 else
8418 ac_ext=C
8419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8420 ac_cpp='$CXXCPP $CPPFLAGS'
8421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8423 cross_compiling=$ac_cv_prog_cxx_cross
8425 cat > conftest.$ac_ext <<EOF
8426 #line 8427 "configure"
8427 #include "confdefs.h"
8428 #include <math.h>
8429 #ifdef HAVE_IEEEFP_H
8430 #include <ieeefp.h>
8431 #endif
8433 int main() {
8434 isnanf(0);
8435 ; return 0; }
8437 if { (eval echo configure:8438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8438 rm -rf conftest*
8439 glibcpp_cv_func_isnanf_use=yes
8440 else
8441 echo "configure: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8443 rm -rf conftest*
8444 glibcpp_cv_func_isnanf_use=no
8446 rm -f conftest*
8447 ac_ext=c
8448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8449 ac_cpp='$CPP $CPPFLAGS'
8450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8452 cross_compiling=$ac_cv_prog_cc_cross
8458 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8460 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8461 for ac_func in isnanf
8463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8464 echo "configure:8465: checking for $ac_func" >&5
8465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8467 else
8468 cat > conftest.$ac_ext <<EOF
8469 #line 8470 "configure"
8470 #include "confdefs.h"
8471 /* System header to define __stub macros and hopefully few prototypes,
8472 which can conflict with char $ac_func(); below. */
8473 #include <assert.h>
8474 /* Override any gcc2 internal prototype to avoid an error. */
8475 /* We use char because int might match the return type of a gcc2
8476 builtin and then its argument prototype would still apply. */
8477 char $ac_func();
8479 int main() {
8481 /* The GNU C library defines this for functions which it implements
8482 to always fail with ENOSYS. Some functions are actually named
8483 something starting with __ and the normal name is an alias. */
8484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8485 choke me
8486 #else
8487 $ac_func();
8488 #endif
8490 ; return 0; }
8492 if { (eval echo configure:8493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8493 rm -rf conftest*
8494 eval "ac_cv_func_$ac_func=yes"
8495 else
8496 echo "configure: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8498 rm -rf conftest*
8499 eval "ac_cv_func_$ac_func=no"
8501 rm -f conftest*
8504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8505 echo "$ac_t""yes" 1>&6
8506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8507 cat >> confdefs.h <<EOF
8508 #define $ac_tr_func 1
8511 else
8512 echo "$ac_t""no" 1>&6
8514 done
8516 else
8518 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8519 echo "configure:8520: checking for _isnanf declaration" >&5
8520 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8521 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8523 else
8526 ac_ext=C
8527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8528 ac_cpp='$CXXCPP $CPPFLAGS'
8529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8531 cross_compiling=$ac_cv_prog_cxx_cross
8533 cat > conftest.$ac_ext <<EOF
8534 #line 8535 "configure"
8535 #include "confdefs.h"
8536 #include <math.h>
8537 #ifdef HAVE_IEEEFP_H
8538 #include <ieeefp.h>
8539 #endif
8541 int main() {
8542 _isnanf(0);
8543 ; return 0; }
8545 if { (eval echo configure:8546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8546 rm -rf conftest*
8547 glibcpp_cv_func__isnanf_use=yes
8548 else
8549 echo "configure: failed program was:" >&5
8550 cat conftest.$ac_ext >&5
8551 rm -rf conftest*
8552 glibcpp_cv_func__isnanf_use=no
8554 rm -f conftest*
8555 ac_ext=c
8556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8557 ac_cpp='$CPP $CPPFLAGS'
8558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8560 cross_compiling=$ac_cv_prog_cc_cross
8566 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8568 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8569 for ac_func in _isnanf
8571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8572 echo "configure:8573: checking for $ac_func" >&5
8573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8574 echo $ac_n "(cached) $ac_c" 1>&6
8575 else
8576 cat > conftest.$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8579 /* System header to define __stub macros and hopefully few prototypes,
8580 which can conflict with char $ac_func(); below. */
8581 #include <assert.h>
8582 /* Override any gcc2 internal prototype to avoid an error. */
8583 /* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */
8585 char $ac_func();
8587 int main() {
8589 /* The GNU C library defines this for functions which it implements
8590 to always fail with ENOSYS. Some functions are actually named
8591 something starting with __ and the normal name is an alias. */
8592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8593 choke me
8594 #else
8595 $ac_func();
8596 #endif
8598 ; return 0; }
8600 if { (eval echo configure:8601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8601 rm -rf conftest*
8602 eval "ac_cv_func_$ac_func=yes"
8603 else
8604 echo "configure: failed program was:" >&5
8605 cat conftest.$ac_ext >&5
8606 rm -rf conftest*
8607 eval "ac_cv_func_$ac_func=no"
8609 rm -f conftest*
8612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6
8614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8615 cat >> confdefs.h <<EOF
8616 #define $ac_tr_func 1
8619 else
8620 echo "$ac_t""no" 1>&6
8622 done
8629 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8630 echo "configure:8631: checking for isinff declaration" >&5
8631 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8632 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8633 echo $ac_n "(cached) $ac_c" 1>&6
8634 else
8637 ac_ext=C
8638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8639 ac_cpp='$CXXCPP $CPPFLAGS'
8640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8642 cross_compiling=$ac_cv_prog_cxx_cross
8644 cat > conftest.$ac_ext <<EOF
8645 #line 8646 "configure"
8646 #include "confdefs.h"
8647 #include <math.h>
8648 #ifdef HAVE_IEEEFP_H
8649 #include <ieeefp.h>
8650 #endif
8652 int main() {
8653 isinff(0);
8654 ; return 0; }
8656 if { (eval echo configure:8657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8657 rm -rf conftest*
8658 glibcpp_cv_func_isinff_use=yes
8659 else
8660 echo "configure: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8662 rm -rf conftest*
8663 glibcpp_cv_func_isinff_use=no
8665 rm -f conftest*
8666 ac_ext=c
8667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8668 ac_cpp='$CPP $CPPFLAGS'
8669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8671 cross_compiling=$ac_cv_prog_cc_cross
8677 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8679 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8680 for ac_func in isinff
8682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8683 echo "configure:8684: checking for $ac_func" >&5
8684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8685 echo $ac_n "(cached) $ac_c" 1>&6
8686 else
8687 cat > conftest.$ac_ext <<EOF
8688 #line 8689 "configure"
8689 #include "confdefs.h"
8690 /* System header to define __stub macros and hopefully few prototypes,
8691 which can conflict with char $ac_func(); below. */
8692 #include <assert.h>
8693 /* Override any gcc2 internal prototype to avoid an error. */
8694 /* We use char because int might match the return type of a gcc2
8695 builtin and then its argument prototype would still apply. */
8696 char $ac_func();
8698 int main() {
8700 /* The GNU C library defines this for functions which it implements
8701 to always fail with ENOSYS. Some functions are actually named
8702 something starting with __ and the normal name is an alias. */
8703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8704 choke me
8705 #else
8706 $ac_func();
8707 #endif
8709 ; return 0; }
8711 if { (eval echo configure:8712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8712 rm -rf conftest*
8713 eval "ac_cv_func_$ac_func=yes"
8714 else
8715 echo "configure: failed program was:" >&5
8716 cat conftest.$ac_ext >&5
8717 rm -rf conftest*
8718 eval "ac_cv_func_$ac_func=no"
8720 rm -f conftest*
8723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8724 echo "$ac_t""yes" 1>&6
8725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8726 cat >> confdefs.h <<EOF
8727 #define $ac_tr_func 1
8730 else
8731 echo "$ac_t""no" 1>&6
8733 done
8735 else
8737 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8738 echo "configure:8739: checking for _isinff declaration" >&5
8739 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8740 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8741 echo $ac_n "(cached) $ac_c" 1>&6
8742 else
8745 ac_ext=C
8746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8747 ac_cpp='$CXXCPP $CPPFLAGS'
8748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8750 cross_compiling=$ac_cv_prog_cxx_cross
8752 cat > conftest.$ac_ext <<EOF
8753 #line 8754 "configure"
8754 #include "confdefs.h"
8755 #include <math.h>
8756 #ifdef HAVE_IEEEFP_H
8757 #include <ieeefp.h>
8758 #endif
8760 int main() {
8761 _isinff(0);
8762 ; return 0; }
8764 if { (eval echo configure:8765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8765 rm -rf conftest*
8766 glibcpp_cv_func__isinff_use=yes
8767 else
8768 echo "configure: failed program was:" >&5
8769 cat conftest.$ac_ext >&5
8770 rm -rf conftest*
8771 glibcpp_cv_func__isinff_use=no
8773 rm -f conftest*
8774 ac_ext=c
8775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8776 ac_cpp='$CPP $CPPFLAGS'
8777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8779 cross_compiling=$ac_cv_prog_cc_cross
8785 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8787 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8788 for ac_func in _isinff
8790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8791 echo "configure:8792: checking for $ac_func" >&5
8792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8793 echo $ac_n "(cached) $ac_c" 1>&6
8794 else
8795 cat > conftest.$ac_ext <<EOF
8796 #line 8797 "configure"
8797 #include "confdefs.h"
8798 /* System header to define __stub macros and hopefully few prototypes,
8799 which can conflict with char $ac_func(); below. */
8800 #include <assert.h>
8801 /* Override any gcc2 internal prototype to avoid an error. */
8802 /* We use char because int might match the return type of a gcc2
8803 builtin and then its argument prototype would still apply. */
8804 char $ac_func();
8806 int main() {
8808 /* The GNU C library defines this for functions which it implements
8809 to always fail with ENOSYS. Some functions are actually named
8810 something starting with __ and the normal name is an alias. */
8811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8812 choke me
8813 #else
8814 $ac_func();
8815 #endif
8817 ; return 0; }
8819 if { (eval echo configure:8820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8820 rm -rf conftest*
8821 eval "ac_cv_func_$ac_func=yes"
8822 else
8823 echo "configure: failed program was:" >&5
8824 cat conftest.$ac_ext >&5
8825 rm -rf conftest*
8826 eval "ac_cv_func_$ac_func=no"
8828 rm -f conftest*
8831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8832 echo "$ac_t""yes" 1>&6
8833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8834 cat >> confdefs.h <<EOF
8835 #define $ac_tr_func 1
8838 else
8839 echo "$ac_t""no" 1>&6
8841 done
8848 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8849 echo "configure:8850: checking for fabsf declaration" >&5
8850 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8851 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8852 echo $ac_n "(cached) $ac_c" 1>&6
8853 else
8856 ac_ext=C
8857 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8858 ac_cpp='$CXXCPP $CPPFLAGS'
8859 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8860 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8861 cross_compiling=$ac_cv_prog_cxx_cross
8863 cat > conftest.$ac_ext <<EOF
8864 #line 8865 "configure"
8865 #include "confdefs.h"
8866 #include <math.h>
8867 #ifdef HAVE_IEEEFP_H
8868 #include <ieeefp.h>
8869 #endif
8871 int main() {
8872 fabsf(0);
8873 ; return 0; }
8875 if { (eval echo configure:8876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8876 rm -rf conftest*
8877 glibcpp_cv_func_fabsf_use=yes
8878 else
8879 echo "configure: failed program was:" >&5
8880 cat conftest.$ac_ext >&5
8881 rm -rf conftest*
8882 glibcpp_cv_func_fabsf_use=no
8884 rm -f conftest*
8885 ac_ext=c
8886 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8887 ac_cpp='$CPP $CPPFLAGS'
8888 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8889 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8890 cross_compiling=$ac_cv_prog_cc_cross
8896 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8898 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8899 for ac_func in fabsf
8901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8902 echo "configure:8903: checking for $ac_func" >&5
8903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
8905 else
8906 cat > conftest.$ac_ext <<EOF
8907 #line 8908 "configure"
8908 #include "confdefs.h"
8909 /* System header to define __stub macros and hopefully few prototypes,
8910 which can conflict with char $ac_func(); below. */
8911 #include <assert.h>
8912 /* Override any gcc2 internal prototype to avoid an error. */
8913 /* We use char because int might match the return type of a gcc2
8914 builtin and then its argument prototype would still apply. */
8915 char $ac_func();
8917 int main() {
8919 /* The GNU C library defines this for functions which it implements
8920 to always fail with ENOSYS. Some functions are actually named
8921 something starting with __ and the normal name is an alias. */
8922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8923 choke me
8924 #else
8925 $ac_func();
8926 #endif
8928 ; return 0; }
8930 if { (eval echo configure:8931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8931 rm -rf conftest*
8932 eval "ac_cv_func_$ac_func=yes"
8933 else
8934 echo "configure: failed program was:" >&5
8935 cat conftest.$ac_ext >&5
8936 rm -rf conftest*
8937 eval "ac_cv_func_$ac_func=no"
8939 rm -f conftest*
8942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8943 echo "$ac_t""yes" 1>&6
8944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8945 cat >> confdefs.h <<EOF
8946 #define $ac_tr_func 1
8949 else
8950 echo "$ac_t""no" 1>&6
8952 done
8954 else
8956 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8957 echo "configure:8958: checking for _fabsf declaration" >&5
8958 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8959 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8960 echo $ac_n "(cached) $ac_c" 1>&6
8961 else
8964 ac_ext=C
8965 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8966 ac_cpp='$CXXCPP $CPPFLAGS'
8967 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8968 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8969 cross_compiling=$ac_cv_prog_cxx_cross
8971 cat > conftest.$ac_ext <<EOF
8972 #line 8973 "configure"
8973 #include "confdefs.h"
8974 #include <math.h>
8975 #ifdef HAVE_IEEEFP_H
8976 #include <ieeefp.h>
8977 #endif
8979 int main() {
8980 _fabsf(0);
8981 ; return 0; }
8983 if { (eval echo configure:8984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8984 rm -rf conftest*
8985 glibcpp_cv_func__fabsf_use=yes
8986 else
8987 echo "configure: failed program was:" >&5
8988 cat conftest.$ac_ext >&5
8989 rm -rf conftest*
8990 glibcpp_cv_func__fabsf_use=no
8992 rm -f conftest*
8993 ac_ext=c
8994 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8995 ac_cpp='$CPP $CPPFLAGS'
8996 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8997 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8998 cross_compiling=$ac_cv_prog_cc_cross
9004 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
9006 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
9007 for ac_func in _fabsf
9009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9010 echo "configure:9011: checking for $ac_func" >&5
9011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9012 echo $ac_n "(cached) $ac_c" 1>&6
9013 else
9014 cat > conftest.$ac_ext <<EOF
9015 #line 9016 "configure"
9016 #include "confdefs.h"
9017 /* System header to define __stub macros and hopefully few prototypes,
9018 which can conflict with char $ac_func(); below. */
9019 #include <assert.h>
9020 /* Override any gcc2 internal prototype to avoid an error. */
9021 /* We use char because int might match the return type of a gcc2
9022 builtin and then its argument prototype would still apply. */
9023 char $ac_func();
9025 int main() {
9027 /* The GNU C library defines this for functions which it implements
9028 to always fail with ENOSYS. Some functions are actually named
9029 something starting with __ and the normal name is an alias. */
9030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9031 choke me
9032 #else
9033 $ac_func();
9034 #endif
9036 ; return 0; }
9038 if { (eval echo configure:9039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9039 rm -rf conftest*
9040 eval "ac_cv_func_$ac_func=yes"
9041 else
9042 echo "configure: failed program was:" >&5
9043 cat conftest.$ac_ext >&5
9044 rm -rf conftest*
9045 eval "ac_cv_func_$ac_func=no"
9047 rm -f conftest*
9050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9051 echo "$ac_t""yes" 1>&6
9052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9053 cat >> confdefs.h <<EOF
9054 #define $ac_tr_func 1
9057 else
9058 echo "$ac_t""no" 1>&6
9060 done
9067 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
9068 echo "configure:9069: checking for fmodf declaration" >&5
9069 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
9070 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
9071 echo $ac_n "(cached) $ac_c" 1>&6
9072 else
9075 ac_ext=C
9076 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9077 ac_cpp='$CXXCPP $CPPFLAGS'
9078 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9079 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9080 cross_compiling=$ac_cv_prog_cxx_cross
9082 cat > conftest.$ac_ext <<EOF
9083 #line 9084 "configure"
9084 #include "confdefs.h"
9085 #include <math.h>
9086 int main() {
9087 fmodf(0, 0);
9088 ; return 0; }
9090 if { (eval echo configure:9091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9091 rm -rf conftest*
9092 glibcpp_cv_func_fmodf_use=yes
9093 else
9094 echo "configure: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9096 rm -rf conftest*
9097 glibcpp_cv_func_fmodf_use=no
9099 rm -f conftest*
9100 ac_ext=c
9101 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9102 ac_cpp='$CPP $CPPFLAGS'
9103 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9104 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9105 cross_compiling=$ac_cv_prog_cc_cross
9111 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
9113 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
9114 for ac_func in fmodf
9116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9117 echo "configure:9118: checking for $ac_func" >&5
9118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9119 echo $ac_n "(cached) $ac_c" 1>&6
9120 else
9121 cat > conftest.$ac_ext <<EOF
9122 #line 9123 "configure"
9123 #include "confdefs.h"
9124 /* System header to define __stub macros and hopefully few prototypes,
9125 which can conflict with char $ac_func(); below. */
9126 #include <assert.h>
9127 /* Override any gcc2 internal prototype to avoid an error. */
9128 /* We use char because int might match the return type of a gcc2
9129 builtin and then its argument prototype would still apply. */
9130 char $ac_func();
9132 int main() {
9134 /* The GNU C library defines this for functions which it implements
9135 to always fail with ENOSYS. Some functions are actually named
9136 something starting with __ and the normal name is an alias. */
9137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9138 choke me
9139 #else
9140 $ac_func();
9141 #endif
9143 ; return 0; }
9145 if { (eval echo configure:9146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9146 rm -rf conftest*
9147 eval "ac_cv_func_$ac_func=yes"
9148 else
9149 echo "configure: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9151 rm -rf conftest*
9152 eval "ac_cv_func_$ac_func=no"
9154 rm -f conftest*
9157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9158 echo "$ac_t""yes" 1>&6
9159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9160 cat >> confdefs.h <<EOF
9161 #define $ac_tr_func 1
9164 else
9165 echo "$ac_t""no" 1>&6
9167 done
9169 else
9171 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
9172 echo "configure:9173: checking for _fmodf declaration" >&5
9173 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
9174 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9176 else
9179 ac_ext=C
9180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9181 ac_cpp='$CXXCPP $CPPFLAGS'
9182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9184 cross_compiling=$ac_cv_prog_cxx_cross
9186 cat > conftest.$ac_ext <<EOF
9187 #line 9188 "configure"
9188 #include "confdefs.h"
9189 #include <math.h>
9190 int main() {
9191 _fmodf(0, 0);
9192 ; return 0; }
9194 if { (eval echo configure:9195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9195 rm -rf conftest*
9196 glibcpp_cv_func__fmodf_use=yes
9197 else
9198 echo "configure: failed program was:" >&5
9199 cat conftest.$ac_ext >&5
9200 rm -rf conftest*
9201 glibcpp_cv_func__fmodf_use=no
9203 rm -f conftest*
9204 ac_ext=c
9205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9206 ac_cpp='$CPP $CPPFLAGS'
9207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9209 cross_compiling=$ac_cv_prog_cc_cross
9215 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
9217 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
9218 for ac_func in _fmodf
9220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9221 echo "configure:9222: checking for $ac_func" >&5
9222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9224 else
9225 cat > conftest.$ac_ext <<EOF
9226 #line 9227 "configure"
9227 #include "confdefs.h"
9228 /* System header to define __stub macros and hopefully few prototypes,
9229 which can conflict with char $ac_func(); below. */
9230 #include <assert.h>
9231 /* Override any gcc2 internal prototype to avoid an error. */
9232 /* We use char because int might match the return type of a gcc2
9233 builtin and then its argument prototype would still apply. */
9234 char $ac_func();
9236 int main() {
9238 /* The GNU C library defines this for functions which it implements
9239 to always fail with ENOSYS. Some functions are actually named
9240 something starting with __ and the normal name is an alias. */
9241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9242 choke me
9243 #else
9244 $ac_func();
9245 #endif
9247 ; return 0; }
9249 if { (eval echo configure:9250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9250 rm -rf conftest*
9251 eval "ac_cv_func_$ac_func=yes"
9252 else
9253 echo "configure: failed program was:" >&5
9254 cat conftest.$ac_ext >&5
9255 rm -rf conftest*
9256 eval "ac_cv_func_$ac_func=no"
9258 rm -f conftest*
9261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9262 echo "$ac_t""yes" 1>&6
9263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9264 cat >> confdefs.h <<EOF
9265 #define $ac_tr_func 1
9268 else
9269 echo "$ac_t""no" 1>&6
9271 done
9278 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
9279 echo "configure:9280: checking for frexpf declaration" >&5
9280 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
9281 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
9282 echo $ac_n "(cached) $ac_c" 1>&6
9283 else
9286 ac_ext=C
9287 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9288 ac_cpp='$CXXCPP $CPPFLAGS'
9289 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9290 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9291 cross_compiling=$ac_cv_prog_cxx_cross
9293 cat > conftest.$ac_ext <<EOF
9294 #line 9295 "configure"
9295 #include "confdefs.h"
9296 #include <math.h>
9297 int main() {
9298 frexpf(0, 0);
9299 ; return 0; }
9301 if { (eval echo configure:9302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9302 rm -rf conftest*
9303 glibcpp_cv_func_frexpf_use=yes
9304 else
9305 echo "configure: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9307 rm -rf conftest*
9308 glibcpp_cv_func_frexpf_use=no
9310 rm -f conftest*
9311 ac_ext=c
9312 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9313 ac_cpp='$CPP $CPPFLAGS'
9314 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9315 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9316 cross_compiling=$ac_cv_prog_cc_cross
9322 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
9324 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
9325 for ac_func in frexpf
9327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9328 echo "configure:9329: checking for $ac_func" >&5
9329 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9330 echo $ac_n "(cached) $ac_c" 1>&6
9331 else
9332 cat > conftest.$ac_ext <<EOF
9333 #line 9334 "configure"
9334 #include "confdefs.h"
9335 /* System header to define __stub macros and hopefully few prototypes,
9336 which can conflict with char $ac_func(); below. */
9337 #include <assert.h>
9338 /* Override any gcc2 internal prototype to avoid an error. */
9339 /* We use char because int might match the return type of a gcc2
9340 builtin and then its argument prototype would still apply. */
9341 char $ac_func();
9343 int main() {
9345 /* The GNU C library defines this for functions which it implements
9346 to always fail with ENOSYS. Some functions are actually named
9347 something starting with __ and the normal name is an alias. */
9348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9349 choke me
9350 #else
9351 $ac_func();
9352 #endif
9354 ; return 0; }
9356 if { (eval echo configure:9357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9357 rm -rf conftest*
9358 eval "ac_cv_func_$ac_func=yes"
9359 else
9360 echo "configure: failed program was:" >&5
9361 cat conftest.$ac_ext >&5
9362 rm -rf conftest*
9363 eval "ac_cv_func_$ac_func=no"
9365 rm -f conftest*
9368 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9369 echo "$ac_t""yes" 1>&6
9370 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9371 cat >> confdefs.h <<EOF
9372 #define $ac_tr_func 1
9375 else
9376 echo "$ac_t""no" 1>&6
9378 done
9380 else
9382 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9383 echo "configure:9384: checking for _frexpf declaration" >&5
9384 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9385 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9386 echo $ac_n "(cached) $ac_c" 1>&6
9387 else
9390 ac_ext=C
9391 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9392 ac_cpp='$CXXCPP $CPPFLAGS'
9393 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9394 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9395 cross_compiling=$ac_cv_prog_cxx_cross
9397 cat > conftest.$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9400 #include <math.h>
9401 int main() {
9402 _frexpf(0, 0);
9403 ; return 0; }
9405 if { (eval echo configure:9406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9406 rm -rf conftest*
9407 glibcpp_cv_func__frexpf_use=yes
9408 else
9409 echo "configure: failed program was:" >&5
9410 cat conftest.$ac_ext >&5
9411 rm -rf conftest*
9412 glibcpp_cv_func__frexpf_use=no
9414 rm -f conftest*
9415 ac_ext=c
9416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9417 ac_cpp='$CPP $CPPFLAGS'
9418 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9419 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9420 cross_compiling=$ac_cv_prog_cc_cross
9426 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9428 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9429 for ac_func in _frexpf
9431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9432 echo "configure:9433: checking for $ac_func" >&5
9433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9434 echo $ac_n "(cached) $ac_c" 1>&6
9435 else
9436 cat > conftest.$ac_ext <<EOF
9437 #line 9438 "configure"
9438 #include "confdefs.h"
9439 /* System header to define __stub macros and hopefully few prototypes,
9440 which can conflict with char $ac_func(); below. */
9441 #include <assert.h>
9442 /* Override any gcc2 internal prototype to avoid an error. */
9443 /* We use char because int might match the return type of a gcc2
9444 builtin and then its argument prototype would still apply. */
9445 char $ac_func();
9447 int main() {
9449 /* The GNU C library defines this for functions which it implements
9450 to always fail with ENOSYS. Some functions are actually named
9451 something starting with __ and the normal name is an alias. */
9452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9453 choke me
9454 #else
9455 $ac_func();
9456 #endif
9458 ; return 0; }
9460 if { (eval echo configure:9461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9461 rm -rf conftest*
9462 eval "ac_cv_func_$ac_func=yes"
9463 else
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 rm -rf conftest*
9467 eval "ac_cv_func_$ac_func=no"
9469 rm -f conftest*
9472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9473 echo "$ac_t""yes" 1>&6
9474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9475 cat >> confdefs.h <<EOF
9476 #define $ac_tr_func 1
9479 else
9480 echo "$ac_t""no" 1>&6
9482 done
9489 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9490 echo "configure:9491: checking for ldexpf declaration" >&5
9491 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9492 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_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 ldexpf(0, 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_ldexpf_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_ldexpf_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_ldexpf_use" 1>&6
9535 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9536 for ac_func in ldexpf
9538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9539 echo "configure:9540: checking for $ac_func" >&5
9540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9541 echo $ac_n "(cached) $ac_c" 1>&6
9542 else
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9546 /* System header to define __stub macros and hopefully few prototypes,
9547 which can conflict with char $ac_func(); below. */
9548 #include <assert.h>
9549 /* Override any gcc2 internal prototype to avoid an error. */
9550 /* We use char because int might match the return type of a gcc2
9551 builtin and then its argument prototype would still apply. */
9552 char $ac_func();
9554 int main() {
9556 /* The GNU C library defines this for functions which it implements
9557 to always fail with ENOSYS. Some functions are actually named
9558 something starting with __ and the normal name is an alias. */
9559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9560 choke me
9561 #else
9562 $ac_func();
9563 #endif
9565 ; return 0; }
9567 if { (eval echo configure:9568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9568 rm -rf conftest*
9569 eval "ac_cv_func_$ac_func=yes"
9570 else
9571 echo "configure: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9573 rm -rf conftest*
9574 eval "ac_cv_func_$ac_func=no"
9576 rm -f conftest*
9579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9580 echo "$ac_t""yes" 1>&6
9581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9582 cat >> confdefs.h <<EOF
9583 #define $ac_tr_func 1
9586 else
9587 echo "$ac_t""no" 1>&6
9589 done
9591 else
9593 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9594 echo "configure:9595: checking for _ldexpf declaration" >&5
9595 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9596 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9597 echo $ac_n "(cached) $ac_c" 1>&6
9598 else
9601 ac_ext=C
9602 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9603 ac_cpp='$CXXCPP $CPPFLAGS'
9604 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9605 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9606 cross_compiling=$ac_cv_prog_cxx_cross
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9611 #include <math.h>
9612 int main() {
9613 _ldexpf(0, 0);
9614 ; return 0; }
9616 if { (eval echo configure:9617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9617 rm -rf conftest*
9618 glibcpp_cv_func__ldexpf_use=yes
9619 else
9620 echo "configure: failed program was:" >&5
9621 cat conftest.$ac_ext >&5
9622 rm -rf conftest*
9623 glibcpp_cv_func__ldexpf_use=no
9625 rm -f conftest*
9626 ac_ext=c
9627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9628 ac_cpp='$CPP $CPPFLAGS'
9629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9631 cross_compiling=$ac_cv_prog_cc_cross
9637 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9639 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9640 for ac_func in _ldexpf
9642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9643 echo "configure:9644: checking for $ac_func" >&5
9644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9645 echo $ac_n "(cached) $ac_c" 1>&6
9646 else
9647 cat > conftest.$ac_ext <<EOF
9648 #line 9649 "configure"
9649 #include "confdefs.h"
9650 /* System header to define __stub macros and hopefully few prototypes,
9651 which can conflict with char $ac_func(); below. */
9652 #include <assert.h>
9653 /* Override any gcc2 internal prototype to avoid an error. */
9654 /* We use char because int might match the return type of a gcc2
9655 builtin and then its argument prototype would still apply. */
9656 char $ac_func();
9658 int main() {
9660 /* The GNU C library defines this for functions which it implements
9661 to always fail with ENOSYS. Some functions are actually named
9662 something starting with __ and the normal name is an alias. */
9663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9664 choke me
9665 #else
9666 $ac_func();
9667 #endif
9669 ; return 0; }
9671 if { (eval echo configure:9672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9672 rm -rf conftest*
9673 eval "ac_cv_func_$ac_func=yes"
9674 else
9675 echo "configure: failed program was:" >&5
9676 cat conftest.$ac_ext >&5
9677 rm -rf conftest*
9678 eval "ac_cv_func_$ac_func=no"
9680 rm -f conftest*
9683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9684 echo "$ac_t""yes" 1>&6
9685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9686 cat >> confdefs.h <<EOF
9687 #define $ac_tr_func 1
9690 else
9691 echo "$ac_t""no" 1>&6
9693 done
9700 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9701 echo "configure:9702: checking for logf declaration" >&5
9702 if test x${glibcpp_cv_func_logf_use+set} != xset; then
9703 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9705 else
9708 ac_ext=C
9709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9710 ac_cpp='$CXXCPP $CPPFLAGS'
9711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9713 cross_compiling=$ac_cv_prog_cxx_cross
9715 cat > conftest.$ac_ext <<EOF
9716 #line 9717 "configure"
9717 #include "confdefs.h"
9718 #include <math.h>
9719 #ifdef HAVE_IEEEFP_H
9720 #include <ieeefp.h>
9721 #endif
9723 int main() {
9724 logf(0);
9725 ; return 0; }
9727 if { (eval echo configure:9728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9728 rm -rf conftest*
9729 glibcpp_cv_func_logf_use=yes
9730 else
9731 echo "configure: failed program was:" >&5
9732 cat conftest.$ac_ext >&5
9733 rm -rf conftest*
9734 glibcpp_cv_func_logf_use=no
9736 rm -f conftest*
9737 ac_ext=c
9738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9739 ac_cpp='$CPP $CPPFLAGS'
9740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9742 cross_compiling=$ac_cv_prog_cc_cross
9748 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
9750 if test x$glibcpp_cv_func_logf_use = x"yes"; then
9751 for ac_func in logf
9753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9754 echo "configure:9755: checking for $ac_func" >&5
9755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9756 echo $ac_n "(cached) $ac_c" 1>&6
9757 else
9758 cat > conftest.$ac_ext <<EOF
9759 #line 9760 "configure"
9760 #include "confdefs.h"
9761 /* System header to define __stub macros and hopefully few prototypes,
9762 which can conflict with char $ac_func(); below. */
9763 #include <assert.h>
9764 /* Override any gcc2 internal prototype to avoid an error. */
9765 /* We use char because int might match the return type of a gcc2
9766 builtin and then its argument prototype would still apply. */
9767 char $ac_func();
9769 int main() {
9771 /* The GNU C library defines this for functions which it implements
9772 to always fail with ENOSYS. Some functions are actually named
9773 something starting with __ and the normal name is an alias. */
9774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9775 choke me
9776 #else
9777 $ac_func();
9778 #endif
9780 ; return 0; }
9782 if { (eval echo configure:9783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9783 rm -rf conftest*
9784 eval "ac_cv_func_$ac_func=yes"
9785 else
9786 echo "configure: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
9788 rm -rf conftest*
9789 eval "ac_cv_func_$ac_func=no"
9791 rm -f conftest*
9794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9795 echo "$ac_t""yes" 1>&6
9796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9797 cat >> confdefs.h <<EOF
9798 #define $ac_tr_func 1
9801 else
9802 echo "$ac_t""no" 1>&6
9804 done
9806 else
9808 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9809 echo "configure:9810: checking for _logf declaration" >&5
9810 if test x${glibcpp_cv_func__logf_use+set} != xset; then
9811 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9812 echo $ac_n "(cached) $ac_c" 1>&6
9813 else
9816 ac_ext=C
9817 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9818 ac_cpp='$CXXCPP $CPPFLAGS'
9819 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9820 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9821 cross_compiling=$ac_cv_prog_cxx_cross
9823 cat > conftest.$ac_ext <<EOF
9824 #line 9825 "configure"
9825 #include "confdefs.h"
9826 #include <math.h>
9827 #ifdef HAVE_IEEEFP_H
9828 #include <ieeefp.h>
9829 #endif
9831 int main() {
9832 _logf(0);
9833 ; return 0; }
9835 if { (eval echo configure:9836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9836 rm -rf conftest*
9837 glibcpp_cv_func__logf_use=yes
9838 else
9839 echo "configure: failed program was:" >&5
9840 cat conftest.$ac_ext >&5
9841 rm -rf conftest*
9842 glibcpp_cv_func__logf_use=no
9844 rm -f conftest*
9845 ac_ext=c
9846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9847 ac_cpp='$CPP $CPPFLAGS'
9848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9850 cross_compiling=$ac_cv_prog_cc_cross
9856 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9858 if test x$glibcpp_cv_func__logf_use = x"yes"; then
9859 for ac_func in _logf
9861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9862 echo "configure:9863: checking for $ac_func" >&5
9863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9864 echo $ac_n "(cached) $ac_c" 1>&6
9865 else
9866 cat > conftest.$ac_ext <<EOF
9867 #line 9868 "configure"
9868 #include "confdefs.h"
9869 /* System header to define __stub macros and hopefully few prototypes,
9870 which can conflict with char $ac_func(); below. */
9871 #include <assert.h>
9872 /* Override any gcc2 internal prototype to avoid an error. */
9873 /* We use char because int might match the return type of a gcc2
9874 builtin and then its argument prototype would still apply. */
9875 char $ac_func();
9877 int main() {
9879 /* The GNU C library defines this for functions which it implements
9880 to always fail with ENOSYS. Some functions are actually named
9881 something starting with __ and the normal name is an alias. */
9882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9883 choke me
9884 #else
9885 $ac_func();
9886 #endif
9888 ; return 0; }
9890 if { (eval echo configure:9891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9891 rm -rf conftest*
9892 eval "ac_cv_func_$ac_func=yes"
9893 else
9894 echo "configure: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9896 rm -rf conftest*
9897 eval "ac_cv_func_$ac_func=no"
9899 rm -f conftest*
9902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9903 echo "$ac_t""yes" 1>&6
9904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9905 cat >> confdefs.h <<EOF
9906 #define $ac_tr_func 1
9909 else
9910 echo "$ac_t""no" 1>&6
9912 done
9919 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9920 echo "configure:9921: checking for log10f declaration" >&5
9921 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9922 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9923 echo $ac_n "(cached) $ac_c" 1>&6
9924 else
9927 ac_ext=C
9928 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9929 ac_cpp='$CXXCPP $CPPFLAGS'
9930 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9931 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9932 cross_compiling=$ac_cv_prog_cxx_cross
9934 cat > conftest.$ac_ext <<EOF
9935 #line 9936 "configure"
9936 #include "confdefs.h"
9937 #include <math.h>
9938 #ifdef HAVE_IEEEFP_H
9939 #include <ieeefp.h>
9940 #endif
9942 int main() {
9943 log10f(0);
9944 ; return 0; }
9946 if { (eval echo configure:9947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9947 rm -rf conftest*
9948 glibcpp_cv_func_log10f_use=yes
9949 else
9950 echo "configure: failed program was:" >&5
9951 cat conftest.$ac_ext >&5
9952 rm -rf conftest*
9953 glibcpp_cv_func_log10f_use=no
9955 rm -f conftest*
9956 ac_ext=c
9957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9958 ac_cpp='$CPP $CPPFLAGS'
9959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9961 cross_compiling=$ac_cv_prog_cc_cross
9967 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9969 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9970 for ac_func in log10f
9972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9973 echo "configure:9974: checking for $ac_func" >&5
9974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9975 echo $ac_n "(cached) $ac_c" 1>&6
9976 else
9977 cat > conftest.$ac_ext <<EOF
9978 #line 9979 "configure"
9979 #include "confdefs.h"
9980 /* System header to define __stub macros and hopefully few prototypes,
9981 which can conflict with char $ac_func(); below. */
9982 #include <assert.h>
9983 /* Override any gcc2 internal prototype to avoid an error. */
9984 /* We use char because int might match the return type of a gcc2
9985 builtin and then its argument prototype would still apply. */
9986 char $ac_func();
9988 int main() {
9990 /* The GNU C library defines this for functions which it implements
9991 to always fail with ENOSYS. Some functions are actually named
9992 something starting with __ and the normal name is an alias. */
9993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9994 choke me
9995 #else
9996 $ac_func();
9997 #endif
9999 ; return 0; }
10001 if { (eval echo configure:10002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10002 rm -rf conftest*
10003 eval "ac_cv_func_$ac_func=yes"
10004 else
10005 echo "configure: failed program was:" >&5
10006 cat conftest.$ac_ext >&5
10007 rm -rf conftest*
10008 eval "ac_cv_func_$ac_func=no"
10010 rm -f conftest*
10013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10014 echo "$ac_t""yes" 1>&6
10015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10016 cat >> confdefs.h <<EOF
10017 #define $ac_tr_func 1
10020 else
10021 echo "$ac_t""no" 1>&6
10023 done
10025 else
10027 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
10028 echo "configure:10029: checking for _log10f declaration" >&5
10029 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
10030 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
10031 echo $ac_n "(cached) $ac_c" 1>&6
10032 else
10035 ac_ext=C
10036 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10037 ac_cpp='$CXXCPP $CPPFLAGS'
10038 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10039 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10040 cross_compiling=$ac_cv_prog_cxx_cross
10042 cat > conftest.$ac_ext <<EOF
10043 #line 10044 "configure"
10044 #include "confdefs.h"
10045 #include <math.h>
10046 #ifdef HAVE_IEEEFP_H
10047 #include <ieeefp.h>
10048 #endif
10050 int main() {
10051 _log10f(0);
10052 ; return 0; }
10054 if { (eval echo configure:10055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10055 rm -rf conftest*
10056 glibcpp_cv_func__log10f_use=yes
10057 else
10058 echo "configure: failed program was:" >&5
10059 cat conftest.$ac_ext >&5
10060 rm -rf conftest*
10061 glibcpp_cv_func__log10f_use=no
10063 rm -f conftest*
10064 ac_ext=c
10065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10066 ac_cpp='$CPP $CPPFLAGS'
10067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10069 cross_compiling=$ac_cv_prog_cc_cross
10075 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
10077 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
10078 for ac_func in _log10f
10080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10081 echo "configure:10082: checking for $ac_func" >&5
10082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10083 echo $ac_n "(cached) $ac_c" 1>&6
10084 else
10085 cat > conftest.$ac_ext <<EOF
10086 #line 10087 "configure"
10087 #include "confdefs.h"
10088 /* System header to define __stub macros and hopefully few prototypes,
10089 which can conflict with char $ac_func(); below. */
10090 #include <assert.h>
10091 /* Override any gcc2 internal prototype to avoid an error. */
10092 /* We use char because int might match the return type of a gcc2
10093 builtin and then its argument prototype would still apply. */
10094 char $ac_func();
10096 int main() {
10098 /* The GNU C library defines this for functions which it implements
10099 to always fail with ENOSYS. Some functions are actually named
10100 something starting with __ and the normal name is an alias. */
10101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10102 choke me
10103 #else
10104 $ac_func();
10105 #endif
10107 ; return 0; }
10109 if { (eval echo configure:10110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10110 rm -rf conftest*
10111 eval "ac_cv_func_$ac_func=yes"
10112 else
10113 echo "configure: failed program was:" >&5
10114 cat conftest.$ac_ext >&5
10115 rm -rf conftest*
10116 eval "ac_cv_func_$ac_func=no"
10118 rm -f conftest*
10121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10122 echo "$ac_t""yes" 1>&6
10123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10124 cat >> confdefs.h <<EOF
10125 #define $ac_tr_func 1
10128 else
10129 echo "$ac_t""no" 1>&6
10131 done
10138 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
10139 echo "configure:10140: checking for modff declaration" >&5
10140 if test x${glibcpp_cv_func_modff_use+set} != xset; then
10141 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
10142 echo $ac_n "(cached) $ac_c" 1>&6
10143 else
10146 ac_ext=C
10147 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10148 ac_cpp='$CXXCPP $CPPFLAGS'
10149 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10150 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10151 cross_compiling=$ac_cv_prog_cxx_cross
10153 cat > conftest.$ac_ext <<EOF
10154 #line 10155 "configure"
10155 #include "confdefs.h"
10156 #include <math.h>
10157 int main() {
10158 modff(0, 0);
10159 ; return 0; }
10161 if { (eval echo configure:10162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10162 rm -rf conftest*
10163 glibcpp_cv_func_modff_use=yes
10164 else
10165 echo "configure: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10167 rm -rf conftest*
10168 glibcpp_cv_func_modff_use=no
10170 rm -f conftest*
10171 ac_ext=c
10172 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10173 ac_cpp='$CPP $CPPFLAGS'
10174 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10175 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10176 cross_compiling=$ac_cv_prog_cc_cross
10182 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
10184 if test x$glibcpp_cv_func_modff_use = x"yes"; then
10185 for ac_func in modff
10187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10188 echo "configure:10189: checking for $ac_func" >&5
10189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10190 echo $ac_n "(cached) $ac_c" 1>&6
10191 else
10192 cat > conftest.$ac_ext <<EOF
10193 #line 10194 "configure"
10194 #include "confdefs.h"
10195 /* System header to define __stub macros and hopefully few prototypes,
10196 which can conflict with char $ac_func(); below. */
10197 #include <assert.h>
10198 /* Override any gcc2 internal prototype to avoid an error. */
10199 /* We use char because int might match the return type of a gcc2
10200 builtin and then its argument prototype would still apply. */
10201 char $ac_func();
10203 int main() {
10205 /* The GNU C library defines this for functions which it implements
10206 to always fail with ENOSYS. Some functions are actually named
10207 something starting with __ and the normal name is an alias. */
10208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10209 choke me
10210 #else
10211 $ac_func();
10212 #endif
10214 ; return 0; }
10216 if { (eval echo configure:10217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10217 rm -rf conftest*
10218 eval "ac_cv_func_$ac_func=yes"
10219 else
10220 echo "configure: failed program was:" >&5
10221 cat conftest.$ac_ext >&5
10222 rm -rf conftest*
10223 eval "ac_cv_func_$ac_func=no"
10225 rm -f conftest*
10228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10229 echo "$ac_t""yes" 1>&6
10230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10231 cat >> confdefs.h <<EOF
10232 #define $ac_tr_func 1
10235 else
10236 echo "$ac_t""no" 1>&6
10238 done
10240 else
10242 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
10243 echo "configure:10244: checking for _modff declaration" >&5
10244 if test x${glibcpp_cv_func__modff_use+set} != xset; then
10245 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
10246 echo $ac_n "(cached) $ac_c" 1>&6
10247 else
10250 ac_ext=C
10251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10252 ac_cpp='$CXXCPP $CPPFLAGS'
10253 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10254 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10255 cross_compiling=$ac_cv_prog_cxx_cross
10257 cat > conftest.$ac_ext <<EOF
10258 #line 10259 "configure"
10259 #include "confdefs.h"
10260 #include <math.h>
10261 int main() {
10262 _modff(0, 0);
10263 ; return 0; }
10265 if { (eval echo configure:10266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10266 rm -rf conftest*
10267 glibcpp_cv_func__modff_use=yes
10268 else
10269 echo "configure: failed program was:" >&5
10270 cat conftest.$ac_ext >&5
10271 rm -rf conftest*
10272 glibcpp_cv_func__modff_use=no
10274 rm -f conftest*
10275 ac_ext=c
10276 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10277 ac_cpp='$CPP $CPPFLAGS'
10278 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10279 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10280 cross_compiling=$ac_cv_prog_cc_cross
10286 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
10288 if test x$glibcpp_cv_func__modff_use = x"yes"; then
10289 for ac_func in _modff
10291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10292 echo "configure:10293: checking for $ac_func" >&5
10293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10294 echo $ac_n "(cached) $ac_c" 1>&6
10295 else
10296 cat > conftest.$ac_ext <<EOF
10297 #line 10298 "configure"
10298 #include "confdefs.h"
10299 /* System header to define __stub macros and hopefully few prototypes,
10300 which can conflict with char $ac_func(); below. */
10301 #include <assert.h>
10302 /* Override any gcc2 internal prototype to avoid an error. */
10303 /* We use char because int might match the return type of a gcc2
10304 builtin and then its argument prototype would still apply. */
10305 char $ac_func();
10307 int main() {
10309 /* The GNU C library defines this for functions which it implements
10310 to always fail with ENOSYS. Some functions are actually named
10311 something starting with __ and the normal name is an alias. */
10312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10313 choke me
10314 #else
10315 $ac_func();
10316 #endif
10318 ; return 0; }
10320 if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10321 rm -rf conftest*
10322 eval "ac_cv_func_$ac_func=yes"
10323 else
10324 echo "configure: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10326 rm -rf conftest*
10327 eval "ac_cv_func_$ac_func=no"
10329 rm -f conftest*
10332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10333 echo "$ac_t""yes" 1>&6
10334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10335 cat >> confdefs.h <<EOF
10336 #define $ac_tr_func 1
10339 else
10340 echo "$ac_t""no" 1>&6
10342 done
10349 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10350 echo "configure:10351: checking for powf declaration" >&5
10351 if test x${glibcpp_cv_func_powf_use+set} != xset; then
10352 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10353 echo $ac_n "(cached) $ac_c" 1>&6
10354 else
10357 ac_ext=C
10358 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10359 ac_cpp='$CXXCPP $CPPFLAGS'
10360 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10361 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10362 cross_compiling=$ac_cv_prog_cxx_cross
10364 cat > conftest.$ac_ext <<EOF
10365 #line 10366 "configure"
10366 #include "confdefs.h"
10367 #include <math.h>
10368 int main() {
10369 powf(0, 0);
10370 ; return 0; }
10372 if { (eval echo configure:10373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10373 rm -rf conftest*
10374 glibcpp_cv_func_powf_use=yes
10375 else
10376 echo "configure: failed program was:" >&5
10377 cat conftest.$ac_ext >&5
10378 rm -rf conftest*
10379 glibcpp_cv_func_powf_use=no
10381 rm -f conftest*
10382 ac_ext=c
10383 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10384 ac_cpp='$CPP $CPPFLAGS'
10385 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10386 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10387 cross_compiling=$ac_cv_prog_cc_cross
10393 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10395 if test x$glibcpp_cv_func_powf_use = x"yes"; then
10396 for ac_func in powf
10398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10399 echo "configure:10400: checking for $ac_func" >&5
10400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10401 echo $ac_n "(cached) $ac_c" 1>&6
10402 else
10403 cat > conftest.$ac_ext <<EOF
10404 #line 10405 "configure"
10405 #include "confdefs.h"
10406 /* System header to define __stub macros and hopefully few prototypes,
10407 which can conflict with char $ac_func(); below. */
10408 #include <assert.h>
10409 /* Override any gcc2 internal prototype to avoid an error. */
10410 /* We use char because int might match the return type of a gcc2
10411 builtin and then its argument prototype would still apply. */
10412 char $ac_func();
10414 int main() {
10416 /* The GNU C library defines this for functions which it implements
10417 to always fail with ENOSYS. Some functions are actually named
10418 something starting with __ and the normal name is an alias. */
10419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10420 choke me
10421 #else
10422 $ac_func();
10423 #endif
10425 ; return 0; }
10427 if { (eval echo configure:10428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10428 rm -rf conftest*
10429 eval "ac_cv_func_$ac_func=yes"
10430 else
10431 echo "configure: failed program was:" >&5
10432 cat conftest.$ac_ext >&5
10433 rm -rf conftest*
10434 eval "ac_cv_func_$ac_func=no"
10436 rm -f conftest*
10439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10440 echo "$ac_t""yes" 1>&6
10441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10442 cat >> confdefs.h <<EOF
10443 #define $ac_tr_func 1
10446 else
10447 echo "$ac_t""no" 1>&6
10449 done
10451 else
10453 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10454 echo "configure:10455: checking for _powf declaration" >&5
10455 if test x${glibcpp_cv_func__powf_use+set} != xset; then
10456 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10457 echo $ac_n "(cached) $ac_c" 1>&6
10458 else
10461 ac_ext=C
10462 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10463 ac_cpp='$CXXCPP $CPPFLAGS'
10464 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10465 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10466 cross_compiling=$ac_cv_prog_cxx_cross
10468 cat > conftest.$ac_ext <<EOF
10469 #line 10470 "configure"
10470 #include "confdefs.h"
10471 #include <math.h>
10472 int main() {
10473 _powf(0, 0);
10474 ; return 0; }
10476 if { (eval echo configure:10477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10477 rm -rf conftest*
10478 glibcpp_cv_func__powf_use=yes
10479 else
10480 echo "configure: failed program was:" >&5
10481 cat conftest.$ac_ext >&5
10482 rm -rf conftest*
10483 glibcpp_cv_func__powf_use=no
10485 rm -f conftest*
10486 ac_ext=c
10487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10488 ac_cpp='$CPP $CPPFLAGS'
10489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10491 cross_compiling=$ac_cv_prog_cc_cross
10497 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10499 if test x$glibcpp_cv_func__powf_use = x"yes"; then
10500 for ac_func in _powf
10502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10503 echo "configure:10504: checking for $ac_func" >&5
10504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10505 echo $ac_n "(cached) $ac_c" 1>&6
10506 else
10507 cat > conftest.$ac_ext <<EOF
10508 #line 10509 "configure"
10509 #include "confdefs.h"
10510 /* System header to define __stub macros and hopefully few prototypes,
10511 which can conflict with char $ac_func(); below. */
10512 #include <assert.h>
10513 /* Override any gcc2 internal prototype to avoid an error. */
10514 /* We use char because int might match the return type of a gcc2
10515 builtin and then its argument prototype would still apply. */
10516 char $ac_func();
10518 int main() {
10520 /* The GNU C library defines this for functions which it implements
10521 to always fail with ENOSYS. Some functions are actually named
10522 something starting with __ and the normal name is an alias. */
10523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10524 choke me
10525 #else
10526 $ac_func();
10527 #endif
10529 ; return 0; }
10531 if { (eval echo configure:10532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10532 rm -rf conftest*
10533 eval "ac_cv_func_$ac_func=yes"
10534 else
10535 echo "configure: failed program was:" >&5
10536 cat conftest.$ac_ext >&5
10537 rm -rf conftest*
10538 eval "ac_cv_func_$ac_func=no"
10540 rm -f conftest*
10543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10544 echo "$ac_t""yes" 1>&6
10545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10546 cat >> confdefs.h <<EOF
10547 #define $ac_tr_func 1
10550 else
10551 echo "$ac_t""no" 1>&6
10553 done
10560 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10561 echo "configure:10562: checking for sqrtf declaration" >&5
10562 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10563 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10564 echo $ac_n "(cached) $ac_c" 1>&6
10565 else
10568 ac_ext=C
10569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10570 ac_cpp='$CXXCPP $CPPFLAGS'
10571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10573 cross_compiling=$ac_cv_prog_cxx_cross
10575 cat > conftest.$ac_ext <<EOF
10576 #line 10577 "configure"
10577 #include "confdefs.h"
10578 #include <math.h>
10579 #ifdef HAVE_IEEEFP_H
10580 #include <ieeefp.h>
10581 #endif
10583 int main() {
10584 sqrtf(0);
10585 ; return 0; }
10587 if { (eval echo configure:10588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10588 rm -rf conftest*
10589 glibcpp_cv_func_sqrtf_use=yes
10590 else
10591 echo "configure: failed program was:" >&5
10592 cat conftest.$ac_ext >&5
10593 rm -rf conftest*
10594 glibcpp_cv_func_sqrtf_use=no
10596 rm -f conftest*
10597 ac_ext=c
10598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10599 ac_cpp='$CPP $CPPFLAGS'
10600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10602 cross_compiling=$ac_cv_prog_cc_cross
10608 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10610 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10611 for ac_func in sqrtf
10613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10614 echo "configure:10615: checking for $ac_func" >&5
10615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10616 echo $ac_n "(cached) $ac_c" 1>&6
10617 else
10618 cat > conftest.$ac_ext <<EOF
10619 #line 10620 "configure"
10620 #include "confdefs.h"
10621 /* System header to define __stub macros and hopefully few prototypes,
10622 which can conflict with char $ac_func(); below. */
10623 #include <assert.h>
10624 /* Override any gcc2 internal prototype to avoid an error. */
10625 /* We use char because int might match the return type of a gcc2
10626 builtin and then its argument prototype would still apply. */
10627 char $ac_func();
10629 int main() {
10631 /* The GNU C library defines this for functions which it implements
10632 to always fail with ENOSYS. Some functions are actually named
10633 something starting with __ and the normal name is an alias. */
10634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10635 choke me
10636 #else
10637 $ac_func();
10638 #endif
10640 ; return 0; }
10642 if { (eval echo configure:10643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10643 rm -rf conftest*
10644 eval "ac_cv_func_$ac_func=yes"
10645 else
10646 echo "configure: failed program was:" >&5
10647 cat conftest.$ac_ext >&5
10648 rm -rf conftest*
10649 eval "ac_cv_func_$ac_func=no"
10651 rm -f conftest*
10654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10655 echo "$ac_t""yes" 1>&6
10656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10657 cat >> confdefs.h <<EOF
10658 #define $ac_tr_func 1
10661 else
10662 echo "$ac_t""no" 1>&6
10664 done
10666 else
10668 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10669 echo "configure:10670: checking for _sqrtf declaration" >&5
10670 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10671 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10672 echo $ac_n "(cached) $ac_c" 1>&6
10673 else
10676 ac_ext=C
10677 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10678 ac_cpp='$CXXCPP $CPPFLAGS'
10679 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10680 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10681 cross_compiling=$ac_cv_prog_cxx_cross
10683 cat > conftest.$ac_ext <<EOF
10684 #line 10685 "configure"
10685 #include "confdefs.h"
10686 #include <math.h>
10687 #ifdef HAVE_IEEEFP_H
10688 #include <ieeefp.h>
10689 #endif
10691 int main() {
10692 _sqrtf(0);
10693 ; return 0; }
10695 if { (eval echo configure:10696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10696 rm -rf conftest*
10697 glibcpp_cv_func__sqrtf_use=yes
10698 else
10699 echo "configure: failed program was:" >&5
10700 cat conftest.$ac_ext >&5
10701 rm -rf conftest*
10702 glibcpp_cv_func__sqrtf_use=no
10704 rm -f conftest*
10705 ac_ext=c
10706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10707 ac_cpp='$CPP $CPPFLAGS'
10708 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10709 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10710 cross_compiling=$ac_cv_prog_cc_cross
10716 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
10718 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
10719 for ac_func in _sqrtf
10721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10722 echo "configure:10723: checking for $ac_func" >&5
10723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10724 echo $ac_n "(cached) $ac_c" 1>&6
10725 else
10726 cat > conftest.$ac_ext <<EOF
10727 #line 10728 "configure"
10728 #include "confdefs.h"
10729 /* System header to define __stub macros and hopefully few prototypes,
10730 which can conflict with char $ac_func(); below. */
10731 #include <assert.h>
10732 /* Override any gcc2 internal prototype to avoid an error. */
10733 /* We use char because int might match the return type of a gcc2
10734 builtin and then its argument prototype would still apply. */
10735 char $ac_func();
10737 int main() {
10739 /* The GNU C library defines this for functions which it implements
10740 to always fail with ENOSYS. Some functions are actually named
10741 something starting with __ and the normal name is an alias. */
10742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10743 choke me
10744 #else
10745 $ac_func();
10746 #endif
10748 ; return 0; }
10750 if { (eval echo configure:10751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10751 rm -rf conftest*
10752 eval "ac_cv_func_$ac_func=yes"
10753 else
10754 echo "configure: failed program was:" >&5
10755 cat conftest.$ac_ext >&5
10756 rm -rf conftest*
10757 eval "ac_cv_func_$ac_func=no"
10759 rm -f conftest*
10762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10763 echo "$ac_t""yes" 1>&6
10764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10765 cat >> confdefs.h <<EOF
10766 #define $ac_tr_func 1
10769 else
10770 echo "$ac_t""no" 1>&6
10772 done
10779 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10780 echo "configure:10781: checking for sincosf declaration" >&5
10781 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10782 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10784 else
10787 ac_ext=C
10788 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10789 ac_cpp='$CXXCPP $CPPFLAGS'
10790 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10791 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10792 cross_compiling=$ac_cv_prog_cxx_cross
10794 cat > conftest.$ac_ext <<EOF
10795 #line 10796 "configure"
10796 #include "confdefs.h"
10797 #include <math.h>
10798 int main() {
10799 sincosf(0, 0, 0);
10800 ; return 0; }
10802 if { (eval echo configure:10803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10803 rm -rf conftest*
10804 glibcpp_cv_func_sincosf_use=yes
10805 else
10806 echo "configure: failed program was:" >&5
10807 cat conftest.$ac_ext >&5
10808 rm -rf conftest*
10809 glibcpp_cv_func_sincosf_use=no
10811 rm -f conftest*
10812 ac_ext=c
10813 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10814 ac_cpp='$CPP $CPPFLAGS'
10815 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10816 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10817 cross_compiling=$ac_cv_prog_cc_cross
10823 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10825 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10826 for ac_func in sincosf
10828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10829 echo "configure:10830: checking for $ac_func" >&5
10830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10831 echo $ac_n "(cached) $ac_c" 1>&6
10832 else
10833 cat > conftest.$ac_ext <<EOF
10834 #line 10835 "configure"
10835 #include "confdefs.h"
10836 /* System header to define __stub macros and hopefully few prototypes,
10837 which can conflict with char $ac_func(); below. */
10838 #include <assert.h>
10839 /* Override any gcc2 internal prototype to avoid an error. */
10840 /* We use char because int might match the return type of a gcc2
10841 builtin and then its argument prototype would still apply. */
10842 char $ac_func();
10844 int main() {
10846 /* The GNU C library defines this for functions which it implements
10847 to always fail with ENOSYS. Some functions are actually named
10848 something starting with __ and the normal name is an alias. */
10849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10850 choke me
10851 #else
10852 $ac_func();
10853 #endif
10855 ; return 0; }
10857 if { (eval echo configure:10858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10858 rm -rf conftest*
10859 eval "ac_cv_func_$ac_func=yes"
10860 else
10861 echo "configure: failed program was:" >&5
10862 cat conftest.$ac_ext >&5
10863 rm -rf conftest*
10864 eval "ac_cv_func_$ac_func=no"
10866 rm -f conftest*
10869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10870 echo "$ac_t""yes" 1>&6
10871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10872 cat >> confdefs.h <<EOF
10873 #define $ac_tr_func 1
10876 else
10877 echo "$ac_t""no" 1>&6
10879 done
10881 else
10883 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10884 echo "configure:10885: checking for _sincosf declaration" >&5
10885 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10886 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10887 echo $ac_n "(cached) $ac_c" 1>&6
10888 else
10891 ac_ext=C
10892 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10893 ac_cpp='$CXXCPP $CPPFLAGS'
10894 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10895 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10896 cross_compiling=$ac_cv_prog_cxx_cross
10898 cat > conftest.$ac_ext <<EOF
10899 #line 10900 "configure"
10900 #include "confdefs.h"
10901 #include <math.h>
10902 int main() {
10903 _sincosf(0, 0, 0);
10904 ; return 0; }
10906 if { (eval echo configure:10907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10907 rm -rf conftest*
10908 glibcpp_cv_func__sincosf_use=yes
10909 else
10910 echo "configure: failed program was:" >&5
10911 cat conftest.$ac_ext >&5
10912 rm -rf conftest*
10913 glibcpp_cv_func__sincosf_use=no
10915 rm -f conftest*
10916 ac_ext=c
10917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10918 ac_cpp='$CPP $CPPFLAGS'
10919 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10920 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10921 cross_compiling=$ac_cv_prog_cc_cross
10927 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10929 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10930 for ac_func in _sincosf
10932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10933 echo "configure:10934: checking for $ac_func" >&5
10934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10935 echo $ac_n "(cached) $ac_c" 1>&6
10936 else
10937 cat > conftest.$ac_ext <<EOF
10938 #line 10939 "configure"
10939 #include "confdefs.h"
10940 /* System header to define __stub macros and hopefully few prototypes,
10941 which can conflict with char $ac_func(); below. */
10942 #include <assert.h>
10943 /* Override any gcc2 internal prototype to avoid an error. */
10944 /* We use char because int might match the return type of a gcc2
10945 builtin and then its argument prototype would still apply. */
10946 char $ac_func();
10948 int main() {
10950 /* The GNU C library defines this for functions which it implements
10951 to always fail with ENOSYS. Some functions are actually named
10952 something starting with __ and the normal name is an alias. */
10953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10954 choke me
10955 #else
10956 $ac_func();
10957 #endif
10959 ; return 0; }
10961 if { (eval echo configure:10962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10962 rm -rf conftest*
10963 eval "ac_cv_func_$ac_func=yes"
10964 else
10965 echo "configure: failed program was:" >&5
10966 cat conftest.$ac_ext >&5
10967 rm -rf conftest*
10968 eval "ac_cv_func_$ac_func=no"
10970 rm -f conftest*
10973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10974 echo "$ac_t""yes" 1>&6
10975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10976 cat >> confdefs.h <<EOF
10977 #define $ac_tr_func 1
10980 else
10981 echo "$ac_t""no" 1>&6
10983 done
10990 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10991 echo "configure:10992: checking for finitef declaration" >&5
10992 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10993 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10994 echo $ac_n "(cached) $ac_c" 1>&6
10995 else
10998 ac_ext=C
10999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11000 ac_cpp='$CXXCPP $CPPFLAGS'
11001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11003 cross_compiling=$ac_cv_prog_cxx_cross
11005 cat > conftest.$ac_ext <<EOF
11006 #line 11007 "configure"
11007 #include "confdefs.h"
11008 #include <math.h>
11009 #ifdef HAVE_IEEEFP_H
11010 #include <ieeefp.h>
11011 #endif
11013 int main() {
11014 finitef(0);
11015 ; return 0; }
11017 if { (eval echo configure:11018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11018 rm -rf conftest*
11019 glibcpp_cv_func_finitef_use=yes
11020 else
11021 echo "configure: failed program was:" >&5
11022 cat conftest.$ac_ext >&5
11023 rm -rf conftest*
11024 glibcpp_cv_func_finitef_use=no
11026 rm -f conftest*
11027 ac_ext=c
11028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11029 ac_cpp='$CPP $CPPFLAGS'
11030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11032 cross_compiling=$ac_cv_prog_cc_cross
11038 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
11040 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
11041 for ac_func in finitef
11043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11044 echo "configure:11045: checking for $ac_func" >&5
11045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11046 echo $ac_n "(cached) $ac_c" 1>&6
11047 else
11048 cat > conftest.$ac_ext <<EOF
11049 #line 11050 "configure"
11050 #include "confdefs.h"
11051 /* System header to define __stub macros and hopefully few prototypes,
11052 which can conflict with char $ac_func(); below. */
11053 #include <assert.h>
11054 /* Override any gcc2 internal prototype to avoid an error. */
11055 /* We use char because int might match the return type of a gcc2
11056 builtin and then its argument prototype would still apply. */
11057 char $ac_func();
11059 int main() {
11061 /* The GNU C library defines this for functions which it implements
11062 to always fail with ENOSYS. Some functions are actually named
11063 something starting with __ and the normal name is an alias. */
11064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11065 choke me
11066 #else
11067 $ac_func();
11068 #endif
11070 ; return 0; }
11072 if { (eval echo configure:11073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11073 rm -rf conftest*
11074 eval "ac_cv_func_$ac_func=yes"
11075 else
11076 echo "configure: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11078 rm -rf conftest*
11079 eval "ac_cv_func_$ac_func=no"
11081 rm -f conftest*
11084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11085 echo "$ac_t""yes" 1>&6
11086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11087 cat >> confdefs.h <<EOF
11088 #define $ac_tr_func 1
11091 else
11092 echo "$ac_t""no" 1>&6
11094 done
11096 else
11098 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
11099 echo "configure:11100: checking for _finitef declaration" >&5
11100 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
11101 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
11102 echo $ac_n "(cached) $ac_c" 1>&6
11103 else
11106 ac_ext=C
11107 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11108 ac_cpp='$CXXCPP $CPPFLAGS'
11109 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11110 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11111 cross_compiling=$ac_cv_prog_cxx_cross
11113 cat > conftest.$ac_ext <<EOF
11114 #line 11115 "configure"
11115 #include "confdefs.h"
11116 #include <math.h>
11117 #ifdef HAVE_IEEEFP_H
11118 #include <ieeefp.h>
11119 #endif
11121 int main() {
11122 _finitef(0);
11123 ; return 0; }
11125 if { (eval echo configure:11126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11126 rm -rf conftest*
11127 glibcpp_cv_func__finitef_use=yes
11128 else
11129 echo "configure: failed program was:" >&5
11130 cat conftest.$ac_ext >&5
11131 rm -rf conftest*
11132 glibcpp_cv_func__finitef_use=no
11134 rm -f conftest*
11135 ac_ext=c
11136 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11137 ac_cpp='$CPP $CPPFLAGS'
11138 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11139 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11140 cross_compiling=$ac_cv_prog_cc_cross
11146 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
11148 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
11149 for ac_func in _finitef
11151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11152 echo "configure:11153: checking for $ac_func" >&5
11153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11154 echo $ac_n "(cached) $ac_c" 1>&6
11155 else
11156 cat > conftest.$ac_ext <<EOF
11157 #line 11158 "configure"
11158 #include "confdefs.h"
11159 /* System header to define __stub macros and hopefully few prototypes,
11160 which can conflict with char $ac_func(); below. */
11161 #include <assert.h>
11162 /* Override any gcc2 internal prototype to avoid an error. */
11163 /* We use char because int might match the return type of a gcc2
11164 builtin and then its argument prototype would still apply. */
11165 char $ac_func();
11167 int main() {
11169 /* The GNU C library defines this for functions which it implements
11170 to always fail with ENOSYS. Some functions are actually named
11171 something starting with __ and the normal name is an alias. */
11172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11173 choke me
11174 #else
11175 $ac_func();
11176 #endif
11178 ; return 0; }
11180 if { (eval echo configure:11181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11181 rm -rf conftest*
11182 eval "ac_cv_func_$ac_func=yes"
11183 else
11184 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11186 rm -rf conftest*
11187 eval "ac_cv_func_$ac_func=no"
11189 rm -f conftest*
11192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11193 echo "$ac_t""yes" 1>&6
11194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11195 cat >> confdefs.h <<EOF
11196 #define $ac_tr_func 1
11199 else
11200 echo "$ac_t""no" 1>&6
11202 done
11209 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
11210 echo "configure:11211: checking for long double trig functions" >&5
11211 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
11212 echo $ac_n "(cached) $ac_c" 1>&6
11213 else
11216 ac_ext=C
11217 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11218 ac_cpp='$CXXCPP $CPPFLAGS'
11219 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11220 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11221 cross_compiling=$ac_cv_prog_cxx_cross
11223 cat > conftest.$ac_ext <<EOF
11224 #line 11225 "configure"
11225 #include "confdefs.h"
11226 #include <math.h>
11227 int main() {
11228 `for x in acosl asinl atanl \
11229 cosl sinl tanl \
11230 coshl sinhl tanhl; do echo "$x (0);"; done`
11231 ; return 0; }
11233 if { (eval echo configure:11234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11234 rm -rf conftest*
11235 glibcpp_cv_func_long_double_trig_use=yes
11236 else
11237 echo "configure: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11239 rm -rf conftest*
11240 glibcpp_cv_func_long_double_trig_use=no
11242 rm -f conftest*
11243 ac_ext=c
11244 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11245 ac_cpp='$CPP $CPPFLAGS'
11246 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11247 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11248 cross_compiling=$ac_cv_prog_cc_cross
11252 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
11253 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
11254 for ac_func in acosl asinl atanl \
11255 cosl sinl tanl \
11256 coshl sinhl tanhl
11258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11259 echo "configure:11260: checking for $ac_func" >&5
11260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11261 echo $ac_n "(cached) $ac_c" 1>&6
11262 else
11263 cat > conftest.$ac_ext <<EOF
11264 #line 11265 "configure"
11265 #include "confdefs.h"
11266 /* System header to define __stub macros and hopefully few prototypes,
11267 which can conflict with char $ac_func(); below. */
11268 #include <assert.h>
11269 /* Override any gcc2 internal prototype to avoid an error. */
11270 /* We use char because int might match the return type of a gcc2
11271 builtin and then its argument prototype would still apply. */
11272 char $ac_func();
11274 int main() {
11276 /* The GNU C library defines this for functions which it implements
11277 to always fail with ENOSYS. Some functions are actually named
11278 something starting with __ and the normal name is an alias. */
11279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11280 choke me
11281 #else
11282 $ac_func();
11283 #endif
11285 ; return 0; }
11287 if { (eval echo configure:11288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11288 rm -rf conftest*
11289 eval "ac_cv_func_$ac_func=yes"
11290 else
11291 echo "configure: failed program was:" >&5
11292 cat conftest.$ac_ext >&5
11293 rm -rf conftest*
11294 eval "ac_cv_func_$ac_func=no"
11296 rm -f conftest*
11299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11300 echo "$ac_t""yes" 1>&6
11301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11302 cat >> confdefs.h <<EOF
11303 #define $ac_tr_func 1
11306 else
11307 echo "$ac_t""no" 1>&6
11309 done
11314 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
11315 echo "configure:11316: checking for long double round functions" >&5
11316 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
11317 echo $ac_n "(cached) $ac_c" 1>&6
11318 else
11321 ac_ext=C
11322 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11323 ac_cpp='$CXXCPP $CPPFLAGS'
11324 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11325 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11326 cross_compiling=$ac_cv_prog_cxx_cross
11328 cat > conftest.$ac_ext <<EOF
11329 #line 11330 "configure"
11330 #include "confdefs.h"
11331 #include <math.h>
11332 int main() {
11333 `for x in ceill floorl; do echo "$x (0);"; done`
11334 ; return 0; }
11336 if { (eval echo configure:11337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11337 rm -rf conftest*
11338 glibcpp_cv_func_long_double_round_use=yes
11339 else
11340 echo "configure: failed program was:" >&5
11341 cat conftest.$ac_ext >&5
11342 rm -rf conftest*
11343 glibcpp_cv_func_long_double_round_use=no
11345 rm -f conftest*
11346 ac_ext=c
11347 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11348 ac_cpp='$CPP $CPPFLAGS'
11349 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11350 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11351 cross_compiling=$ac_cv_prog_cc_cross
11355 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11356 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11357 for ac_func in ceill floorl
11359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11360 echo "configure:11361: checking for $ac_func" >&5
11361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11362 echo $ac_n "(cached) $ac_c" 1>&6
11363 else
11364 cat > conftest.$ac_ext <<EOF
11365 #line 11366 "configure"
11366 #include "confdefs.h"
11367 /* System header to define __stub macros and hopefully few prototypes,
11368 which can conflict with char $ac_func(); below. */
11369 #include <assert.h>
11370 /* Override any gcc2 internal prototype to avoid an error. */
11371 /* We use char because int might match the return type of a gcc2
11372 builtin and then its argument prototype would still apply. */
11373 char $ac_func();
11375 int main() {
11377 /* The GNU C library defines this for functions which it implements
11378 to always fail with ENOSYS. Some functions are actually named
11379 something starting with __ and the normal name is an alias. */
11380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11381 choke me
11382 #else
11383 $ac_func();
11384 #endif
11386 ; return 0; }
11388 if { (eval echo configure:11389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11389 rm -rf conftest*
11390 eval "ac_cv_func_$ac_func=yes"
11391 else
11392 echo "configure: failed program was:" >&5
11393 cat conftest.$ac_ext >&5
11394 rm -rf conftest*
11395 eval "ac_cv_func_$ac_func=no"
11397 rm -f conftest*
11400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11401 echo "$ac_t""yes" 1>&6
11402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11403 cat >> confdefs.h <<EOF
11404 #define $ac_tr_func 1
11407 else
11408 echo "$ac_t""no" 1>&6
11410 done
11416 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11417 echo "configure:11418: checking for isnanl declaration" >&5
11418 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11419 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11420 echo $ac_n "(cached) $ac_c" 1>&6
11421 else
11424 ac_ext=C
11425 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11426 ac_cpp='$CXXCPP $CPPFLAGS'
11427 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11428 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11429 cross_compiling=$ac_cv_prog_cxx_cross
11431 cat > conftest.$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11434 #include <math.h>
11435 #ifdef HAVE_IEEEFP_H
11436 #include <ieeefp.h>
11437 #endif
11439 int main() {
11440 isnanl(0);
11441 ; return 0; }
11443 if { (eval echo configure:11444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11444 rm -rf conftest*
11445 glibcpp_cv_func_isnanl_use=yes
11446 else
11447 echo "configure: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11449 rm -rf conftest*
11450 glibcpp_cv_func_isnanl_use=no
11452 rm -f conftest*
11453 ac_ext=c
11454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11455 ac_cpp='$CPP $CPPFLAGS'
11456 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11457 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11458 cross_compiling=$ac_cv_prog_cc_cross
11464 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11466 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11467 for ac_func in isnanl
11469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11470 echo "configure:11471: checking for $ac_func" >&5
11471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11472 echo $ac_n "(cached) $ac_c" 1>&6
11473 else
11474 cat > conftest.$ac_ext <<EOF
11475 #line 11476 "configure"
11476 #include "confdefs.h"
11477 /* System header to define __stub macros and hopefully few prototypes,
11478 which can conflict with char $ac_func(); below. */
11479 #include <assert.h>
11480 /* Override any gcc2 internal prototype to avoid an error. */
11481 /* We use char because int might match the return type of a gcc2
11482 builtin and then its argument prototype would still apply. */
11483 char $ac_func();
11485 int main() {
11487 /* The GNU C library defines this for functions which it implements
11488 to always fail with ENOSYS. Some functions are actually named
11489 something starting with __ and the normal name is an alias. */
11490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11491 choke me
11492 #else
11493 $ac_func();
11494 #endif
11496 ; return 0; }
11498 if { (eval echo configure:11499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11499 rm -rf conftest*
11500 eval "ac_cv_func_$ac_func=yes"
11501 else
11502 echo "configure: failed program was:" >&5
11503 cat conftest.$ac_ext >&5
11504 rm -rf conftest*
11505 eval "ac_cv_func_$ac_func=no"
11507 rm -f conftest*
11510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11511 echo "$ac_t""yes" 1>&6
11512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11513 cat >> confdefs.h <<EOF
11514 #define $ac_tr_func 1
11517 else
11518 echo "$ac_t""no" 1>&6
11520 done
11522 else
11524 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11525 echo "configure:11526: checking for _isnanl declaration" >&5
11526 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11527 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11528 echo $ac_n "(cached) $ac_c" 1>&6
11529 else
11532 ac_ext=C
11533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11534 ac_cpp='$CXXCPP $CPPFLAGS'
11535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11537 cross_compiling=$ac_cv_prog_cxx_cross
11539 cat > conftest.$ac_ext <<EOF
11540 #line 11541 "configure"
11541 #include "confdefs.h"
11542 #include <math.h>
11543 #ifdef HAVE_IEEEFP_H
11544 #include <ieeefp.h>
11545 #endif
11547 int main() {
11548 _isnanl(0);
11549 ; return 0; }
11551 if { (eval echo configure:11552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11552 rm -rf conftest*
11553 glibcpp_cv_func__isnanl_use=yes
11554 else
11555 echo "configure: failed program was:" >&5
11556 cat conftest.$ac_ext >&5
11557 rm -rf conftest*
11558 glibcpp_cv_func__isnanl_use=no
11560 rm -f conftest*
11561 ac_ext=c
11562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11563 ac_cpp='$CPP $CPPFLAGS'
11564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11566 cross_compiling=$ac_cv_prog_cc_cross
11572 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11574 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11575 for ac_func in _isnanl
11577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11578 echo "configure:11579: checking for $ac_func" >&5
11579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11580 echo $ac_n "(cached) $ac_c" 1>&6
11581 else
11582 cat > conftest.$ac_ext <<EOF
11583 #line 11584 "configure"
11584 #include "confdefs.h"
11585 /* System header to define __stub macros and hopefully few prototypes,
11586 which can conflict with char $ac_func(); below. */
11587 #include <assert.h>
11588 /* Override any gcc2 internal prototype to avoid an error. */
11589 /* We use char because int might match the return type of a gcc2
11590 builtin and then its argument prototype would still apply. */
11591 char $ac_func();
11593 int main() {
11595 /* The GNU C library defines this for functions which it implements
11596 to always fail with ENOSYS. Some functions are actually named
11597 something starting with __ and the normal name is an alias. */
11598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11599 choke me
11600 #else
11601 $ac_func();
11602 #endif
11604 ; return 0; }
11606 if { (eval echo configure:11607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11607 rm -rf conftest*
11608 eval "ac_cv_func_$ac_func=yes"
11609 else
11610 echo "configure: failed program was:" >&5
11611 cat conftest.$ac_ext >&5
11612 rm -rf conftest*
11613 eval "ac_cv_func_$ac_func=no"
11615 rm -f conftest*
11618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11619 echo "$ac_t""yes" 1>&6
11620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11621 cat >> confdefs.h <<EOF
11622 #define $ac_tr_func 1
11625 else
11626 echo "$ac_t""no" 1>&6
11628 done
11635 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11636 echo "configure:11637: checking for isinfl declaration" >&5
11637 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11638 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11639 echo $ac_n "(cached) $ac_c" 1>&6
11640 else
11643 ac_ext=C
11644 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11645 ac_cpp='$CXXCPP $CPPFLAGS'
11646 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11647 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11648 cross_compiling=$ac_cv_prog_cxx_cross
11650 cat > conftest.$ac_ext <<EOF
11651 #line 11652 "configure"
11652 #include "confdefs.h"
11653 #include <math.h>
11654 #ifdef HAVE_IEEEFP_H
11655 #include <ieeefp.h>
11656 #endif
11658 int main() {
11659 isinfl(0);
11660 ; return 0; }
11662 if { (eval echo configure:11663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11663 rm -rf conftest*
11664 glibcpp_cv_func_isinfl_use=yes
11665 else
11666 echo "configure: failed program was:" >&5
11667 cat conftest.$ac_ext >&5
11668 rm -rf conftest*
11669 glibcpp_cv_func_isinfl_use=no
11671 rm -f conftest*
11672 ac_ext=c
11673 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11674 ac_cpp='$CPP $CPPFLAGS'
11675 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11676 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11677 cross_compiling=$ac_cv_prog_cc_cross
11683 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11685 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11686 for ac_func in isinfl
11688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11689 echo "configure:11690: checking for $ac_func" >&5
11690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11691 echo $ac_n "(cached) $ac_c" 1>&6
11692 else
11693 cat > conftest.$ac_ext <<EOF
11694 #line 11695 "configure"
11695 #include "confdefs.h"
11696 /* System header to define __stub macros and hopefully few prototypes,
11697 which can conflict with char $ac_func(); below. */
11698 #include <assert.h>
11699 /* Override any gcc2 internal prototype to avoid an error. */
11700 /* We use char because int might match the return type of a gcc2
11701 builtin and then its argument prototype would still apply. */
11702 char $ac_func();
11704 int main() {
11706 /* The GNU C library defines this for functions which it implements
11707 to always fail with ENOSYS. Some functions are actually named
11708 something starting with __ and the normal name is an alias. */
11709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11710 choke me
11711 #else
11712 $ac_func();
11713 #endif
11715 ; return 0; }
11717 if { (eval echo configure:11718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11718 rm -rf conftest*
11719 eval "ac_cv_func_$ac_func=yes"
11720 else
11721 echo "configure: failed program was:" >&5
11722 cat conftest.$ac_ext >&5
11723 rm -rf conftest*
11724 eval "ac_cv_func_$ac_func=no"
11726 rm -f conftest*
11729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11730 echo "$ac_t""yes" 1>&6
11731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11732 cat >> confdefs.h <<EOF
11733 #define $ac_tr_func 1
11736 else
11737 echo "$ac_t""no" 1>&6
11739 done
11741 else
11743 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
11744 echo "configure:11745: checking for _isinfl declaration" >&5
11745 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
11746 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
11747 echo $ac_n "(cached) $ac_c" 1>&6
11748 else
11751 ac_ext=C
11752 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11753 ac_cpp='$CXXCPP $CPPFLAGS'
11754 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11755 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11756 cross_compiling=$ac_cv_prog_cxx_cross
11758 cat > conftest.$ac_ext <<EOF
11759 #line 11760 "configure"
11760 #include "confdefs.h"
11761 #include <math.h>
11762 #ifdef HAVE_IEEEFP_H
11763 #include <ieeefp.h>
11764 #endif
11766 int main() {
11767 _isinfl(0);
11768 ; return 0; }
11770 if { (eval echo configure:11771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11771 rm -rf conftest*
11772 glibcpp_cv_func__isinfl_use=yes
11773 else
11774 echo "configure: failed program was:" >&5
11775 cat conftest.$ac_ext >&5
11776 rm -rf conftest*
11777 glibcpp_cv_func__isinfl_use=no
11779 rm -f conftest*
11780 ac_ext=c
11781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11782 ac_cpp='$CPP $CPPFLAGS'
11783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11785 cross_compiling=$ac_cv_prog_cc_cross
11791 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11793 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11794 for ac_func in _isinfl
11796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11797 echo "configure:11798: checking for $ac_func" >&5
11798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11799 echo $ac_n "(cached) $ac_c" 1>&6
11800 else
11801 cat > conftest.$ac_ext <<EOF
11802 #line 11803 "configure"
11803 #include "confdefs.h"
11804 /* System header to define __stub macros and hopefully few prototypes,
11805 which can conflict with char $ac_func(); below. */
11806 #include <assert.h>
11807 /* Override any gcc2 internal prototype to avoid an error. */
11808 /* We use char because int might match the return type of a gcc2
11809 builtin and then its argument prototype would still apply. */
11810 char $ac_func();
11812 int main() {
11814 /* The GNU C library defines this for functions which it implements
11815 to always fail with ENOSYS. Some functions are actually named
11816 something starting with __ and the normal name is an alias. */
11817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11818 choke me
11819 #else
11820 $ac_func();
11821 #endif
11823 ; return 0; }
11825 if { (eval echo configure:11826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11826 rm -rf conftest*
11827 eval "ac_cv_func_$ac_func=yes"
11828 else
11829 echo "configure: failed program was:" >&5
11830 cat conftest.$ac_ext >&5
11831 rm -rf conftest*
11832 eval "ac_cv_func_$ac_func=no"
11834 rm -f conftest*
11837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11838 echo "$ac_t""yes" 1>&6
11839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11840 cat >> confdefs.h <<EOF
11841 #define $ac_tr_func 1
11844 else
11845 echo "$ac_t""no" 1>&6
11847 done
11854 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11855 echo "configure:11856: checking for copysignl declaration" >&5
11856 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11857 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11858 echo $ac_n "(cached) $ac_c" 1>&6
11859 else
11862 ac_ext=C
11863 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11864 ac_cpp='$CXXCPP $CPPFLAGS'
11865 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11866 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11867 cross_compiling=$ac_cv_prog_cxx_cross
11869 cat > conftest.$ac_ext <<EOF
11870 #line 11871 "configure"
11871 #include "confdefs.h"
11872 #include <math.h>
11873 int main() {
11874 copysignl(0, 0);
11875 ; return 0; }
11877 if { (eval echo configure:11878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11878 rm -rf conftest*
11879 glibcpp_cv_func_copysignl_use=yes
11880 else
11881 echo "configure: failed program was:" >&5
11882 cat conftest.$ac_ext >&5
11883 rm -rf conftest*
11884 glibcpp_cv_func_copysignl_use=no
11886 rm -f conftest*
11887 ac_ext=c
11888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11889 ac_cpp='$CPP $CPPFLAGS'
11890 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11891 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11892 cross_compiling=$ac_cv_prog_cc_cross
11898 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11900 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11901 for ac_func in copysignl
11903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11904 echo "configure:11905: checking for $ac_func" >&5
11905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11906 echo $ac_n "(cached) $ac_c" 1>&6
11907 else
11908 cat > conftest.$ac_ext <<EOF
11909 #line 11910 "configure"
11910 #include "confdefs.h"
11911 /* System header to define __stub macros and hopefully few prototypes,
11912 which can conflict with char $ac_func(); below. */
11913 #include <assert.h>
11914 /* Override any gcc2 internal prototype to avoid an error. */
11915 /* We use char because int might match the return type of a gcc2
11916 builtin and then its argument prototype would still apply. */
11917 char $ac_func();
11919 int main() {
11921 /* The GNU C library defines this for functions which it implements
11922 to always fail with ENOSYS. Some functions are actually named
11923 something starting with __ and the normal name is an alias. */
11924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11925 choke me
11926 #else
11927 $ac_func();
11928 #endif
11930 ; return 0; }
11932 if { (eval echo configure:11933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11933 rm -rf conftest*
11934 eval "ac_cv_func_$ac_func=yes"
11935 else
11936 echo "configure: failed program was:" >&5
11937 cat conftest.$ac_ext >&5
11938 rm -rf conftest*
11939 eval "ac_cv_func_$ac_func=no"
11941 rm -f conftest*
11944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11945 echo "$ac_t""yes" 1>&6
11946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11947 cat >> confdefs.h <<EOF
11948 #define $ac_tr_func 1
11951 else
11952 echo "$ac_t""no" 1>&6
11954 done
11956 else
11958 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11959 echo "configure:11960: checking for _copysignl declaration" >&5
11960 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11961 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11962 echo $ac_n "(cached) $ac_c" 1>&6
11963 else
11966 ac_ext=C
11967 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11968 ac_cpp='$CXXCPP $CPPFLAGS'
11969 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11970 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11971 cross_compiling=$ac_cv_prog_cxx_cross
11973 cat > conftest.$ac_ext <<EOF
11974 #line 11975 "configure"
11975 #include "confdefs.h"
11976 #include <math.h>
11977 int main() {
11978 _copysignl(0, 0);
11979 ; return 0; }
11981 if { (eval echo configure:11982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11982 rm -rf conftest*
11983 glibcpp_cv_func__copysignl_use=yes
11984 else
11985 echo "configure: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11987 rm -rf conftest*
11988 glibcpp_cv_func__copysignl_use=no
11990 rm -f conftest*
11991 ac_ext=c
11992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11993 ac_cpp='$CPP $CPPFLAGS'
11994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11996 cross_compiling=$ac_cv_prog_cc_cross
12002 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
12004 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
12005 for ac_func in _copysignl
12007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12008 echo "configure:12009: checking for $ac_func" >&5
12009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12010 echo $ac_n "(cached) $ac_c" 1>&6
12011 else
12012 cat > conftest.$ac_ext <<EOF
12013 #line 12014 "configure"
12014 #include "confdefs.h"
12015 /* System header to define __stub macros and hopefully few prototypes,
12016 which can conflict with char $ac_func(); below. */
12017 #include <assert.h>
12018 /* Override any gcc2 internal prototype to avoid an error. */
12019 /* We use char because int might match the return type of a gcc2
12020 builtin and then its argument prototype would still apply. */
12021 char $ac_func();
12023 int main() {
12025 /* The GNU C library defines this for functions which it implements
12026 to always fail with ENOSYS. Some functions are actually named
12027 something starting with __ and the normal name is an alias. */
12028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12029 choke me
12030 #else
12031 $ac_func();
12032 #endif
12034 ; return 0; }
12036 if { (eval echo configure:12037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12037 rm -rf conftest*
12038 eval "ac_cv_func_$ac_func=yes"
12039 else
12040 echo "configure: failed program was:" >&5
12041 cat conftest.$ac_ext >&5
12042 rm -rf conftest*
12043 eval "ac_cv_func_$ac_func=no"
12045 rm -f conftest*
12048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12049 echo "$ac_t""yes" 1>&6
12050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12051 cat >> confdefs.h <<EOF
12052 #define $ac_tr_func 1
12055 else
12056 echo "$ac_t""no" 1>&6
12058 done
12065 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
12066 echo "configure:12067: checking for atan2l declaration" >&5
12067 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
12068 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
12069 echo $ac_n "(cached) $ac_c" 1>&6
12070 else
12073 ac_ext=C
12074 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12075 ac_cpp='$CXXCPP $CPPFLAGS'
12076 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12077 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12078 cross_compiling=$ac_cv_prog_cxx_cross
12080 cat > conftest.$ac_ext <<EOF
12081 #line 12082 "configure"
12082 #include "confdefs.h"
12083 #include <math.h>
12084 int main() {
12085 atan2l(0, 0);
12086 ; return 0; }
12088 if { (eval echo configure:12089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12089 rm -rf conftest*
12090 glibcpp_cv_func_atan2l_use=yes
12091 else
12092 echo "configure: failed program was:" >&5
12093 cat conftest.$ac_ext >&5
12094 rm -rf conftest*
12095 glibcpp_cv_func_atan2l_use=no
12097 rm -f conftest*
12098 ac_ext=c
12099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12100 ac_cpp='$CPP $CPPFLAGS'
12101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12103 cross_compiling=$ac_cv_prog_cc_cross
12109 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
12111 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
12112 for ac_func in atan2l
12114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12115 echo "configure:12116: checking for $ac_func" >&5
12116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12117 echo $ac_n "(cached) $ac_c" 1>&6
12118 else
12119 cat > conftest.$ac_ext <<EOF
12120 #line 12121 "configure"
12121 #include "confdefs.h"
12122 /* System header to define __stub macros and hopefully few prototypes,
12123 which can conflict with char $ac_func(); below. */
12124 #include <assert.h>
12125 /* Override any gcc2 internal prototype to avoid an error. */
12126 /* We use char because int might match the return type of a gcc2
12127 builtin and then its argument prototype would still apply. */
12128 char $ac_func();
12130 int main() {
12132 /* The GNU C library defines this for functions which it implements
12133 to always fail with ENOSYS. Some functions are actually named
12134 something starting with __ and the normal name is an alias. */
12135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12136 choke me
12137 #else
12138 $ac_func();
12139 #endif
12141 ; return 0; }
12143 if { (eval echo configure:12144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12144 rm -rf conftest*
12145 eval "ac_cv_func_$ac_func=yes"
12146 else
12147 echo "configure: failed program was:" >&5
12148 cat conftest.$ac_ext >&5
12149 rm -rf conftest*
12150 eval "ac_cv_func_$ac_func=no"
12152 rm -f conftest*
12155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12156 echo "$ac_t""yes" 1>&6
12157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12158 cat >> confdefs.h <<EOF
12159 #define $ac_tr_func 1
12162 else
12163 echo "$ac_t""no" 1>&6
12165 done
12167 else
12169 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
12170 echo "configure:12171: checking for _atan2l declaration" >&5
12171 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
12172 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
12173 echo $ac_n "(cached) $ac_c" 1>&6
12174 else
12177 ac_ext=C
12178 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12179 ac_cpp='$CXXCPP $CPPFLAGS'
12180 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12181 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12182 cross_compiling=$ac_cv_prog_cxx_cross
12184 cat > conftest.$ac_ext <<EOF
12185 #line 12186 "configure"
12186 #include "confdefs.h"
12187 #include <math.h>
12188 int main() {
12189 _atan2l(0, 0);
12190 ; return 0; }
12192 if { (eval echo configure:12193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12193 rm -rf conftest*
12194 glibcpp_cv_func__atan2l_use=yes
12195 else
12196 echo "configure: failed program was:" >&5
12197 cat conftest.$ac_ext >&5
12198 rm -rf conftest*
12199 glibcpp_cv_func__atan2l_use=no
12201 rm -f conftest*
12202 ac_ext=c
12203 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12204 ac_cpp='$CPP $CPPFLAGS'
12205 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12206 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12207 cross_compiling=$ac_cv_prog_cc_cross
12213 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
12215 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
12216 for ac_func in _atan2l
12218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12219 echo "configure:12220: checking for $ac_func" >&5
12220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12221 echo $ac_n "(cached) $ac_c" 1>&6
12222 else
12223 cat > conftest.$ac_ext <<EOF
12224 #line 12225 "configure"
12225 #include "confdefs.h"
12226 /* System header to define __stub macros and hopefully few prototypes,
12227 which can conflict with char $ac_func(); below. */
12228 #include <assert.h>
12229 /* Override any gcc2 internal prototype to avoid an error. */
12230 /* We use char because int might match the return type of a gcc2
12231 builtin and then its argument prototype would still apply. */
12232 char $ac_func();
12234 int main() {
12236 /* The GNU C library defines this for functions which it implements
12237 to always fail with ENOSYS. Some functions are actually named
12238 something starting with __ and the normal name is an alias. */
12239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12240 choke me
12241 #else
12242 $ac_func();
12243 #endif
12245 ; return 0; }
12247 if { (eval echo configure:12248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12248 rm -rf conftest*
12249 eval "ac_cv_func_$ac_func=yes"
12250 else
12251 echo "configure: failed program was:" >&5
12252 cat conftest.$ac_ext >&5
12253 rm -rf conftest*
12254 eval "ac_cv_func_$ac_func=no"
12256 rm -f conftest*
12259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12260 echo "$ac_t""yes" 1>&6
12261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12262 cat >> confdefs.h <<EOF
12263 #define $ac_tr_func 1
12266 else
12267 echo "$ac_t""no" 1>&6
12269 done
12276 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
12277 echo "configure:12278: checking for expl declaration" >&5
12278 if test x${glibcpp_cv_func_expl_use+set} != xset; then
12279 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
12280 echo $ac_n "(cached) $ac_c" 1>&6
12281 else
12284 ac_ext=C
12285 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12286 ac_cpp='$CXXCPP $CPPFLAGS'
12287 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12288 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12289 cross_compiling=$ac_cv_prog_cxx_cross
12291 cat > conftest.$ac_ext <<EOF
12292 #line 12293 "configure"
12293 #include "confdefs.h"
12294 #include <math.h>
12295 #ifdef HAVE_IEEEFP_H
12296 #include <ieeefp.h>
12297 #endif
12299 int main() {
12300 expl(0);
12301 ; return 0; }
12303 if { (eval echo configure:12304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12304 rm -rf conftest*
12305 glibcpp_cv_func_expl_use=yes
12306 else
12307 echo "configure: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12309 rm -rf conftest*
12310 glibcpp_cv_func_expl_use=no
12312 rm -f conftest*
12313 ac_ext=c
12314 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12315 ac_cpp='$CPP $CPPFLAGS'
12316 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12317 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12318 cross_compiling=$ac_cv_prog_cc_cross
12324 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
12326 if test x$glibcpp_cv_func_expl_use = x"yes"; then
12327 for ac_func in expl
12329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12330 echo "configure:12331: checking for $ac_func" >&5
12331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12332 echo $ac_n "(cached) $ac_c" 1>&6
12333 else
12334 cat > conftest.$ac_ext <<EOF
12335 #line 12336 "configure"
12336 #include "confdefs.h"
12337 /* System header to define __stub macros and hopefully few prototypes,
12338 which can conflict with char $ac_func(); below. */
12339 #include <assert.h>
12340 /* Override any gcc2 internal prototype to avoid an error. */
12341 /* We use char because int might match the return type of a gcc2
12342 builtin and then its argument prototype would still apply. */
12343 char $ac_func();
12345 int main() {
12347 /* The GNU C library defines this for functions which it implements
12348 to always fail with ENOSYS. Some functions are actually named
12349 something starting with __ and the normal name is an alias. */
12350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12351 choke me
12352 #else
12353 $ac_func();
12354 #endif
12356 ; return 0; }
12358 if { (eval echo configure:12359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12359 rm -rf conftest*
12360 eval "ac_cv_func_$ac_func=yes"
12361 else
12362 echo "configure: failed program was:" >&5
12363 cat conftest.$ac_ext >&5
12364 rm -rf conftest*
12365 eval "ac_cv_func_$ac_func=no"
12367 rm -f conftest*
12370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12371 echo "$ac_t""yes" 1>&6
12372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12373 cat >> confdefs.h <<EOF
12374 #define $ac_tr_func 1
12377 else
12378 echo "$ac_t""no" 1>&6
12380 done
12382 else
12384 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12385 echo "configure:12386: checking for _expl declaration" >&5
12386 if test x${glibcpp_cv_func__expl_use+set} != xset; then
12387 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12388 echo $ac_n "(cached) $ac_c" 1>&6
12389 else
12392 ac_ext=C
12393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12394 ac_cpp='$CXXCPP $CPPFLAGS'
12395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12397 cross_compiling=$ac_cv_prog_cxx_cross
12399 cat > conftest.$ac_ext <<EOF
12400 #line 12401 "configure"
12401 #include "confdefs.h"
12402 #include <math.h>
12403 #ifdef HAVE_IEEEFP_H
12404 #include <ieeefp.h>
12405 #endif
12407 int main() {
12408 _expl(0);
12409 ; return 0; }
12411 if { (eval echo configure:12412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12412 rm -rf conftest*
12413 glibcpp_cv_func__expl_use=yes
12414 else
12415 echo "configure: failed program was:" >&5
12416 cat conftest.$ac_ext >&5
12417 rm -rf conftest*
12418 glibcpp_cv_func__expl_use=no
12420 rm -f conftest*
12421 ac_ext=c
12422 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12423 ac_cpp='$CPP $CPPFLAGS'
12424 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12425 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12426 cross_compiling=$ac_cv_prog_cc_cross
12432 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12434 if test x$glibcpp_cv_func__expl_use = x"yes"; then
12435 for ac_func in _expl
12437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12438 echo "configure:12439: checking for $ac_func" >&5
12439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12440 echo $ac_n "(cached) $ac_c" 1>&6
12441 else
12442 cat > conftest.$ac_ext <<EOF
12443 #line 12444 "configure"
12444 #include "confdefs.h"
12445 /* System header to define __stub macros and hopefully few prototypes,
12446 which can conflict with char $ac_func(); below. */
12447 #include <assert.h>
12448 /* Override any gcc2 internal prototype to avoid an error. */
12449 /* We use char because int might match the return type of a gcc2
12450 builtin and then its argument prototype would still apply. */
12451 char $ac_func();
12453 int main() {
12455 /* The GNU C library defines this for functions which it implements
12456 to always fail with ENOSYS. Some functions are actually named
12457 something starting with __ and the normal name is an alias. */
12458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12459 choke me
12460 #else
12461 $ac_func();
12462 #endif
12464 ; return 0; }
12466 if { (eval echo configure:12467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12467 rm -rf conftest*
12468 eval "ac_cv_func_$ac_func=yes"
12469 else
12470 echo "configure: failed program was:" >&5
12471 cat conftest.$ac_ext >&5
12472 rm -rf conftest*
12473 eval "ac_cv_func_$ac_func=no"
12475 rm -f conftest*
12478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12479 echo "$ac_t""yes" 1>&6
12480 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12481 cat >> confdefs.h <<EOF
12482 #define $ac_tr_func 1
12485 else
12486 echo "$ac_t""no" 1>&6
12488 done
12495 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12496 echo "configure:12497: checking for fabsl declaration" >&5
12497 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12498 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12499 echo $ac_n "(cached) $ac_c" 1>&6
12500 else
12503 ac_ext=C
12504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12505 ac_cpp='$CXXCPP $CPPFLAGS'
12506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12508 cross_compiling=$ac_cv_prog_cxx_cross
12510 cat > conftest.$ac_ext <<EOF
12511 #line 12512 "configure"
12512 #include "confdefs.h"
12513 #include <math.h>
12514 #ifdef HAVE_IEEEFP_H
12515 #include <ieeefp.h>
12516 #endif
12518 int main() {
12519 fabsl(0);
12520 ; return 0; }
12522 if { (eval echo configure:12523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12523 rm -rf conftest*
12524 glibcpp_cv_func_fabsl_use=yes
12525 else
12526 echo "configure: failed program was:" >&5
12527 cat conftest.$ac_ext >&5
12528 rm -rf conftest*
12529 glibcpp_cv_func_fabsl_use=no
12531 rm -f conftest*
12532 ac_ext=c
12533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12534 ac_cpp='$CPP $CPPFLAGS'
12535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12537 cross_compiling=$ac_cv_prog_cc_cross
12543 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12545 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12546 for ac_func in fabsl
12548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12549 echo "configure:12550: checking for $ac_func" >&5
12550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12551 echo $ac_n "(cached) $ac_c" 1>&6
12552 else
12553 cat > conftest.$ac_ext <<EOF
12554 #line 12555 "configure"
12555 #include "confdefs.h"
12556 /* System header to define __stub macros and hopefully few prototypes,
12557 which can conflict with char $ac_func(); below. */
12558 #include <assert.h>
12559 /* Override any gcc2 internal prototype to avoid an error. */
12560 /* We use char because int might match the return type of a gcc2
12561 builtin and then its argument prototype would still apply. */
12562 char $ac_func();
12564 int main() {
12566 /* The GNU C library defines this for functions which it implements
12567 to always fail with ENOSYS. Some functions are actually named
12568 something starting with __ and the normal name is an alias. */
12569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12570 choke me
12571 #else
12572 $ac_func();
12573 #endif
12575 ; return 0; }
12577 if { (eval echo configure:12578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12578 rm -rf conftest*
12579 eval "ac_cv_func_$ac_func=yes"
12580 else
12581 echo "configure: failed program was:" >&5
12582 cat conftest.$ac_ext >&5
12583 rm -rf conftest*
12584 eval "ac_cv_func_$ac_func=no"
12586 rm -f conftest*
12589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12590 echo "$ac_t""yes" 1>&6
12591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12592 cat >> confdefs.h <<EOF
12593 #define $ac_tr_func 1
12596 else
12597 echo "$ac_t""no" 1>&6
12599 done
12601 else
12603 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12604 echo "configure:12605: checking for _fabsl declaration" >&5
12605 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12606 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12607 echo $ac_n "(cached) $ac_c" 1>&6
12608 else
12611 ac_ext=C
12612 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12613 ac_cpp='$CXXCPP $CPPFLAGS'
12614 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12615 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12616 cross_compiling=$ac_cv_prog_cxx_cross
12618 cat > conftest.$ac_ext <<EOF
12619 #line 12620 "configure"
12620 #include "confdefs.h"
12621 #include <math.h>
12622 #ifdef HAVE_IEEEFP_H
12623 #include <ieeefp.h>
12624 #endif
12626 int main() {
12627 _fabsl(0);
12628 ; return 0; }
12630 if { (eval echo configure:12631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12631 rm -rf conftest*
12632 glibcpp_cv_func__fabsl_use=yes
12633 else
12634 echo "configure: failed program was:" >&5
12635 cat conftest.$ac_ext >&5
12636 rm -rf conftest*
12637 glibcpp_cv_func__fabsl_use=no
12639 rm -f conftest*
12640 ac_ext=c
12641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12642 ac_cpp='$CPP $CPPFLAGS'
12643 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12644 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12645 cross_compiling=$ac_cv_prog_cc_cross
12651 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
12653 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12654 for ac_func in _fabsl
12656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12657 echo "configure:12658: checking for $ac_func" >&5
12658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12659 echo $ac_n "(cached) $ac_c" 1>&6
12660 else
12661 cat > conftest.$ac_ext <<EOF
12662 #line 12663 "configure"
12663 #include "confdefs.h"
12664 /* System header to define __stub macros and hopefully few prototypes,
12665 which can conflict with char $ac_func(); below. */
12666 #include <assert.h>
12667 /* Override any gcc2 internal prototype to avoid an error. */
12668 /* We use char because int might match the return type of a gcc2
12669 builtin and then its argument prototype would still apply. */
12670 char $ac_func();
12672 int main() {
12674 /* The GNU C library defines this for functions which it implements
12675 to always fail with ENOSYS. Some functions are actually named
12676 something starting with __ and the normal name is an alias. */
12677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12678 choke me
12679 #else
12680 $ac_func();
12681 #endif
12683 ; return 0; }
12685 if { (eval echo configure:12686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12686 rm -rf conftest*
12687 eval "ac_cv_func_$ac_func=yes"
12688 else
12689 echo "configure: failed program was:" >&5
12690 cat conftest.$ac_ext >&5
12691 rm -rf conftest*
12692 eval "ac_cv_func_$ac_func=no"
12694 rm -f conftest*
12697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12698 echo "$ac_t""yes" 1>&6
12699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12700 cat >> confdefs.h <<EOF
12701 #define $ac_tr_func 1
12704 else
12705 echo "$ac_t""no" 1>&6
12707 done
12714 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
12715 echo "configure:12716: checking for fmodl declaration" >&5
12716 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
12717 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
12718 echo $ac_n "(cached) $ac_c" 1>&6
12719 else
12722 ac_ext=C
12723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12724 ac_cpp='$CXXCPP $CPPFLAGS'
12725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12727 cross_compiling=$ac_cv_prog_cxx_cross
12729 cat > conftest.$ac_ext <<EOF
12730 #line 12731 "configure"
12731 #include "confdefs.h"
12732 #include <math.h>
12733 int main() {
12734 fmodl(0, 0);
12735 ; return 0; }
12737 if { (eval echo configure:12738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12738 rm -rf conftest*
12739 glibcpp_cv_func_fmodl_use=yes
12740 else
12741 echo "configure: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12743 rm -rf conftest*
12744 glibcpp_cv_func_fmodl_use=no
12746 rm -f conftest*
12747 ac_ext=c
12748 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12749 ac_cpp='$CPP $CPPFLAGS'
12750 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12751 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12752 cross_compiling=$ac_cv_prog_cc_cross
12758 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12760 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12761 for ac_func in fmodl
12763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12764 echo "configure:12765: checking for $ac_func" >&5
12765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12766 echo $ac_n "(cached) $ac_c" 1>&6
12767 else
12768 cat > conftest.$ac_ext <<EOF
12769 #line 12770 "configure"
12770 #include "confdefs.h"
12771 /* System header to define __stub macros and hopefully few prototypes,
12772 which can conflict with char $ac_func(); below. */
12773 #include <assert.h>
12774 /* Override any gcc2 internal prototype to avoid an error. */
12775 /* We use char because int might match the return type of a gcc2
12776 builtin and then its argument prototype would still apply. */
12777 char $ac_func();
12779 int main() {
12781 /* The GNU C library defines this for functions which it implements
12782 to always fail with ENOSYS. Some functions are actually named
12783 something starting with __ and the normal name is an alias. */
12784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12785 choke me
12786 #else
12787 $ac_func();
12788 #endif
12790 ; return 0; }
12792 if { (eval echo configure:12793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12793 rm -rf conftest*
12794 eval "ac_cv_func_$ac_func=yes"
12795 else
12796 echo "configure: failed program was:" >&5
12797 cat conftest.$ac_ext >&5
12798 rm -rf conftest*
12799 eval "ac_cv_func_$ac_func=no"
12801 rm -f conftest*
12804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12805 echo "$ac_t""yes" 1>&6
12806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12807 cat >> confdefs.h <<EOF
12808 #define $ac_tr_func 1
12811 else
12812 echo "$ac_t""no" 1>&6
12814 done
12816 else
12818 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12819 echo "configure:12820: checking for _fmodl declaration" >&5
12820 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12821 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12822 echo $ac_n "(cached) $ac_c" 1>&6
12823 else
12826 ac_ext=C
12827 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12828 ac_cpp='$CXXCPP $CPPFLAGS'
12829 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12830 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12831 cross_compiling=$ac_cv_prog_cxx_cross
12833 cat > conftest.$ac_ext <<EOF
12834 #line 12835 "configure"
12835 #include "confdefs.h"
12836 #include <math.h>
12837 int main() {
12838 _fmodl(0, 0);
12839 ; return 0; }
12841 if { (eval echo configure:12842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12842 rm -rf conftest*
12843 glibcpp_cv_func__fmodl_use=yes
12844 else
12845 echo "configure: failed program was:" >&5
12846 cat conftest.$ac_ext >&5
12847 rm -rf conftest*
12848 glibcpp_cv_func__fmodl_use=no
12850 rm -f conftest*
12851 ac_ext=c
12852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12853 ac_cpp='$CPP $CPPFLAGS'
12854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12856 cross_compiling=$ac_cv_prog_cc_cross
12862 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12864 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12865 for ac_func in _fmodl
12867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12868 echo "configure:12869: checking for $ac_func" >&5
12869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12870 echo $ac_n "(cached) $ac_c" 1>&6
12871 else
12872 cat > conftest.$ac_ext <<EOF
12873 #line 12874 "configure"
12874 #include "confdefs.h"
12875 /* System header to define __stub macros and hopefully few prototypes,
12876 which can conflict with char $ac_func(); below. */
12877 #include <assert.h>
12878 /* Override any gcc2 internal prototype to avoid an error. */
12879 /* We use char because int might match the return type of a gcc2
12880 builtin and then its argument prototype would still apply. */
12881 char $ac_func();
12883 int main() {
12885 /* The GNU C library defines this for functions which it implements
12886 to always fail with ENOSYS. Some functions are actually named
12887 something starting with __ and the normal name is an alias. */
12888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12889 choke me
12890 #else
12891 $ac_func();
12892 #endif
12894 ; return 0; }
12896 if { (eval echo configure:12897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12897 rm -rf conftest*
12898 eval "ac_cv_func_$ac_func=yes"
12899 else
12900 echo "configure: failed program was:" >&5
12901 cat conftest.$ac_ext >&5
12902 rm -rf conftest*
12903 eval "ac_cv_func_$ac_func=no"
12905 rm -f conftest*
12908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12909 echo "$ac_t""yes" 1>&6
12910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12911 cat >> confdefs.h <<EOF
12912 #define $ac_tr_func 1
12915 else
12916 echo "$ac_t""no" 1>&6
12918 done
12925 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12926 echo "configure:12927: checking for frexpl declaration" >&5
12927 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12928 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12929 echo $ac_n "(cached) $ac_c" 1>&6
12930 else
12933 ac_ext=C
12934 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12935 ac_cpp='$CXXCPP $CPPFLAGS'
12936 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12937 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12938 cross_compiling=$ac_cv_prog_cxx_cross
12940 cat > conftest.$ac_ext <<EOF
12941 #line 12942 "configure"
12942 #include "confdefs.h"
12943 #include <math.h>
12944 int main() {
12945 frexpl(0, 0);
12946 ; return 0; }
12948 if { (eval echo configure:12949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12949 rm -rf conftest*
12950 glibcpp_cv_func_frexpl_use=yes
12951 else
12952 echo "configure: failed program was:" >&5
12953 cat conftest.$ac_ext >&5
12954 rm -rf conftest*
12955 glibcpp_cv_func_frexpl_use=no
12957 rm -f conftest*
12958 ac_ext=c
12959 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12960 ac_cpp='$CPP $CPPFLAGS'
12961 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12962 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12963 cross_compiling=$ac_cv_prog_cc_cross
12969 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12971 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12972 for ac_func in frexpl
12974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12975 echo "configure:12976: checking for $ac_func" >&5
12976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12977 echo $ac_n "(cached) $ac_c" 1>&6
12978 else
12979 cat > conftest.$ac_ext <<EOF
12980 #line 12981 "configure"
12981 #include "confdefs.h"
12982 /* System header to define __stub macros and hopefully few prototypes,
12983 which can conflict with char $ac_func(); below. */
12984 #include <assert.h>
12985 /* Override any gcc2 internal prototype to avoid an error. */
12986 /* We use char because int might match the return type of a gcc2
12987 builtin and then its argument prototype would still apply. */
12988 char $ac_func();
12990 int main() {
12992 /* The GNU C library defines this for functions which it implements
12993 to always fail with ENOSYS. Some functions are actually named
12994 something starting with __ and the normal name is an alias. */
12995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12996 choke me
12997 #else
12998 $ac_func();
12999 #endif
13001 ; return 0; }
13003 if { (eval echo configure:13004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13004 rm -rf conftest*
13005 eval "ac_cv_func_$ac_func=yes"
13006 else
13007 echo "configure: failed program was:" >&5
13008 cat conftest.$ac_ext >&5
13009 rm -rf conftest*
13010 eval "ac_cv_func_$ac_func=no"
13012 rm -f conftest*
13015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13016 echo "$ac_t""yes" 1>&6
13017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13018 cat >> confdefs.h <<EOF
13019 #define $ac_tr_func 1
13022 else
13023 echo "$ac_t""no" 1>&6
13025 done
13027 else
13029 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
13030 echo "configure:13031: checking for _frexpl declaration" >&5
13031 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
13032 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
13033 echo $ac_n "(cached) $ac_c" 1>&6
13034 else
13037 ac_ext=C
13038 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13039 ac_cpp='$CXXCPP $CPPFLAGS'
13040 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13041 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13042 cross_compiling=$ac_cv_prog_cxx_cross
13044 cat > conftest.$ac_ext <<EOF
13045 #line 13046 "configure"
13046 #include "confdefs.h"
13047 #include <math.h>
13048 int main() {
13049 _frexpl(0, 0);
13050 ; return 0; }
13052 if { (eval echo configure:13053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13053 rm -rf conftest*
13054 glibcpp_cv_func__frexpl_use=yes
13055 else
13056 echo "configure: failed program was:" >&5
13057 cat conftest.$ac_ext >&5
13058 rm -rf conftest*
13059 glibcpp_cv_func__frexpl_use=no
13061 rm -f conftest*
13062 ac_ext=c
13063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13064 ac_cpp='$CPP $CPPFLAGS'
13065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13067 cross_compiling=$ac_cv_prog_cc_cross
13073 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
13075 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
13076 for ac_func in _frexpl
13078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13079 echo "configure:13080: checking for $ac_func" >&5
13080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13081 echo $ac_n "(cached) $ac_c" 1>&6
13082 else
13083 cat > conftest.$ac_ext <<EOF
13084 #line 13085 "configure"
13085 #include "confdefs.h"
13086 /* System header to define __stub macros and hopefully few prototypes,
13087 which can conflict with char $ac_func(); below. */
13088 #include <assert.h>
13089 /* Override any gcc2 internal prototype to avoid an error. */
13090 /* We use char because int might match the return type of a gcc2
13091 builtin and then its argument prototype would still apply. */
13092 char $ac_func();
13094 int main() {
13096 /* The GNU C library defines this for functions which it implements
13097 to always fail with ENOSYS. Some functions are actually named
13098 something starting with __ and the normal name is an alias. */
13099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13100 choke me
13101 #else
13102 $ac_func();
13103 #endif
13105 ; return 0; }
13107 if { (eval echo configure:13108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13108 rm -rf conftest*
13109 eval "ac_cv_func_$ac_func=yes"
13110 else
13111 echo "configure: failed program was:" >&5
13112 cat conftest.$ac_ext >&5
13113 rm -rf conftest*
13114 eval "ac_cv_func_$ac_func=no"
13116 rm -f conftest*
13119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13120 echo "$ac_t""yes" 1>&6
13121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13122 cat >> confdefs.h <<EOF
13123 #define $ac_tr_func 1
13126 else
13127 echo "$ac_t""no" 1>&6
13129 done
13136 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
13137 echo "configure:13138: checking for ldexpl declaration" >&5
13138 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
13139 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
13140 echo $ac_n "(cached) $ac_c" 1>&6
13141 else
13144 ac_ext=C
13145 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13146 ac_cpp='$CXXCPP $CPPFLAGS'
13147 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13148 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13149 cross_compiling=$ac_cv_prog_cxx_cross
13151 cat > conftest.$ac_ext <<EOF
13152 #line 13153 "configure"
13153 #include "confdefs.h"
13154 #include <math.h>
13155 int main() {
13156 ldexpl(0, 0);
13157 ; return 0; }
13159 if { (eval echo configure:13160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13160 rm -rf conftest*
13161 glibcpp_cv_func_ldexpl_use=yes
13162 else
13163 echo "configure: failed program was:" >&5
13164 cat conftest.$ac_ext >&5
13165 rm -rf conftest*
13166 glibcpp_cv_func_ldexpl_use=no
13168 rm -f conftest*
13169 ac_ext=c
13170 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13171 ac_cpp='$CPP $CPPFLAGS'
13172 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13173 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13174 cross_compiling=$ac_cv_prog_cc_cross
13180 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
13182 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
13183 for ac_func in ldexpl
13185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13186 echo "configure:13187: checking for $ac_func" >&5
13187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13188 echo $ac_n "(cached) $ac_c" 1>&6
13189 else
13190 cat > conftest.$ac_ext <<EOF
13191 #line 13192 "configure"
13192 #include "confdefs.h"
13193 /* System header to define __stub macros and hopefully few prototypes,
13194 which can conflict with char $ac_func(); below. */
13195 #include <assert.h>
13196 /* Override any gcc2 internal prototype to avoid an error. */
13197 /* We use char because int might match the return type of a gcc2
13198 builtin and then its argument prototype would still apply. */
13199 char $ac_func();
13201 int main() {
13203 /* The GNU C library defines this for functions which it implements
13204 to always fail with ENOSYS. Some functions are actually named
13205 something starting with __ and the normal name is an alias. */
13206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13207 choke me
13208 #else
13209 $ac_func();
13210 #endif
13212 ; return 0; }
13214 if { (eval echo configure:13215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13215 rm -rf conftest*
13216 eval "ac_cv_func_$ac_func=yes"
13217 else
13218 echo "configure: failed program was:" >&5
13219 cat conftest.$ac_ext >&5
13220 rm -rf conftest*
13221 eval "ac_cv_func_$ac_func=no"
13223 rm -f conftest*
13226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13227 echo "$ac_t""yes" 1>&6
13228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13229 cat >> confdefs.h <<EOF
13230 #define $ac_tr_func 1
13233 else
13234 echo "$ac_t""no" 1>&6
13236 done
13238 else
13240 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
13241 echo "configure:13242: checking for _ldexpl declaration" >&5
13242 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
13243 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
13244 echo $ac_n "(cached) $ac_c" 1>&6
13245 else
13248 ac_ext=C
13249 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13250 ac_cpp='$CXXCPP $CPPFLAGS'
13251 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13252 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13253 cross_compiling=$ac_cv_prog_cxx_cross
13255 cat > conftest.$ac_ext <<EOF
13256 #line 13257 "configure"
13257 #include "confdefs.h"
13258 #include <math.h>
13259 int main() {
13260 _ldexpl(0, 0);
13261 ; return 0; }
13263 if { (eval echo configure:13264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13264 rm -rf conftest*
13265 glibcpp_cv_func__ldexpl_use=yes
13266 else
13267 echo "configure: failed program was:" >&5
13268 cat conftest.$ac_ext >&5
13269 rm -rf conftest*
13270 glibcpp_cv_func__ldexpl_use=no
13272 rm -f conftest*
13273 ac_ext=c
13274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13275 ac_cpp='$CPP $CPPFLAGS'
13276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13277 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13278 cross_compiling=$ac_cv_prog_cc_cross
13284 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
13286 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
13287 for ac_func in _ldexpl
13289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13290 echo "configure:13291: checking for $ac_func" >&5
13291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13292 echo $ac_n "(cached) $ac_c" 1>&6
13293 else
13294 cat > conftest.$ac_ext <<EOF
13295 #line 13296 "configure"
13296 #include "confdefs.h"
13297 /* System header to define __stub macros and hopefully few prototypes,
13298 which can conflict with char $ac_func(); below. */
13299 #include <assert.h>
13300 /* Override any gcc2 internal prototype to avoid an error. */
13301 /* We use char because int might match the return type of a gcc2
13302 builtin and then its argument prototype would still apply. */
13303 char $ac_func();
13305 int main() {
13307 /* The GNU C library defines this for functions which it implements
13308 to always fail with ENOSYS. Some functions are actually named
13309 something starting with __ and the normal name is an alias. */
13310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13311 choke me
13312 #else
13313 $ac_func();
13314 #endif
13316 ; return 0; }
13318 if { (eval echo configure:13319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13319 rm -rf conftest*
13320 eval "ac_cv_func_$ac_func=yes"
13321 else
13322 echo "configure: failed program was:" >&5
13323 cat conftest.$ac_ext >&5
13324 rm -rf conftest*
13325 eval "ac_cv_func_$ac_func=no"
13327 rm -f conftest*
13330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13331 echo "$ac_t""yes" 1>&6
13332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13333 cat >> confdefs.h <<EOF
13334 #define $ac_tr_func 1
13337 else
13338 echo "$ac_t""no" 1>&6
13340 done
13347 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13348 echo "configure:13349: checking for logl declaration" >&5
13349 if test x${glibcpp_cv_func_logl_use+set} != xset; then
13350 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13351 echo $ac_n "(cached) $ac_c" 1>&6
13352 else
13355 ac_ext=C
13356 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13357 ac_cpp='$CXXCPP $CPPFLAGS'
13358 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13359 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13360 cross_compiling=$ac_cv_prog_cxx_cross
13362 cat > conftest.$ac_ext <<EOF
13363 #line 13364 "configure"
13364 #include "confdefs.h"
13365 #include <math.h>
13366 #ifdef HAVE_IEEEFP_H
13367 #include <ieeefp.h>
13368 #endif
13370 int main() {
13371 logl(0);
13372 ; return 0; }
13374 if { (eval echo configure:13375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13375 rm -rf conftest*
13376 glibcpp_cv_func_logl_use=yes
13377 else
13378 echo "configure: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13380 rm -rf conftest*
13381 glibcpp_cv_func_logl_use=no
13383 rm -f conftest*
13384 ac_ext=c
13385 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13386 ac_cpp='$CPP $CPPFLAGS'
13387 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13388 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13389 cross_compiling=$ac_cv_prog_cc_cross
13395 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13397 if test x$glibcpp_cv_func_logl_use = x"yes"; then
13398 for ac_func in logl
13400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13401 echo "configure:13402: checking for $ac_func" >&5
13402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13403 echo $ac_n "(cached) $ac_c" 1>&6
13404 else
13405 cat > conftest.$ac_ext <<EOF
13406 #line 13407 "configure"
13407 #include "confdefs.h"
13408 /* System header to define __stub macros and hopefully few prototypes,
13409 which can conflict with char $ac_func(); below. */
13410 #include <assert.h>
13411 /* Override any gcc2 internal prototype to avoid an error. */
13412 /* We use char because int might match the return type of a gcc2
13413 builtin and then its argument prototype would still apply. */
13414 char $ac_func();
13416 int main() {
13418 /* The GNU C library defines this for functions which it implements
13419 to always fail with ENOSYS. Some functions are actually named
13420 something starting with __ and the normal name is an alias. */
13421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13422 choke me
13423 #else
13424 $ac_func();
13425 #endif
13427 ; return 0; }
13429 if { (eval echo configure:13430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13430 rm -rf conftest*
13431 eval "ac_cv_func_$ac_func=yes"
13432 else
13433 echo "configure: failed program was:" >&5
13434 cat conftest.$ac_ext >&5
13435 rm -rf conftest*
13436 eval "ac_cv_func_$ac_func=no"
13438 rm -f conftest*
13441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13442 echo "$ac_t""yes" 1>&6
13443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13444 cat >> confdefs.h <<EOF
13445 #define $ac_tr_func 1
13448 else
13449 echo "$ac_t""no" 1>&6
13451 done
13453 else
13455 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
13456 echo "configure:13457: checking for _logl declaration" >&5
13457 if test x${glibcpp_cv_func__logl_use+set} != xset; then
13458 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
13459 echo $ac_n "(cached) $ac_c" 1>&6
13460 else
13463 ac_ext=C
13464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13465 ac_cpp='$CXXCPP $CPPFLAGS'
13466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13468 cross_compiling=$ac_cv_prog_cxx_cross
13470 cat > conftest.$ac_ext <<EOF
13471 #line 13472 "configure"
13472 #include "confdefs.h"
13473 #include <math.h>
13474 #ifdef HAVE_IEEEFP_H
13475 #include <ieeefp.h>
13476 #endif
13478 int main() {
13479 _logl(0);
13480 ; return 0; }
13482 if { (eval echo configure:13483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13483 rm -rf conftest*
13484 glibcpp_cv_func__logl_use=yes
13485 else
13486 echo "configure: failed program was:" >&5
13487 cat conftest.$ac_ext >&5
13488 rm -rf conftest*
13489 glibcpp_cv_func__logl_use=no
13491 rm -f conftest*
13492 ac_ext=c
13493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13494 ac_cpp='$CPP $CPPFLAGS'
13495 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13496 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13497 cross_compiling=$ac_cv_prog_cc_cross
13503 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
13505 if test x$glibcpp_cv_func__logl_use = x"yes"; then
13506 for ac_func in _logl
13508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13509 echo "configure:13510: checking for $ac_func" >&5
13510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13511 echo $ac_n "(cached) $ac_c" 1>&6
13512 else
13513 cat > conftest.$ac_ext <<EOF
13514 #line 13515 "configure"
13515 #include "confdefs.h"
13516 /* System header to define __stub macros and hopefully few prototypes,
13517 which can conflict with char $ac_func(); below. */
13518 #include <assert.h>
13519 /* Override any gcc2 internal prototype to avoid an error. */
13520 /* We use char because int might match the return type of a gcc2
13521 builtin and then its argument prototype would still apply. */
13522 char $ac_func();
13524 int main() {
13526 /* The GNU C library defines this for functions which it implements
13527 to always fail with ENOSYS. Some functions are actually named
13528 something starting with __ and the normal name is an alias. */
13529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13530 choke me
13531 #else
13532 $ac_func();
13533 #endif
13535 ; return 0; }
13537 if { (eval echo configure:13538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13538 rm -rf conftest*
13539 eval "ac_cv_func_$ac_func=yes"
13540 else
13541 echo "configure: failed program was:" >&5
13542 cat conftest.$ac_ext >&5
13543 rm -rf conftest*
13544 eval "ac_cv_func_$ac_func=no"
13546 rm -f conftest*
13549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13550 echo "$ac_t""yes" 1>&6
13551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13552 cat >> confdefs.h <<EOF
13553 #define $ac_tr_func 1
13556 else
13557 echo "$ac_t""no" 1>&6
13559 done
13566 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
13567 echo "configure:13568: checking for log10l declaration" >&5
13568 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
13569 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
13570 echo $ac_n "(cached) $ac_c" 1>&6
13571 else
13574 ac_ext=C
13575 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13576 ac_cpp='$CXXCPP $CPPFLAGS'
13577 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13578 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13579 cross_compiling=$ac_cv_prog_cxx_cross
13581 cat > conftest.$ac_ext <<EOF
13582 #line 13583 "configure"
13583 #include "confdefs.h"
13584 #include <math.h>
13585 #ifdef HAVE_IEEEFP_H
13586 #include <ieeefp.h>
13587 #endif
13589 int main() {
13590 log10l(0);
13591 ; return 0; }
13593 if { (eval echo configure:13594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13594 rm -rf conftest*
13595 glibcpp_cv_func_log10l_use=yes
13596 else
13597 echo "configure: failed program was:" >&5
13598 cat conftest.$ac_ext >&5
13599 rm -rf conftest*
13600 glibcpp_cv_func_log10l_use=no
13602 rm -f conftest*
13603 ac_ext=c
13604 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13605 ac_cpp='$CPP $CPPFLAGS'
13606 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13607 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13608 cross_compiling=$ac_cv_prog_cc_cross
13614 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
13616 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
13617 for ac_func in log10l
13619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13620 echo "configure:13621: checking for $ac_func" >&5
13621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13622 echo $ac_n "(cached) $ac_c" 1>&6
13623 else
13624 cat > conftest.$ac_ext <<EOF
13625 #line 13626 "configure"
13626 #include "confdefs.h"
13627 /* System header to define __stub macros and hopefully few prototypes,
13628 which can conflict with char $ac_func(); below. */
13629 #include <assert.h>
13630 /* Override any gcc2 internal prototype to avoid an error. */
13631 /* We use char because int might match the return type of a gcc2
13632 builtin and then its argument prototype would still apply. */
13633 char $ac_func();
13635 int main() {
13637 /* The GNU C library defines this for functions which it implements
13638 to always fail with ENOSYS. Some functions are actually named
13639 something starting with __ and the normal name is an alias. */
13640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13641 choke me
13642 #else
13643 $ac_func();
13644 #endif
13646 ; return 0; }
13648 if { (eval echo configure:13649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13649 rm -rf conftest*
13650 eval "ac_cv_func_$ac_func=yes"
13651 else
13652 echo "configure: failed program was:" >&5
13653 cat conftest.$ac_ext >&5
13654 rm -rf conftest*
13655 eval "ac_cv_func_$ac_func=no"
13657 rm -f conftest*
13660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13661 echo "$ac_t""yes" 1>&6
13662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13663 cat >> confdefs.h <<EOF
13664 #define $ac_tr_func 1
13667 else
13668 echo "$ac_t""no" 1>&6
13670 done
13672 else
13674 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
13675 echo "configure:13676: checking for _log10l declaration" >&5
13676 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
13677 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
13678 echo $ac_n "(cached) $ac_c" 1>&6
13679 else
13682 ac_ext=C
13683 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13684 ac_cpp='$CXXCPP $CPPFLAGS'
13685 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13686 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13687 cross_compiling=$ac_cv_prog_cxx_cross
13689 cat > conftest.$ac_ext <<EOF
13690 #line 13691 "configure"
13691 #include "confdefs.h"
13692 #include <math.h>
13693 #ifdef HAVE_IEEEFP_H
13694 #include <ieeefp.h>
13695 #endif
13697 int main() {
13698 _log10l(0);
13699 ; return 0; }
13701 if { (eval echo configure:13702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13702 rm -rf conftest*
13703 glibcpp_cv_func__log10l_use=yes
13704 else
13705 echo "configure: failed program was:" >&5
13706 cat conftest.$ac_ext >&5
13707 rm -rf conftest*
13708 glibcpp_cv_func__log10l_use=no
13710 rm -f conftest*
13711 ac_ext=c
13712 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13713 ac_cpp='$CPP $CPPFLAGS'
13714 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13715 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13716 cross_compiling=$ac_cv_prog_cc_cross
13722 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
13724 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
13725 for ac_func in _log10l
13727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13728 echo "configure:13729: checking for $ac_func" >&5
13729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13730 echo $ac_n "(cached) $ac_c" 1>&6
13731 else
13732 cat > conftest.$ac_ext <<EOF
13733 #line 13734 "configure"
13734 #include "confdefs.h"
13735 /* System header to define __stub macros and hopefully few prototypes,
13736 which can conflict with char $ac_func(); below. */
13737 #include <assert.h>
13738 /* Override any gcc2 internal prototype to avoid an error. */
13739 /* We use char because int might match the return type of a gcc2
13740 builtin and then its argument prototype would still apply. */
13741 char $ac_func();
13743 int main() {
13745 /* The GNU C library defines this for functions which it implements
13746 to always fail with ENOSYS. Some functions are actually named
13747 something starting with __ and the normal name is an alias. */
13748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13749 choke me
13750 #else
13751 $ac_func();
13752 #endif
13754 ; return 0; }
13756 if { (eval echo configure:13757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13757 rm -rf conftest*
13758 eval "ac_cv_func_$ac_func=yes"
13759 else
13760 echo "configure: failed program was:" >&5
13761 cat conftest.$ac_ext >&5
13762 rm -rf conftest*
13763 eval "ac_cv_func_$ac_func=no"
13765 rm -f conftest*
13768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13769 echo "$ac_t""yes" 1>&6
13770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13771 cat >> confdefs.h <<EOF
13772 #define $ac_tr_func 1
13775 else
13776 echo "$ac_t""no" 1>&6
13778 done
13785 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13786 echo "configure:13787: checking for modfl declaration" >&5
13787 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13788 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13789 echo $ac_n "(cached) $ac_c" 1>&6
13790 else
13793 ac_ext=C
13794 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13795 ac_cpp='$CXXCPP $CPPFLAGS'
13796 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13797 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13798 cross_compiling=$ac_cv_prog_cxx_cross
13800 cat > conftest.$ac_ext <<EOF
13801 #line 13802 "configure"
13802 #include "confdefs.h"
13803 #include <math.h>
13804 int main() {
13805 modfl(0, 0);
13806 ; return 0; }
13808 if { (eval echo configure:13809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13809 rm -rf conftest*
13810 glibcpp_cv_func_modfl_use=yes
13811 else
13812 echo "configure: failed program was:" >&5
13813 cat conftest.$ac_ext >&5
13814 rm -rf conftest*
13815 glibcpp_cv_func_modfl_use=no
13817 rm -f conftest*
13818 ac_ext=c
13819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13820 ac_cpp='$CPP $CPPFLAGS'
13821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13823 cross_compiling=$ac_cv_prog_cc_cross
13829 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13831 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13832 for ac_func in modfl
13834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13835 echo "configure:13836: checking for $ac_func" >&5
13836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13837 echo $ac_n "(cached) $ac_c" 1>&6
13838 else
13839 cat > conftest.$ac_ext <<EOF
13840 #line 13841 "configure"
13841 #include "confdefs.h"
13842 /* System header to define __stub macros and hopefully few prototypes,
13843 which can conflict with char $ac_func(); below. */
13844 #include <assert.h>
13845 /* Override any gcc2 internal prototype to avoid an error. */
13846 /* We use char because int might match the return type of a gcc2
13847 builtin and then its argument prototype would still apply. */
13848 char $ac_func();
13850 int main() {
13852 /* The GNU C library defines this for functions which it implements
13853 to always fail with ENOSYS. Some functions are actually named
13854 something starting with __ and the normal name is an alias. */
13855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13856 choke me
13857 #else
13858 $ac_func();
13859 #endif
13861 ; return 0; }
13863 if { (eval echo configure:13864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13864 rm -rf conftest*
13865 eval "ac_cv_func_$ac_func=yes"
13866 else
13867 echo "configure: failed program was:" >&5
13868 cat conftest.$ac_ext >&5
13869 rm -rf conftest*
13870 eval "ac_cv_func_$ac_func=no"
13872 rm -f conftest*
13875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13876 echo "$ac_t""yes" 1>&6
13877 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13878 cat >> confdefs.h <<EOF
13879 #define $ac_tr_func 1
13882 else
13883 echo "$ac_t""no" 1>&6
13885 done
13887 else
13889 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13890 echo "configure:13891: checking for _modfl declaration" >&5
13891 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13892 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13893 echo $ac_n "(cached) $ac_c" 1>&6
13894 else
13897 ac_ext=C
13898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13899 ac_cpp='$CXXCPP $CPPFLAGS'
13900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13902 cross_compiling=$ac_cv_prog_cxx_cross
13904 cat > conftest.$ac_ext <<EOF
13905 #line 13906 "configure"
13906 #include "confdefs.h"
13907 #include <math.h>
13908 int main() {
13909 _modfl(0, 0);
13910 ; return 0; }
13912 if { (eval echo configure:13913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13913 rm -rf conftest*
13914 glibcpp_cv_func__modfl_use=yes
13915 else
13916 echo "configure: failed program was:" >&5
13917 cat conftest.$ac_ext >&5
13918 rm -rf conftest*
13919 glibcpp_cv_func__modfl_use=no
13921 rm -f conftest*
13922 ac_ext=c
13923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13924 ac_cpp='$CPP $CPPFLAGS'
13925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13927 cross_compiling=$ac_cv_prog_cc_cross
13933 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13935 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13936 for ac_func in _modfl
13938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13939 echo "configure:13940: checking for $ac_func" >&5
13940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13941 echo $ac_n "(cached) $ac_c" 1>&6
13942 else
13943 cat > conftest.$ac_ext <<EOF
13944 #line 13945 "configure"
13945 #include "confdefs.h"
13946 /* System header to define __stub macros and hopefully few prototypes,
13947 which can conflict with char $ac_func(); below. */
13948 #include <assert.h>
13949 /* Override any gcc2 internal prototype to avoid an error. */
13950 /* We use char because int might match the return type of a gcc2
13951 builtin and then its argument prototype would still apply. */
13952 char $ac_func();
13954 int main() {
13956 /* The GNU C library defines this for functions which it implements
13957 to always fail with ENOSYS. Some functions are actually named
13958 something starting with __ and the normal name is an alias. */
13959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13960 choke me
13961 #else
13962 $ac_func();
13963 #endif
13965 ; return 0; }
13967 if { (eval echo configure:13968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13968 rm -rf conftest*
13969 eval "ac_cv_func_$ac_func=yes"
13970 else
13971 echo "configure: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13973 rm -rf conftest*
13974 eval "ac_cv_func_$ac_func=no"
13976 rm -f conftest*
13979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13980 echo "$ac_t""yes" 1>&6
13981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13982 cat >> confdefs.h <<EOF
13983 #define $ac_tr_func 1
13986 else
13987 echo "$ac_t""no" 1>&6
13989 done
13996 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13997 echo "configure:13998: checking for powl declaration" >&5
13998 if test x${glibcpp_cv_func_powl_use+set} != xset; then
13999 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
14000 echo $ac_n "(cached) $ac_c" 1>&6
14001 else
14004 ac_ext=C
14005 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14006 ac_cpp='$CXXCPP $CPPFLAGS'
14007 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14008 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14009 cross_compiling=$ac_cv_prog_cxx_cross
14011 cat > conftest.$ac_ext <<EOF
14012 #line 14013 "configure"
14013 #include "confdefs.h"
14014 #include <math.h>
14015 int main() {
14016 powl(0, 0);
14017 ; return 0; }
14019 if { (eval echo configure:14020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14020 rm -rf conftest*
14021 glibcpp_cv_func_powl_use=yes
14022 else
14023 echo "configure: failed program was:" >&5
14024 cat conftest.$ac_ext >&5
14025 rm -rf conftest*
14026 glibcpp_cv_func_powl_use=no
14028 rm -f conftest*
14029 ac_ext=c
14030 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14031 ac_cpp='$CPP $CPPFLAGS'
14032 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14033 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14034 cross_compiling=$ac_cv_prog_cc_cross
14040 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
14042 if test x$glibcpp_cv_func_powl_use = x"yes"; then
14043 for ac_func in powl
14045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14046 echo "configure:14047: checking for $ac_func" >&5
14047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14048 echo $ac_n "(cached) $ac_c" 1>&6
14049 else
14050 cat > conftest.$ac_ext <<EOF
14051 #line 14052 "configure"
14052 #include "confdefs.h"
14053 /* System header to define __stub macros and hopefully few prototypes,
14054 which can conflict with char $ac_func(); below. */
14055 #include <assert.h>
14056 /* Override any gcc2 internal prototype to avoid an error. */
14057 /* We use char because int might match the return type of a gcc2
14058 builtin and then its argument prototype would still apply. */
14059 char $ac_func();
14061 int main() {
14063 /* The GNU C library defines this for functions which it implements
14064 to always fail with ENOSYS. Some functions are actually named
14065 something starting with __ and the normal name is an alias. */
14066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14067 choke me
14068 #else
14069 $ac_func();
14070 #endif
14072 ; return 0; }
14074 if { (eval echo configure:14075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14075 rm -rf conftest*
14076 eval "ac_cv_func_$ac_func=yes"
14077 else
14078 echo "configure: failed program was:" >&5
14079 cat conftest.$ac_ext >&5
14080 rm -rf conftest*
14081 eval "ac_cv_func_$ac_func=no"
14083 rm -f conftest*
14086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14087 echo "$ac_t""yes" 1>&6
14088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14089 cat >> confdefs.h <<EOF
14090 #define $ac_tr_func 1
14093 else
14094 echo "$ac_t""no" 1>&6
14096 done
14098 else
14100 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
14101 echo "configure:14102: checking for _powl declaration" >&5
14102 if test x${glibcpp_cv_func__powl_use+set} != xset; then
14103 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
14104 echo $ac_n "(cached) $ac_c" 1>&6
14105 else
14108 ac_ext=C
14109 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14110 ac_cpp='$CXXCPP $CPPFLAGS'
14111 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14112 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14113 cross_compiling=$ac_cv_prog_cxx_cross
14115 cat > conftest.$ac_ext <<EOF
14116 #line 14117 "configure"
14117 #include "confdefs.h"
14118 #include <math.h>
14119 int main() {
14120 _powl(0, 0);
14121 ; return 0; }
14123 if { (eval echo configure:14124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14124 rm -rf conftest*
14125 glibcpp_cv_func__powl_use=yes
14126 else
14127 echo "configure: failed program was:" >&5
14128 cat conftest.$ac_ext >&5
14129 rm -rf conftest*
14130 glibcpp_cv_func__powl_use=no
14132 rm -f conftest*
14133 ac_ext=c
14134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14135 ac_cpp='$CPP $CPPFLAGS'
14136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14138 cross_compiling=$ac_cv_prog_cc_cross
14144 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
14146 if test x$glibcpp_cv_func__powl_use = x"yes"; then
14147 for ac_func in _powl
14149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14150 echo "configure:14151: checking for $ac_func" >&5
14151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14152 echo $ac_n "(cached) $ac_c" 1>&6
14153 else
14154 cat > conftest.$ac_ext <<EOF
14155 #line 14156 "configure"
14156 #include "confdefs.h"
14157 /* System header to define __stub macros and hopefully few prototypes,
14158 which can conflict with char $ac_func(); below. */
14159 #include <assert.h>
14160 /* Override any gcc2 internal prototype to avoid an error. */
14161 /* We use char because int might match the return type of a gcc2
14162 builtin and then its argument prototype would still apply. */
14163 char $ac_func();
14165 int main() {
14167 /* The GNU C library defines this for functions which it implements
14168 to always fail with ENOSYS. Some functions are actually named
14169 something starting with __ and the normal name is an alias. */
14170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14171 choke me
14172 #else
14173 $ac_func();
14174 #endif
14176 ; return 0; }
14178 if { (eval echo configure:14179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14179 rm -rf conftest*
14180 eval "ac_cv_func_$ac_func=yes"
14181 else
14182 echo "configure: failed program was:" >&5
14183 cat conftest.$ac_ext >&5
14184 rm -rf conftest*
14185 eval "ac_cv_func_$ac_func=no"
14187 rm -f conftest*
14190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14191 echo "$ac_t""yes" 1>&6
14192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14193 cat >> confdefs.h <<EOF
14194 #define $ac_tr_func 1
14197 else
14198 echo "$ac_t""no" 1>&6
14200 done
14207 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
14208 echo "configure:14209: checking for sqrtl declaration" >&5
14209 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
14210 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
14211 echo $ac_n "(cached) $ac_c" 1>&6
14212 else
14215 ac_ext=C
14216 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14217 ac_cpp='$CXXCPP $CPPFLAGS'
14218 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14219 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14220 cross_compiling=$ac_cv_prog_cxx_cross
14222 cat > conftest.$ac_ext <<EOF
14223 #line 14224 "configure"
14224 #include "confdefs.h"
14225 #include <math.h>
14226 #ifdef HAVE_IEEEFP_H
14227 #include <ieeefp.h>
14228 #endif
14230 int main() {
14231 sqrtl(0);
14232 ; return 0; }
14234 if { (eval echo configure:14235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14235 rm -rf conftest*
14236 glibcpp_cv_func_sqrtl_use=yes
14237 else
14238 echo "configure: failed program was:" >&5
14239 cat conftest.$ac_ext >&5
14240 rm -rf conftest*
14241 glibcpp_cv_func_sqrtl_use=no
14243 rm -f conftest*
14244 ac_ext=c
14245 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14246 ac_cpp='$CPP $CPPFLAGS'
14247 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14248 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14249 cross_compiling=$ac_cv_prog_cc_cross
14255 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
14257 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
14258 for ac_func in sqrtl
14260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14261 echo "configure:14262: checking for $ac_func" >&5
14262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14263 echo $ac_n "(cached) $ac_c" 1>&6
14264 else
14265 cat > conftest.$ac_ext <<EOF
14266 #line 14267 "configure"
14267 #include "confdefs.h"
14268 /* System header to define __stub macros and hopefully few prototypes,
14269 which can conflict with char $ac_func(); below. */
14270 #include <assert.h>
14271 /* Override any gcc2 internal prototype to avoid an error. */
14272 /* We use char because int might match the return type of a gcc2
14273 builtin and then its argument prototype would still apply. */
14274 char $ac_func();
14276 int main() {
14278 /* The GNU C library defines this for functions which it implements
14279 to always fail with ENOSYS. Some functions are actually named
14280 something starting with __ and the normal name is an alias. */
14281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14282 choke me
14283 #else
14284 $ac_func();
14285 #endif
14287 ; return 0; }
14289 if { (eval echo configure:14290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14290 rm -rf conftest*
14291 eval "ac_cv_func_$ac_func=yes"
14292 else
14293 echo "configure: failed program was:" >&5
14294 cat conftest.$ac_ext >&5
14295 rm -rf conftest*
14296 eval "ac_cv_func_$ac_func=no"
14298 rm -f conftest*
14301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14302 echo "$ac_t""yes" 1>&6
14303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14304 cat >> confdefs.h <<EOF
14305 #define $ac_tr_func 1
14308 else
14309 echo "$ac_t""no" 1>&6
14311 done
14313 else
14315 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
14316 echo "configure:14317: checking for _sqrtl declaration" >&5
14317 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
14318 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
14319 echo $ac_n "(cached) $ac_c" 1>&6
14320 else
14323 ac_ext=C
14324 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14325 ac_cpp='$CXXCPP $CPPFLAGS'
14326 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14327 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14328 cross_compiling=$ac_cv_prog_cxx_cross
14330 cat > conftest.$ac_ext <<EOF
14331 #line 14332 "configure"
14332 #include "confdefs.h"
14333 #include <math.h>
14334 #ifdef HAVE_IEEEFP_H
14335 #include <ieeefp.h>
14336 #endif
14338 int main() {
14339 _sqrtl(0);
14340 ; return 0; }
14342 if { (eval echo configure:14343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14343 rm -rf conftest*
14344 glibcpp_cv_func__sqrtl_use=yes
14345 else
14346 echo "configure: failed program was:" >&5
14347 cat conftest.$ac_ext >&5
14348 rm -rf conftest*
14349 glibcpp_cv_func__sqrtl_use=no
14351 rm -f conftest*
14352 ac_ext=c
14353 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14354 ac_cpp='$CPP $CPPFLAGS'
14355 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14356 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14357 cross_compiling=$ac_cv_prog_cc_cross
14363 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14365 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14366 for ac_func in _sqrtl
14368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14369 echo "configure:14370: checking for $ac_func" >&5
14370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14371 echo $ac_n "(cached) $ac_c" 1>&6
14372 else
14373 cat > conftest.$ac_ext <<EOF
14374 #line 14375 "configure"
14375 #include "confdefs.h"
14376 /* System header to define __stub macros and hopefully few prototypes,
14377 which can conflict with char $ac_func(); below. */
14378 #include <assert.h>
14379 /* Override any gcc2 internal prototype to avoid an error. */
14380 /* We use char because int might match the return type of a gcc2
14381 builtin and then its argument prototype would still apply. */
14382 char $ac_func();
14384 int main() {
14386 /* The GNU C library defines this for functions which it implements
14387 to always fail with ENOSYS. Some functions are actually named
14388 something starting with __ and the normal name is an alias. */
14389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14390 choke me
14391 #else
14392 $ac_func();
14393 #endif
14395 ; return 0; }
14397 if { (eval echo configure:14398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14398 rm -rf conftest*
14399 eval "ac_cv_func_$ac_func=yes"
14400 else
14401 echo "configure: failed program was:" >&5
14402 cat conftest.$ac_ext >&5
14403 rm -rf conftest*
14404 eval "ac_cv_func_$ac_func=no"
14406 rm -f conftest*
14409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14410 echo "$ac_t""yes" 1>&6
14411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14412 cat >> confdefs.h <<EOF
14413 #define $ac_tr_func 1
14416 else
14417 echo "$ac_t""no" 1>&6
14419 done
14426 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
14427 echo "configure:14428: checking for sincosl declaration" >&5
14428 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
14429 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
14430 echo $ac_n "(cached) $ac_c" 1>&6
14431 else
14434 ac_ext=C
14435 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14436 ac_cpp='$CXXCPP $CPPFLAGS'
14437 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14438 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14439 cross_compiling=$ac_cv_prog_cxx_cross
14441 cat > conftest.$ac_ext <<EOF
14442 #line 14443 "configure"
14443 #include "confdefs.h"
14444 #include <math.h>
14445 int main() {
14446 sincosl(0, 0, 0);
14447 ; return 0; }
14449 if { (eval echo configure:14450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14450 rm -rf conftest*
14451 glibcpp_cv_func_sincosl_use=yes
14452 else
14453 echo "configure: failed program was:" >&5
14454 cat conftest.$ac_ext >&5
14455 rm -rf conftest*
14456 glibcpp_cv_func_sincosl_use=no
14458 rm -f conftest*
14459 ac_ext=c
14460 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14461 ac_cpp='$CPP $CPPFLAGS'
14462 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14463 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14464 cross_compiling=$ac_cv_prog_cc_cross
14470 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
14472 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
14473 for ac_func in sincosl
14475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14476 echo "configure:14477: checking for $ac_func" >&5
14477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14478 echo $ac_n "(cached) $ac_c" 1>&6
14479 else
14480 cat > conftest.$ac_ext <<EOF
14481 #line 14482 "configure"
14482 #include "confdefs.h"
14483 /* System header to define __stub macros and hopefully few prototypes,
14484 which can conflict with char $ac_func(); below. */
14485 #include <assert.h>
14486 /* Override any gcc2 internal prototype to avoid an error. */
14487 /* We use char because int might match the return type of a gcc2
14488 builtin and then its argument prototype would still apply. */
14489 char $ac_func();
14491 int main() {
14493 /* The GNU C library defines this for functions which it implements
14494 to always fail with ENOSYS. Some functions are actually named
14495 something starting with __ and the normal name is an alias. */
14496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14497 choke me
14498 #else
14499 $ac_func();
14500 #endif
14502 ; return 0; }
14504 if { (eval echo configure:14505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14505 rm -rf conftest*
14506 eval "ac_cv_func_$ac_func=yes"
14507 else
14508 echo "configure: failed program was:" >&5
14509 cat conftest.$ac_ext >&5
14510 rm -rf conftest*
14511 eval "ac_cv_func_$ac_func=no"
14513 rm -f conftest*
14516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14517 echo "$ac_t""yes" 1>&6
14518 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14519 cat >> confdefs.h <<EOF
14520 #define $ac_tr_func 1
14523 else
14524 echo "$ac_t""no" 1>&6
14526 done
14528 else
14530 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
14531 echo "configure:14532: checking for _sincosl declaration" >&5
14532 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
14533 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
14534 echo $ac_n "(cached) $ac_c" 1>&6
14535 else
14538 ac_ext=C
14539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14540 ac_cpp='$CXXCPP $CPPFLAGS'
14541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14543 cross_compiling=$ac_cv_prog_cxx_cross
14545 cat > conftest.$ac_ext <<EOF
14546 #line 14547 "configure"
14547 #include "confdefs.h"
14548 #include <math.h>
14549 int main() {
14550 _sincosl(0, 0, 0);
14551 ; return 0; }
14553 if { (eval echo configure:14554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14554 rm -rf conftest*
14555 glibcpp_cv_func__sincosl_use=yes
14556 else
14557 echo "configure: failed program was:" >&5
14558 cat conftest.$ac_ext >&5
14559 rm -rf conftest*
14560 glibcpp_cv_func__sincosl_use=no
14562 rm -f conftest*
14563 ac_ext=c
14564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14565 ac_cpp='$CPP $CPPFLAGS'
14566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14568 cross_compiling=$ac_cv_prog_cc_cross
14574 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
14576 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
14577 for ac_func in _sincosl
14579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14580 echo "configure:14581: checking for $ac_func" >&5
14581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14582 echo $ac_n "(cached) $ac_c" 1>&6
14583 else
14584 cat > conftest.$ac_ext <<EOF
14585 #line 14586 "configure"
14586 #include "confdefs.h"
14587 /* System header to define __stub macros and hopefully few prototypes,
14588 which can conflict with char $ac_func(); below. */
14589 #include <assert.h>
14590 /* Override any gcc2 internal prototype to avoid an error. */
14591 /* We use char because int might match the return type of a gcc2
14592 builtin and then its argument prototype would still apply. */
14593 char $ac_func();
14595 int main() {
14597 /* The GNU C library defines this for functions which it implements
14598 to always fail with ENOSYS. Some functions are actually named
14599 something starting with __ and the normal name is an alias. */
14600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14601 choke me
14602 #else
14603 $ac_func();
14604 #endif
14606 ; return 0; }
14608 if { (eval echo configure:14609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14609 rm -rf conftest*
14610 eval "ac_cv_func_$ac_func=yes"
14611 else
14612 echo "configure: failed program was:" >&5
14613 cat conftest.$ac_ext >&5
14614 rm -rf conftest*
14615 eval "ac_cv_func_$ac_func=no"
14617 rm -f conftest*
14620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14621 echo "$ac_t""yes" 1>&6
14622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14623 cat >> confdefs.h <<EOF
14624 #define $ac_tr_func 1
14627 else
14628 echo "$ac_t""no" 1>&6
14630 done
14637 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
14638 echo "configure:14639: checking for finitel declaration" >&5
14639 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
14640 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
14641 echo $ac_n "(cached) $ac_c" 1>&6
14642 else
14645 ac_ext=C
14646 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14647 ac_cpp='$CXXCPP $CPPFLAGS'
14648 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14649 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14650 cross_compiling=$ac_cv_prog_cxx_cross
14652 cat > conftest.$ac_ext <<EOF
14653 #line 14654 "configure"
14654 #include "confdefs.h"
14655 #include <math.h>
14656 #ifdef HAVE_IEEEFP_H
14657 #include <ieeefp.h>
14658 #endif
14660 int main() {
14661 finitel(0);
14662 ; return 0; }
14664 if { (eval echo configure:14665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14665 rm -rf conftest*
14666 glibcpp_cv_func_finitel_use=yes
14667 else
14668 echo "configure: failed program was:" >&5
14669 cat conftest.$ac_ext >&5
14670 rm -rf conftest*
14671 glibcpp_cv_func_finitel_use=no
14673 rm -f conftest*
14674 ac_ext=c
14675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14676 ac_cpp='$CPP $CPPFLAGS'
14677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14679 cross_compiling=$ac_cv_prog_cc_cross
14685 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
14687 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
14688 for ac_func in finitel
14690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14691 echo "configure:14692: checking for $ac_func" >&5
14692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14693 echo $ac_n "(cached) $ac_c" 1>&6
14694 else
14695 cat > conftest.$ac_ext <<EOF
14696 #line 14697 "configure"
14697 #include "confdefs.h"
14698 /* System header to define __stub macros and hopefully few prototypes,
14699 which can conflict with char $ac_func(); below. */
14700 #include <assert.h>
14701 /* Override any gcc2 internal prototype to avoid an error. */
14702 /* We use char because int might match the return type of a gcc2
14703 builtin and then its argument prototype would still apply. */
14704 char $ac_func();
14706 int main() {
14708 /* The GNU C library defines this for functions which it implements
14709 to always fail with ENOSYS. Some functions are actually named
14710 something starting with __ and the normal name is an alias. */
14711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14712 choke me
14713 #else
14714 $ac_func();
14715 #endif
14717 ; return 0; }
14719 if { (eval echo configure:14720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14720 rm -rf conftest*
14721 eval "ac_cv_func_$ac_func=yes"
14722 else
14723 echo "configure: failed program was:" >&5
14724 cat conftest.$ac_ext >&5
14725 rm -rf conftest*
14726 eval "ac_cv_func_$ac_func=no"
14728 rm -f conftest*
14731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14732 echo "$ac_t""yes" 1>&6
14733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14734 cat >> confdefs.h <<EOF
14735 #define $ac_tr_func 1
14738 else
14739 echo "$ac_t""no" 1>&6
14741 done
14743 else
14745 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
14746 echo "configure:14747: checking for _finitel declaration" >&5
14747 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
14748 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
14749 echo $ac_n "(cached) $ac_c" 1>&6
14750 else
14753 ac_ext=C
14754 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14755 ac_cpp='$CXXCPP $CPPFLAGS'
14756 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14757 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14758 cross_compiling=$ac_cv_prog_cxx_cross
14760 cat > conftest.$ac_ext <<EOF
14761 #line 14762 "configure"
14762 #include "confdefs.h"
14763 #include <math.h>
14764 #ifdef HAVE_IEEEFP_H
14765 #include <ieeefp.h>
14766 #endif
14768 int main() {
14769 _finitel(0);
14770 ; return 0; }
14772 if { (eval echo configure:14773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14773 rm -rf conftest*
14774 glibcpp_cv_func__finitel_use=yes
14775 else
14776 echo "configure: failed program was:" >&5
14777 cat conftest.$ac_ext >&5
14778 rm -rf conftest*
14779 glibcpp_cv_func__finitel_use=no
14781 rm -f conftest*
14782 ac_ext=c
14783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14784 ac_cpp='$CPP $CPPFLAGS'
14785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14787 cross_compiling=$ac_cv_prog_cc_cross
14793 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14795 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14796 for ac_func in _finitel
14798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14799 echo "configure:14800: checking for $ac_func" >&5
14800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14801 echo $ac_n "(cached) $ac_c" 1>&6
14802 else
14803 cat > conftest.$ac_ext <<EOF
14804 #line 14805 "configure"
14805 #include "confdefs.h"
14806 /* System header to define __stub macros and hopefully few prototypes,
14807 which can conflict with char $ac_func(); below. */
14808 #include <assert.h>
14809 /* Override any gcc2 internal prototype to avoid an error. */
14810 /* We use char because int might match the return type of a gcc2
14811 builtin and then its argument prototype would still apply. */
14812 char $ac_func();
14814 int main() {
14816 /* The GNU C library defines this for functions which it implements
14817 to always fail with ENOSYS. Some functions are actually named
14818 something starting with __ and the normal name is an alias. */
14819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14820 choke me
14821 #else
14822 $ac_func();
14823 #endif
14825 ; return 0; }
14827 if { (eval echo configure:14828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14828 rm -rf conftest*
14829 eval "ac_cv_func_$ac_func=yes"
14830 else
14831 echo "configure: failed program was:" >&5
14832 cat conftest.$ac_ext >&5
14833 rm -rf conftest*
14834 eval "ac_cv_func_$ac_func=no"
14836 rm -f conftest*
14839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14840 echo "$ac_t""yes" 1>&6
14841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14842 cat >> confdefs.h <<EOF
14843 #define $ac_tr_func 1
14846 else
14847 echo "$ac_t""no" 1>&6
14849 done
14857 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14858 echo "configure:14859: checking for _float trig functions" >&5
14859 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14860 echo $ac_n "(cached) $ac_c" 1>&6
14861 else
14864 ac_ext=C
14865 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14866 ac_cpp='$CXXCPP $CPPFLAGS'
14867 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14868 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14869 cross_compiling=$ac_cv_prog_cxx_cross
14871 cat > conftest.$ac_ext <<EOF
14872 #line 14873 "configure"
14873 #include "confdefs.h"
14874 #include <math.h>
14875 int main() {
14876 `for x in _acosf _asinf _atanf \
14877 _cosf _sinf _tanf \
14878 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
14879 ; return 0; }
14881 if { (eval echo configure:14882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14882 rm -rf conftest*
14883 glibcpp_cv_func__float_trig_use=yes
14884 else
14885 echo "configure: failed program was:" >&5
14886 cat conftest.$ac_ext >&5
14887 rm -rf conftest*
14888 glibcpp_cv_func__float_trig_use=no
14890 rm -f conftest*
14891 ac_ext=c
14892 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14893 ac_cpp='$CPP $CPPFLAGS'
14894 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14895 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14896 cross_compiling=$ac_cv_prog_cc_cross
14900 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14901 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14902 for ac_func in _acosf _asinf _atanf \
14903 _cosf _sinf _tanf \
14904 _coshf _sinhf _tanhf
14906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14907 echo "configure:14908: checking for $ac_func" >&5
14908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14909 echo $ac_n "(cached) $ac_c" 1>&6
14910 else
14911 cat > conftest.$ac_ext <<EOF
14912 #line 14913 "configure"
14913 #include "confdefs.h"
14914 /* System header to define __stub macros and hopefully few prototypes,
14915 which can conflict with char $ac_func(); below. */
14916 #include <assert.h>
14917 /* Override any gcc2 internal prototype to avoid an error. */
14918 /* We use char because int might match the return type of a gcc2
14919 builtin and then its argument prototype would still apply. */
14920 char $ac_func();
14922 int main() {
14924 /* The GNU C library defines this for functions which it implements
14925 to always fail with ENOSYS. Some functions are actually named
14926 something starting with __ and the normal name is an alias. */
14927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14928 choke me
14929 #else
14930 $ac_func();
14931 #endif
14933 ; return 0; }
14935 if { (eval echo configure:14936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14936 rm -rf conftest*
14937 eval "ac_cv_func_$ac_func=yes"
14938 else
14939 echo "configure: failed program was:" >&5
14940 cat conftest.$ac_ext >&5
14941 rm -rf conftest*
14942 eval "ac_cv_func_$ac_func=no"
14944 rm -f conftest*
14947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14948 echo "$ac_t""yes" 1>&6
14949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14950 cat >> confdefs.h <<EOF
14951 #define $ac_tr_func 1
14954 else
14955 echo "$ac_t""no" 1>&6
14957 done
14962 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14963 echo "configure:14964: checking for _float round functions" >&5
14964 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14965 echo $ac_n "(cached) $ac_c" 1>&6
14966 else
14969 ac_ext=C
14970 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14971 ac_cpp='$CXXCPP $CPPFLAGS'
14972 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14973 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14974 cross_compiling=$ac_cv_prog_cxx_cross
14976 cat > conftest.$ac_ext <<EOF
14977 #line 14978 "configure"
14978 #include "confdefs.h"
14979 #include <math.h>
14980 int main() {
14981 `for x in _ceilf _floorf; do echo "$x (0);"; done`
14982 ; return 0; }
14984 if { (eval echo configure:14985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14985 rm -rf conftest*
14986 glibcpp_cv_func__float_round_use=yes
14987 else
14988 echo "configure: failed program was:" >&5
14989 cat conftest.$ac_ext >&5
14990 rm -rf conftest*
14991 glibcpp_cv_func__float_round_use=no
14993 rm -f conftest*
14994 ac_ext=c
14995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14996 ac_cpp='$CPP $CPPFLAGS'
14997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14999 cross_compiling=$ac_cv_prog_cc_cross
15003 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
15004 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
15005 for ac_func in _ceilf _floorf
15007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15008 echo "configure:15009: checking for $ac_func" >&5
15009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15010 echo $ac_n "(cached) $ac_c" 1>&6
15011 else
15012 cat > conftest.$ac_ext <<EOF
15013 #line 15014 "configure"
15014 #include "confdefs.h"
15015 /* System header to define __stub macros and hopefully few prototypes,
15016 which can conflict with char $ac_func(); below. */
15017 #include <assert.h>
15018 /* Override any gcc2 internal prototype to avoid an error. */
15019 /* We use char because int might match the return type of a gcc2
15020 builtin and then its argument prototype would still apply. */
15021 char $ac_func();
15023 int main() {
15025 /* The GNU C library defines this for functions which it implements
15026 to always fail with ENOSYS. Some functions are actually named
15027 something starting with __ and the normal name is an alias. */
15028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15029 choke me
15030 #else
15031 $ac_func();
15032 #endif
15034 ; return 0; }
15036 if { (eval echo configure:15037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15037 rm -rf conftest*
15038 eval "ac_cv_func_$ac_func=yes"
15039 else
15040 echo "configure: failed program was:" >&5
15041 cat conftest.$ac_ext >&5
15042 rm -rf conftest*
15043 eval "ac_cv_func_$ac_func=no"
15045 rm -f conftest*
15048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15049 echo "$ac_t""yes" 1>&6
15050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15051 cat >> confdefs.h <<EOF
15052 #define $ac_tr_func 1
15055 else
15056 echo "$ac_t""no" 1>&6
15058 done
15064 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
15065 echo "configure:15066: checking for _long double trig functions" >&5
15066 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
15067 echo $ac_n "(cached) $ac_c" 1>&6
15068 else
15071 ac_ext=C
15072 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15073 ac_cpp='$CXXCPP $CPPFLAGS'
15074 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15075 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15076 cross_compiling=$ac_cv_prog_cxx_cross
15078 cat > conftest.$ac_ext <<EOF
15079 #line 15080 "configure"
15080 #include "confdefs.h"
15081 #include <math.h>
15082 int main() {
15083 `for x in _acosl _asinl _atanl \
15084 _cosl _sinl _tanl \
15085 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
15086 ; return 0; }
15088 if { (eval echo configure:15089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15089 rm -rf conftest*
15090 glibcpp_cv_func__long_double_trig_use=yes
15091 else
15092 echo "configure: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15094 rm -rf conftest*
15095 glibcpp_cv_func__long_double_trig_use=no
15097 rm -f conftest*
15098 ac_ext=c
15099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15100 ac_cpp='$CPP $CPPFLAGS'
15101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15103 cross_compiling=$ac_cv_prog_cc_cross
15107 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
15108 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
15109 for ac_func in _acosl _asinl _atanl \
15110 _cosl _sinl _tanl \
15111 _coshl _sinhl _tanhl
15113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15114 echo "configure:15115: checking for $ac_func" >&5
15115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15116 echo $ac_n "(cached) $ac_c" 1>&6
15117 else
15118 cat > conftest.$ac_ext <<EOF
15119 #line 15120 "configure"
15120 #include "confdefs.h"
15121 /* System header to define __stub macros and hopefully few prototypes,
15122 which can conflict with char $ac_func(); below. */
15123 #include <assert.h>
15124 /* Override any gcc2 internal prototype to avoid an error. */
15125 /* We use char because int might match the return type of a gcc2
15126 builtin and then its argument prototype would still apply. */
15127 char $ac_func();
15129 int main() {
15131 /* The GNU C library defines this for functions which it implements
15132 to always fail with ENOSYS. Some functions are actually named
15133 something starting with __ and the normal name is an alias. */
15134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15135 choke me
15136 #else
15137 $ac_func();
15138 #endif
15140 ; return 0; }
15142 if { (eval echo configure:15143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15143 rm -rf conftest*
15144 eval "ac_cv_func_$ac_func=yes"
15145 else
15146 echo "configure: failed program was:" >&5
15147 cat conftest.$ac_ext >&5
15148 rm -rf conftest*
15149 eval "ac_cv_func_$ac_func=no"
15151 rm -f conftest*
15154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15155 echo "$ac_t""yes" 1>&6
15156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15157 cat >> confdefs.h <<EOF
15158 #define $ac_tr_func 1
15161 else
15162 echo "$ac_t""no" 1>&6
15164 done
15169 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
15170 echo "configure:15171: checking for _long double round functions" >&5
15171 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
15172 echo $ac_n "(cached) $ac_c" 1>&6
15173 else
15176 ac_ext=C
15177 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15178 ac_cpp='$CXXCPP $CPPFLAGS'
15179 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15180 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15181 cross_compiling=$ac_cv_prog_cxx_cross
15183 cat > conftest.$ac_ext <<EOF
15184 #line 15185 "configure"
15185 #include "confdefs.h"
15186 #include <math.h>
15187 int main() {
15188 `for x in _ceill _floorl; do echo "$x (0);"; done`
15189 ; return 0; }
15191 if { (eval echo configure:15192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15192 rm -rf conftest*
15193 glibcpp_cv_func__long_double_round_use=yes
15194 else
15195 echo "configure: failed program was:" >&5
15196 cat conftest.$ac_ext >&5
15197 rm -rf conftest*
15198 glibcpp_cv_func__long_double_round_use=no
15200 rm -f conftest*
15201 ac_ext=c
15202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15203 ac_cpp='$CPP $CPPFLAGS'
15204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15206 cross_compiling=$ac_cv_prog_cc_cross
15210 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
15211 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
15212 for ac_func in _ceill _floorl
15214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15215 echo "configure:15216: checking for $ac_func" >&5
15216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15217 echo $ac_n "(cached) $ac_c" 1>&6
15218 else
15219 cat > conftest.$ac_ext <<EOF
15220 #line 15221 "configure"
15221 #include "confdefs.h"
15222 /* System header to define __stub macros and hopefully few prototypes,
15223 which can conflict with char $ac_func(); below. */
15224 #include <assert.h>
15225 /* Override any gcc2 internal prototype to avoid an error. */
15226 /* We use char because int might match the return type of a gcc2
15227 builtin and then its argument prototype would still apply. */
15228 char $ac_func();
15230 int main() {
15232 /* The GNU C library defines this for functions which it implements
15233 to always fail with ENOSYS. Some functions are actually named
15234 something starting with __ and the normal name is an alias. */
15235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15236 choke me
15237 #else
15238 $ac_func();
15239 #endif
15241 ; return 0; }
15243 if { (eval echo configure:15244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15244 rm -rf conftest*
15245 eval "ac_cv_func_$ac_func=yes"
15246 else
15247 echo "configure: failed program was:" >&5
15248 cat conftest.$ac_ext >&5
15249 rm -rf conftest*
15250 eval "ac_cv_func_$ac_func=no"
15252 rm -f conftest*
15255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15256 echo "$ac_t""yes" 1>&6
15257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15258 cat >> confdefs.h <<EOF
15259 #define $ac_tr_func 1
15262 else
15263 echo "$ac_t""no" 1>&6
15265 done
15270 LIBS="$ac_save_LIBS"
15271 CXXFLAGS="$ac_save_CXXFLAGS"
15274 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
15275 echo "configure:15276: checking for main in -lm" >&5
15276 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
15277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15278 echo $ac_n "(cached) $ac_c" 1>&6
15279 else
15280 ac_save_LIBS="$LIBS"
15281 LIBS="-lm $LIBS"
15282 cat > conftest.$ac_ext <<EOF
15283 #line 15284 "configure"
15284 #include "confdefs.h"
15286 int main() {
15287 main()
15288 ; return 0; }
15290 if { (eval echo configure:15291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15291 rm -rf conftest*
15292 eval "ac_cv_lib_$ac_lib_var=yes"
15293 else
15294 echo "configure: failed program was:" >&5
15295 cat conftest.$ac_ext >&5
15296 rm -rf conftest*
15297 eval "ac_cv_lib_$ac_lib_var=no"
15299 rm -f conftest*
15300 LIBS="$ac_save_LIBS"
15303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15304 echo "$ac_t""yes" 1>&6
15305 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15306 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15307 cat >> confdefs.h <<EOF
15308 #define $ac_tr_lib 1
15311 LIBS="-lm $LIBS"
15313 else
15314 echo "$ac_t""no" 1>&6
15317 for ac_func in nan hypot hypotf atan2f expf copysignf
15319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15320 echo "configure:15321: checking for $ac_func" >&5
15321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15322 echo $ac_n "(cached) $ac_c" 1>&6
15323 else
15324 cat > conftest.$ac_ext <<EOF
15325 #line 15326 "configure"
15326 #include "confdefs.h"
15327 /* System header to define __stub macros and hopefully few prototypes,
15328 which can conflict with char $ac_func(); below. */
15329 #include <assert.h>
15330 /* Override any gcc2 internal prototype to avoid an error. */
15331 /* We use char because int might match the return type of a gcc2
15332 builtin and then its argument prototype would still apply. */
15333 char $ac_func();
15335 int main() {
15337 /* The GNU C library defines this for functions which it implements
15338 to always fail with ENOSYS. Some functions are actually named
15339 something starting with __ and the normal name is an alias. */
15340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15341 choke me
15342 #else
15343 $ac_func();
15344 #endif
15346 ; return 0; }
15348 if { (eval echo configure:15349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15349 rm -rf conftest*
15350 eval "ac_cv_func_$ac_func=yes"
15351 else
15352 echo "configure: failed program was:" >&5
15353 cat conftest.$ac_ext >&5
15354 rm -rf conftest*
15355 eval "ac_cv_func_$ac_func=no"
15357 rm -f conftest*
15360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15361 echo "$ac_t""yes" 1>&6
15362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15363 cat >> confdefs.h <<EOF
15364 #define $ac_tr_func 1
15367 else
15368 echo "$ac_t""no" 1>&6
15369 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15371 done
15375 USE_COMPLEX_LONG_DOUBLE=no
15376 if test x$ac_cv_func_atan2l = x"yes" \
15377 && test x$ac_cv_func_copysignl = x"yes"; then
15378 USE_COMPLEX_LONG_DOUBLE=yes
15379 for ac_func in hypotl signbitl
15381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15382 echo "configure:15383: checking for $ac_func" >&5
15383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15384 echo $ac_n "(cached) $ac_c" 1>&6
15385 else
15386 cat > conftest.$ac_ext <<EOF
15387 #line 15388 "configure"
15388 #include "confdefs.h"
15389 /* System header to define __stub macros and hopefully few prototypes,
15390 which can conflict with char $ac_func(); below. */
15391 #include <assert.h>
15392 /* Override any gcc2 internal prototype to avoid an error. */
15393 /* We use char because int might match the return type of a gcc2
15394 builtin and then its argument prototype would still apply. */
15395 char $ac_func();
15397 int main() {
15399 /* The GNU C library defines this for functions which it implements
15400 to always fail with ENOSYS. Some functions are actually named
15401 something starting with __ and the normal name is an alias. */
15402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15403 choke me
15404 #else
15405 $ac_func();
15406 #endif
15408 ; return 0; }
15410 if { (eval echo configure:15411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15411 rm -rf conftest*
15412 eval "ac_cv_func_$ac_func=yes"
15413 else
15414 echo "configure: failed program was:" >&5
15415 cat conftest.$ac_ext >&5
15416 rm -rf conftest*
15417 eval "ac_cv_func_$ac_func=no"
15419 rm -f conftest*
15422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15423 echo "$ac_t""yes" 1>&6
15424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15425 cat >> confdefs.h <<EOF
15426 #define $ac_tr_func 1
15429 else
15430 echo "$ac_t""no" 1>&6
15431 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15433 done
15443 echo $ac_n "checking for GNU C++ __complex__ support""... $ac_c" 1>&6
15444 echo "configure:15445: checking for GNU C++ __complex__ support" >&5
15445 if eval "test \"`echo '$''{'glibcpp_cv_complex'+set}'`\" = set"; then
15446 echo $ac_n "(cached) $ac_c" 1>&6
15447 else
15450 ac_ext=C
15451 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15452 ac_cpp='$CXXCPP $CPPFLAGS'
15453 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15454 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15455 cross_compiling=$ac_cv_prog_cxx_cross
15457 cat > conftest.$ac_ext <<EOF
15458 #line 15459 "configure"
15459 #include "confdefs.h"
15460 struct dcomplex { __complex__ double x; }; \
15461 dcomplex f(const dcomplex& x) { return dcomplex(x); }
15462 int main() {
15464 dcomplex x; f(x);
15465 ; return 0; }
15467 if { (eval echo configure:15468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15468 rm -rf conftest*
15469 glibcpp_cv_complex=ok
15470 else
15471 echo "configure: failed program was:" >&5
15472 cat conftest.$ac_ext >&5
15473 rm -rf conftest*
15474 glibcpp_cv_complex=buggy
15477 rm -f conftest*
15478 ac_ext=c
15479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15480 ac_cpp='$CPP $CPPFLAGS'
15481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15483 cross_compiling=$ac_cv_prog_cc_cross
15488 echo "$ac_t""$glibcpp_cv_complex" 1>&6
15489 if test $glibcpp_cv_complex = buggy; then
15490 cat >> confdefs.h <<\EOF
15491 #define _GLIBCPP_BUGGY_COMPLEX 1
15496 echo $ac_n "checking for GNU C++ __complex__ float support""... $ac_c" 1>&6
15497 echo "configure:15498: checking for GNU C++ __complex__ float support" >&5
15498 if eval "test \"`echo '$''{'glibcpp_cv_float_complex'+set}'`\" = set"; then
15499 echo $ac_n "(cached) $ac_c" 1>&6
15500 else
15503 ac_ext=C
15504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15505 ac_cpp='$CXXCPP $CPPFLAGS'
15506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15508 cross_compiling=$ac_cv_prog_cxx_cross
15510 rm -f conftest.h
15511 cat > conftest.h <<EOB
15513 // Check for buggy __complex__ that causes ICE in most versions of egcs
15514 // and gcc-2.95.x on certain platforms (eg., x86-win32).
15516 // See http://gcc.gnu.org/ml/gcc-bugs/1999-07n/msg00845.html for
15517 // more info on the bug itself.
15519 struct
15520 float_complex
15522 __complex__ float m_value;
15523 float_complex (float = 0.0f, float = 0.0f);
15524 float_complex (__complex__ float val) : m_value (val) {}
15525 float_complex foo (const float_complex &val)
15526 { return float_complex (~val.m_value); }
15529 cat > conftest.$ac_ext <<EOF
15530 #line 15531 "configure"
15531 #include "confdefs.h"
15532 #include "conftest.h"
15533 int main() {
15535 ; return 0; }
15537 if { (eval echo configure:15538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15538 rm -rf conftest*
15539 glibcpp_cv_float_complex=ok
15540 else
15541 echo "configure: failed program was:" >&5
15542 cat conftest.$ac_ext >&5
15543 rm -rf conftest*
15544 glibcpp_cv_float_complex=buggy
15547 rm -f conftest*
15548 ac_ext=c
15549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15550 ac_cpp='$CPP $CPPFLAGS'
15551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15553 cross_compiling=$ac_cv_prog_cc_cross
15558 echo "$ac_t""$glibcpp_cv_float_complex" 1>&6
15559 if test $glibcpp_cv_float_complex = buggy; then
15560 cat >> confdefs.h <<\EOF
15561 #define _GLIBCPP_BUGGY_FLOAT_COMPLEX 1
15568 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15569 echo "configure:15570: checking for mbstate_t" >&5
15570 cat > conftest.$ac_ext <<EOF
15571 #line 15572 "configure"
15572 #include "confdefs.h"
15573 #include <wchar.h>
15574 int main() {
15575 mbstate_t teststate;
15576 ; return 0; }
15578 if { (eval echo configure:15579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15579 rm -rf conftest*
15580 have_mbstate_t=yes
15581 else
15582 echo "configure: failed program was:" >&5
15583 cat conftest.$ac_ext >&5
15584 rm -rf conftest*
15585 have_mbstate_t=no
15587 rm -f conftest*
15588 echo "$ac_t""$have_mbstate_t" 1>&6
15589 if test x"$have_mbstate_t" = xyes; then
15590 cat >> confdefs.h <<\EOF
15591 #define HAVE_MBSTATE_T 1
15596 for ac_hdr in wchar.h
15598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15600 echo "configure:15601: checking for $ac_hdr" >&5
15601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15602 echo $ac_n "(cached) $ac_c" 1>&6
15603 else
15604 cat > conftest.$ac_ext <<EOF
15605 #line 15606 "configure"
15606 #include "confdefs.h"
15607 #include <$ac_hdr>
15609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15610 { (eval echo configure:15611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15612 if test -z "$ac_err"; then
15613 rm -rf conftest*
15614 eval "ac_cv_header_$ac_safe=yes"
15615 else
15616 echo "$ac_err" >&5
15617 echo "configure: failed program was:" >&5
15618 cat conftest.$ac_ext >&5
15619 rm -rf conftest*
15620 eval "ac_cv_header_$ac_safe=no"
15622 rm -f conftest*
15624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15625 echo "$ac_t""yes" 1>&6
15626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15627 cat >> confdefs.h <<EOF
15628 #define $ac_tr_hdr 1
15630 ac_has_wchar_h=yes
15631 else
15632 echo "$ac_t""no" 1>&6
15633 ac_has_wchar_h=no
15635 done
15637 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
15638 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
15639 echo "configure:15640: checking for wctype.h" >&5
15640 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15641 echo $ac_n "(cached) $ac_c" 1>&6
15642 else
15643 cat > conftest.$ac_ext <<EOF
15644 #line 15645 "configure"
15645 #include "confdefs.h"
15646 #include <wctype.h>
15648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15649 { (eval echo configure:15650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15651 if test -z "$ac_err"; then
15652 rm -rf conftest*
15653 eval "ac_cv_header_$ac_safe=yes"
15654 else
15655 echo "$ac_err" >&5
15656 echo "configure: failed program was:" >&5
15657 cat conftest.$ac_ext >&5
15658 rm -rf conftest*
15659 eval "ac_cv_header_$ac_safe=no"
15661 rm -f conftest*
15663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15664 echo "$ac_t""yes" 1>&6
15665 ac_has_wctype_h=yes
15666 else
15667 echo "$ac_t""no" 1>&6
15668 ac_has_wctype_h=no
15672 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
15673 && test x"$enable_c_mbchar" != xno; then
15675 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
15676 echo "configure:15677: checking for WCHAR_MIN and WCHAR_MAX" >&5
15677 cat > conftest.$ac_ext <<EOF
15678 #line 15679 "configure"
15679 #include "confdefs.h"
15680 #include <wchar.h>
15681 int main() {
15682 int i = WCHAR_MIN; int j = WCHAR_MAX;
15683 ; return 0; }
15685 if { (eval echo configure:15686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15686 rm -rf conftest*
15687 has_wchar_minmax=yes
15688 else
15689 echo "configure: failed program was:" >&5
15690 cat conftest.$ac_ext >&5
15691 rm -rf conftest*
15692 has_wchar_minmax=no
15694 rm -f conftest*
15695 echo "$ac_t""$has_wchar_minmax" 1>&6
15697 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
15698 echo "configure:15699: checking for WEOF" >&5
15699 cat > conftest.$ac_ext <<EOF
15700 #line 15701 "configure"
15701 #include "confdefs.h"
15703 #include <wchar.h>
15704 #include <stddef.h>
15705 int main() {
15706 wint_t i = WEOF;
15707 ; return 0; }
15709 if { (eval echo configure:15710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15710 rm -rf conftest*
15711 has_weof=yes
15712 else
15713 echo "configure: failed program was:" >&5
15714 cat conftest.$ac_ext >&5
15715 rm -rf conftest*
15716 has_weof=no
15718 rm -f conftest*
15719 echo "$ac_t""$has_weof" 1>&6
15721 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset \
15722 wcsrtombs mbsrtowcs
15724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15725 echo "configure:15726: checking for $ac_func" >&5
15726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15727 echo $ac_n "(cached) $ac_c" 1>&6
15728 else
15729 cat > conftest.$ac_ext <<EOF
15730 #line 15731 "configure"
15731 #include "confdefs.h"
15732 /* System header to define __stub macros and hopefully few prototypes,
15733 which can conflict with char $ac_func(); below. */
15734 #include <assert.h>
15735 /* Override any gcc2 internal prototype to avoid an error. */
15736 /* We use char because int might match the return type of a gcc2
15737 builtin and then its argument prototype would still apply. */
15738 char $ac_func();
15740 int main() {
15742 /* The GNU C library defines this for functions which it implements
15743 to always fail with ENOSYS. Some functions are actually named
15744 something starting with __ and the normal name is an alias. */
15745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15746 choke me
15747 #else
15748 $ac_func();
15749 #endif
15751 ; return 0; }
15753 if { (eval echo configure:15754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15754 rm -rf conftest*
15755 eval "ac_cv_func_$ac_func=yes"
15756 else
15757 echo "configure: failed program was:" >&5
15758 cat conftest.$ac_ext >&5
15759 rm -rf conftest*
15760 eval "ac_cv_func_$ac_func=no"
15762 rm -f conftest*
15765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15766 echo "$ac_t""yes" 1>&6
15767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15768 cat >> confdefs.h <<EOF
15769 #define $ac_tr_func 1
15771 ac_wfuncs=yes
15772 else
15773 echo "$ac_t""no" 1>&6
15774 ac_wfuncs=no
15776 done
15779 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15780 echo "configure:15781: checking for ISO C99 wchar_t support" >&5
15781 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
15782 && test x"$ac_wfuncs" = xyes; then
15783 ac_isoC99_wchar_t=yes
15784 else
15785 ac_isoC99_wchar_t=no
15787 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15789 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15790 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15791 echo "configure:15792: checking for iconv.h" >&5
15792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15793 echo $ac_n "(cached) $ac_c" 1>&6
15794 else
15795 cat > conftest.$ac_ext <<EOF
15796 #line 15797 "configure"
15797 #include "confdefs.h"
15798 #include <iconv.h>
15800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15801 { (eval echo configure:15802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15803 if test -z "$ac_err"; then
15804 rm -rf conftest*
15805 eval "ac_cv_header_$ac_safe=yes"
15806 else
15807 echo "$ac_err" >&5
15808 echo "configure: failed program was:" >&5
15809 cat conftest.$ac_ext >&5
15810 rm -rf conftest*
15811 eval "ac_cv_header_$ac_safe=no"
15813 rm -f conftest*
15815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15816 echo "$ac_t""yes" 1>&6
15817 ac_has_iconv_h=yes
15818 else
15819 echo "$ac_t""no" 1>&6
15820 ac_has_iconv_h=no
15823 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15824 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15825 echo "configure:15826: checking for langinfo.h" >&5
15826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15827 echo $ac_n "(cached) $ac_c" 1>&6
15828 else
15829 cat > conftest.$ac_ext <<EOF
15830 #line 15831 "configure"
15831 #include "confdefs.h"
15832 #include <langinfo.h>
15834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15835 { (eval echo configure:15836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15837 if test -z "$ac_err"; then
15838 rm -rf conftest*
15839 eval "ac_cv_header_$ac_safe=yes"
15840 else
15841 echo "$ac_err" >&5
15842 echo "configure: failed program was:" >&5
15843 cat conftest.$ac_ext >&5
15844 rm -rf conftest*
15845 eval "ac_cv_header_$ac_safe=no"
15847 rm -f conftest*
15849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15850 echo "$ac_t""yes" 1>&6
15851 ac_has_langinfo_h=yes
15852 else
15853 echo "$ac_t""no" 1>&6
15854 ac_has_langinfo_h=no
15858 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15859 echo "configure:15860: checking for iconv in -liconv" >&5
15860 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15862 echo $ac_n "(cached) $ac_c" 1>&6
15863 else
15864 ac_save_LIBS="$LIBS"
15865 LIBS="-liconv $LIBS"
15866 cat > conftest.$ac_ext <<EOF
15867 #line 15868 "configure"
15868 #include "confdefs.h"
15869 /* Override any gcc2 internal prototype to avoid an error. */
15870 /* We use char because int might match the return type of a gcc2
15871 builtin and then its argument prototype would still apply. */
15872 char iconv();
15874 int main() {
15875 iconv()
15876 ; return 0; }
15878 if { (eval echo configure:15879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15879 rm -rf conftest*
15880 eval "ac_cv_lib_$ac_lib_var=yes"
15881 else
15882 echo "configure: failed program was:" >&5
15883 cat conftest.$ac_ext >&5
15884 rm -rf conftest*
15885 eval "ac_cv_lib_$ac_lib_var=no"
15887 rm -f conftest*
15888 LIBS="$ac_save_LIBS"
15891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15892 echo "$ac_t""yes" 1>&6
15893 libiconv="-liconv"
15894 else
15895 echo "$ac_t""no" 1>&6
15898 ac_save_LIBS="$LIBS"
15899 LIBS="$LIBS $libiconv"
15901 for ac_func in iconv_open iconv_close iconv nl_langinfo
15903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15904 echo "configure:15905: checking for $ac_func" >&5
15905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15906 echo $ac_n "(cached) $ac_c" 1>&6
15907 else
15908 cat > conftest.$ac_ext <<EOF
15909 #line 15910 "configure"
15910 #include "confdefs.h"
15911 /* System header to define __stub macros and hopefully few prototypes,
15912 which can conflict with char $ac_func(); below. */
15913 #include <assert.h>
15914 /* Override any gcc2 internal prototype to avoid an error. */
15915 /* We use char because int might match the return type of a gcc2
15916 builtin and then its argument prototype would still apply. */
15917 char $ac_func();
15919 int main() {
15921 /* The GNU C library defines this for functions which it implements
15922 to always fail with ENOSYS. Some functions are actually named
15923 something starting with __ and the normal name is an alias. */
15924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15925 choke me
15926 #else
15927 $ac_func();
15928 #endif
15930 ; return 0; }
15932 if { (eval echo configure:15933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15933 rm -rf conftest*
15934 eval "ac_cv_func_$ac_func=yes"
15935 else
15936 echo "configure: failed program was:" >&5
15937 cat conftest.$ac_ext >&5
15938 rm -rf conftest*
15939 eval "ac_cv_func_$ac_func=no"
15941 rm -f conftest*
15944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15945 echo "$ac_t""yes" 1>&6
15946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15947 cat >> confdefs.h <<EOF
15948 #define $ac_tr_func 1
15951 ac_XPG2funcs=yes
15952 else
15953 echo "$ac_t""no" 1>&6
15954 ac_XPG2funcs=no
15956 done
15959 LIBS="$ac_save_LIBS"
15961 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15962 echo "configure:15963: checking for XPG2 wchar_t support" >&5
15963 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
15964 && test x"$ac_XPG2funcs" = xyes; then
15965 ac_XPG2_wchar_t=yes
15966 else
15967 ac_XPG2_wchar_t=no
15969 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15971 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15972 echo "configure:15973: checking for enabled wchar_t specializations" >&5
15973 if test x"$ac_isoC99_wchar_t" = xyes \
15974 && test x"$ac_XPG2_wchar_t" = xyes; then
15975 cat >> confdefs.h <<\EOF
15976 #define _GLIBCPP_USE_WCHAR_T 1
15979 echo "$ac_t"""yes"" 1>&6
15980 else
15981 echo "$ac_t"""no"" 1>&6
15983 else
15984 echo "configure: warning: wchar_t support disabled." 1>&2
15988 ac_test_CXXFLAGS="${CXXFLAGS+set}"
15989 ac_save_CXXFLAGS="$CXXFLAGS"
15990 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15992 for ac_func in strtof
15994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15995 echo "configure:15996: checking for $ac_func" >&5
15996 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15997 echo $ac_n "(cached) $ac_c" 1>&6
15998 else
15999 cat > conftest.$ac_ext <<EOF
16000 #line 16001 "configure"
16001 #include "confdefs.h"
16002 /* System header to define __stub macros and hopefully few prototypes,
16003 which can conflict with char $ac_func(); below. */
16004 #include <assert.h>
16005 /* Override any gcc2 internal prototype to avoid an error. */
16006 /* We use char because int might match the return type of a gcc2
16007 builtin and then its argument prototype would still apply. */
16008 char $ac_func();
16010 int main() {
16012 /* The GNU C library defines this for functions which it implements
16013 to always fail with ENOSYS. Some functions are actually named
16014 something starting with __ and the normal name is an alias. */
16015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16016 choke me
16017 #else
16018 $ac_func();
16019 #endif
16021 ; return 0; }
16023 if { (eval echo configure:16024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16024 rm -rf conftest*
16025 eval "ac_cv_func_$ac_func=yes"
16026 else
16027 echo "configure: failed program was:" >&5
16028 cat conftest.$ac_ext >&5
16029 rm -rf conftest*
16030 eval "ac_cv_func_$ac_func=no"
16032 rm -f conftest*
16035 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16036 echo "$ac_t""yes" 1>&6
16037 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16038 cat >> confdefs.h <<EOF
16039 #define $ac_tr_func 1
16042 else
16043 echo "$ac_t""no" 1>&6
16045 done
16048 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
16049 echo "configure:16050: checking for strtold declaration" >&5
16050 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
16051 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
16052 echo $ac_n "(cached) $ac_c" 1>&6
16053 else
16056 ac_ext=C
16057 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16058 ac_cpp='$CXXCPP $CPPFLAGS'
16059 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16060 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16061 cross_compiling=$ac_cv_prog_cxx_cross
16063 cat > conftest.$ac_ext <<EOF
16064 #line 16065 "configure"
16065 #include "confdefs.h"
16066 #include <stdlib.h>
16067 int main() {
16068 strtold(0, 0);
16069 ; return 0; }
16071 if { (eval echo configure:16072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16072 rm -rf conftest*
16073 glibcpp_cv_func_strtold_use=yes
16074 else
16075 echo "configure: failed program was:" >&5
16076 cat conftest.$ac_ext >&5
16077 rm -rf conftest*
16078 glibcpp_cv_func_strtold_use=no
16080 rm -f conftest*
16081 ac_ext=c
16082 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16083 ac_cpp='$CPP $CPPFLAGS'
16084 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16085 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16086 cross_compiling=$ac_cv_prog_cc_cross
16092 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
16093 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
16094 for ac_func in strtold
16096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16097 echo "configure:16098: checking for $ac_func" >&5
16098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16099 echo $ac_n "(cached) $ac_c" 1>&6
16100 else
16101 cat > conftest.$ac_ext <<EOF
16102 #line 16103 "configure"
16103 #include "confdefs.h"
16104 /* System header to define __stub macros and hopefully few prototypes,
16105 which can conflict with char $ac_func(); below. */
16106 #include <assert.h>
16107 /* Override any gcc2 internal prototype to avoid an error. */
16108 /* We use char because int might match the return type of a gcc2
16109 builtin and then its argument prototype would still apply. */
16110 char $ac_func();
16112 int main() {
16114 /* The GNU C library defines this for functions which it implements
16115 to always fail with ENOSYS. Some functions are actually named
16116 something starting with __ and the normal name is an alias. */
16117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16118 choke me
16119 #else
16120 $ac_func();
16121 #endif
16123 ; return 0; }
16125 if { (eval echo configure:16126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16126 rm -rf conftest*
16127 eval "ac_cv_func_$ac_func=yes"
16128 else
16129 echo "configure: failed program was:" >&5
16130 cat conftest.$ac_ext >&5
16131 rm -rf conftest*
16132 eval "ac_cv_func_$ac_func=no"
16134 rm -f conftest*
16137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16138 echo "$ac_t""yes" 1>&6
16139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16140 cat >> confdefs.h <<EOF
16141 #define $ac_tr_func 1
16144 else
16145 echo "$ac_t""no" 1>&6
16147 done
16151 for ac_func in drand48
16153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16154 echo "configure:16155: checking for $ac_func" >&5
16155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16156 echo $ac_n "(cached) $ac_c" 1>&6
16157 else
16158 cat > conftest.$ac_ext <<EOF
16159 #line 16160 "configure"
16160 #include "confdefs.h"
16161 /* System header to define __stub macros and hopefully few prototypes,
16162 which can conflict with char $ac_func(); below. */
16163 #include <assert.h>
16164 /* Override any gcc2 internal prototype to avoid an error. */
16165 /* We use char because int might match the return type of a gcc2
16166 builtin and then its argument prototype would still apply. */
16167 char $ac_func();
16169 int main() {
16171 /* The GNU C library defines this for functions which it implements
16172 to always fail with ENOSYS. Some functions are actually named
16173 something starting with __ and the normal name is an alias. */
16174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16175 choke me
16176 #else
16177 $ac_func();
16178 #endif
16180 ; return 0; }
16182 if { (eval echo configure:16183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16183 rm -rf conftest*
16184 eval "ac_cv_func_$ac_func=yes"
16185 else
16186 echo "configure: failed program was:" >&5
16187 cat conftest.$ac_ext >&5
16188 rm -rf conftest*
16189 eval "ac_cv_func_$ac_func=no"
16191 rm -f conftest*
16194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16195 echo "$ac_t""yes" 1>&6
16196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16197 cat >> confdefs.h <<EOF
16198 #define $ac_tr_func 1
16201 else
16202 echo "$ac_t""no" 1>&6
16204 done
16207 CXXFLAGS="$ac_save_CXXFLAGS"
16210 cat > conftest.$ac_ext <<EOF
16211 #line 16212 "configure"
16212 #include "confdefs.h"
16214 #include <setjmp.h>
16216 int main() {
16217 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16218 ; return 0; }
16220 if { (eval echo configure:16221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16221 rm -rf conftest*
16222 cat >> confdefs.h <<\EOF
16223 #define HAVE_SIGSETJMP 1
16226 else
16227 echo "configure: failed program was:" >&5
16228 cat conftest.$ac_ext >&5
16230 rm -f conftest*
16232 for ac_hdr in unistd.h
16234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16236 echo "configure:16237: checking for $ac_hdr" >&5
16237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16238 echo $ac_n "(cached) $ac_c" 1>&6
16239 else
16240 cat > conftest.$ac_ext <<EOF
16241 #line 16242 "configure"
16242 #include "confdefs.h"
16243 #include <$ac_hdr>
16245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16246 { (eval echo configure:16247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16248 if test -z "$ac_err"; then
16249 rm -rf conftest*
16250 eval "ac_cv_header_$ac_safe=yes"
16251 else
16252 echo "$ac_err" >&5
16253 echo "configure: failed program was:" >&5
16254 cat conftest.$ac_ext >&5
16255 rm -rf conftest*
16256 eval "ac_cv_header_$ac_safe=no"
16258 rm -f conftest*
16260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16261 echo "$ac_t""yes" 1>&6
16262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16263 cat >> confdefs.h <<EOF
16264 #define $ac_tr_hdr 1
16267 else
16268 echo "$ac_t""no" 1>&6
16270 done
16272 for ac_func in getpagesize
16274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16275 echo "configure:16276: checking for $ac_func" >&5
16276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16277 echo $ac_n "(cached) $ac_c" 1>&6
16278 else
16279 cat > conftest.$ac_ext <<EOF
16280 #line 16281 "configure"
16281 #include "confdefs.h"
16282 /* System header to define __stub macros and hopefully few prototypes,
16283 which can conflict with char $ac_func(); below. */
16284 #include <assert.h>
16285 /* Override any gcc2 internal prototype to avoid an error. */
16286 /* We use char because int might match the return type of a gcc2
16287 builtin and then its argument prototype would still apply. */
16288 char $ac_func();
16290 int main() {
16292 /* The GNU C library defines this for functions which it implements
16293 to always fail with ENOSYS. Some functions are actually named
16294 something starting with __ and the normal name is an alias. */
16295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16296 choke me
16297 #else
16298 $ac_func();
16299 #endif
16301 ; return 0; }
16303 if { (eval echo configure:16304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16304 rm -rf conftest*
16305 eval "ac_cv_func_$ac_func=yes"
16306 else
16307 echo "configure: failed program was:" >&5
16308 cat conftest.$ac_ext >&5
16309 rm -rf conftest*
16310 eval "ac_cv_func_$ac_func=no"
16312 rm -f conftest*
16315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16316 echo "$ac_t""yes" 1>&6
16317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16318 cat >> confdefs.h <<EOF
16319 #define $ac_tr_func 1
16322 else
16323 echo "$ac_t""no" 1>&6
16325 done
16327 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
16328 echo "configure:16329: checking for working mmap" >&5
16329 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
16330 echo $ac_n "(cached) $ac_c" 1>&6
16331 else
16332 if test "$cross_compiling" = yes; then
16333 ac_cv_func_mmap_fixed_mapped=no
16334 else
16335 cat > conftest.$ac_ext <<EOF
16336 #line 16337 "configure"
16337 #include "confdefs.h"
16339 /* Thanks to Mike Haertel and Jim Avera for this test.
16340 Here is a matrix of mmap possibilities:
16341 mmap private not fixed
16342 mmap private fixed at somewhere currently unmapped
16343 mmap private fixed at somewhere already mapped
16344 mmap shared not fixed
16345 mmap shared fixed at somewhere currently unmapped
16346 mmap shared fixed at somewhere already mapped
16347 For private mappings, we should verify that changes cannot be read()
16348 back from the file, nor mmap's back from the file at a different
16349 address. (There have been systems where private was not correctly
16350 implemented like the infamous i386 svr4.0, and systems where the
16351 VM page cache was not coherent with the filesystem buffer cache
16352 like early versions of FreeBSD and possibly contemporary NetBSD.)
16353 For shared mappings, we should conversely verify that changes get
16354 propogated back to all the places they're supposed to be.
16356 Grep wants private fixed already mapped.
16357 The main things grep needs to know about mmap are:
16358 * does it exist and is it safe to write into the mmap'd area
16359 * how to use it (BSD variants) */
16360 #include <sys/types.h>
16361 #include <fcntl.h>
16362 #include <sys/mman.h>
16364 /* This mess was copied from the GNU getpagesize.h. */
16365 #ifndef HAVE_GETPAGESIZE
16366 # ifdef HAVE_UNISTD_H
16367 # include <unistd.h>
16368 # endif
16370 /* Assume that all systems that can run configure have sys/param.h. */
16371 # ifndef HAVE_SYS_PARAM_H
16372 # define HAVE_SYS_PARAM_H 1
16373 # endif
16375 # ifdef _SC_PAGESIZE
16376 # define getpagesize() sysconf(_SC_PAGESIZE)
16377 # else /* no _SC_PAGESIZE */
16378 # ifdef HAVE_SYS_PARAM_H
16379 # include <sys/param.h>
16380 # ifdef EXEC_PAGESIZE
16381 # define getpagesize() EXEC_PAGESIZE
16382 # else /* no EXEC_PAGESIZE */
16383 # ifdef NBPG
16384 # define getpagesize() NBPG * CLSIZE
16385 # ifndef CLSIZE
16386 # define CLSIZE 1
16387 # endif /* no CLSIZE */
16388 # else /* no NBPG */
16389 # ifdef NBPC
16390 # define getpagesize() NBPC
16391 # else /* no NBPC */
16392 # ifdef PAGESIZE
16393 # define getpagesize() PAGESIZE
16394 # endif /* PAGESIZE */
16395 # endif /* no NBPC */
16396 # endif /* no NBPG */
16397 # endif /* no EXEC_PAGESIZE */
16398 # else /* no HAVE_SYS_PARAM_H */
16399 # define getpagesize() 8192 /* punt totally */
16400 # endif /* no HAVE_SYS_PARAM_H */
16401 # endif /* no _SC_PAGESIZE */
16403 #endif /* no HAVE_GETPAGESIZE */
16405 #ifdef __cplusplus
16406 extern "C" { void *malloc(unsigned); }
16407 #else
16408 char *malloc();
16409 #endif
16412 main()
16414 char *data, *data2, *data3;
16415 int i, pagesize;
16416 int fd;
16418 pagesize = getpagesize();
16421 * First, make a file with some known garbage in it.
16423 data = malloc(pagesize);
16424 if (!data)
16425 exit(1);
16426 for (i = 0; i < pagesize; ++i)
16427 *(data + i) = rand();
16428 umask(0);
16429 fd = creat("conftestmmap", 0600);
16430 if (fd < 0)
16431 exit(1);
16432 if (write(fd, data, pagesize) != pagesize)
16433 exit(1);
16434 close(fd);
16437 * Next, try to mmap the file at a fixed address which
16438 * already has something else allocated at it. If we can,
16439 * also make sure that we see the same garbage.
16441 fd = open("conftestmmap", O_RDWR);
16442 if (fd < 0)
16443 exit(1);
16444 data2 = malloc(2 * pagesize);
16445 if (!data2)
16446 exit(1);
16447 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16448 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16449 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16450 exit(1);
16451 for (i = 0; i < pagesize; ++i)
16452 if (*(data + i) != *(data2 + i))
16453 exit(1);
16456 * Finally, make sure that changes to the mapped area
16457 * do not percolate back to the file as seen by read().
16458 * (This is a bug on some variants of i386 svr4.0.)
16460 for (i = 0; i < pagesize; ++i)
16461 *(data2 + i) = *(data2 + i) + 1;
16462 data3 = malloc(pagesize);
16463 if (!data3)
16464 exit(1);
16465 if (read(fd, data3, pagesize) != pagesize)
16466 exit(1);
16467 for (i = 0; i < pagesize; ++i)
16468 if (*(data + i) != *(data3 + i))
16469 exit(1);
16470 close(fd);
16471 unlink("conftestmmap");
16472 exit(0);
16476 if { (eval echo configure:16477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16477 then
16478 ac_cv_func_mmap_fixed_mapped=yes
16479 else
16480 echo "configure: failed program was:" >&5
16481 cat conftest.$ac_ext >&5
16482 rm -fr conftest*
16483 ac_cv_func_mmap_fixed_mapped=no
16485 rm -fr conftest*
16490 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16491 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16492 cat >> confdefs.h <<\EOF
16493 #define HAVE_MMAP 1
16500 # Now that ctype is determined for all possible targets, we can do this...
16508 if test "$NULL_TARGET" = yes; then
16509 NULL_TARGET_TRUE=
16510 NULL_TARGET_FALSE='#'
16511 else
16512 NULL_TARGET_TRUE='#'
16513 NULL_TARGET_FALSE=
16517 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
16518 NATIVE_TRUE=
16519 NATIVE_FALSE='#'
16520 else
16521 NATIVE_TRUE='#'
16522 NATIVE_FALSE=
16526 if test "$CANADIAN" = yes; then
16527 CANADIAN_TRUE=
16528 CANADIAN_FALSE='#'
16529 else
16530 CANADIAN_TRUE='#'
16531 CANADIAN_FALSE=
16534 cat > confcache <<\EOF
16535 # This file is a shell script that caches the results of configure
16536 # tests run on this system so they can be shared between configure
16537 # scripts and configure runs. It is not useful on other systems.
16538 # If it contains results you don't want to keep, you may remove or edit it.
16540 # By default, configure uses ./config.cache as the cache file,
16541 # creating it if it does not exist already. You can give configure
16542 # the --cache-file=FILE option to use a different cache file; that is
16543 # what configure does when it calls configure scripts in
16544 # subdirectories, so they share the cache.
16545 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16546 # config.status only pays attention to the cache file if you give it the
16547 # --recheck option to rerun configure.
16550 # The following way of writing the cache mishandles newlines in values,
16551 # but we know of no workaround that is simple, portable, and efficient.
16552 # So, don't put newlines in cache variables' values.
16553 # Ultrix sh set writes to stderr and can't be redirected directly,
16554 # and sets the high bit in the cache file unless we assign to the vars.
16555 (set) 2>&1 |
16556 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16557 *ac_space=\ *)
16558 # `set' does not quote correctly, so add quotes (double-quote substitution
16559 # turns \\\\ into \\, and sed turns \\ into \).
16560 sed -n \
16561 -e "s/'/'\\\\''/g" \
16562 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16565 # `set' quotes correctly as required by POSIX, so do not add quotes.
16566 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16568 esac >> confcache
16569 if cmp -s $cache_file confcache; then
16571 else
16572 if test -w $cache_file; then
16573 echo "updating cache $cache_file"
16574 cat confcache > $cache_file
16575 else
16576 echo "not updating unwritable cache $cache_file"
16579 rm -f confcache
16582 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16583 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16584 echo "configure:16585: checking for locale.h" >&5
16585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16586 echo $ac_n "(cached) $ac_c" 1>&6
16587 else
16588 cat > conftest.$ac_ext <<EOF
16589 #line 16590 "configure"
16590 #include "confdefs.h"
16591 #include <locale.h>
16593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16594 { (eval echo configure:16595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16596 if test -z "$ac_err"; then
16597 rm -rf conftest*
16598 eval "ac_cv_header_$ac_safe=yes"
16599 else
16600 echo "$ac_err" >&5
16601 echo "configure: failed program was:" >&5
16602 cat conftest.$ac_ext >&5
16603 rm -rf conftest*
16604 eval "ac_cv_header_$ac_safe=no"
16606 rm -f conftest*
16608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16609 echo "$ac_t""yes" 1>&6
16611 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16612 echo "configure:16613: checking for LC_MESSAGES" >&5
16613 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16614 echo $ac_n "(cached) $ac_c" 1>&6
16615 else
16616 cat > conftest.$ac_ext <<EOF
16617 #line 16618 "configure"
16618 #include "confdefs.h"
16619 #include <locale.h>
16620 int main() {
16621 return LC_MESSAGES
16622 ; return 0; }
16624 if { (eval echo configure:16625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16625 rm -rf conftest*
16626 ac_cv_val_LC_MESSAGES=yes
16627 else
16628 echo "configure: failed program was:" >&5
16629 cat conftest.$ac_ext >&5
16630 rm -rf conftest*
16631 ac_cv_val_LC_MESSAGES=no
16633 rm -f conftest*
16636 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16637 if test $ac_cv_val_LC_MESSAGES = yes; then
16638 cat >> confdefs.h <<\EOF
16639 #define HAVE_LC_MESSAGES 1
16644 else
16645 echo "$ac_t""no" 1>&6
16650 if test "${multilib}" = "yes"; then
16651 multilib_arg="--enable-multilib"
16652 else
16653 multilib_arg=
16657 # Generate the various Makefiles, include files, and scripts.
16659 # Needed so that g++ can find the correct include subdir automatically.
16660 INTERFACE=v3
16662 # Export all the install information
16665 glibcpp_toolexecdir=no
16666 glibcpp_toolexeclibdir=no
16668 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
16669 echo "configure:16670: checking for interface version number" >&5
16670 libstdcxx_interface=$INTERFACE
16671 echo "$ac_t""$libstdcxx_interface" 1>&6
16673 # Process the option --with-gxx-include-dir=<path to include-files directory>
16674 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
16675 echo "configure:16676: checking for --with-gxx-include-dir" >&5
16676 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
16677 if test "${with_gxx_include_dir+set}" = set; then
16678 withval="$with_gxx_include_dir"
16679 case "${withval}" in
16680 yes)
16681 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
16682 gxx_include_dir=no
16685 gxx_include_dir=no
16688 gxx_include_dir=${withval}
16690 esac
16691 else
16692 gxx_include_dir=no
16695 echo "$ac_t""$gxx_include_dir" 1>&6
16697 # Process the option "--enable-version-specific-runtime-libs"
16698 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
16699 echo "configure:16700: checking for --enable-version-specific-runtime-libs" >&5
16700 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16701 if test "${enable_version_specific_runtime_libs+set}" = set; then
16702 enableval="$enable_version_specific_runtime_libs"
16703 version_specific_libs=yes
16704 # Need the gcc compiler version to know where to install libraries
16705 # and header files if --enable-version-specific-runtime-libs option
16706 # is selected.
16707 gcc_version_trigger=${srcdir}/../gcc/version.c
16708 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
16709 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
16710 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
16711 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16712 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}
16714 else
16715 version_specific_libs=no
16718 echo "$ac_t""$version_specific_libs" 1>&6
16720 # Default case for install directory for include files.
16721 if test x"$version_specific_libs" = x"no" \
16722 && test x"$gxx_include_dir" = x"no"; then
16723 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
16726 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
16727 # Install a library built with a cross compiler in tooldir, not libdir.
16728 if test x"$glibcpp_toolexecdir" = x"no"; then
16729 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
16730 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
16731 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
16732 else
16733 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16734 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
16738 echo $ac_n "checking for install location""... $ac_c" 1>&6
16739 echo "configure:16740: checking for install location" >&5
16740 echo "$ac_t""$gxx_include_dir" 1>&6
16747 # Export all the include and flag information to makefiles.
16749 # Root level of the include sources.
16750 GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
16752 # Can either use include/c or include/c_std to grab "C" headers. This
16753 # variable is set to the include directory currently in use.
16754 # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
16756 # Passed down for canadian crosses.
16757 if test x"$CANADIAN" = xyes; then
16758 TOPLEVEL_INCLUDES='-I$(includedir)'
16761 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
16763 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
16765 #if GLIBCPP_NEED_LIBIO
16766 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
16767 #else
16768 #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
16769 #endif
16771 #if GLIBCPP_USE_CSHADOW
16772 # CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
16773 # -I$(top_blddir)/cshadow'
16774 #else
16775 CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
16776 #endif
16778 # Now, export this to all the little Makefiles....
16787 # Optimization flags that are probably a good idea for thrill-seekers. Just
16788 # uncomment the lines below and make, everything else is ready to go...
16789 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
16790 OPTIMIZE_CXXFLAGS=
16793 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
16797 # This should be done by mkincludedir, but hack around it now.
16798 blddir=`pwd`
16799 echo "checking for $blddir/include"
16801 if test ! -d "$blddir/include"; then
16802 mkdir "$blddir/include"
16805 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16806 # and libsupc++/Makefile.am so that multilib installs will end up
16807 # installed in the correct place. To work around this not being passed
16808 # down from config-ml.in -> top_srcdir/Makefile.am ->
16809 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16810 trap '' 1 2 15
16811 cat > confcache <<\EOF
16812 # This file is a shell script that caches the results of configure
16813 # tests run on this system so they can be shared between configure
16814 # scripts and configure runs. It is not useful on other systems.
16815 # If it contains results you don't want to keep, you may remove or edit it.
16817 # By default, configure uses ./config.cache as the cache file,
16818 # creating it if it does not exist already. You can give configure
16819 # the --cache-file=FILE option to use a different cache file; that is
16820 # what configure does when it calls configure scripts in
16821 # subdirectories, so they share the cache.
16822 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16823 # config.status only pays attention to the cache file if you give it the
16824 # --recheck option to rerun configure.
16827 # The following way of writing the cache mishandles newlines in values,
16828 # but we know of no workaround that is simple, portable, and efficient.
16829 # So, don't put newlines in cache variables' values.
16830 # Ultrix sh set writes to stderr and can't be redirected directly,
16831 # and sets the high bit in the cache file unless we assign to the vars.
16832 (set) 2>&1 |
16833 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16834 *ac_space=\ *)
16835 # `set' does not quote correctly, so add quotes (double-quote substitution
16836 # turns \\\\ into \\, and sed turns \\ into \).
16837 sed -n \
16838 -e "s/'/'\\\\''/g" \
16839 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16842 # `set' quotes correctly as required by POSIX, so do not add quotes.
16843 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16845 esac >> confcache
16846 if cmp -s $cache_file confcache; then
16848 else
16849 if test -w $cache_file; then
16850 echo "updating cache $cache_file"
16851 cat confcache > $cache_file
16852 else
16853 echo "not updating unwritable cache $cache_file"
16856 rm -f confcache
16858 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16860 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16861 # Let make expand exec_prefix.
16862 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16864 # Any assignment to VPATH causes Sun make to only execute
16865 # the first set of double-colon rules, so remove it if not needed.
16866 # If there is a colon in the path, we need to keep it.
16867 if test "x$srcdir" = x.; then
16868 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16871 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16873 DEFS=-DHAVE_CONFIG_H
16875 # Without the "./", some shells look in PATH for config.status.
16876 : ${CONFIG_STATUS=./config.status}
16878 echo creating $CONFIG_STATUS
16879 rm -f $CONFIG_STATUS
16880 cat > $CONFIG_STATUS <<EOF
16881 #! /bin/sh
16882 # Generated automatically by configure.
16883 # Run this file to recreate the current configuration.
16884 # This directory was configured as follows,
16885 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16887 # $0 $ac_configure_args
16889 # Compiler output produced by configure, useful for debugging
16890 # configure, is in ./config.log if it exists.
16892 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16893 for ac_option
16895 case "\$ac_option" in
16896 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16897 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16898 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16899 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16900 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16901 exit 0 ;;
16902 -help | --help | --hel | --he | --h)
16903 echo "\$ac_cs_usage"; exit 0 ;;
16904 *) echo "\$ac_cs_usage"; exit 1 ;;
16905 esac
16906 done
16908 ac_given_srcdir=$srcdir
16909 ac_given_INSTALL="$INSTALL"
16911 trap 'rm -fr `echo "tests_flags mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16913 cat >> $CONFIG_STATUS <<EOF
16915 # Protect against being on the right side of a sed subst in config.status.
16916 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16917 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16918 $ac_vpsub
16919 $extrasub
16920 s%@SHELL@%$SHELL%g
16921 s%@CFLAGS@%$CFLAGS%g
16922 s%@CPPFLAGS@%$CPPFLAGS%g
16923 s%@CXXFLAGS@%$CXXFLAGS%g
16924 s%@FFLAGS@%$FFLAGS%g
16925 s%@DEFS@%$DEFS%g
16926 s%@LDFLAGS@%$LDFLAGS%g
16927 s%@LIBS@%$LIBS%g
16928 s%@exec_prefix@%$exec_prefix%g
16929 s%@prefix@%$prefix%g
16930 s%@program_transform_name@%$program_transform_name%g
16931 s%@bindir@%$bindir%g
16932 s%@sbindir@%$sbindir%g
16933 s%@libexecdir@%$libexecdir%g
16934 s%@datadir@%$datadir%g
16935 s%@sysconfdir@%$sysconfdir%g
16936 s%@sharedstatedir@%$sharedstatedir%g
16937 s%@localstatedir@%$localstatedir%g
16938 s%@libdir@%$libdir%g
16939 s%@includedir@%$includedir%g
16940 s%@oldincludedir@%$oldincludedir%g
16941 s%@infodir@%$infodir%g
16942 s%@mandir@%$mandir%g
16943 s%@toplevel_srcdir@%$toplevel_srcdir%g
16944 s%@host@%$host%g
16945 s%@host_alias@%$host_alias%g
16946 s%@host_cpu@%$host_cpu%g
16947 s%@host_vendor@%$host_vendor%g
16948 s%@host_os@%$host_os%g
16949 s%@target@%$target%g
16950 s%@target_alias@%$target_alias%g
16951 s%@target_cpu@%$target_cpu%g
16952 s%@target_vendor@%$target_vendor%g
16953 s%@target_os@%$target_os%g
16954 s%@build@%$build%g
16955 s%@build_alias@%$build_alias%g
16956 s%@build_cpu@%$build_cpu%g
16957 s%@build_vendor@%$build_vendor%g
16958 s%@build_os@%$build_os%g
16959 s%@glibcpp_basedir@%$glibcpp_basedir%g
16960 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16961 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16962 s%@INSTALL_DATA@%$INSTALL_DATA%g
16963 s%@PACKAGE@%$PACKAGE%g
16964 s%@VERSION@%$VERSION%g
16965 s%@ACLOCAL@%$ACLOCAL%g
16966 s%@AUTOCONF@%$AUTOCONF%g
16967 s%@AUTOMAKE@%$AUTOMAKE%g
16968 s%@AUTOHEADER@%$AUTOHEADER%g
16969 s%@MAKEINFO@%$MAKEINFO%g
16970 s%@SET_MAKE@%$SET_MAKE%g
16971 s%@CC@%$CC%g
16972 s%@glibcpp_CXX@%$glibcpp_CXX%g
16973 s%@AS@%$AS%g
16974 s%@AR@%$AR%g
16975 s%@RANLIB@%$RANLIB%g
16976 s%@glibcpp_expect@%$glibcpp_expect%g
16977 s%@glibcpp_runtest@%$glibcpp_runtest%g
16978 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16979 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16980 s%@MAINT@%$MAINT%g
16981 s%@EXEEXT@%$EXEEXT%g
16982 s%@LN_S@%$LN_S%g
16983 s%@OBJEXT@%$OBJEXT%g
16984 s%@STRIP@%$STRIP%g
16985 s%@LIBTOOL@%$LIBTOOL%g
16986 s%@CXXCPP@%$CXXCPP%g
16987 s%@enable_shared@%$enable_shared%g
16988 s%@enable_static@%$enable_static%g
16989 s%@ifGNUmake@%$ifGNUmake%g
16990 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16991 s%@CPP@%$CPP%g
16992 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16993 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16994 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16995 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16996 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16997 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16998 s%@libio_la@%$libio_la%g
16999 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
17000 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
17001 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
17002 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
17003 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
17004 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
17005 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
17006 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
17007 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
17008 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
17009 s%@WERROR@%$WERROR%g
17010 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
17011 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
17012 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
17013 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
17014 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
17015 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
17016 s%@gxx_include_dir@%$gxx_include_dir%g
17017 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
17018 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
17019 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
17020 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
17021 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
17022 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
17023 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
17024 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
17025 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
17026 s%@WARN_FLAGS@%$WARN_FLAGS%g
17028 CEOF
17031 cat >> $CONFIG_STATUS <<\EOF
17033 # Split the substitutions into bite-sized pieces for seds with
17034 # small command number limits, like on Digital OSF/1 and HP-UX.
17035 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17036 ac_file=1 # Number of current file.
17037 ac_beg=1 # First line for current file.
17038 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17039 ac_more_lines=:
17040 ac_sed_cmds=""
17041 while $ac_more_lines; do
17042 if test $ac_beg -gt 1; then
17043 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17044 else
17045 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17047 if test ! -s conftest.s$ac_file; then
17048 ac_more_lines=false
17049 rm -f conftest.s$ac_file
17050 else
17051 if test -z "$ac_sed_cmds"; then
17052 ac_sed_cmds="sed -f conftest.s$ac_file"
17053 else
17054 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17056 ac_file=`expr $ac_file + 1`
17057 ac_beg=$ac_end
17058 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17060 done
17061 if test -z "$ac_sed_cmds"; then
17062 ac_sed_cmds=cat
17066 cat >> $CONFIG_STATUS <<EOF
17068 CONFIG_FILES=\${CONFIG_FILES-"tests_flags mkcheck Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile"}
17070 cat >> $CONFIG_STATUS <<\EOF
17071 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17072 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17073 case "$ac_file" in
17074 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17075 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17076 *) ac_file_in="${ac_file}.in" ;;
17077 esac
17079 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17081 # Remove last slash and all that follows it. Not all systems have dirname.
17082 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17083 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17084 # The file is in a subdirectory.
17085 test ! -d "$ac_dir" && mkdir "$ac_dir"
17086 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17087 # A "../" for each directory in $ac_dir_suffix.
17088 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17089 else
17090 ac_dir_suffix= ac_dots=
17093 case "$ac_given_srcdir" in
17094 .) srcdir=.
17095 if test -z "$ac_dots"; then top_srcdir=.
17096 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17097 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17098 *) # Relative path.
17099 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17100 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17101 esac
17103 case "$ac_given_INSTALL" in
17104 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17105 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17106 esac
17108 echo creating "$ac_file"
17109 rm -f "$ac_file"
17110 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17111 case "$ac_file" in
17112 *Makefile*) ac_comsub="1i\\
17113 # $configure_input" ;;
17114 *) ac_comsub= ;;
17115 esac
17117 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17118 sed -e "$ac_comsub
17119 s%@configure_input@%$configure_input%g
17120 s%@srcdir@%$srcdir%g
17121 s%@top_srcdir@%$top_srcdir%g
17122 s%@INSTALL@%$INSTALL%g
17123 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17124 fi; done
17125 rm -f conftest.s*
17127 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17128 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17130 # ac_d sets the value in "#define NAME VALUE" lines.
17131 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17132 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17133 ac_dC='\3'
17134 ac_dD='%g'
17135 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17136 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17137 ac_uB='\([ ]\)%\1#\2define\3'
17138 ac_uC=' '
17139 ac_uD='\4%g'
17140 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17141 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17142 ac_eB='$%\1#\2define\3'
17143 ac_eC=' '
17144 ac_eD='%g'
17146 if test "${CONFIG_HEADERS+set}" != set; then
17148 cat >> $CONFIG_STATUS <<EOF
17149 CONFIG_HEADERS="config.h"
17151 cat >> $CONFIG_STATUS <<\EOF
17153 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17154 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17155 case "$ac_file" in
17156 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17157 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17158 *) ac_file_in="${ac_file}.in" ;;
17159 esac
17161 echo creating $ac_file
17163 rm -f conftest.frag conftest.in conftest.out
17164 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17165 cat $ac_file_inputs > conftest.in
17169 # Transform confdefs.h into a sed script conftest.vals that substitutes
17170 # the proper values into config.h.in to produce config.h. And first:
17171 # Protect against being on the right side of a sed subst in config.status.
17172 # Protect against being in an unquoted here document in config.status.
17173 rm -f conftest.vals
17174 cat > conftest.hdr <<\EOF
17175 s/[\\&%]/\\&/g
17176 s%[\\$`]%\\&%g
17177 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17178 s%ac_d%ac_u%gp
17179 s%ac_u%ac_e%gp
17181 sed -n -f conftest.hdr confdefs.h > conftest.vals
17182 rm -f conftest.hdr
17184 # This sed command replaces #undef with comments. This is necessary, for
17185 # example, in the case of _POSIX_SOURCE, which is predefined and required
17186 # on some systems where configure will not decide to define it.
17187 cat >> conftest.vals <<\EOF
17188 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17191 # Break up conftest.vals because some shells have a limit on
17192 # the size of here documents, and old seds have small limits too.
17194 rm -f conftest.tail
17195 while :
17197 ac_lines=`grep -c . conftest.vals`
17198 # grep -c gives empty output for an empty file on some AIX systems.
17199 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17200 # Write a limited-size here document to conftest.frag.
17201 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17202 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17203 echo 'CEOF
17204 sed -f conftest.frag conftest.in > conftest.out
17205 rm -f conftest.in
17206 mv conftest.out conftest.in
17207 ' >> $CONFIG_STATUS
17208 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17209 rm -f conftest.vals
17210 mv conftest.tail conftest.vals
17211 done
17212 rm -f conftest.vals
17214 cat >> $CONFIG_STATUS <<\EOF
17215 rm -f conftest.frag conftest.h
17216 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17217 cat conftest.in >> conftest.h
17218 rm -f conftest.in
17219 if cmp -s $ac_file conftest.h 2>/dev/null; then
17220 echo "$ac_file is unchanged"
17221 rm -f conftest.h
17222 else
17223 # Remove last slash and all that follows it. Not all systems have dirname.
17224 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17225 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17226 # The file is in a subdirectory.
17227 test ! -d "$ac_dir" && mkdir "$ac_dir"
17229 rm -f $ac_file
17230 mv conftest.h $ac_file
17232 fi; done
17236 cat >> $CONFIG_STATUS <<EOF
17237 ac_sources="$os_include_dir/bits/os_defines.h $CSTDIO_H $BASIC_FILE_H $BASIC_FILE_CC $CCODECVT_C $CLOCALE_H $CLOCALE_CC config/$THREADH $os_include_dir/bits/ctype_base.h $os_include_dir/bits/ctype_inline.h $os_include_dir/bits/ctype_noninline.h $ATOMICITYH/bits/atomicity.h"
17238 ac_dests="include/bits/os_defines.h include/bits/c++io.h include/bits/basic_file_model.h src/basic_file.cc libio/c_codecvt.c include/bits/c++locale.h src/c++locale.cc include/bits/c++threads.h \
17239 include/bits/ctype_base.h \
17240 include/bits/ctype_inline.h \
17241 include/bits/ctype_noninline.h include/bits/atomicity.h"
17244 cat >> $CONFIG_STATUS <<\EOF
17245 srcdir=$ac_given_srcdir
17246 while test -n "$ac_sources"; do
17247 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17248 set $ac_sources; ac_source=$1; shift; ac_sources=$*
17250 echo "linking $srcdir/$ac_source to $ac_dest"
17252 if test ! -r $srcdir/$ac_source; then
17253 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
17255 rm -f $ac_dest
17257 # Make relative symlinks.
17258 # Remove last slash and all that follows it. Not all systems have dirname.
17259 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
17260 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
17261 # The dest file is in a subdirectory.
17262 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
17263 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
17264 # A "../" for each directory in $ac_dest_dir_suffix.
17265 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
17266 else
17267 ac_dest_dir_suffix= ac_dots=
17270 case "$srcdir" in
17271 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
17272 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
17273 esac
17275 # Make a symlink if possible; otherwise try a hard link.
17276 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17277 ln $srcdir/$ac_source $ac_dest; then :
17278 else
17279 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
17281 done
17283 cat >> $CONFIG_STATUS <<EOF
17285 srcdir=${srcdir}
17286 host=${host}
17287 target=${target}
17288 with_multisubdir=${with_multisubdir}
17289 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17290 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17291 glibcpp_basedir=${glibcpp_basedir}
17292 CC="${CC}"
17293 CXX="${CXX}"
17296 cat >> $CONFIG_STATUS <<\EOF
17297 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
17298 if test -n "$CONFIG_FILES"; then
17299 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
17300 grep '^MULTISUBDIR =' Makefile >> src/Makefile
17301 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
17303 chmod +x tests_flags
17304 chmod +x mkcheck
17306 exit 0
17308 chmod +x $CONFIG_STATUS
17309 rm -fr confdefs* $ac_clean_files
17310 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17314 # Generate bits/c++config.h
17315 # NB: This must be the first generated file as others include it. . .
17316 $srcdir/mkc++config $blddir $srcdir
17318 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
17319 if test ! -f stamp-limits; then
17320 $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
17321 if test ! -f include/bits/std_limits.h; then
17322 echo "mknumeric_limits failed to execute properly: exiting"
17323 exit 1
17324 else
17325 touch stamp-limits
17330 # Sanity checking & User-visible messages.
17331 # Checks down here, otherwise they get scrolled off before
17332 # the user will notice.
17334 # Trying to get more people to read documentation. Possibly remove
17335 # check and warn all the time. There is no "informational" AC_MSG_
17336 # macro, so these are going to be printed even when --quiet/--silent
17337 # is given.
17338 if test ! -f stamp-sanity-warned; then
17339 touch stamp-sanity-warned
17340 echo ""
17341 echo "Please make certain that you read the installation information here:"
17342 echo " faster => ${srcdir}/docs/install.html"
17343 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
17344 echo ""
17345 echo "and the configuration information here:"
17346 echo " faster => ${srcdir}/docs/configopts.html"
17347 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
17348 echo ""
17349 echo "before proceeding with ${_cv_gnu_make_command}."
17350 echo ""