2001-06-20 Alexandre Petit-Bianco <apbianco@redhat.com>
[official-gcc.git] / libstdc++-v3 / configure
bloba3f50120e01383c57bc3a89efaf4fd66117560c6
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 g++ [default=c_std]"
54 ac_help="$ac_help
55 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
56 [default=none]"
57 ac_help="$ac_help
58 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60 --with-gxx-include-dir the installation directory for include files"
61 ac_help="$ac_help
62 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
67 build=NONE
68 cache_file=./config.cache
69 exec_prefix=NONE
70 host=NONE
71 no_create=
72 nonopt=NONE
73 no_recursion=
74 prefix=NONE
75 program_prefix=NONE
76 program_suffix=NONE
77 program_transform_name=s,x,x,
78 silent=
79 site=
80 srcdir=
81 target=NONE
82 verbose=
83 x_includes=NONE
84 x_libraries=NONE
85 bindir='${exec_prefix}/bin'
86 sbindir='${exec_prefix}/sbin'
87 libexecdir='${exec_prefix}/libexec'
88 datadir='${prefix}/share'
89 sysconfdir='${prefix}/etc'
90 sharedstatedir='${prefix}/com'
91 localstatedir='${prefix}/var'
92 libdir='${exec_prefix}/lib'
93 includedir='${prefix}/include'
94 oldincludedir='/usr/include'
95 infodir='${prefix}/info'
96 mandir='${prefix}/man'
98 # Initialize some other variables.
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 ac_max_here_lines=12
105 ac_prev=
106 for ac_option
109 # If the previous option needs an argument, assign it.
110 if test -n "$ac_prev"; then
111 eval "$ac_prev=\$ac_option"
112 ac_prev=
113 continue
116 case "$ac_option" in
117 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 *) ac_optarg= ;;
119 esac
121 # Accept the important Cygnus configure options, so we can diagnose typos.
123 case "$ac_option" in
125 -bindir | --bindir | --bindi | --bind | --bin | --bi)
126 ac_prev=bindir ;;
127 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
128 bindir="$ac_optarg" ;;
130 -build | --build | --buil | --bui | --bu)
131 ac_prev=build ;;
132 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
133 build="$ac_optarg" ;;
135 -cache-file | --cache-file | --cache-fil | --cache-fi \
136 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
137 ac_prev=cache_file ;;
138 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
139 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
140 cache_file="$ac_optarg" ;;
142 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
143 ac_prev=datadir ;;
144 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
145 | --da=*)
146 datadir="$ac_optarg" ;;
148 -disable-* | --disable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}=no" ;;
157 -enable-* | --enable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 case "$ac_option" in
165 *=*) ;;
166 *) ac_optarg=yes ;;
167 esac
168 eval "enable_${ac_feature}='$ac_optarg'" ;;
170 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
171 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
172 | --exec | --exe | --ex)
173 ac_prev=exec_prefix ;;
174 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
175 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
176 | --exec=* | --exe=* | --ex=*)
177 exec_prefix="$ac_optarg" ;;
179 -gas | --gas | --ga | --g)
180 # Obsolete; use --with-gas.
181 with_gas=yes ;;
183 -help | --help | --hel | --he)
184 # Omit some internal or obsolete options to make the list less imposing.
185 # This message is too long to be a string in the A/UX 3.1 sh.
186 cat << EOF
187 Usage: configure [options] [host]
188 Options: [defaults in brackets after descriptions]
189 Configuration:
190 --cache-file=FILE cache test results in FILE
191 --help print this message
192 --no-create do not create output files
193 --quiet, --silent do not print \`checking...' messages
194 --version print the version of autoconf that created configure
195 Directory and file names:
196 --prefix=PREFIX install architecture-independent files in PREFIX
197 [$ac_default_prefix]
198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
199 [same as prefix]
200 --bindir=DIR user executables in DIR [EPREFIX/bin]
201 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
202 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
203 --datadir=DIR read-only architecture-independent data in DIR
204 [PREFIX/share]
205 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
206 --sharedstatedir=DIR modifiable architecture-independent data in DIR
207 [PREFIX/com]
208 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
209 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
210 --includedir=DIR C header files in DIR [PREFIX/include]
211 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
212 --infodir=DIR info documentation in DIR [PREFIX/info]
213 --mandir=DIR man documentation in DIR [PREFIX/man]
214 --srcdir=DIR find the sources in DIR [configure dir or ..]
215 --program-prefix=PREFIX prepend PREFIX to installed program names
216 --program-suffix=SUFFIX append SUFFIX to installed program names
217 --program-transform-name=PROGRAM
218 run sed PROGRAM on installed program names
220 cat << EOF
221 Host type:
222 --build=BUILD configure for building on BUILD [BUILD=HOST]
223 --host=HOST configure for HOST [guessed]
224 --target=TARGET configure for TARGET [TARGET=HOST]
225 Features and packages:
226 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
227 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
230 --x-includes=DIR X include files are in DIR
231 --x-libraries=DIR X library files are in DIR
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
236 exit 0 ;;
238 -host | --host | --hos | --ho)
239 ac_prev=host ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host="$ac_optarg" ;;
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir="$ac_optarg" ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 ac_prev=infodir ;;
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir="$ac_optarg" ;;
255 -libdir | --libdir | --libdi | --libd)
256 ac_prev=libdir ;;
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
258 libdir="$ac_optarg" ;;
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir="$ac_optarg" ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir="$ac_optarg" ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 ac_prev=mandir ;;
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279 mandir="$ac_optarg" ;;
281 -nfp | --nfp | --nf)
282 # Obsolete; use --without-fp.
283 with_fp=no ;;
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 | --no-cr | --no-c)
287 no_create=yes ;;
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291 no_recursion=yes ;;
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir="$ac_optarg" ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 ac_prev=prefix ;;
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305 prefix="$ac_optarg" ;;
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix="$ac_optarg" ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix="$ac_optarg" ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name="$ac_optarg" ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
340 silent=yes ;;
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 ac_prev=sbindir ;;
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 | --sbi=* | --sb=*)
346 sbindir="$ac_optarg" ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
351 | --sha | --sh)
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 | --sha=* | --sh=*)
357 sharedstatedir="$ac_optarg" ;;
359 -site | --site | --sit)
360 ac_prev=site ;;
361 -site=* | --site=* | --sit=*)
362 site="$ac_optarg" ;;
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 ac_prev=srcdir ;;
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367 srcdir="$ac_optarg" ;;
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir="$ac_optarg" ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target="$ac_optarg" ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
382 verbose=yes ;;
384 -version | --version | --versio | --versi | --vers)
385 echo "configure generated by autoconf version 2.13"
386 exit 0 ;;
388 -with-* | --with-*)
389 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 case "$ac_option" in
396 *=*) ;;
397 *) ac_optarg=yes ;;
398 esac
399 eval "with_${ac_package}='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}=no" ;;
410 --x)
411 # Obsolete; use --with-x.
412 with_x=yes ;;
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes="$ac_optarg" ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries="$ac_optarg" ;;
428 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
433 echo "configure: warning: $ac_option: invalid host type" 1>&2
435 if test "x$nonopt" != xNONE; then
436 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438 nonopt="$ac_option"
441 esac
442 done
444 if test -n "$ac_prev"; then
445 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450 # File descriptor usage:
451 # 0 standard input
452 # 1 file creation
453 # 2 errors and warnings
454 # 3 some systems may open it to /dev/tty
455 # 4 used on the Kubota Titan
456 # 6 checking for... messages and results
457 # 5 compiler messages saved in config.log
458 if test "$silent" = yes; then
459 exec 6>/dev/null
460 else
461 exec 6>&1
463 exec 5>./config.log
465 echo "\
466 This file contains any messages produced by compilers while
467 running configure, to aid debugging if configure makes a mistake.
468 " 1>&5
470 # Strip out --no-create and --no-recursion so they do not pile up.
471 # Also quote any args containing shell metacharacters.
472 ac_configure_args=
473 for ac_arg
475 case "$ac_arg" in
476 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
477 | --no-cr | --no-c) ;;
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
480 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
481 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
482 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
483 esac
484 done
486 # NLS nuisances.
487 # Only set these to C if already set. These must not be set unconditionally
488 # because not all systems understand e.g. LANG=C (notably SCO).
489 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
490 # Non-C LC_CTYPE values break the ctype check.
491 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
492 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
493 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
494 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
496 # confdefs.h avoids OS command line length limits that DEFS can exceed.
497 rm -rf conftest* confdefs.h
498 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
499 echo > confdefs.h
501 # A filename unique to this package, relative to the directory that
502 # configure is in, which we can look for to find out if srcdir is correct.
503 ac_unique_file=src/ios.cc
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
509 ac_prog=$0
510 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 srcdir=$ac_confdir
513 if test ! -r $srcdir/$ac_unique_file; then
514 srcdir=..
516 else
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522 else
523 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528 # Prefer explicitly selected file to automatically selected ones.
529 if test -z "$CONFIG_SITE"; then
530 if test "x$prefix" != xNONE; then
531 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
532 else
533 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536 for ac_site_file in $CONFIG_SITE; do
537 if test -r "$ac_site_file"; then
538 echo "loading site script $ac_site_file"
539 . "$ac_site_file"
541 done
543 if test -r "$cache_file"; then
544 echo "loading cache $cache_file"
545 . $cache_file
546 else
547 echo "creating cache $cache_file"
548 > $cache_file
551 ac_ext=c
552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
553 ac_cpp='$CPP $CPPFLAGS'
554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
556 cross_compiling=$ac_cv_prog_cc_cross
558 ac_exeext=
559 ac_objext=o
560 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
561 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
562 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
563 ac_n= ac_c='
564 ' ac_t=' '
565 else
566 ac_n=-n ac_c= ac_t=
568 else
569 ac_n= ac_c='\c' ac_t=
574 # When building with srcdir == objdir, links to the source files will
575 # be created in directories within the target_subdir. We have to
576 # adjust toplevel_srcdir accordingly, so that configure finds
577 # install-sh and other auxiliary files that live in the top-level
578 # source directory.
579 if test "${srcdir}" = "."; then
580 if test -z "${with_target_subdir}"; then
581 toprel=".."
582 else
583 if test "${with_target_subdir}" != "."; then
584 toprel="${with_multisrctop}../.."
585 else
586 toprel="${with_multisrctop}.."
589 else
590 toprel=".."
592 ac_aux_dir=
593 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
594 if test -f $ac_dir/install-sh; then
595 ac_aux_dir=$ac_dir
596 ac_install_sh="$ac_aux_dir/install-sh -c"
597 break
598 elif test -f $ac_dir/install.sh; then
599 ac_aux_dir=$ac_dir
600 ac_install_sh="$ac_aux_dir/install.sh -c"
601 break
603 done
604 if test -z "$ac_aux_dir"; then
605 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
607 ac_config_guess=$ac_aux_dir/config.guess
608 ac_config_sub=$ac_aux_dir/config.sub
609 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
611 toplevel_srcdir=\${top_srcdir}/$toprel
616 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
617 # AC 2.50 sets target_alias iff the user specified --target, but we use it
618 # everywhere, so we set it here just to be sure.
620 # Do some error checking and defaulting for the host and target type.
621 # The inputs are:
622 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
624 # The rules are:
625 # 1. You are not allowed to specify --host, --target, and nonopt at the
626 # same time.
627 # 2. Host defaults to nonopt.
628 # 3. If nonopt is not specified, then host defaults to the current host,
629 # as determined by config.guess.
630 # 4. Target and build default to nonopt.
631 # 5. If nonopt is not specified, then target and build default to host.
633 # The aliases save the names the user supplied, while $host etc.
634 # will get canonicalized.
635 case $host---$target---$nonopt in
636 NONE---*---* | *---NONE---* | *---*---NONE) ;;
637 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
638 esac
641 # Make sure we can run config.sub.
642 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
643 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
646 echo $ac_n "checking host system type""... $ac_c" 1>&6
647 echo "configure:648: checking host system type" >&5
649 host_alias=$host
650 case "$host_alias" in
651 NONE)
652 case $nonopt in
653 NONE)
654 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
655 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
656 fi ;;
657 *) host_alias=$nonopt ;;
658 esac ;;
659 esac
661 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
662 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
663 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
664 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
665 echo "$ac_t""$host" 1>&6
667 echo $ac_n "checking target system type""... $ac_c" 1>&6
668 echo "configure:669: checking target system type" >&5
670 target_alias=$target
671 case "$target_alias" in
672 NONE)
673 case $nonopt in
674 NONE) target_alias=$host_alias ;;
675 *) target_alias=$nonopt ;;
676 esac ;;
677 esac
679 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
680 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$target" 1>&6
685 echo $ac_n "checking build system type""... $ac_c" 1>&6
686 echo "configure:687: checking build system type" >&5
688 build_alias=$build
689 case "$build_alias" in
690 NONE)
691 case $nonopt in
692 NONE) build_alias=$host_alias ;;
693 *) build_alias=$nonopt ;;
694 esac ;;
695 esac
697 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
698 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
699 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
700 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
701 echo "$ac_t""$build" 1>&6
703 test "$host_alias" != "$target_alias" &&
704 test "$program_prefix$program_suffix$program_transform_name" = \
705 NONENONEs,x,x, &&
706 program_prefix=${target_alias}-
708 target_alias=${target_alias-$target}
711 # We use these options to decide which functions to include.
712 # Check whether --with-target-subdir or --without-target-subdir was given.
713 if test "${with_target_subdir+set}" = set; then
714 withval="$with_target_subdir"
718 # Check whether --with-cross-host or --without-cross-host was given.
719 if test "${with_cross_host+set}" = set; then
720 withval="$with_cross_host"
725 # Runs configure.host and configure.target. Have to run this before
726 # the GLIBCPP_ENABLE_* macros below.
727 # Find a good install program. We prefer a C program (faster),
728 # so one script is as good as another. But avoid the broken or
729 # incompatible versions:
730 # SysV /etc/install, /usr/sbin/install
731 # SunOS /usr/etc/install
732 # IRIX /sbin/install
733 # AIX /bin/install
734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
737 # ./install, which can be erroneously created by make from ./install.sh.
738 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
739 echo "configure:740: checking for a BSD compatible install" >&5
740 if test -z "$INSTALL"; then
741 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
743 else
744 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
745 for ac_dir in $PATH; do
746 # Account for people who put trailing slashes in PATH elements.
747 case "$ac_dir/" in
748 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
750 # OSF1 and SCO ODT 3.0 have their own names for install.
751 # Don't use installbsd from OSF since it installs stuff as root
752 # by default.
753 for ac_prog in ginstall scoinst install; do
754 if test -f $ac_dir/$ac_prog; then
755 if test $ac_prog = install &&
756 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
757 # AIX install. It has an incompatible calling convention.
759 else
760 ac_cv_path_install="$ac_dir/$ac_prog -c"
761 break 2
764 done
766 esac
767 done
768 IFS="$ac_save_IFS"
771 if test "${ac_cv_path_install+set}" = set; then
772 INSTALL="$ac_cv_path_install"
773 else
774 # As a last resort, use the slow shell script. We don't cache a
775 # path for INSTALL within a source directory, because that will
776 # break other packages using the cache if that directory is
777 # removed, or if the path is relative.
778 INSTALL="$ac_install_sh"
781 echo "$ac_t""$INSTALL" 1>&6
783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
784 # It thinks the first close brace ends the variable substitution.
785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
791 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
792 echo "configure:793: checking whether build environment is sane" >&5
793 # Just in case
794 sleep 1
795 echo timestamp > conftestfile
796 # Do `set' in a subshell so we don't clobber the current shell's
797 # arguments. Must try -L first in case configure is actually a
798 # symlink; some systems play weird games with the mod time of symlinks
799 # (eg FreeBSD returns the mod time of the symlink's containing
800 # directory).
801 if (
802 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
803 if test "$*" = "X"; then
804 # -L didn't work.
805 set X `ls -t $srcdir/configure conftestfile`
807 if test "$*" != "X $srcdir/configure conftestfile" \
808 && test "$*" != "X conftestfile $srcdir/configure"; then
810 # If neither matched, then we have a broken ls. This can happen
811 # if, for instance, CONFIG_SHELL is bash and it inherits a
812 # broken ls alias from the environment. This has actually
813 # happened. Such a system could not be considered "sane".
814 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
815 alias in your environment" 1>&2; exit 1; }
818 test "$2" = conftestfile
820 then
821 # Ok.
823 else
824 { echo "configure: error: newly created file is older than distributed files!
825 Check your system clock" 1>&2; exit 1; }
827 rm -f conftest*
828 echo "$ac_t""yes" 1>&6
829 if test "$program_transform_name" = s,x,x,; then
830 program_transform_name=
831 else
832 # Double any \ or $. echo might interpret backslashes.
833 cat <<\EOF_SED > conftestsed
834 s,\\,\\\\,g; s,\$,$$,g
835 EOF_SED
836 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
837 rm -f conftestsed
839 test "$program_prefix" != NONE &&
840 program_transform_name="s,^,${program_prefix},; $program_transform_name"
841 # Use a double $ so make ignores it.
842 test "$program_suffix" != NONE &&
843 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
845 # sed with no file args requires a program.
846 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
848 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
849 echo "configure:850: checking whether ${MAKE-make} sets \${MAKE}" >&5
850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
851 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
853 else
854 cat > conftestmake <<\EOF
855 all:
856 @echo 'ac_maketemp="${MAKE}"'
858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
859 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
860 if test -n "$ac_maketemp"; then
861 eval ac_cv_prog_make_${ac_make}_set=yes
862 else
863 eval ac_cv_prog_make_${ac_make}_set=no
865 rm -f conftestmake
867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
868 echo "$ac_t""yes" 1>&6
869 SET_MAKE=
870 else
871 echo "$ac_t""no" 1>&6
872 SET_MAKE="MAKE=${MAKE-make}"
875 if test $host != $build; then
876 ac_tool_prefix=${host_alias}-
877 else
878 ac_tool_prefix=
881 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
882 echo "configure:883: checking for Cygwin environment" >&5
883 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
885 else
886 cat > conftest.$ac_ext <<EOF
887 #line 888 "configure"
888 #include "confdefs.h"
890 int main() {
892 #ifndef __CYGWIN__
893 #define __CYGWIN__ __CYGWIN32__
894 #endif
895 return __CYGWIN__;
896 ; return 0; }
898 if { (eval echo configure:899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
899 rm -rf conftest*
900 ac_cv_cygwin=yes
901 else
902 echo "configure: failed program was:" >&5
903 cat conftest.$ac_ext >&5
904 rm -rf conftest*
905 ac_cv_cygwin=no
907 rm -f conftest*
908 rm -f conftest*
911 echo "$ac_t""$ac_cv_cygwin" 1>&6
912 CYGWIN=
913 test "$ac_cv_cygwin" = yes && CYGWIN=yes
914 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
915 echo "configure:916: checking for mingw32 environment" >&5
916 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
918 else
919 cat > conftest.$ac_ext <<EOF
920 #line 921 "configure"
921 #include "confdefs.h"
923 int main() {
924 return __MINGW32__;
925 ; return 0; }
927 if { (eval echo configure:928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
928 rm -rf conftest*
929 ac_cv_mingw32=yes
930 else
931 echo "configure: failed program was:" >&5
932 cat conftest.$ac_ext >&5
933 rm -rf conftest*
934 ac_cv_mingw32=no
936 rm -f conftest*
937 rm -f conftest*
940 echo "$ac_t""$ac_cv_mingw32" 1>&6
941 MINGW32=
942 test "$ac_cv_mingw32" = yes && MINGW32=yes
944 # Check whether --enable-multilib or --disable-multilib was given.
945 if test "${enable_multilib+set}" = set; then
946 enableval="$enable_multilib"
947 case "${enableval}" in
948 yes) multilib=yes ;;
949 no) multilib=no ;;
950 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
951 esac
952 else
953 multilib=yes
956 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
960 PACKAGE=libstdc++
962 VERSION=3.0.0
964 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
965 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
967 cat >> confdefs.h <<EOF
968 #define PACKAGE "$PACKAGE"
971 cat >> confdefs.h <<EOF
972 #define VERSION "$VERSION"
977 missing_dir=`cd $ac_aux_dir && pwd`
978 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
979 echo "configure:980: checking for working aclocal" >&5
980 # Run test in a subshell; some versions of sh will print an error if
981 # an executable is not found, even if stderr is redirected.
982 # Redirect stdin to placate older versions of autoconf. Sigh.
983 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
984 ACLOCAL=aclocal
985 echo "$ac_t""found" 1>&6
986 else
987 ACLOCAL="$missing_dir/missing aclocal"
988 echo "$ac_t""missing" 1>&6
991 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
992 echo "configure:993: checking for working autoconf" >&5
993 # Run test in a subshell; some versions of sh will print an error if
994 # an executable is not found, even if stderr is redirected.
995 # Redirect stdin to placate older versions of autoconf. Sigh.
996 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
997 AUTOCONF=autoconf
998 echo "$ac_t""found" 1>&6
999 else
1000 AUTOCONF="$missing_dir/missing autoconf"
1001 echo "$ac_t""missing" 1>&6
1004 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1005 echo "configure:1006: checking for working automake" >&5
1006 # Run test in a subshell; some versions of sh will print an error if
1007 # an executable is not found, even if stderr is redirected.
1008 # Redirect stdin to placate older versions of autoconf. Sigh.
1009 if (automake --version) < /dev/null > /dev/null 2>&1; then
1010 AUTOMAKE=automake
1011 echo "$ac_t""found" 1>&6
1012 else
1013 AUTOMAKE="$missing_dir/missing automake"
1014 echo "$ac_t""missing" 1>&6
1017 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1018 echo "configure:1019: checking for working autoheader" >&5
1019 # Run test in a subshell; some versions of sh will print an error if
1020 # an executable is not found, even if stderr is redirected.
1021 # Redirect stdin to placate older versions of autoconf. Sigh.
1022 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1023 AUTOHEADER=autoheader
1024 echo "$ac_t""found" 1>&6
1025 else
1026 AUTOHEADER="$missing_dir/missing autoheader"
1027 echo "$ac_t""missing" 1>&6
1030 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1031 echo "configure:1032: checking for working makeinfo" >&5
1032 # Run test in a subshell; some versions of sh will print an error if
1033 # an executable is not found, even if stderr is redirected.
1034 # Redirect stdin to placate older versions of autoconf. Sigh.
1035 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1036 MAKEINFO=makeinfo
1037 echo "$ac_t""found" 1>&6
1038 else
1039 MAKEINFO="$missing_dir/missing makeinfo"
1040 echo "$ac_t""missing" 1>&6
1045 # Never versions of autoconf add an underscore to these functions.
1046 # Prevent future problems ...
1052 # AC_PROG_CC
1054 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1055 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1056 # are probably using a cross compiler, which will not be able to fully
1057 # link an executable. This should really be fixed in autoconf
1058 # itself.
1063 # Extract the first word of "gcc", so it can be a program name with args.
1064 set dummy gcc; ac_word=$2
1065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1066 echo "configure:1067: checking for $ac_word" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1069 else
1070 if test -n "$CC"; then
1071 ac_cv_prog_CC="$CC" # Let the user override the test.
1072 else
1073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1074 ac_dummy="$PATH"
1075 for ac_dir in $ac_dummy; do
1076 test -z "$ac_dir" && ac_dir=.
1077 if test -f $ac_dir/$ac_word; then
1078 ac_cv_prog_CC="gcc"
1079 break
1081 done
1082 IFS="$ac_save_ifs"
1085 CC="$ac_cv_prog_CC"
1086 if test -n "$CC"; then
1087 echo "$ac_t""$CC" 1>&6
1088 else
1089 echo "$ac_t""no" 1>&6
1092 if test -z "$CC"; then
1093 # Extract the first word of "cc", so it can be a program name with args.
1094 set dummy cc; ac_word=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1099 else
1100 if test -n "$CC"; then
1101 ac_cv_prog_CC="$CC" # Let the user override the test.
1102 else
1103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1104 ac_prog_rejected=no
1105 ac_dummy="$PATH"
1106 for ac_dir in $ac_dummy; do
1107 test -z "$ac_dir" && ac_dir=.
1108 if test -f $ac_dir/$ac_word; then
1109 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1110 ac_prog_rejected=yes
1111 continue
1113 ac_cv_prog_CC="cc"
1114 break
1116 done
1117 IFS="$ac_save_ifs"
1118 if test $ac_prog_rejected = yes; then
1119 # We found a bogon in the path, so make sure we never use it.
1120 set dummy $ac_cv_prog_CC
1121 shift
1122 if test $# -gt 0; then
1123 # We chose a different compiler from the bogus one.
1124 # However, it has the same basename, so the bogon will be chosen
1125 # first if we set CC to just the basename; use the full file name.
1126 shift
1127 set dummy "$ac_dir/$ac_word" "$@"
1128 shift
1129 ac_cv_prog_CC="$@"
1134 CC="$ac_cv_prog_CC"
1135 if test -n "$CC"; then
1136 echo "$ac_t""$CC" 1>&6
1137 else
1138 echo "$ac_t""no" 1>&6
1141 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1144 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether we are using GNU C" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1149 cat > conftest.c <<EOF
1150 #ifdef __GNUC__
1151 yes;
1152 #endif
1154 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1155 ac_cv_prog_gcc=yes
1156 else
1157 ac_cv_prog_gcc=no
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1163 if test $ac_cv_prog_gcc = yes; then
1164 GCC=yes
1165 ac_test_CFLAGS="${CFLAGS+set}"
1166 ac_save_CFLAGS="$CFLAGS"
1167 CFLAGS=
1168 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether ${CC-cc} accepts -g" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1172 else
1173 echo 'void f(){}' > conftest.c
1174 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1175 ac_cv_prog_cc_g=yes
1176 else
1177 ac_cv_prog_cc_g=no
1179 rm -f conftest*
1183 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1184 if test "$ac_test_CFLAGS" = set; then
1185 CFLAGS="$ac_save_CFLAGS"
1186 elif test $ac_cv_prog_cc_g = yes; then
1187 CFLAGS="-g -O2"
1188 else
1189 CFLAGS="-O2"
1191 else
1192 GCC=
1193 test "${CFLAGS+set}" = set || CFLAGS="-g"
1197 # Can't just call these here as g++ requires libstc++ to be built....
1198 # AC_PROG_CXX
1200 # Likewise for AC_PROG_CXX.
1204 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1205 # flags that come in CXX while configuring libstdc++. They're different
1206 # from those used for all other target libraries. If CXX is set in
1207 # the environment, respect that here.
1208 glibcpp_CXX=$CXX
1209 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1211 # Extract the first word of "$ac_prog", so it can be a program name with args.
1212 set dummy $ac_prog; ac_word=$2
1213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1214 echo "configure:1215: checking for $ac_word" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 if test -n "$glibcpp_CXX"; then
1219 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1220 else
1221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1222 ac_dummy="$PATH"
1223 for ac_dir in $ac_dummy; do
1224 test -z "$ac_dir" && ac_dir=.
1225 if test -f $ac_dir/$ac_word; then
1226 ac_cv_prog_glibcpp_CXX="$ac_prog"
1227 break
1229 done
1230 IFS="$ac_save_ifs"
1233 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1234 if test -n "$glibcpp_CXX"; then
1235 echo "$ac_t""$glibcpp_CXX" 1>&6
1236 else
1237 echo "$ac_t""no" 1>&6
1240 test -n "$glibcpp_CXX" && break
1241 done
1242 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1245 CXX=$glibcpp_CXX
1246 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1248 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether we are using GNU C++" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253 cat > conftest.C <<EOF
1254 #ifdef __GNUC__
1255 yes;
1256 #endif
1258 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1259 ac_cv_prog_gxx=yes
1260 else
1261 ac_cv_prog_gxx=no
1265 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1267 if test $ac_cv_prog_gxx = yes; then
1268 GXX=yes
1269 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1270 ac_save_CXXFLAGS="$CXXFLAGS"
1271 CXXFLAGS=
1272 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1273 echo "configure:1274: checking whether ${CXX-g++} accepts -g" >&5
1274 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1276 else
1277 echo 'void f(){}' > conftest.cc
1278 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1279 ac_cv_prog_cxx_g=yes
1280 else
1281 ac_cv_prog_cxx_g=no
1283 rm -f conftest*
1287 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1288 if test "$ac_test_CXXFLAGS" = set; then
1289 CXXFLAGS="$ac_save_CXXFLAGS"
1290 elif test $ac_cv_prog_cxx_g = yes; then
1291 CXXFLAGS="-g -O2"
1292 else
1293 CXXFLAGS="-O2"
1295 else
1296 GXX=
1297 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1301 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1302 set dummy ${ac_tool_prefix}as; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308 if test -n "$AS"; then
1309 ac_cv_prog_AS="$AS" # Let the user override the test.
1310 else
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1312 ac_dummy="$PATH"
1313 for ac_dir in $ac_dummy; do
1314 test -z "$ac_dir" && ac_dir=.
1315 if test -f $ac_dir/$ac_word; then
1316 ac_cv_prog_AS="${ac_tool_prefix}as"
1317 break
1319 done
1320 IFS="$ac_save_ifs"
1321 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1324 AS="$ac_cv_prog_AS"
1325 if test -n "$AS"; then
1326 echo "$ac_t""$AS" 1>&6
1327 else
1328 echo "$ac_t""no" 1>&6
1333 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1334 set dummy ${ac_tool_prefix}ar; ac_word=$2
1335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1336 echo "configure:1337: checking for $ac_word" >&5
1337 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1339 else
1340 if test -n "$AR"; then
1341 ac_cv_prog_AR="$AR" # Let the user override the test.
1342 else
1343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1344 ac_dummy="$PATH"
1345 for ac_dir in $ac_dummy; do
1346 test -z "$ac_dir" && ac_dir=.
1347 if test -f $ac_dir/$ac_word; then
1348 ac_cv_prog_AR="${ac_tool_prefix}ar"
1349 break
1351 done
1352 IFS="$ac_save_ifs"
1353 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1356 AR="$ac_cv_prog_AR"
1357 if test -n "$AR"; then
1358 echo "$ac_t""$AR" 1>&6
1359 else
1360 echo "$ac_t""no" 1>&6
1365 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1368 echo "configure:1369: checking for $ac_word" >&5
1369 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1371 else
1372 if test -n "$RANLIB"; then
1373 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1374 else
1375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1376 ac_dummy="$PATH"
1377 for ac_dir in $ac_dummy; do
1378 test -z "$ac_dir" && ac_dir=.
1379 if test -f $ac_dir/$ac_word; then
1380 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1381 break
1383 done
1384 IFS="$ac_save_ifs"
1387 RANLIB="$ac_cv_prog_RANLIB"
1388 if test -n "$RANLIB"; then
1389 echo "$ac_t""$RANLIB" 1>&6
1390 else
1391 echo "$ac_t""no" 1>&6
1395 if test -z "$ac_cv_prog_RANLIB"; then
1396 if test -n "$ac_tool_prefix"; then
1397 # Extract the first word of "ranlib", so it can be a program name with args.
1398 set dummy ranlib; ac_word=$2
1399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1400 echo "configure:1401: checking for $ac_word" >&5
1401 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404 if test -n "$RANLIB"; then
1405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1406 else
1407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1408 ac_dummy="$PATH"
1409 for ac_dir in $ac_dummy; do
1410 test -z "$ac_dir" && ac_dir=.
1411 if test -f $ac_dir/$ac_word; then
1412 ac_cv_prog_RANLIB="ranlib"
1413 break
1415 done
1416 IFS="$ac_save_ifs"
1417 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1420 RANLIB="$ac_cv_prog_RANLIB"
1421 if test -n "$RANLIB"; then
1422 echo "$ac_t""$RANLIB" 1>&6
1423 else
1424 echo "$ac_t""no" 1>&6
1427 else
1428 RANLIB="ranlib-not-found-in-path-error"
1432 # Find a good install program. We prefer a C program (faster),
1433 # so one script is as good as another. But avoid the broken or
1434 # incompatible versions:
1435 # SysV /etc/install, /usr/sbin/install
1436 # SunOS /usr/etc/install
1437 # IRIX /sbin/install
1438 # AIX /bin/install
1439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1442 # ./install, which can be erroneously created by make from ./install.sh.
1443 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1444 echo "configure:1445: checking for a BSD compatible install" >&5
1445 if test -z "$INSTALL"; then
1446 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1448 else
1449 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1450 for ac_dir in $PATH; do
1451 # Account for people who put trailing slashes in PATH elements.
1452 case "$ac_dir/" in
1453 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1455 # OSF1 and SCO ODT 3.0 have their own names for install.
1456 # Don't use installbsd from OSF since it installs stuff as root
1457 # by default.
1458 for ac_prog in ginstall scoinst install; do
1459 if test -f $ac_dir/$ac_prog; then
1460 if test $ac_prog = install &&
1461 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1462 # AIX install. It has an incompatible calling convention.
1464 else
1465 ac_cv_path_install="$ac_dir/$ac_prog -c"
1466 break 2
1469 done
1471 esac
1472 done
1473 IFS="$ac_save_IFS"
1476 if test "${ac_cv_path_install+set}" = set; then
1477 INSTALL="$ac_cv_path_install"
1478 else
1479 # As a last resort, use the slow shell script. We don't cache a
1480 # path for INSTALL within a source directory, because that will
1481 # break other packages using the cache if that directory is
1482 # removed, or if the path is relative.
1483 INSTALL="$ac_install_sh"
1486 echo "$ac_t""$INSTALL" 1>&6
1488 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1489 # It thinks the first close brace ends the variable substitution.
1490 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1492 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1494 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1497 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1498 echo "configure:1499: checking whether to enable maintainer-specific portions of Makefiles" >&5
1499 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1500 if test "${enable_maintainer_mode+set}" = set; then
1501 enableval="$enable_maintainer_mode"
1502 USE_MAINTAINER_MODE=$enableval
1503 else
1504 USE_MAINTAINER_MODE=no
1507 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1510 if test $USE_MAINTAINER_MODE = yes; then
1511 MAINTAINER_MODE_TRUE=
1512 MAINTAINER_MODE_FALSE='#'
1513 else
1514 MAINTAINER_MODE_TRUE='#'
1515 MAINTAINER_MODE_FALSE=
1517 MAINT=$MAINTAINER_MODE_TRUE
1521 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1522 # at least currently, we never actually build a program, so we never
1523 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1524 # fails, because we are probably configuring with a cross compiler
1525 # which cant create executables. So we include AC_EXEEXT to keep
1526 # automake happy, but we dont execute it, since we dont care about
1527 # the result.
1528 if false; then
1529 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1530 # to nothing, so nothing would remain between `then' and `fi' if it
1531 # were not for the `:' below.
1535 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1536 echo "configure:1537: checking for executable suffix" >&5
1537 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1539 else
1540 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1541 ac_cv_exeext=.exe
1542 else
1543 rm -f conftest*
1544 echo 'int main () { return 0; }' > conftest.$ac_ext
1545 ac_cv_exeext=
1546 if { (eval echo configure:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1547 for file in conftest.*; do
1548 case $file in
1549 *.c | *.o | *.obj) ;;
1550 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1551 esac
1552 done
1553 else
1554 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1556 rm -f conftest*
1557 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1561 EXEEXT=""
1562 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1563 echo "$ac_t""${ac_cv_exeext}" 1>&6
1564 ac_exeext=$EXEEXT
1568 . ${glibcpp_basedir}/configure.host
1570 case ${glibcpp_basedir} in
1571 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1572 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1573 esac
1575 # This does for the target what configure.host does for the host. In
1576 # addition to possibly modifying the same flags, it also sets up symlinks.
1578 . ${glibcpp_basedir}/configure.target
1579 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1580 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1586 # Check whether --enable-shared or --disable-shared was given.
1587 if test "${enable_shared+set}" = set; then
1588 enableval="$enable_shared"
1589 p=${PACKAGE-default}
1590 case $enableval in
1591 yes) enable_shared=yes ;;
1592 no) enable_shared=no ;;
1594 enable_shared=no
1595 # Look at the argument we got. We use all the common list separators.
1596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1597 for pkg in $enableval; do
1598 if test "X$pkg" = "X$p"; then
1599 enable_shared=yes
1601 done
1602 IFS="$ac_save_ifs"
1604 esac
1605 else
1606 enable_shared=yes
1609 # Check whether --enable-static or --disable-static was given.
1610 if test "${enable_static+set}" = set; then
1611 enableval="$enable_static"
1612 p=${PACKAGE-default}
1613 case $enableval in
1614 yes) enable_static=yes ;;
1615 no) enable_static=no ;;
1617 enable_static=no
1618 # Look at the argument we got. We use all the common list separators.
1619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1620 for pkg in $enableval; do
1621 if test "X$pkg" = "X$p"; then
1622 enable_static=yes
1624 done
1625 IFS="$ac_save_ifs"
1627 esac
1628 else
1629 enable_static=yes
1632 # Check whether --enable-fast-install or --disable-fast-install was given.
1633 if test "${enable_fast_install+set}" = set; then
1634 enableval="$enable_fast_install"
1635 p=${PACKAGE-default}
1636 case $enableval in
1637 yes) enable_fast_install=yes ;;
1638 no) enable_fast_install=no ;;
1640 enable_fast_install=no
1641 # Look at the argument we got. We use all the common list separators.
1642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1643 for pkg in $enableval; do
1644 if test "X$pkg" = "X$p"; then
1645 enable_fast_install=yes
1647 done
1648 IFS="$ac_save_ifs"
1650 esac
1651 else
1652 enable_fast_install=yes
1655 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1656 if test "${with_gnu_ld+set}" = set; then
1657 withval="$with_gnu_ld"
1658 test "$withval" = no || with_gnu_ld=yes
1659 else
1660 with_gnu_ld=no
1663 ac_prog=ld
1664 if test "$GCC" = yes; then
1665 # Check if gcc -print-prog-name=ld gives a path.
1666 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1667 echo "configure:1668: checking for ld used by GCC" >&5
1668 case $host in
1669 *-*-mingw*)
1670 # gcc leaves a trailing carriage return which upsets mingw
1671 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1673 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1674 esac
1675 case $ac_prog in
1676 # Accept absolute paths.
1677 [\\/]* | [A-Za-z]:[\\/]*)
1678 re_direlt='/[^/][^/]*/\.\./'
1679 # Canonicalize the path of ld
1680 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1681 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1682 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1683 done
1684 test -z "$LD" && LD="$ac_prog"
1687 # If it fails, then pretend we aren't using GCC.
1688 ac_prog=ld
1691 # If it is relative, then search for the first ld in PATH.
1692 with_gnu_ld=unknown
1694 esac
1695 elif test "$with_gnu_ld" = yes; then
1696 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1697 echo "configure:1698: checking for GNU ld" >&5
1698 else
1699 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1700 echo "configure:1701: checking for non-GNU ld" >&5
1702 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1704 else
1705 if test -z "$LD"; then
1706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1707 for ac_dir in $PATH; do
1708 test -z "$ac_dir" && ac_dir=.
1709 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1710 lt_cv_path_LD="$ac_dir/$ac_prog"
1711 # Check to see if the program is GNU ld. I'd rather use --version,
1712 # but apparently some GNU ld's only accept -v.
1713 # Break only if it was the GNU/non-GNU ld that we prefer.
1714 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1715 test "$with_gnu_ld" != no && break
1716 else
1717 test "$with_gnu_ld" != yes && break
1720 done
1721 IFS="$ac_save_ifs"
1722 else
1723 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1727 LD="$lt_cv_path_LD"
1728 if test -n "$LD"; then
1729 echo "$ac_t""$LD" 1>&6
1730 else
1731 echo "$ac_t""no" 1>&6
1733 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1734 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1735 echo "configure:1736: checking if the linker ($LD) is GNU ld" >&5
1736 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1738 else
1739 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1740 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1741 lt_cv_prog_gnu_ld=yes
1742 else
1743 lt_cv_prog_gnu_ld=no
1747 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1748 with_gnu_ld=$lt_cv_prog_gnu_ld
1751 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1752 echo "configure:1753: checking for $LD option to reload object files" >&5
1753 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1754 echo $ac_n "(cached) $ac_c" 1>&6
1755 else
1756 lt_cv_ld_reload_flag='-r'
1759 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1760 reload_flag=$lt_cv_ld_reload_flag
1761 test -n "$reload_flag" && reload_flag=" $reload_flag"
1763 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1764 echo "configure:1765: checking for BSD-compatible nm" >&5
1765 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1767 else
1768 if test -n "$NM"; then
1769 # Let the user override the test.
1770 lt_cv_path_NM="$NM"
1771 else
1772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1773 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1774 test -z "$ac_dir" && ac_dir=.
1775 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1776 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1777 # Check to see if the nm accepts a BSD-compat flag.
1778 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1779 # nm: unknown option "B" ignored
1780 # Tru64's nm complains that /dev/null is an invalid object file
1781 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1782 lt_cv_path_NM="$tmp_nm -B"
1783 break
1784 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1785 lt_cv_path_NM="$tmp_nm -p"
1786 break
1787 else
1788 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1789 continue # so that we can try to find one that supports BSD flags
1792 done
1793 IFS="$ac_save_ifs"
1794 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1798 NM="$lt_cv_path_NM"
1799 echo "$ac_t""$NM" 1>&6
1801 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1802 echo "configure:1803: checking whether ln -s works" >&5
1803 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1805 else
1806 rm -f conftestdata
1807 if ln -s X conftestdata 2>/dev/null
1808 then
1809 rm -f conftestdata
1810 ac_cv_prog_LN_S="ln -s"
1811 else
1812 ac_cv_prog_LN_S=ln
1815 LN_S="$ac_cv_prog_LN_S"
1816 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1817 echo "$ac_t""yes" 1>&6
1818 else
1819 echo "$ac_t""no" 1>&6
1822 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1823 echo "configure:1824: checking how to recognise dependant libraries" >&5
1824 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1826 else
1827 lt_cv_file_magic_cmd='$MAGIC_CMD'
1828 lt_cv_file_magic_test_file=
1829 lt_cv_deplibs_check_method='unknown'
1830 # Need to set the preceding variable on all platforms that support
1831 # interlibrary dependencies.
1832 # 'none' -- dependencies not supported.
1833 # `unknown' -- same as none, but documents that we really don't know.
1834 # 'pass_all' -- all dependencies passed with no checks.
1835 # 'test_compile' -- check by making test program.
1836 # 'file_magic [regex]' -- check by looking for files in library path
1837 # which responds to the $file_magic_cmd with a given egrep regex.
1838 # If you have `file' or equivalent on your system and you're not sure
1839 # whether `pass_all' will *always* work, you probably want this one.
1841 case $host_os in
1842 aix*)
1843 lt_cv_deplibs_check_method=pass_all
1846 beos*)
1847 lt_cv_deplibs_check_method=pass_all
1850 bsdi4*)
1851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1852 lt_cv_file_magic_cmd='/usr/bin/file -L'
1853 lt_cv_file_magic_test_file=/shlib/libc.so
1856 cygwin* | mingw* |pw32*)
1857 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1858 lt_cv_file_magic_cmd='$OBJDUMP -f'
1861 darwin* | rhapsody*)
1862 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1863 lt_cv_file_magic_cmd='/usr/bin/file -L'
1864 case "$host_os" in
1865 rhapsody* | darwin1.012)
1866 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1868 *) # Darwin 1.3 on
1869 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1871 esac
1874 freebsd* )
1875 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1876 case $host_cpu in
1877 i*86 )
1878 # Not sure whether the presence of OpenBSD here was a mistake.
1879 # Let's accept both of them until this is cleared up.
1880 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1881 lt_cv_file_magic_cmd=/usr/bin/file
1882 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1884 esac
1885 else
1886 lt_cv_deplibs_check_method=pass_all
1890 gnu*)
1891 lt_cv_deplibs_check_method=pass_all
1894 hpux10.20*|hpux11*)
1895 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1896 lt_cv_file_magic_cmd=/usr/bin/file
1897 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1900 irix5* | irix6*)
1901 case $host_os in
1902 irix5*)
1903 # this will be overridden with pass_all, but let us keep it just in case
1904 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1907 case $LD in
1908 *-32|*"-32 ") libmagic=32-bit;;
1909 *-n32|*"-n32 ") libmagic=N32;;
1910 *-64|*"-64 ") libmagic=64-bit;;
1911 *) libmagic=never-match;;
1912 esac
1913 # this will be overridden with pass_all, but let us keep it just in case
1914 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1916 esac
1917 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1918 lt_cv_deplibs_check_method=pass_all
1921 # This must be Linux ELF.
1922 linux-gnu*)
1923 case $host_cpu in
1924 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1925 lt_cv_deplibs_check_method=pass_all ;;
1927 # glibc up to 2.1.1 does not perform some relocations on ARM
1928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1929 esac
1930 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1933 netbsd*)
1934 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1935 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1936 else
1937 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1941 newsos6)
1942 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1943 lt_cv_file_magic_cmd=/usr/bin/file
1944 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1947 osf3* | osf4* | osf5*)
1948 # this will be overridden with pass_all, but let us keep it just in case
1949 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1950 lt_cv_file_magic_test_file=/shlib/libc.so
1951 lt_cv_deplibs_check_method=pass_all
1954 sco3.2v5*)
1955 lt_cv_deplibs_check_method=pass_all
1958 solaris*)
1959 lt_cv_deplibs_check_method=pass_all
1960 lt_cv_file_magic_test_file=/lib/libc.so
1963 sysv5uw[78]* | sysv4*uw2*)
1964 lt_cv_deplibs_check_method=pass_all
1967 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1968 case $host_vendor in
1969 ncr)
1970 lt_cv_deplibs_check_method=pass_all
1972 motorola)
1973 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]'
1974 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1976 esac
1978 esac
1982 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1983 file_magic_cmd=$lt_cv_file_magic_cmd
1984 deplibs_check_method=$lt_cv_deplibs_check_method
1986 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1987 echo "configure:1988: checking for object suffix" >&5
1988 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1990 else
1991 rm -f conftest*
1992 echo 'int i = 1;' > conftest.$ac_ext
1993 if { (eval echo configure:1994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1994 for ac_file in conftest.*; do
1995 case $ac_file in
1996 *.c) ;;
1997 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1998 esac
1999 done
2000 else
2001 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2003 rm -f conftest*
2006 echo "$ac_t""$ac_cv_objext" 1>&6
2007 OBJEXT=$ac_cv_objext
2008 ac_objext=$ac_cv_objext
2010 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2012 # Only perform the check for file, if the check method requires it
2013 case $deplibs_check_method in
2014 file_magic*)
2015 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2016 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2017 echo "configure:2018: checking for ${ac_tool_prefix}file" >&5
2018 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2020 else
2021 case $MAGIC_CMD in
2023 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2025 ?:/*)
2026 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2029 ac_save_MAGIC_CMD="$MAGIC_CMD"
2030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2031 ac_dummy="/usr/bin:$PATH"
2032 for ac_dir in $ac_dummy; do
2033 test -z "$ac_dir" && ac_dir=.
2034 if test -f $ac_dir/${ac_tool_prefix}file; then
2035 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2036 if test -n "$file_magic_test_file"; then
2037 case $deplibs_check_method in
2038 "file_magic "*)
2039 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2040 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2041 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2042 egrep "$file_magic_regex" > /dev/null; then
2044 else
2045 cat <<EOF 1>&2
2047 *** Warning: the command libtool uses to detect shared libraries,
2048 *** $file_magic_cmd, produces output that libtool cannot recognize.
2049 *** The result is that libtool may fail to recognize shared libraries
2050 *** as such. This will affect the creation of libtool libraries that
2051 *** depend on shared libraries, but programs linked with such libtool
2052 *** libraries will work regardless of this problem. Nevertheless, you
2053 *** may want to report the problem to your system manager and/or to
2054 *** bug-libtool@gnu.org
2057 fi ;;
2058 esac
2060 break
2062 done
2063 IFS="$ac_save_ifs"
2064 MAGIC_CMD="$ac_save_MAGIC_CMD"
2066 esac
2069 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2070 if test -n "$MAGIC_CMD"; then
2071 echo "$ac_t""$MAGIC_CMD" 1>&6
2072 else
2073 echo "$ac_t""no" 1>&6
2076 if test -z "$lt_cv_path_MAGIC_CMD"; then
2077 if test -n "$ac_tool_prefix"; then
2078 echo $ac_n "checking for file""... $ac_c" 1>&6
2079 echo "configure:2080: checking for file" >&5
2080 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2082 else
2083 case $MAGIC_CMD in
2085 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2087 ?:/*)
2088 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2091 ac_save_MAGIC_CMD="$MAGIC_CMD"
2092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2093 ac_dummy="/usr/bin:$PATH"
2094 for ac_dir in $ac_dummy; do
2095 test -z "$ac_dir" && ac_dir=.
2096 if test -f $ac_dir/file; then
2097 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2098 if test -n "$file_magic_test_file"; then
2099 case $deplibs_check_method in
2100 "file_magic "*)
2101 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2104 egrep "$file_magic_regex" > /dev/null; then
2106 else
2107 cat <<EOF 1>&2
2109 *** Warning: the command libtool uses to detect shared libraries,
2110 *** $file_magic_cmd, produces output that libtool cannot recognize.
2111 *** The result is that libtool may fail to recognize shared libraries
2112 *** as such. This will affect the creation of libtool libraries that
2113 *** depend on shared libraries, but programs linked with such libtool
2114 *** libraries will work regardless of this problem. Nevertheless, you
2115 *** may want to report the problem to your system manager and/or to
2116 *** bug-libtool@gnu.org
2119 fi ;;
2120 esac
2122 break
2124 done
2125 IFS="$ac_save_ifs"
2126 MAGIC_CMD="$ac_save_MAGIC_CMD"
2128 esac
2131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2132 if test -n "$MAGIC_CMD"; then
2133 echo "$ac_t""$MAGIC_CMD" 1>&6
2134 else
2135 echo "$ac_t""no" 1>&6
2138 else
2139 MAGIC_CMD=:
2145 esac
2147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2150 echo "configure:2151: checking for $ac_word" >&5
2151 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2153 else
2154 if test -n "$RANLIB"; then
2155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2156 else
2157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2158 ac_dummy="$PATH"
2159 for ac_dir in $ac_dummy; do
2160 test -z "$ac_dir" && ac_dir=.
2161 if test -f $ac_dir/$ac_word; then
2162 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2163 break
2165 done
2166 IFS="$ac_save_ifs"
2169 RANLIB="$ac_cv_prog_RANLIB"
2170 if test -n "$RANLIB"; then
2171 echo "$ac_t""$RANLIB" 1>&6
2172 else
2173 echo "$ac_t""no" 1>&6
2177 if test -z "$ac_cv_prog_RANLIB"; then
2178 if test -n "$ac_tool_prefix"; then
2179 # Extract the first word of "ranlib", so it can be a program name with args.
2180 set dummy ranlib; ac_word=$2
2181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_word" >&5
2183 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2185 else
2186 if test -n "$RANLIB"; then
2187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2188 else
2189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2190 ac_dummy="$PATH"
2191 for ac_dir in $ac_dummy; do
2192 test -z "$ac_dir" && ac_dir=.
2193 if test -f $ac_dir/$ac_word; then
2194 ac_cv_prog_RANLIB="ranlib"
2195 break
2197 done
2198 IFS="$ac_save_ifs"
2199 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2202 RANLIB="$ac_cv_prog_RANLIB"
2203 if test -n "$RANLIB"; then
2204 echo "$ac_t""$RANLIB" 1>&6
2205 else
2206 echo "$ac_t""no" 1>&6
2209 else
2210 RANLIB=":"
2214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2215 set dummy ${ac_tool_prefix}strip; ac_word=$2
2216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2217 echo "configure:2218: checking for $ac_word" >&5
2218 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2220 else
2221 if test -n "$STRIP"; then
2222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2223 else
2224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2225 ac_dummy="$PATH"
2226 for ac_dir in $ac_dummy; do
2227 test -z "$ac_dir" && ac_dir=.
2228 if test -f $ac_dir/$ac_word; then
2229 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2230 break
2232 done
2233 IFS="$ac_save_ifs"
2236 STRIP="$ac_cv_prog_STRIP"
2237 if test -n "$STRIP"; then
2238 echo "$ac_t""$STRIP" 1>&6
2239 else
2240 echo "$ac_t""no" 1>&6
2244 if test -z "$ac_cv_prog_STRIP"; then
2245 if test -n "$ac_tool_prefix"; then
2246 # Extract the first word of "strip", so it can be a program name with args.
2247 set dummy strip; ac_word=$2
2248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2249 echo "configure:2250: checking for $ac_word" >&5
2250 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2252 else
2253 if test -n "$STRIP"; then
2254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2255 else
2256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2257 ac_dummy="$PATH"
2258 for ac_dir in $ac_dummy; do
2259 test -z "$ac_dir" && ac_dir=.
2260 if test -f $ac_dir/$ac_word; then
2261 ac_cv_prog_STRIP="strip"
2262 break
2264 done
2265 IFS="$ac_save_ifs"
2266 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2269 STRIP="$ac_cv_prog_STRIP"
2270 if test -n "$STRIP"; then
2271 echo "$ac_t""$STRIP" 1>&6
2272 else
2273 echo "$ac_t""no" 1>&6
2276 else
2277 STRIP=":"
2282 # Check for any special flags to pass to ltconfig.
2283 libtool_flags="--cache-file=$cache_file"
2284 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2285 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2286 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2287 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2288 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2289 libtool_flags="$libtool_flags --enable-dlopen"
2291 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2292 if test "${enable_libtool_lock+set}" = set; then
2293 enableval="$enable_libtool_lock"
2297 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2298 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2300 # Check whether --with-pic or --without-pic was given.
2301 if test "${with_pic+set}" = set; then
2302 withval="$with_pic"
2303 pic_mode="$withval"
2304 else
2305 pic_mode=default
2308 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2309 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2311 # Some flags need to be propagated to the compiler or linker for good
2312 # libtool support.
2313 case $host in
2314 *-*-irix6*)
2315 # Find out which ABI we are using.
2316 echo '#line 2317 "configure"' > conftest.$ac_ext
2317 if { (eval echo configure:2318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2318 case `/usr/bin/file conftest.$ac_objext` in
2319 *32-bit*)
2320 LD="${LD-ld} -32"
2322 *N32*)
2323 LD="${LD-ld} -n32"
2325 *64-bit*)
2326 LD="${LD-ld} -64"
2328 esac
2330 rm -rf conftest*
2333 *-*-sco3.2v5*)
2334 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2335 SAVE_CFLAGS="$CFLAGS"
2336 CFLAGS="$CFLAGS -belf"
2337 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2338 echo "configure:2339: checking whether the C compiler needs -belf" >&5
2339 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2341 else
2343 ac_ext=c
2344 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2347 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2348 cross_compiling=$ac_cv_prog_cc_cross
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2354 int main() {
2356 ; return 0; }
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2359 rm -rf conftest*
2360 lt_cv_cc_needs_belf=yes
2361 else
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2364 rm -rf conftest*
2365 lt_cv_cc_needs_belf=no
2367 rm -f conftest*
2368 ac_ext=c
2369 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2370 ac_cpp='$CPP $CPPFLAGS'
2371 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2372 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2373 cross_compiling=$ac_cv_prog_cc_cross
2377 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2378 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2379 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2380 CFLAGS="$SAVE_CFLAGS"
2385 esac
2387 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2388 echo "configure:2389: checking how to run the C++ preprocessor" >&5
2389 if test -z "$CXXCPP"; then
2390 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2392 else
2393 ac_ext=C
2394 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2395 ac_cpp='$CXXCPP $CPPFLAGS'
2396 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2397 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2398 cross_compiling=$ac_cv_prog_cxx_cross
2399 CXXCPP="${CXX-g++} -E"
2400 cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2403 #include <stdlib.h>
2405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2406 { (eval echo configure:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2408 if test -z "$ac_err"; then
2410 else
2411 echo "$ac_err" >&5
2412 echo "configure: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2414 rm -rf conftest*
2415 CXXCPP=/lib/cpp
2417 rm -f conftest*
2418 ac_cv_prog_CXXCPP="$CXXCPP"
2419 ac_ext=c
2420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2421 ac_cpp='$CPP $CPPFLAGS'
2422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2424 cross_compiling=$ac_cv_prog_cc_cross
2427 CXXCPP="$ac_cv_prog_CXXCPP"
2428 echo "$ac_t""$CXXCPP" 1>&6
2431 # Save cache, so that ltconfig can load it
2432 cat > confcache <<\EOF
2433 # This file is a shell script that caches the results of configure
2434 # tests run on this system so they can be shared between configure
2435 # scripts and configure runs. It is not useful on other systems.
2436 # If it contains results you don't want to keep, you may remove or edit it.
2438 # By default, configure uses ./config.cache as the cache file,
2439 # creating it if it does not exist already. You can give configure
2440 # the --cache-file=FILE option to use a different cache file; that is
2441 # what configure does when it calls configure scripts in
2442 # subdirectories, so they share the cache.
2443 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2444 # config.status only pays attention to the cache file if you give it the
2445 # --recheck option to rerun configure.
2448 # The following way of writing the cache mishandles newlines in values,
2449 # but we know of no workaround that is simple, portable, and efficient.
2450 # So, don't put newlines in cache variables' values.
2451 # Ultrix sh set writes to stderr and can't be redirected directly,
2452 # and sets the high bit in the cache file unless we assign to the vars.
2453 (set) 2>&1 |
2454 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2455 *ac_space=\ *)
2456 # `set' does not quote correctly, so add quotes (double-quote substitution
2457 # turns \\\\ into \\, and sed turns \\ into \).
2458 sed -n \
2459 -e "s/'/'\\\\''/g" \
2460 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2463 # `set' quotes correctly as required by POSIX, so do not add quotes.
2464 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2466 esac >> confcache
2467 if cmp -s $cache_file confcache; then
2469 else
2470 if test -w $cache_file; then
2471 echo "updating cache $cache_file"
2472 cat confcache > $cache_file
2473 else
2474 echo "not updating unwritable cache $cache_file"
2477 rm -f confcache
2480 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2481 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2482 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2483 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2484 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2485 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2486 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2487 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2488 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2489 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2491 # Reload cache, that may have been modified by ltconfig
2492 if test -r "$cache_file"; then
2493 echo "loading cache $cache_file"
2494 . $cache_file
2495 else
2496 echo "creating cache $cache_file"
2497 > $cache_file
2501 # This can be used to rebuild libtool when needed
2502 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2504 # Always use our own libtool.
2505 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2507 # Redirect the config.log output again, so that the ltconfig log is not
2508 # clobbered by the next message.
2509 exec 5>>./config.log
2513 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2514 lt_save_CC="$CC"
2515 lt_save_CFLAGS="$CFLAGS"
2516 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2517 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2518 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2519 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2520 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2521 deplibs_check_method="$deplibs_check_method" \
2522 file_magic_cmd="$file_magic_cmd" \
2523 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2524 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2525 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2526 CC="$lt_save_CC"
2527 CFLAGS="$lt_save_CFLAGS"
2529 # Redirect the config.log output again, so that the ltconfig log is not
2530 # clobbered by the next message.
2531 exec 5>>./config.log
2540 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2541 echo "configure:2542: checking for GNU make" >&5
2542 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2544 else
2545 _cv_gnu_make_command='' ;
2546 for a in "${MAKE-make}" make gmake gnumake ; do
2547 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2548 then
2549 _cv_gnu_make_command=$a ;
2550 break;
2552 done ;
2556 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2557 if test "x$_cv_gnu_make_command" != "x" ; then
2558 ifGNUmake='' ;
2559 else
2560 ifGNUmake='#' ;
2571 # Check for c++ or library specific bits that don't require linking.
2573 if test ! -f stamp-sanity-compiler; then
2574 echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2575 echo "configure:2576: checking for g++ that will successfully compile libstdc++-v3" >&5
2577 ac_ext=C
2578 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2579 ac_cpp='$CXXCPP $CPPFLAGS'
2580 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2581 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2582 cross_compiling=$ac_cv_prog_cxx_cross
2584 cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2588 int main() {
2590 #if __GNUC__ < 3
2591 not_ok
2592 #endif
2594 ; return 0; }
2596 if { (eval echo configure:2597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2597 rm -rf conftest*
2598 gpp_satisfactory=yes
2599 else
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2602 rm -rf conftest*
2603 { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2605 rm -f conftest*
2606 ac_ext=c
2607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2608 ac_cpp='$CPP $CPPFLAGS'
2609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2611 cross_compiling=$ac_cv_prog_cc_cross
2613 echo "$ac_t""$gpp_satisfactory" 1>&6
2614 touch stamp-sanity-compiler
2618 # Enable all the crazy c++ stuff. C_MBCHAR must come early.
2619 # Check whether --enable-debug or --disable-debug was given.
2620 if test "${enable_debug+set}" = set; then
2621 enableval="$enable_debug"
2622 case "${enableval}" in
2623 yes) enable_debug=yes ;;
2624 no) enable_debug=no ;;
2625 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2626 esac
2627 else
2628 enable_debug=no
2631 case "${enable_debug}" in
2632 yes)
2633 DEBUG_FLAGS='-O0 -ggdb3'
2635 no)
2636 DEBUG_FLAGS='-g'
2638 esac
2641 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2642 echo "configure:2643: checking how to run the C preprocessor" >&5
2643 # On Suns, sometimes $CPP names a directory.
2644 if test -n "$CPP" && test -d "$CPP"; then
2645 CPP=
2647 if test -z "$CPP"; then
2648 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2650 else
2651 # This must be in double quotes, not single quotes, because CPP may get
2652 # substituted into the Makefile and "${CC-cc}" will confuse make.
2653 CPP="${CC-cc} -E"
2654 # On the NeXT, cc -E runs the code through the compiler's parser,
2655 # not just through cpp.
2656 cat > conftest.$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2659 #include <assert.h>
2660 Syntax Error
2662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2663 { (eval echo configure:2664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2665 if test -z "$ac_err"; then
2667 else
2668 echo "$ac_err" >&5
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2671 rm -rf conftest*
2672 CPP="${CC-cc} -E -traditional-cpp"
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 #include <assert.h>
2677 Syntax Error
2679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2680 { (eval echo configure:2681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2682 if test -z "$ac_err"; then
2684 else
2685 echo "$ac_err" >&5
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2688 rm -rf conftest*
2689 CPP="${CC-cc} -nologo -E"
2690 cat > conftest.$ac_ext <<EOF
2691 #line 2692 "configure"
2692 #include "confdefs.h"
2693 #include <assert.h>
2694 Syntax Error
2696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2697 { (eval echo configure:2698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2699 if test -z "$ac_err"; then
2701 else
2702 echo "$ac_err" >&5
2703 echo "configure: failed program was:" >&5
2704 cat conftest.$ac_ext >&5
2705 rm -rf conftest*
2706 CPP=/lib/cpp
2708 rm -f conftest*
2710 rm -f conftest*
2712 rm -f conftest*
2713 ac_cv_prog_CPP="$CPP"
2715 CPP="$ac_cv_prog_CPP"
2716 else
2717 ac_cv_prog_CPP="$CPP"
2719 echo "$ac_t""$CPP" 1>&6
2722 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2723 echo "configure:2724: checking for cstdio to use" >&5
2724 # Check whether --enable-cstdio or --disable-cstdio was given.
2725 if test "${enable_cstdio+set}" = set; then
2726 enableval="$enable_cstdio"
2727 if test x$enable_cstdio = xno; then
2728 enable_cstdio=stdio
2730 else
2731 enable_cstdio=stdio
2735 enable_cstdio_flag=$enable_cstdio
2737 case x${enable_cstdio_flag} in
2738 xlibio)
2739 CSTDIO_H=config/c_io_libio.h
2740 BASIC_FILE_H=config/basic_file_libio.h
2741 BASIC_FILE_CC=config/basic_file_libio.cc
2742 echo "$ac_t""libio" 1>&6
2744 # see if we are on a system with libio native (ie, linux)
2745 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2746 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2747 echo "configure:2748: checking for libio.h" >&5
2748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2750 else
2751 cat > conftest.$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 #include <libio.h>
2756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2757 { (eval echo configure:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2759 if test -z "$ac_err"; then
2760 rm -rf conftest*
2761 eval "ac_cv_header_$ac_safe=yes"
2762 else
2763 echo "$ac_err" >&5
2764 echo "configure: failed program was:" >&5
2765 cat conftest.$ac_ext >&5
2766 rm -rf conftest*
2767 eval "ac_cv_header_$ac_safe=no"
2769 rm -f conftest*
2771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2772 echo "$ac_t""yes" 1>&6
2773 has_libio=yes
2774 else
2775 echo "$ac_t""no" 1>&6
2776 has_libio=no
2780 # Need to check and see what version of glibc is being used. If
2781 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2782 # compile most of libio for linux systems.
2783 if test x$has_libio = x"yes"; then
2784 case "$target" in
2785 *-*-linux*)
2786 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2787 echo "configure:2788: checking for glibc version >= 2.2" >&5
2788 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2792 #include <features.h>
2793 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2795 #endif
2798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2799 egrep "ok" >/dev/null 2>&1; then
2800 rm -rf conftest*
2801 glibc_satisfactory=yes
2802 else
2803 rm -rf conftest*
2804 glibc_satisfactory=no
2806 rm -f conftest*
2808 echo "$ac_t""$glibc_satisfactory" 1>&6
2810 esac
2812 # XXX at the moment, admit defeat and force the recompilation
2813 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2814 glibc_satisfactory=no
2816 if test x$glibc_satisfactory = x"yes"; then
2817 need_libio=no
2818 need_wlibio=no
2819 else
2820 need_libio=yes
2821 # bkoz XXX need to add checks to enable this
2822 # pme XXX here's a first pass at such a check
2823 if test x$enable_c_mbchar != xno; then
2824 need_wlibio=yes
2825 else
2826 need_wlibio=no
2830 else
2831 # Using libio, but <libio.h> doesn't exist on the target system. . .
2832 need_libio=yes
2833 # bkoz XXX need to add checks to enable this
2834 # pme XXX here's a first pass at such a check
2835 if test x$enable_c_mbchar != xno; then
2836 need_wlibio=yes
2837 else
2838 need_wlibio=no
2842 xstdio | x | xno | xnone | xyes)
2843 # default
2844 CSTDIO_H=config/c_io_stdio.h
2845 BASIC_FILE_H=config/basic_file_stdio.h
2846 BASIC_FILE_CC=config/basic_file_stdio.cc
2847 echo "$ac_t""stdio" 1>&6
2849 # We're not using stdio.
2850 need_libio=no
2851 need_wlibio=no
2854 echo "$enable_cstdio is an unknown io package" 1>&2
2855 exit 1
2857 esac
2862 # 2000-08-04 bkoz hack
2863 CCODECVT_C=config/c_io_libio_codecvt.c
2865 # 2000-08-04 bkoz hack
2869 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2870 GLIBCPP_BUILD_LIBIO_TRUE=
2871 GLIBCPP_BUILD_LIBIO_FALSE='#'
2872 else
2873 GLIBCPP_BUILD_LIBIO_TRUE='#'
2874 GLIBCPP_BUILD_LIBIO_FALSE=
2878 if test "$need_libio" = yes; then
2879 GLIBCPP_NEED_LIBIO_TRUE=
2880 GLIBCPP_NEED_LIBIO_FALSE='#'
2881 else
2882 GLIBCPP_NEED_LIBIO_TRUE='#'
2883 GLIBCPP_NEED_LIBIO_FALSE=
2887 if test "$need_wlibio" = yes; then
2888 GLIBCPP_NEED_WLIBIO_TRUE=
2889 GLIBCPP_NEED_WLIBIO_FALSE='#'
2890 else
2891 GLIBCPP_NEED_WLIBIO_TRUE='#'
2892 GLIBCPP_NEED_WLIBIO_FALSE=
2894 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2895 libio_la=../libio/libio.la
2896 else
2897 libio_la=
2902 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2903 echo "configure:2904: checking for clocale to use" >&5
2904 # Check whether --enable-clocale or --disable-clocale was given.
2905 if test "${enable_clocale+set}" = set; then
2906 enableval="$enable_clocale"
2907 if test x$enable_clocale = xno; then
2908 enable_clocale=generic
2910 else
2911 enable_clocale=generic
2915 enable_clocale_flag=$enable_clocale
2917 case x${enable_clocale_flag} in
2918 xgnu)
2919 CLOCALE_H=config/c_locale_gnu.h
2920 CLOCALE_CC=config/c_locale_gnu.cc
2921 echo "$ac_t""gnu" 1>&6
2923 xgeneric)
2924 CLOCALE_H=config/c_locale_generic.h
2925 CLOCALE_CC=config/c_locale_generic.cc
2926 echo "$ac_t""generic" 1>&6
2929 echo "$enable_clocale is an unknown locale package" 1>&2
2930 exit 1
2932 esac
2937 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2938 if test "${enable_c_mbchar+set}" = set; then
2939 enableval="$enable_c_mbchar"
2940 case "$enableval" in
2941 yes) enable_c_mbchar=yes ;;
2942 no) enable_c_mbchar=no ;;
2943 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2944 esac
2945 else
2946 enable_c_mbchar=yes
2950 # Check whether --enable-c99 or --disable-c99 was given.
2951 if test "${enable_c99+set}" = set; then
2952 enableval="$enable_c99"
2953 case "$enableval" in
2954 yes) enable_c99=yes ;;
2955 no) enable_c99=no ;;
2956 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
2957 esac
2958 else
2959 enable_c99=yes
2963 ac_ext=C
2964 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2965 ac_cpp='$CXXCPP $CPPFLAGS'
2966 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2967 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2968 cross_compiling=$ac_cv_prog_cxx_cross
2971 # Check for the existence of <math.h> functions used if C99 is enabled.
2972 ac_c99_math=yes;
2973 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
2974 echo "configure:2975: checking for ISO C99 support in <math.h>" >&5
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <math.h>
2979 int main() {
2980 fpclassify(0.0);
2981 ; return 0; }
2983 if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2985 else
2986 echo "configure: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2988 rm -rf conftest*
2989 ac_c99_math=no
2991 rm -f conftest*
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995 #include <math.h>
2996 int main() {
2997 isfinite(0.0);
2998 ; return 0; }
3000 if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3002 else
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3005 rm -rf conftest*
3006 ac_c99_math=no
3008 rm -f conftest*
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 #include <math.h>
3013 int main() {
3014 isinf(0.0);
3015 ; return 0; }
3017 if { (eval echo configure:3018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3019 else
3020 echo "configure: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3022 rm -rf conftest*
3023 ac_c99_math=no
3025 rm -f conftest*
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029 #include <math.h>
3030 int main() {
3031 isnan(0.0);
3032 ; return 0; }
3034 if { (eval echo configure:3035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3036 else
3037 echo "configure: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3039 rm -rf conftest*
3040 ac_c99_math=no
3042 rm -f conftest*
3043 cat > conftest.$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3046 #include <math.h>
3047 int main() {
3048 isnormal(0.0);
3049 ; return 0; }
3051 if { (eval echo configure:3052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3053 else
3054 echo "configure: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3056 rm -rf conftest*
3057 ac_c99_math=no
3059 rm -f conftest*
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 #include <math.h>
3064 int main() {
3065 signbit(0.0);
3066 ; return 0; }
3068 if { (eval echo configure:3069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3070 else
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3073 rm -rf conftest*
3074 ac_c99_math=no
3076 rm -f conftest*
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 #include <math.h>
3081 int main() {
3082 isgreater(0.0,0.0);
3083 ; return 0; }
3085 if { (eval echo configure:3086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3087 else
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3090 rm -rf conftest*
3091 ac_c99_math=no
3093 rm -f conftest*
3094 cat > conftest.$ac_ext <<EOF
3095 #line 3096 "configure"
3096 #include "confdefs.h"
3097 #include <math.h>
3098 int main() {
3099 isgreaterequal(0.0,0.0);
3100 ; return 0; }
3102 if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3104 else
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3107 rm -rf conftest*
3108 ac_c99_math=no
3110 rm -f conftest*
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 #include <math.h>
3115 int main() {
3116 isless(0.0,0.0);
3117 ; return 0; }
3119 if { (eval echo configure:3120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3121 else
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3124 rm -rf conftest*
3125 ac_c99_math=no
3127 rm -f conftest*
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include <math.h>
3132 int main() {
3133 islessequal(0.0,0.0);
3134 ; return 0; }
3136 if { (eval echo configure:3137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3138 else
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3141 rm -rf conftest*
3142 ac_c99_math=no
3144 rm -f conftest*
3145 cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3148 #include <math.h>
3149 int main() {
3150 islessgreater(0.0,0.0);
3151 ; return 0; }
3153 if { (eval echo configure:3154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3155 else
3156 echo "configure: failed program was:" >&5
3157 cat conftest.$ac_ext >&5
3158 rm -rf conftest*
3159 ac_c99_math=no
3161 rm -f conftest*
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 #include <math.h>
3166 int main() {
3167 isunordered(0.0,0.0);
3168 ; return 0; }
3170 if { (eval echo configure:3171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3172 else
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -rf conftest*
3176 ac_c99_math=no
3178 rm -f conftest*
3179 echo "$ac_t""$ac_c99_math" 1>&6
3181 # Check for the existence in <stdio.h> of vscanf, et. al.
3182 ac_c99_stdio=yes;
3183 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3184 echo "configure:3185: checking for ISO C99 support in <stdio.h>" >&5
3185 cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3188 #include <stdio.h>
3189 int main() {
3190 snprintf("12", 0, "%i");
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_stdio=no
3201 rm -f conftest*
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 #include <stdio.h>
3206 #include <stdarg.h>
3207 void foo(char* fmt, ...)
3208 {va_list args; va_start(args, fmt);
3209 vfscanf(stderr, "%i", args);}
3210 int main() {
3212 ; return 0; }
3214 if { (eval echo configure:3215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3216 else
3217 echo "configure: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3219 rm -rf conftest*
3220 ac_c99_stdio=no
3222 rm -f conftest*
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 #include <stdio.h>
3227 #include <stdarg.h>
3228 void foo(char* fmt, ...)
3229 {va_list args; va_start(args, fmt);
3230 vscanf("%i", args);}
3231 int main() {
3233 ; return 0; }
3235 if { (eval echo configure:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3237 else
3238 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3240 rm -rf conftest*
3241 ac_c99_stdio=no
3243 rm -f conftest*
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 #include <stdio.h>
3248 #include <stdarg.h>
3249 void foo(char* fmt, ...)
3250 {va_list args; va_start(args, fmt);
3251 vsnprintf(fmt, 0, "%i", args);}
3252 int main() {
3254 ; return 0; }
3256 if { (eval echo configure:3257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3258 else
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3261 rm -rf conftest*
3262 ac_c99_stdio=no
3264 rm -f conftest*
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 #include <stdio.h>
3269 #include <stdarg.h>
3270 void foo(char* fmt, ...)
3271 {va_list args; va_start(args, fmt);
3272 vsscanf(fmt, "%i", args);}
3273 int main() {
3275 ; return 0; }
3277 if { (eval echo configure:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3279 else
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3282 rm -rf conftest*
3283 ac_c99_stdio=no
3285 rm -f conftest*
3286 echo "$ac_t""$ac_c99_stdio" 1>&6
3288 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3289 ac_c99_stdlib=yes;
3290 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3291 echo "configure:3292: checking for lldiv_t declaration" >&5
3292 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3294 else
3296 cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 #include <stdlib.h>
3300 int main() {
3301 lldiv_t mydivt;
3302 ; return 0; }
3304 if { (eval echo configure:3305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3305 rm -rf conftest*
3306 ac_c99_lldiv_t=yes
3307 else
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3310 rm -rf conftest*
3311 ac_c99_lldiv_t=no
3313 rm -f conftest*
3317 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3319 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3320 echo "configure:3321: checking for ISO C99 support in <stdlib.h>" >&5
3321 cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3324 #include <stdlib.h>
3325 int main() {
3326 char* tmp; strtof("gnu", &tmp);
3327 ; return 0; }
3329 if { (eval echo configure:3330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3331 else
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3334 rm -rf conftest*
3335 ac_c99_stdlib=no
3337 rm -f conftest*
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 #include <stdlib.h>
3342 int main() {
3343 char* tmp; strtold("gnu", &tmp);
3344 ; return 0; }
3346 if { (eval echo configure:3347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3348 else
3349 echo "configure: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3351 rm -rf conftest*
3352 ac_c99_stdlib=no
3354 rm -f conftest*
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 #include <stdlib.h>
3359 int main() {
3360 char* tmp; strtoll("gnu", &tmp, 10);
3361 ; return 0; }
3363 if { (eval echo configure:3364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3365 else
3366 echo "configure: failed program was:" >&5
3367 cat conftest.$ac_ext >&5
3368 rm -rf conftest*
3369 ac_c99_stdlib=no
3371 rm -f conftest*
3372 cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 #include <stdlib.h>
3376 int main() {
3377 char* tmp; strtoull("gnu", &tmp, 10);
3378 ; return 0; }
3380 if { (eval echo configure:3381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3382 else
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3385 rm -rf conftest*
3386 ac_c99_stdlib=no
3388 rm -f conftest*
3389 cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3392 #include <stdlib.h>
3393 int main() {
3394 llabs(10);
3395 ; return 0; }
3397 if { (eval echo configure:3398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3399 else
3400 echo "configure: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3402 rm -rf conftest*
3403 ac_c99_stdlib=no
3405 rm -f conftest*
3406 cat > conftest.$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3409 #include <stdlib.h>
3410 int main() {
3411 lldiv(10,1);
3412 ; return 0; }
3414 if { (eval echo configure:3415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3416 else
3417 echo "configure: failed program was:" >&5
3418 cat conftest.$ac_ext >&5
3419 rm -rf conftest*
3420 ac_c99_stdlib=no
3422 rm -f conftest*
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 #include <stdlib.h>
3427 int main() {
3428 atoll("10");
3429 ; return 0; }
3431 if { (eval echo configure:3432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3433 else
3434 echo "configure: failed program was:" >&5
3435 cat conftest.$ac_ext >&5
3436 rm -rf conftest*
3437 ac_c99_stdlib=no
3439 rm -f conftest*
3440 cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3443 #include <stdlib.h>
3444 int main() {
3445 _Exit(0);
3446 ; return 0; }
3448 if { (eval echo configure:3449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3450 else
3451 echo "configure: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3453 rm -rf conftest*
3454 ac_c99_stdlib=no
3456 rm -f conftest*
3457 if test x"$ac_c99_lldiv_t" = x"no"; then
3458 ac_c99_stdlib=no;
3459 fi;
3460 echo "$ac_t""$ac_c99_stdlib" 1>&6
3462 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3463 # XXX the wchar.h checks should be rolled into the general C99 bits.
3464 ac_c99_wchar=yes;
3465 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3466 echo "configure:3467: checking for additional ISO C99 support in <wchar.h>" >&5
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 #include <wchar.h>
3471 int main() {
3472 wcstold(L"10.0", NULL);
3473 ; return 0; }
3475 if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477 else
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3480 rm -rf conftest*
3481 ac_c99_wchar=no
3483 rm -f conftest*
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 #include <wchar.h>
3488 int main() {
3489 wcstoll(L"10", NULL, 10);
3490 ; return 0; }
3492 if { (eval echo configure:3493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3494 else
3495 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3497 rm -rf conftest*
3498 ac_c99_wchar=no
3500 rm -f conftest*
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 #include <wchar.h>
3505 int main() {
3506 wcstoull(L"10", NULL, 10);
3507 ; return 0; }
3509 if { (eval echo configure:3510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3511 else
3512 echo "configure: failed program was:" >&5
3513 cat conftest.$ac_ext >&5
3514 rm -rf conftest*
3515 ac_c99_wchar=no
3517 rm -f conftest*
3518 echo "$ac_t""$ac_c99_wchar" 1>&6
3520 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3521 echo "configure:3522: checking for enabled ISO C99 support" >&5
3522 if test x"$ac_c99_math" = x"no" || test x"$ac_c99_stdio" = x"no" \
3523 || test x"$ac_c99_stdlib" = x"no" \
3524 || test x"$ac_c99_wchar" = x"no"; then
3525 enable_c99=no;
3526 fi;
3527 echo "$ac_t""$enable_c99" 1>&6
3529 # Option parsed, now set things appropriately
3530 if test x"$enable_c99" = x"yes"; then
3531 cat >> confdefs.h <<\EOF
3532 #define _GLIBCPP_USE_C99 1
3537 ac_ext=c
3538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3539 ac_cpp='$CPP $CPPFLAGS'
3540 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3541 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3542 cross_compiling=$ac_cv_prog_cc_cross
3546 # Check whether --enable-long-long or --disable-long-long was given.
3547 if test "${enable_long_long+set}" = set; then
3548 enableval="$enable_long_long"
3549 case "$enableval" in
3550 yes) enable_long_long=yes ;;
3551 no) enable_long_long=no ;;
3552 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3553 esac
3554 else
3555 enable_long_long=yes
3558 # iostreams require strtoll, strtoull to compile. If the
3559 # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3560 # go ahead and allow long long to be used.
3561 if test x"$enable_c99" = x"no"; then
3562 enable_long_long=no;
3565 # Option parsed, now set things appropriately
3566 echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3567 echo "configure:3568: checking for enabled long long support" >&5
3568 if test x"$enable_long_long" = xyes; then
3569 cat >> confdefs.h <<\EOF
3570 #define _GLIBCPP_USE_LONG_LONG 1
3574 echo "$ac_t""$enable_long_long" 1>&6
3576 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3577 echo "configure:3578: checking for c header strategy to use" >&5
3578 # Check whether --enable-cheaders or --disable-cheaders was given.
3579 if test "${enable_cheaders+set}" = set; then
3580 enableval="$enable_cheaders"
3582 case "$enableval" in
3584 enable_cheaders=c
3586 c_std)
3587 enable_cheaders=c_std
3589 c_shadow)
3590 enable_cheaders=c_shadow
3592 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3594 esac
3595 else
3596 enable_cheaders=c_std
3599 echo "$ac_t""$enable_cheaders" 1>&6
3601 case "$enable_cheaders" in
3602 c_shadow)
3603 CSHADOW_FLAGS="-fno-builtin"
3604 C_INCLUDE_DIR='${top_srcdir}/include/c_shadow'
3605 cat >> confdefs.h <<\EOF
3606 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3610 c_std)
3611 CSHADOW_FLAGS=""
3612 C_INCLUDE_DIR='${top_srcdir}/include/c_std'
3615 CSHADOW_FLAGS=""
3616 C_INCLUDE_DIR='${top_srcdir}/include/c'
3618 esac
3624 if test "$enable_cheaders" = c_shadow; then
3625 GLIBCPP_USE_CSHADOW_TRUE=
3626 GLIBCPP_USE_CSHADOW_FALSE='#'
3627 else
3628 GLIBCPP_USE_CSHADOW_TRUE='#'
3629 GLIBCPP_USE_CSHADOW_FALSE=
3633 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3634 echo "configure:3635: checking for thread model used by GCC" >&5
3635 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3636 echo "$ac_t""$target_thread_file" 1>&6
3641 if test $target_thread_file != single; then
3642 cat >> confdefs.h <<\EOF
3643 #define HAVE_GTHR_DEFAULT 1
3646 cat >> confdefs.h <<\EOF
3647 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3653 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3654 if test "${enable_cxx_flags+set}" = set; then
3655 enableval="$enable_cxx_flags"
3656 case "x$enableval" in
3657 xyes)
3658 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3659 xno|x)
3660 enable_cxx_flags='' ;;
3662 enable_cxx_flags="$enableval" ;;
3663 esac
3664 else
3665 enable_cxx_flags='none'
3669 if test "$enable_cxx_flags" = "none"; then
3670 enable_cxx_flags='';
3673 if test -n "$enable_cxx_flags"; then
3674 for f in $enable_cxx_flags; do
3675 case "$f" in
3676 -fhonor-std) ;;
3677 -*) ;;
3678 *) # and we're trying to pass /what/ exactly?
3679 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3680 esac
3681 done
3683 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3687 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3688 echo "configure:3689: checking for exception model to use" >&5
3690 ac_ext=C
3691 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3692 ac_cpp='$CXXCPP $CPPFLAGS'
3693 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3694 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3695 cross_compiling=$ac_cv_prog_cxx_cross
3697 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3698 if test "${enable_sjlj_exceptions+set}" = set; then
3699 enableval="$enable_sjlj_exceptions"
3701 else
3702 cat > conftest.$ac_ext << EOF
3703 #line 3704 "configure"
3704 struct S { ~S(); };
3705 void bar();
3706 void foo()
3708 S s;
3709 bar();
3712 old_CXXFLAGS="$CXXFLAGS"
3713 CXXFLAGS=-S
3714 if { (eval echo configure:3715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3715 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3716 enable_sjlj_exceptions=yes
3717 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3718 enable_sjlj_exceptions=no
3721 CXXFLAGS="$old_CXXFLAGS"
3722 rm -f conftest*
3725 if test x$enable_sjlj_exceptions = xyes; then
3726 cat >> confdefs.h <<\EOF
3727 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3730 ac_exception_model_name=sjlj
3731 elif test x$enable_sjlj_exceptions = xno; then
3732 ac_exception_model_name="call frame"
3733 else
3734 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3736 ac_ext=c
3737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3741 cross_compiling=$ac_cv_prog_cc_cross
3743 echo "$ac_t""$ac_exception_model_name" 1>&6
3746 if test -n "$with_cross_host"; then
3748 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3749 # may not work correctly, because the compiler may not be able to
3750 # link executables.
3751 xcompiling=1
3752 NATIVE=no
3754 # If Canadian cross, then don't pick up tools from the build
3755 # directory.
3756 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3757 CANADIAN=yes
3758 NULL_TARGET=yes
3759 else
3760 CANADIAN=no
3761 NULL_TARGET=no
3764 case "$target_alias" in
3765 *-linux*)
3766 # Construct linux crosses by hand, eliminating bits that need ld...
3767 # Check for available headers.
3768 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3769 machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3770 float.h inttypes.h
3772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3774 echo "configure:3775: checking for $ac_hdr" >&5
3775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3777 else
3778 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3781 #include <$ac_hdr>
3783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3784 { (eval echo configure:3785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3786 if test -z "$ac_err"; then
3787 rm -rf conftest*
3788 eval "ac_cv_header_$ac_safe=yes"
3789 else
3790 echo "$ac_err" >&5
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3793 rm -rf conftest*
3794 eval "ac_cv_header_$ac_safe=no"
3796 rm -f conftest*
3798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3799 echo "$ac_t""yes" 1>&6
3800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3801 cat >> confdefs.h <<EOF
3802 #define $ac_tr_hdr 1
3805 else
3806 echo "$ac_t""no" 1>&6
3808 done
3811 # GLIBCPP_CHECK_COMPILER_FEATURES
3812 SECTION_FLAGS='-ffunction-sections -fdata-sections'
3815 # If we're not using GNU ld, then there's no point in even trying these
3816 # tests. Check for that first. We should have already tested for gld
3817 # by now (in libtool), but require it now just to be safe...
3818 SECTION_LDFLAGS=''
3819 OPT_LDFLAGS=''
3822 # Set --gc-sections.
3823 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3824 # GNU ld it is! Joy and bunny rabbits!
3826 # All these tests are for C++; save the language and the compiler flags.
3827 # Need to do this so that g++ won't try to link in libstdc++
3828 ac_test_CFLAGS="${CFLAGS+set}"
3829 ac_save_CFLAGS="$CFLAGS"
3830 CFLAGS='-x c++ -Wl,--gc-sections'
3832 # Check for -Wl,--gc-sections
3833 # XXX This test is broken at the moment, as symbols required for
3834 # linking are now in libsupc++ (not built yet.....). In addition,
3835 # this test has cored on solaris in the past. In addition,
3836 # --gc-sections doesn't really work at the moment (keeps on discarding
3837 # used sections, first .eh_frame and now some of the glibc sections for
3838 # iconv). Bzzzzt. Thanks for playing, maybe next time.
3839 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3840 echo "configure:3841: checking for ld that supports -Wl,--gc-sections" >&5
3841 if test "$cross_compiling" = yes; then
3842 ac_sectionLDflags=yes
3843 else
3844 cat > conftest.$ac_ext <<EOF
3845 #line 3846 "configure"
3846 #include "confdefs.h"
3848 int main(void)
3850 try { throw 1; }
3851 catch (...) { };
3852 return 0;
3856 if { (eval echo configure:3857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3857 then
3858 ac_sectionLDflags=yes
3859 else
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3862 rm -fr conftest*
3863 ac_sectionLFflags=no
3865 rm -fr conftest*
3868 if test "$ac_test_CFLAGS" = set; then
3869 CFLAGS="$ac_save_CFLAGS"
3870 else
3871 # this is the suspicious part
3872 CFLAGS=''
3874 if test "$ac_sectionLDflags" = "yes"; then
3875 SECTION_LDFLAGS='-Wl,--gc-sections'
3877 echo "$ac_t""$ac_sectionLDflags" 1>&6
3880 # Set linker optimization flags.
3881 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
3882 OPT_LDFLAGS='-Wl,-O1'
3888 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3889 # GLIBCPP_CHECK_MATH_SUPPORT
3890 cat >> confdefs.h <<\EOF
3891 #define HAVE_ACOSF 1
3894 cat >> confdefs.h <<\EOF
3895 #define HAVE_ASINF 1
3898 cat >> confdefs.h <<\EOF
3899 #define HAVE_ATAN2F 1
3902 cat >> confdefs.h <<\EOF
3903 #define HAVE_ATANF 1
3906 cat >> confdefs.h <<\EOF
3907 #define HAVE_CEILF 1
3910 cat >> confdefs.h <<\EOF
3911 #define HAVE_COPYSIGN 1
3914 cat >> confdefs.h <<\EOF
3915 #define HAVE_COPYSIGNF 1
3918 cat >> confdefs.h <<\EOF
3919 #define HAVE_COSF 1
3922 cat >> confdefs.h <<\EOF
3923 #define HAVE_COSHF 1
3926 cat >> confdefs.h <<\EOF
3927 #define HAVE_EXPF 1
3930 cat >> confdefs.h <<\EOF
3931 #define HAVE_FABSF 1
3934 cat >> confdefs.h <<\EOF
3935 #define HAVE_FINITE 1
3938 cat >> confdefs.h <<\EOF
3939 #define HAVE_FINITEF 1
3942 cat >> confdefs.h <<\EOF
3943 #define HAVE_FLOORF 1
3946 cat >> confdefs.h <<\EOF
3947 #define HAVE_FMODF 1
3950 cat >> confdefs.h <<\EOF
3951 #define HAVE_FREXPF 1
3954 cat >> confdefs.h <<\EOF
3955 #define HAVE_ISINF 1
3958 cat >> confdefs.h <<\EOF
3959 #define HAVE_ISINFF 1
3962 cat >> confdefs.h <<\EOF
3963 #define HAVE_ISNAN 1
3966 cat >> confdefs.h <<\EOF
3967 #define HAVE_ISNANF 1
3970 cat >> confdefs.h <<\EOF
3971 #define HAVE_LDEXPF 1
3974 cat >> confdefs.h <<\EOF
3975 #define HAVE_LOG10F 1
3978 cat >> confdefs.h <<\EOF
3979 #define HAVE_LOGF 1
3982 cat >> confdefs.h <<\EOF
3983 #define HAVE_MODFF 1
3986 cat >> confdefs.h <<\EOF
3987 #define HAVE_POWF 1
3990 cat >> confdefs.h <<\EOF
3991 #define HAVE_SINCOS 1
3994 cat >> confdefs.h <<\EOF
3995 #define HAVE_SINCOSF 1
3998 cat >> confdefs.h <<\EOF
3999 #define HAVE_SINF 1
4002 cat >> confdefs.h <<\EOF
4003 #define HAVE_SINHF 1
4006 cat >> confdefs.h <<\EOF
4007 #define HAVE_SQRTF 1
4010 cat >> confdefs.h <<\EOF
4011 #define HAVE_TANF 1
4014 cat >> confdefs.h <<\EOF
4015 #define HAVE_TANHF 1
4019 # At some point, we should differentiate between architectures
4020 # like x86, which have long double versions, and alpha/powerpc/etc.,
4021 # which don't. For the time being, punt.
4022 if test x"long_double_math_on_this_cpu" = x"yes"; then
4023 cat >> confdefs.h <<\EOF
4024 #define HAVE_ACOSL 1
4027 cat >> confdefs.h <<\EOF
4028 #define HAVE_ASINL 1
4031 cat >> confdefs.h <<\EOF
4032 #define HAVE_ATAN2L 1
4035 cat >> confdefs.h <<\EOF
4036 #define HAVE_ATANL 1
4039 cat >> confdefs.h <<\EOF
4040 #define HAVE_CEILL 1
4043 cat >> confdefs.h <<\EOF
4044 #define HAVE_COPYSIGNL 1
4047 cat >> confdefs.h <<\EOF
4048 #define HAVE_COSL 1
4051 cat >> confdefs.h <<\EOF
4052 #define HAVE_COSHL 1
4055 cat >> confdefs.h <<\EOF
4056 #define HAVE_EXPL 1
4059 cat >> confdefs.h <<\EOF
4060 #define HAVE_FABSL 1
4063 cat >> confdefs.h <<\EOF
4064 #define HAVE_FINITEL 1
4067 cat >> confdefs.h <<\EOF
4068 #define HAVE_FLOORL 1
4071 cat >> confdefs.h <<\EOF
4072 #define HAVE_FMODL 1
4075 cat >> confdefs.h <<\EOF
4076 #define HAVE_FREXPL 1
4079 cat >> confdefs.h <<\EOF
4080 #define HAVE_ISINFL 1
4083 cat >> confdefs.h <<\EOF
4084 #define HAVE_ISNANL 1
4087 cat >> confdefs.h <<\EOF
4088 #define HAVE_LDEXPL 1
4091 cat >> confdefs.h <<\EOF
4092 #define HAVE_LOG10L 1
4095 cat >> confdefs.h <<\EOF
4096 #define HAVE_LOGL 1
4099 cat >> confdefs.h <<\EOF
4100 #define HAVE_MODFL 1
4103 cat >> confdefs.h <<\EOF
4104 #define HAVE_POWL 1
4107 cat >> confdefs.h <<\EOF
4108 #define HAVE_SINCOSL 1
4111 cat >> confdefs.h <<\EOF
4112 #define HAVE_SINL 1
4115 cat >> confdefs.h <<\EOF
4116 #define HAVE_SINHL 1
4119 cat >> confdefs.h <<\EOF
4120 #define HAVE_SQRTL 1
4123 cat >> confdefs.h <<\EOF
4124 #define HAVE_TANL 1
4127 cat >> confdefs.h <<\EOF
4128 #define HAVE_TANHL 1
4133 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4134 echo "configure:4135: checking for main in -lm" >&5
4135 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4136 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4138 else
4139 ac_save_LIBS="$LIBS"
4140 LIBS="-lm $LIBS"
4141 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4145 int main() {
4146 main()
4147 ; return 0; }
4149 if { (eval echo configure:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4150 rm -rf conftest*
4151 eval "ac_cv_lib_$ac_lib_var=yes"
4152 else
4153 echo "configure: failed program was:" >&5
4154 cat conftest.$ac_ext >&5
4155 rm -rf conftest*
4156 eval "ac_cv_lib_$ac_lib_var=no"
4158 rm -f conftest*
4159 LIBS="$ac_save_LIBS"
4162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4163 echo "$ac_t""yes" 1>&6
4164 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4165 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4166 cat >> confdefs.h <<EOF
4167 #define $ac_tr_lib 1
4170 LIBS="-lm $LIBS"
4172 else
4173 echo "$ac_t""no" 1>&6
4176 for ac_func in nan hypot hypotf atan2f expf copysignf
4178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4179 echo "configure:4180: checking for $ac_func" >&5
4180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4182 else
4183 cat > conftest.$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4186 /* System header to define __stub macros and hopefully few prototypes,
4187 which can conflict with char $ac_func(); below. */
4188 #include <assert.h>
4189 /* Override any gcc2 internal prototype to avoid an error. */
4190 /* We use char because int might match the return type of a gcc2
4191 builtin and then its argument prototype would still apply. */
4192 char $ac_func();
4194 int main() {
4196 /* The GNU C library defines this for functions which it implements
4197 to always fail with ENOSYS. Some functions are actually named
4198 something starting with __ and the normal name is an alias. */
4199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4200 choke me
4201 #else
4202 $ac_func();
4203 #endif
4205 ; return 0; }
4207 if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4208 rm -rf conftest*
4209 eval "ac_cv_func_$ac_func=yes"
4210 else
4211 echo "configure: failed program was:" >&5
4212 cat conftest.$ac_ext >&5
4213 rm -rf conftest*
4214 eval "ac_cv_func_$ac_func=no"
4216 rm -f conftest*
4219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4220 echo "$ac_t""yes" 1>&6
4221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4222 cat >> confdefs.h <<EOF
4223 #define $ac_tr_func 1
4226 else
4227 echo "$ac_t""no" 1>&6
4228 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4230 done
4234 USE_COMPLEX_LONG_DOUBLE=no
4235 if test x$ac_cv_func_atan2l = x"yes" \
4236 && test x$ac_cv_func_copysignl = x"yes"; then
4237 USE_COMPLEX_LONG_DOUBLE=yes
4238 for ac_func in hypotl signbitl
4240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4241 echo "configure:4242: checking for $ac_func" >&5
4242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4244 else
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4248 /* System header to define __stub macros and hopefully few prototypes,
4249 which can conflict with char $ac_func(); below. */
4250 #include <assert.h>
4251 /* Override any gcc2 internal prototype to avoid an error. */
4252 /* We use char because int might match the return type of a gcc2
4253 builtin and then its argument prototype would still apply. */
4254 char $ac_func();
4256 int main() {
4258 /* The GNU C library defines this for functions which it implements
4259 to always fail with ENOSYS. Some functions are actually named
4260 something starting with __ and the normal name is an alias. */
4261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4262 choke me
4263 #else
4264 $ac_func();
4265 #endif
4267 ; return 0; }
4269 if { (eval echo configure:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4270 rm -rf conftest*
4271 eval "ac_cv_func_$ac_func=yes"
4272 else
4273 echo "configure: failed program was:" >&5
4274 cat conftest.$ac_ext >&5
4275 rm -rf conftest*
4276 eval "ac_cv_func_$ac_func=no"
4278 rm -f conftest*
4281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4282 echo "$ac_t""yes" 1>&6
4283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4284 cat >> confdefs.h <<EOF
4285 #define $ac_tr_func 1
4288 else
4289 echo "$ac_t""no" 1>&6
4290 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4292 done
4301 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4302 echo "configure:4303: checking for mbstate_t" >&5
4303 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4306 #include <wchar.h>
4307 int main() {
4308 mbstate_t teststate;
4309 ; return 0; }
4311 if { (eval echo configure:4312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4312 rm -rf conftest*
4313 have_mbstate_t=yes
4314 else
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4317 rm -rf conftest*
4318 have_mbstate_t=no
4320 rm -f conftest*
4321 echo "$ac_t""$have_mbstate_t" 1>&6
4322 if test x"$have_mbstate_t" = xyes; then
4323 cat >> confdefs.h <<\EOF
4324 #define HAVE_MBSTATE_T 1
4329 for ac_hdr in wchar.h
4331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4333 echo "configure:4334: checking for $ac_hdr" >&5
4334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4336 else
4337 cat > conftest.$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4340 #include <$ac_hdr>
4342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4343 { (eval echo configure:4344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4345 if test -z "$ac_err"; then
4346 rm -rf conftest*
4347 eval "ac_cv_header_$ac_safe=yes"
4348 else
4349 echo "$ac_err" >&5
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4352 rm -rf conftest*
4353 eval "ac_cv_header_$ac_safe=no"
4355 rm -f conftest*
4357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4358 echo "$ac_t""yes" 1>&6
4359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4360 cat >> confdefs.h <<EOF
4361 #define $ac_tr_hdr 1
4363 ac_has_wchar_h=yes
4364 else
4365 echo "$ac_t""no" 1>&6
4366 ac_has_wchar_h=no
4368 done
4370 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4371 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4372 echo "configure:4373: checking for wctype.h" >&5
4373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4375 else
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4379 #include <wctype.h>
4381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4382 { (eval echo configure:4383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4384 if test -z "$ac_err"; then
4385 rm -rf conftest*
4386 eval "ac_cv_header_$ac_safe=yes"
4387 else
4388 echo "$ac_err" >&5
4389 echo "configure: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4391 rm -rf conftest*
4392 eval "ac_cv_header_$ac_safe=no"
4394 rm -f conftest*
4396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4397 echo "$ac_t""yes" 1>&6
4398 ac_has_wctype_h=yes
4399 else
4400 echo "$ac_t""no" 1>&6
4401 ac_has_wctype_h=no
4405 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
4406 && test x"$enable_c_mbchar" != xno; then
4408 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4409 echo "configure:4410: checking for WCHAR_MIN and WCHAR_MAX" >&5
4410 cat > conftest.$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4413 #include <wchar.h>
4414 int main() {
4415 int i = WCHAR_MIN; int j = WCHAR_MAX;
4416 ; return 0; }
4418 if { (eval echo configure:4419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4419 rm -rf conftest*
4420 has_wchar_minmax=yes
4421 else
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 rm -rf conftest*
4425 has_wchar_minmax=no
4427 rm -f conftest*
4428 echo "$ac_t""$has_wchar_minmax" 1>&6
4430 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4431 echo "configure:4432: checking for WEOF" >&5
4432 cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4436 #include <wchar.h>
4437 #include <stddef.h>
4438 int main() {
4439 wint_t i = WEOF;
4440 ; return 0; }
4442 if { (eval echo configure:4443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4443 rm -rf conftest*
4444 has_weof=yes
4445 else
4446 echo "configure: failed program was:" >&5
4447 cat conftest.$ac_ext >&5
4448 rm -rf conftest*
4449 has_weof=no
4451 rm -f conftest*
4452 echo "$ac_t""$has_weof" 1>&6
4454 ac_wfuncs=yes
4455 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4458 echo "configure:4459: checking for $ac_func" >&5
4459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4461 else
4462 cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4465 /* System header to define __stub macros and hopefully few prototypes,
4466 which can conflict with char $ac_func(); below. */
4467 #include <assert.h>
4468 /* Override any gcc2 internal prototype to avoid an error. */
4469 /* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4471 char $ac_func();
4473 int main() {
4475 /* The GNU C library defines this for functions which it implements
4476 to always fail with ENOSYS. Some functions are actually named
4477 something starting with __ and the normal name is an alias. */
4478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4479 choke me
4480 #else
4481 $ac_func();
4482 #endif
4484 ; return 0; }
4486 if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4487 rm -rf conftest*
4488 eval "ac_cv_func_$ac_func=yes"
4489 else
4490 echo "configure: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4492 rm -rf conftest*
4493 eval "ac_cv_func_$ac_func=no"
4495 rm -f conftest*
4498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4499 echo "$ac_t""yes" 1>&6
4500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4501 cat >> confdefs.h <<EOF
4502 #define $ac_tr_func 1
4505 else
4506 echo "$ac_t""no" 1>&6
4508 ac_wfuncs=no
4510 done
4513 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4514 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4515 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4516 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4517 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4518 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4521 echo "configure:4522: checking for $ac_func" >&5
4522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4523 echo $ac_n "(cached) $ac_c" 1>&6
4524 else
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4528 /* System header to define __stub macros and hopefully few prototypes,
4529 which can conflict with char $ac_func(); below. */
4530 #include <assert.h>
4531 /* Override any gcc2 internal prototype to avoid an error. */
4532 /* We use char because int might match the return type of a gcc2
4533 builtin and then its argument prototype would still apply. */
4534 char $ac_func();
4536 int main() {
4538 /* The GNU C library defines this for functions which it implements
4539 to always fail with ENOSYS. Some functions are actually named
4540 something starting with __ and the normal name is an alias. */
4541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4542 choke me
4543 #else
4544 $ac_func();
4545 #endif
4547 ; return 0; }
4549 if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4550 rm -rf conftest*
4551 eval "ac_cv_func_$ac_func=yes"
4552 else
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4555 rm -rf conftest*
4556 eval "ac_cv_func_$ac_func=no"
4558 rm -f conftest*
4561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4562 echo "$ac_t""yes" 1>&6
4563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4564 cat >> confdefs.h <<EOF
4565 #define $ac_tr_func 1
4568 else
4569 echo "$ac_t""no" 1>&6
4571 ac_wfuncs=no
4573 done
4576 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4577 echo "configure:4578: checking for ISO C99 wchar_t support" >&5
4578 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
4579 && test x"$ac_wfuncs" = xyes; then
4580 ac_isoC99_wchar_t=yes
4581 else
4582 ac_isoC99_wchar_t=no
4584 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4586 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4587 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4588 echo "configure:4589: checking for iconv.h" >&5
4589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4591 else
4592 cat > conftest.$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4595 #include <iconv.h>
4597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4598 { (eval echo configure:4599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4600 if test -z "$ac_err"; then
4601 rm -rf conftest*
4602 eval "ac_cv_header_$ac_safe=yes"
4603 else
4604 echo "$ac_err" >&5
4605 echo "configure: failed program was:" >&5
4606 cat conftest.$ac_ext >&5
4607 rm -rf conftest*
4608 eval "ac_cv_header_$ac_safe=no"
4610 rm -f conftest*
4612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4613 echo "$ac_t""yes" 1>&6
4614 ac_has_iconv_h=yes
4615 else
4616 echo "$ac_t""no" 1>&6
4617 ac_has_iconv_h=no
4620 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4621 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4622 echo "configure:4623: checking for langinfo.h" >&5
4623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4625 else
4626 cat > conftest.$ac_ext <<EOF
4627 #line 4628 "configure"
4628 #include "confdefs.h"
4629 #include <langinfo.h>
4631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4632 { (eval echo configure:4633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4634 if test -z "$ac_err"; then
4635 rm -rf conftest*
4636 eval "ac_cv_header_$ac_safe=yes"
4637 else
4638 echo "$ac_err" >&5
4639 echo "configure: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4641 rm -rf conftest*
4642 eval "ac_cv_header_$ac_safe=no"
4644 rm -f conftest*
4646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4647 echo "$ac_t""yes" 1>&6
4648 ac_has_langinfo_h=yes
4649 else
4650 echo "$ac_t""no" 1>&6
4651 ac_has_langinfo_h=no
4655 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4656 echo "configure:4657: checking for iconv in -liconv" >&5
4657 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4659 echo $ac_n "(cached) $ac_c" 1>&6
4660 else
4661 ac_save_LIBS="$LIBS"
4662 LIBS="-liconv $LIBS"
4663 cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4666 /* Override any gcc2 internal prototype to avoid an error. */
4667 /* We use char because int might match the return type of a gcc2
4668 builtin and then its argument prototype would still apply. */
4669 char iconv();
4671 int main() {
4672 iconv()
4673 ; return 0; }
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4676 rm -rf conftest*
4677 eval "ac_cv_lib_$ac_lib_var=yes"
4678 else
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4681 rm -rf conftest*
4682 eval "ac_cv_lib_$ac_lib_var=no"
4684 rm -f conftest*
4685 LIBS="$ac_save_LIBS"
4688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4689 echo "$ac_t""yes" 1>&6
4690 libiconv="-liconv"
4691 else
4692 echo "$ac_t""no" 1>&6
4695 ac_save_LIBS="$LIBS"
4696 LIBS="$LIBS $libiconv"
4698 for ac_func in iconv_open iconv_close iconv nl_langinfo
4700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4701 echo "configure:4702: checking for $ac_func" >&5
4702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4704 else
4705 cat > conftest.$ac_ext <<EOF
4706 #line 4707 "configure"
4707 #include "confdefs.h"
4708 /* System header to define __stub macros and hopefully few prototypes,
4709 which can conflict with char $ac_func(); below. */
4710 #include <assert.h>
4711 /* Override any gcc2 internal prototype to avoid an error. */
4712 /* We use char because int might match the return type of a gcc2
4713 builtin and then its argument prototype would still apply. */
4714 char $ac_func();
4716 int main() {
4718 /* The GNU C library defines this for functions which it implements
4719 to always fail with ENOSYS. Some functions are actually named
4720 something starting with __ and the normal name is an alias. */
4721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4722 choke me
4723 #else
4724 $ac_func();
4725 #endif
4727 ; return 0; }
4729 if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4730 rm -rf conftest*
4731 eval "ac_cv_func_$ac_func=yes"
4732 else
4733 echo "configure: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4735 rm -rf conftest*
4736 eval "ac_cv_func_$ac_func=no"
4738 rm -f conftest*
4741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4742 echo "$ac_t""yes" 1>&6
4743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4744 cat >> confdefs.h <<EOF
4745 #define $ac_tr_func 1
4748 ac_XPG2funcs=yes
4749 else
4750 echo "$ac_t""no" 1>&6
4751 ac_XPG2funcs=no
4753 done
4756 LIBS="$ac_save_LIBS"
4758 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4759 echo "configure:4760: checking for XPG2 wchar_t support" >&5
4760 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
4761 && test x"$ac_XPG2funcs" = xyes; then
4762 ac_XPG2_wchar_t=yes
4763 else
4764 ac_XPG2_wchar_t=no
4766 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4768 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4769 echo "configure:4770: checking for enabled wchar_t specializations" >&5
4770 if test x"$ac_isoC99_wchar_t" = xyes \
4771 && test x"$ac_XPG2_wchar_t" = xyes; then
4772 cat >> confdefs.h <<\EOF
4773 #define _GLIBCPP_USE_WCHAR_T 1
4776 echo "$ac_t"""yes"" 1>&6
4777 else
4778 echo "$ac_t"""no"" 1>&6
4780 else
4781 echo "configure: warning: wchar_t support disabled." 1>&2
4784 os_include_dir="config/os/gnu-linux"
4785 # GLIBCPP_CHECK_STDLIB_SUPPORT
4786 cat >> confdefs.h <<\EOF
4787 #define HAVE_STRTOF 1
4790 cat >> confdefs.h <<\EOF
4791 #define HAVE_STRTOLD 1
4794 # AC_FUNC_MMAP
4795 cat >> confdefs.h <<\EOF
4796 #define HAVE_MMAP 1
4801 # We assume newlib. This lets us hard-code the functions we know
4802 # we'll have.
4803 cat >> confdefs.h <<\EOF
4804 #define HAVE_FINITE 1
4807 cat >> confdefs.h <<\EOF
4808 #define HAVE_ISNAN 1
4811 cat >> confdefs.h <<\EOF
4812 #define HAVE_ISNANF 1
4815 cat >> confdefs.h <<\EOF
4816 #define HAVE_ISINF 1
4819 cat >> confdefs.h <<\EOF
4820 #define HAVE_ISINFF 1
4824 os_include_dir="config/os/newlib"
4826 # need to check for faster f versions of math functions, ie sinf?
4828 esac
4829 else
4831 # We are being configured natively. We can do more elaborate tests
4832 # that include AC_TRY_COMPILE now, as the linker is assumed to be
4833 # working.
4834 xcompiling=0
4835 NATIVE=yes
4836 CANADIAN=no
4837 NULL_TARGET=no
4839 # Check for available headers.
4840 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4841 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4845 echo "configure:4846: checking for $ac_hdr" >&5
4846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4848 else
4849 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4852 #include <$ac_hdr>
4854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4855 { (eval echo configure:4856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4857 if test -z "$ac_err"; then
4858 rm -rf conftest*
4859 eval "ac_cv_header_$ac_safe=yes"
4860 else
4861 echo "$ac_err" >&5
4862 echo "configure: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4864 rm -rf conftest*
4865 eval "ac_cv_header_$ac_safe=no"
4867 rm -f conftest*
4869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4872 cat >> confdefs.h <<EOF
4873 #define $ac_tr_hdr 1
4876 else
4877 echo "$ac_t""no" 1>&6
4879 done
4883 # All these tests are for C++; save the language and the compiler flags.
4884 # The CXXFLAGS thing is suspicious, but based on similar bits previously
4885 # found in GLIBCPP_CONFIGURE.
4887 ac_ext=C
4888 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4889 ac_cpp='$CXXCPP $CPPFLAGS'
4890 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4891 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4892 cross_compiling=$ac_cv_prog_cxx_cross
4894 ac_test_CXXFLAGS="${CXXFLAGS+set}"
4895 ac_save_CXXFLAGS="$CXXFLAGS"
4897 # Check for maintainer-mode bits.
4898 if test x"$USE_MAINTAINER_MODE" = xno; then
4899 WERROR=''
4900 else
4901 WERROR='-Werror'
4904 # Check for -ffunction-sections -fdata-sections
4905 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4906 echo "configure:4907: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4907 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4908 cat > conftest.$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4912 int main() {
4913 int foo;
4915 ; return 0; }
4917 if { (eval echo configure:4918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4918 rm -rf conftest*
4919 ac_fdsections=yes
4920 else
4921 echo "configure: failed program was:" >&5
4922 cat conftest.$ac_ext >&5
4923 rm -rf conftest*
4924 ac_fdsections=no
4926 rm -f conftest*
4927 if test "$ac_test_CXXFLAGS" = set; then
4928 CXXFLAGS="$ac_save_CXXFLAGS"
4929 else
4930 # this is the suspicious part
4931 CXXFLAGS=''
4933 if test x"$ac_fdsections" = x"yes" && test x"$enable_debug" = x"no"; then
4934 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4936 echo "$ac_t""$ac_fdsections" 1>&6
4938 ac_ext=c
4939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4940 ac_cpp='$CPP $CPPFLAGS'
4941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4943 cross_compiling=$ac_cv_prog_cc_cross
4949 # If we're not using GNU ld, then there's no point in even trying these
4950 # tests. Check for that first. We should have already tested for gld
4951 # by now (in libtool), but require it now just to be safe...
4952 SECTION_LDFLAGS=''
4953 OPT_LDFLAGS=''
4956 # Set --gc-sections.
4957 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4958 # GNU ld it is! Joy and bunny rabbits!
4960 # All these tests are for C++; save the language and the compiler flags.
4961 # Need to do this so that g++ won't try to link in libstdc++
4962 ac_test_CFLAGS="${CFLAGS+set}"
4963 ac_save_CFLAGS="$CFLAGS"
4964 CFLAGS='-x c++ -Wl,--gc-sections'
4966 # Check for -Wl,--gc-sections
4967 # XXX This test is broken at the moment, as symbols required for
4968 # linking are now in libsupc++ (not built yet.....). In addition,
4969 # this test has cored on solaris in the past. In addition,
4970 # --gc-sections doesn't really work at the moment (keeps on discarding
4971 # used sections, first .eh_frame and now some of the glibc sections for
4972 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4973 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4974 echo "configure:4975: checking for ld that supports -Wl,--gc-sections" >&5
4975 if test "$cross_compiling" = yes; then
4976 ac_sectionLDflags=yes
4977 else
4978 cat > conftest.$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4982 int main(void)
4984 try { throw 1; }
4985 catch (...) { };
4986 return 0;
4990 if { (eval echo configure:4991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4991 then
4992 ac_sectionLDflags=yes
4993 else
4994 echo "configure: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
4996 rm -fr conftest*
4997 ac_sectionLFflags=no
4999 rm -fr conftest*
5002 if test "$ac_test_CFLAGS" = set; then
5003 CFLAGS="$ac_save_CFLAGS"
5004 else
5005 # this is the suspicious part
5006 CFLAGS=''
5008 if test "$ac_sectionLDflags" = "yes"; then
5009 SECTION_LDFLAGS='-Wl,--gc-sections'
5011 echo "$ac_t""$ac_sectionLDflags" 1>&6
5014 # Set linker optimization flags.
5015 if test x"$ac_cv_prog_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5016 OPT_LDFLAGS='-Wl,-O1'
5024 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5025 echo "configure:5026: checking for __builtin_abs declaration" >&5
5026 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5027 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5029 else
5032 ac_ext=C
5033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5034 ac_cpp='$CXXCPP $CPPFLAGS'
5035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5037 cross_compiling=$ac_cv_prog_cxx_cross
5039 cat > conftest.$ac_ext <<EOF
5040 #line 5041 "configure"
5041 #include "confdefs.h"
5042 #include <math.h>
5043 int main() {
5044 __builtin_abs(0);
5045 ; return 0; }
5047 if { (eval echo configure:5048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5048 rm -rf conftest*
5049 glibcpp_cv_func___builtin_abs_use=yes
5050 else
5051 echo "configure: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5053 rm -rf conftest*
5054 glibcpp_cv_func___builtin_abs_use=no
5056 rm -f conftest*
5057 ac_ext=c
5058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5059 ac_cpp='$CPP $CPPFLAGS'
5060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5062 cross_compiling=$ac_cv_prog_cc_cross
5068 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5069 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5070 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5071 echo "configure:5072: checking for __builtin_abs linkage" >&5
5072 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5073 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5075 else
5077 cat > conftest.$ac_ext <<EOF
5078 #line 5079 "configure"
5079 #include "confdefs.h"
5080 #include <math.h>
5081 int main() {
5082 __builtin_abs(0);
5083 ; return 0; }
5085 if { (eval echo configure:5086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5086 rm -rf conftest*
5087 glibcpp_cv_func___builtin_abs_link=yes
5088 else
5089 echo "configure: failed program was:" >&5
5090 cat conftest.$ac_ext >&5
5091 rm -rf conftest*
5092 glibcpp_cv_func___builtin_abs_link=no
5094 rm -f conftest*
5099 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5100 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5101 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5102 cat >> confdefs.h <<EOF
5103 #define ${ac_tr_func} 1
5110 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5111 echo "configure:5112: checking for __builtin_fabsf declaration" >&5
5112 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5113 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5114 echo $ac_n "(cached) $ac_c" 1>&6
5115 else
5118 ac_ext=C
5119 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5120 ac_cpp='$CXXCPP $CPPFLAGS'
5121 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5122 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5123 cross_compiling=$ac_cv_prog_cxx_cross
5125 cat > conftest.$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5128 #include <math.h>
5129 int main() {
5130 __builtin_fabsf(0);
5131 ; return 0; }
5133 if { (eval echo configure:5134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5134 rm -rf conftest*
5135 glibcpp_cv_func___builtin_fabsf_use=yes
5136 else
5137 echo "configure: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5139 rm -rf conftest*
5140 glibcpp_cv_func___builtin_fabsf_use=no
5142 rm -f conftest*
5143 ac_ext=c
5144 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5145 ac_cpp='$CPP $CPPFLAGS'
5146 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5147 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5148 cross_compiling=$ac_cv_prog_cc_cross
5154 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5155 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5156 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5157 echo "configure:5158: checking for __builtin_fabsf linkage" >&5
5158 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5159 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5160 echo $ac_n "(cached) $ac_c" 1>&6
5161 else
5163 cat > conftest.$ac_ext <<EOF
5164 #line 5165 "configure"
5165 #include "confdefs.h"
5166 #include <math.h>
5167 int main() {
5168 __builtin_fabsf(0);
5169 ; return 0; }
5171 if { (eval echo configure:5172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5172 rm -rf conftest*
5173 glibcpp_cv_func___builtin_fabsf_link=yes
5174 else
5175 echo "configure: failed program was:" >&5
5176 cat conftest.$ac_ext >&5
5177 rm -rf conftest*
5178 glibcpp_cv_func___builtin_fabsf_link=no
5180 rm -f conftest*
5185 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5186 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5187 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5188 cat >> confdefs.h <<EOF
5189 #define ${ac_tr_func} 1
5196 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5197 echo "configure:5198: checking for __builtin_fabs declaration" >&5
5198 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5199 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5201 else
5204 ac_ext=C
5205 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5206 ac_cpp='$CXXCPP $CPPFLAGS'
5207 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5208 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5209 cross_compiling=$ac_cv_prog_cxx_cross
5211 cat > conftest.$ac_ext <<EOF
5212 #line 5213 "configure"
5213 #include "confdefs.h"
5214 #include <math.h>
5215 int main() {
5216 __builtin_fabs(0);
5217 ; return 0; }
5219 if { (eval echo configure:5220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5220 rm -rf conftest*
5221 glibcpp_cv_func___builtin_fabs_use=yes
5222 else
5223 echo "configure: failed program was:" >&5
5224 cat conftest.$ac_ext >&5
5225 rm -rf conftest*
5226 glibcpp_cv_func___builtin_fabs_use=no
5228 rm -f conftest*
5229 ac_ext=c
5230 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5231 ac_cpp='$CPP $CPPFLAGS'
5232 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5233 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5234 cross_compiling=$ac_cv_prog_cc_cross
5240 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5241 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5242 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5243 echo "configure:5244: checking for __builtin_fabs linkage" >&5
5244 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5245 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5247 else
5249 cat > conftest.$ac_ext <<EOF
5250 #line 5251 "configure"
5251 #include "confdefs.h"
5252 #include <math.h>
5253 int main() {
5254 __builtin_fabs(0);
5255 ; return 0; }
5257 if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5258 rm -rf conftest*
5259 glibcpp_cv_func___builtin_fabs_link=yes
5260 else
5261 echo "configure: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5263 rm -rf conftest*
5264 glibcpp_cv_func___builtin_fabs_link=no
5266 rm -f conftest*
5271 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5272 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5273 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5274 cat >> confdefs.h <<EOF
5275 #define ${ac_tr_func} 1
5282 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5283 echo "configure:5284: checking for __builtin_fabsl declaration" >&5
5284 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5285 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5286 echo $ac_n "(cached) $ac_c" 1>&6
5287 else
5290 ac_ext=C
5291 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5292 ac_cpp='$CXXCPP $CPPFLAGS'
5293 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5294 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5295 cross_compiling=$ac_cv_prog_cxx_cross
5297 cat > conftest.$ac_ext <<EOF
5298 #line 5299 "configure"
5299 #include "confdefs.h"
5300 #include <math.h>
5301 int main() {
5302 __builtin_fabsl(0);
5303 ; return 0; }
5305 if { (eval echo configure:5306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5306 rm -rf conftest*
5307 glibcpp_cv_func___builtin_fabsl_use=yes
5308 else
5309 echo "configure: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5311 rm -rf conftest*
5312 glibcpp_cv_func___builtin_fabsl_use=no
5314 rm -f conftest*
5315 ac_ext=c
5316 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5317 ac_cpp='$CPP $CPPFLAGS'
5318 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5319 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5320 cross_compiling=$ac_cv_prog_cc_cross
5326 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5327 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5328 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5329 echo "configure:5330: checking for __builtin_fabsl linkage" >&5
5330 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5331 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5332 echo $ac_n "(cached) $ac_c" 1>&6
5333 else
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 #include <math.h>
5339 int main() {
5340 __builtin_fabsl(0);
5341 ; return 0; }
5343 if { (eval echo configure:5344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5344 rm -rf conftest*
5345 glibcpp_cv_func___builtin_fabsl_link=yes
5346 else
5347 echo "configure: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5349 rm -rf conftest*
5350 glibcpp_cv_func___builtin_fabsl_link=no
5352 rm -f conftest*
5357 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5358 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5359 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5360 cat >> confdefs.h <<EOF
5361 #define ${ac_tr_func} 1
5368 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5369 echo "configure:5370: checking for __builtin_labs declaration" >&5
5370 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5371 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5372 echo $ac_n "(cached) $ac_c" 1>&6
5373 else
5376 ac_ext=C
5377 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5378 ac_cpp='$CXXCPP $CPPFLAGS'
5379 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5380 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5381 cross_compiling=$ac_cv_prog_cxx_cross
5383 cat > conftest.$ac_ext <<EOF
5384 #line 5385 "configure"
5385 #include "confdefs.h"
5386 #include <math.h>
5387 int main() {
5388 __builtin_labs(0);
5389 ; return 0; }
5391 if { (eval echo configure:5392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5392 rm -rf conftest*
5393 glibcpp_cv_func___builtin_labs_use=yes
5394 else
5395 echo "configure: failed program was:" >&5
5396 cat conftest.$ac_ext >&5
5397 rm -rf conftest*
5398 glibcpp_cv_func___builtin_labs_use=no
5400 rm -f conftest*
5401 ac_ext=c
5402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5403 ac_cpp='$CPP $CPPFLAGS'
5404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5406 cross_compiling=$ac_cv_prog_cc_cross
5412 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5413 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5414 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5415 echo "configure:5416: checking for __builtin_labs linkage" >&5
5416 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5417 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5419 else
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5424 #include <math.h>
5425 int main() {
5426 __builtin_labs(0);
5427 ; return 0; }
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5430 rm -rf conftest*
5431 glibcpp_cv_func___builtin_labs_link=yes
5432 else
5433 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5435 rm -rf conftest*
5436 glibcpp_cv_func___builtin_labs_link=no
5438 rm -f conftest*
5443 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5444 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5445 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5446 cat >> confdefs.h <<EOF
5447 #define ${ac_tr_func} 1
5455 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5456 echo "configure:5457: checking for __builtin_sqrtf declaration" >&5
5457 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5458 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_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_sqrtf(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_sqrtf_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_sqrtf_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_sqrtf_use" 1>&6
5500 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5501 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5502 echo "configure:5503: checking for __builtin_sqrtf linkage" >&5
5503 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5504 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_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_sqrtf(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_sqrtf_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_sqrtf_link=no
5525 rm -f conftest*
5530 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5531 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5532 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5533 cat >> confdefs.h <<EOF
5534 #define ${ac_tr_func} 1
5541 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5542 echo "configure:5543: checking for __builtin_fsqrt declaration" >&5
5543 if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5544 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_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_fsqrt(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_fsqrt_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_fsqrt_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_fsqrt_use" 1>&6
5586 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5587 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5588 echo "configure:5589: checking for __builtin_fsqrt linkage" >&5
5589 if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5590 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_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_fsqrt(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_fsqrt_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_fsqrt_link=no
5611 rm -f conftest*
5616 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5617 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5618 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5619 cat >> confdefs.h <<EOF
5620 #define ${ac_tr_func} 1
5627 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5628 echo "configure:5629: checking for __builtin_sqrtl declaration" >&5
5629 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5630 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_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_sqrtl(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_sqrtl_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_sqrtl_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_sqrtl_use" 1>&6
5672 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5673 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5674 echo "configure:5675: checking for __builtin_sqrtl linkage" >&5
5675 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5676 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_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_sqrtl(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_sqrtl_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_sqrtl_link=no
5697 rm -f conftest*
5702 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5703 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5704 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5705 cat >> confdefs.h <<EOF
5706 #define ${ac_tr_func} 1
5714 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5715 echo "configure:5716: checking for __builtin_sinf declaration" >&5
5716 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5717 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5718 echo $ac_n "(cached) $ac_c" 1>&6
5719 else
5722 ac_ext=C
5723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5724 ac_cpp='$CXXCPP $CPPFLAGS'
5725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5727 cross_compiling=$ac_cv_prog_cxx_cross
5729 cat > conftest.$ac_ext <<EOF
5730 #line 5731 "configure"
5731 #include "confdefs.h"
5732 #include <math.h>
5733 int main() {
5734 __builtin_sinf(0);
5735 ; return 0; }
5737 if { (eval echo configure:5738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5738 rm -rf conftest*
5739 glibcpp_cv_func___builtin_sinf_use=yes
5740 else
5741 echo "configure: failed program was:" >&5
5742 cat conftest.$ac_ext >&5
5743 rm -rf conftest*
5744 glibcpp_cv_func___builtin_sinf_use=no
5746 rm -f conftest*
5747 ac_ext=c
5748 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5749 ac_cpp='$CPP $CPPFLAGS'
5750 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5751 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5752 cross_compiling=$ac_cv_prog_cc_cross
5758 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5759 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5760 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5761 echo "configure:5762: checking for __builtin_sinf linkage" >&5
5762 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5763 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5764 echo $ac_n "(cached) $ac_c" 1>&6
5765 else
5767 cat > conftest.$ac_ext <<EOF
5768 #line 5769 "configure"
5769 #include "confdefs.h"
5770 #include <math.h>
5771 int main() {
5772 __builtin_sinf(0);
5773 ; return 0; }
5775 if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5776 rm -rf conftest*
5777 glibcpp_cv_func___builtin_sinf_link=yes
5778 else
5779 echo "configure: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5781 rm -rf conftest*
5782 glibcpp_cv_func___builtin_sinf_link=no
5784 rm -f conftest*
5789 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5790 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5791 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5792 cat >> confdefs.h <<EOF
5793 #define ${ac_tr_func} 1
5800 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5801 echo "configure:5802: checking for __builtin_sin declaration" >&5
5802 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5803 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_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_sin(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_sin_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_sin_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_sin_use" 1>&6
5845 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5846 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5847 echo "configure:5848: checking for __builtin_sin linkage" >&5
5848 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5849 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_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_sin(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_sin_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_sin_link=no
5870 rm -f conftest*
5875 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5876 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5877 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5878 cat >> confdefs.h <<EOF
5879 #define ${ac_tr_func} 1
5886 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5887 echo "configure:5888: checking for __builtin_sinl declaration" >&5
5888 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5889 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_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_sinl(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_sinl_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_sinl_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_sinl_use" 1>&6
5931 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5932 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5933 echo "configure:5934: checking for __builtin_sinl linkage" >&5
5934 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5935 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_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_sinl(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_sinl_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_sinl_link=no
5956 rm -f conftest*
5961 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5962 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5963 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5964 cat >> confdefs.h <<EOF
5965 #define ${ac_tr_func} 1
5973 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5974 echo "configure:5975: checking for __builtin_cosf declaration" >&5
5975 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5976 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
5977 echo $ac_n "(cached) $ac_c" 1>&6
5978 else
5981 ac_ext=C
5982 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5983 ac_cpp='$CXXCPP $CPPFLAGS'
5984 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5985 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5986 cross_compiling=$ac_cv_prog_cxx_cross
5988 cat > conftest.$ac_ext <<EOF
5989 #line 5990 "configure"
5990 #include "confdefs.h"
5991 #include <math.h>
5992 int main() {
5993 __builtin_cosf(0);
5994 ; return 0; }
5996 if { (eval echo configure:5997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5997 rm -rf conftest*
5998 glibcpp_cv_func___builtin_cosf_use=yes
5999 else
6000 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6002 rm -rf conftest*
6003 glibcpp_cv_func___builtin_cosf_use=no
6005 rm -f conftest*
6006 ac_ext=c
6007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6008 ac_cpp='$CPP $CPPFLAGS'
6009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6011 cross_compiling=$ac_cv_prog_cc_cross
6017 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6018 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6019 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6020 echo "configure:6021: checking for __builtin_cosf linkage" >&5
6021 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6022 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6023 echo $ac_n "(cached) $ac_c" 1>&6
6024 else
6026 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6029 #include <math.h>
6030 int main() {
6031 __builtin_cosf(0);
6032 ; return 0; }
6034 if { (eval echo configure:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6035 rm -rf conftest*
6036 glibcpp_cv_func___builtin_cosf_link=yes
6037 else
6038 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6040 rm -rf conftest*
6041 glibcpp_cv_func___builtin_cosf_link=no
6043 rm -f conftest*
6048 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6049 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6050 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6051 cat >> confdefs.h <<EOF
6052 #define ${ac_tr_func} 1
6059 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6060 echo "configure:6061: checking for __builtin_cos declaration" >&5
6061 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6062 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_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_cos(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_cos_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_cos_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_cos_use" 1>&6
6104 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6105 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6106 echo "configure:6107: checking for __builtin_cos linkage" >&5
6107 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6108 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_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_cos(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_cos_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_cos_link=no
6129 rm -f conftest*
6134 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6135 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6136 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6137 cat >> confdefs.h <<EOF
6138 #define ${ac_tr_func} 1
6145 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6146 echo "configure:6147: checking for __builtin_cosl declaration" >&5
6147 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6148 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_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_cosl(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_cosl_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_cosl_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_cosl_use" 1>&6
6190 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6191 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6192 echo "configure:6193: checking for __builtin_cosl linkage" >&5
6193 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6194 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_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_cosl(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_cosl_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_cosl_link=no
6215 rm -f conftest*
6220 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6221 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6222 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6223 cat >> confdefs.h <<EOF
6224 #define ${ac_tr_func} 1
6231 dummyvar=no
6232 if test x$dummyvar = x"yes"; then
6233 cat >> confdefs.h <<\EOF
6234 #define HAVE___BUILTIN_ABS 1
6237 cat >> confdefs.h <<\EOF
6238 #define HAVE___BUILTIN_LABS 1
6241 cat >> confdefs.h <<\EOF
6242 #define HAVE___BUILTIN_COS 1
6245 cat >> confdefs.h <<\EOF
6246 #define HAVE___BUILTIN_COSF 1
6249 cat >> confdefs.h <<\EOF
6250 #define HAVE___BUILTIN_COSL 1
6253 cat >> confdefs.h <<\EOF
6254 #define HAVE___BUILTIN_FABS 1
6257 cat >> confdefs.h <<\EOF
6258 #define HAVE___BUILTIN_FABSF 1
6261 cat >> confdefs.h <<\EOF
6262 #define HAVE___BUILTIN_FABSL 1
6265 cat >> confdefs.h <<\EOF
6266 #define HAVE___BUILTIN_SIN 1
6269 cat >> confdefs.h <<\EOF
6270 #define HAVE___BUILTIN_SINF 1
6273 cat >> confdefs.h <<\EOF
6274 #define HAVE___BUILTIN_SINL 1
6277 cat >> confdefs.h <<\EOF
6278 #define HAVE___BUILTIN_FSQRT 1
6281 cat >> confdefs.h <<\EOF
6282 #define HAVE___BUILTIN_SQRTF 1
6285 cat >> confdefs.h <<\EOF
6286 #define HAVE___BUILTIN_SQRTL 1
6292 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6293 ac_save_CXXFLAGS="$CXXFLAGS"
6294 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6296 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6297 echo "configure:6298: checking for sin in -lm" >&5
6298 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6301 else
6302 ac_save_LIBS="$LIBS"
6303 LIBS="-lm $LIBS"
6304 cat > conftest.$ac_ext <<EOF
6305 #line 6306 "configure"
6306 #include "confdefs.h"
6307 /* Override any gcc2 internal prototype to avoid an error. */
6308 /* We use char because int might match the return type of a gcc2
6309 builtin and then its argument prototype would still apply. */
6310 char sin();
6312 int main() {
6313 sin()
6314 ; return 0; }
6316 if { (eval echo configure:6317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6317 rm -rf conftest*
6318 eval "ac_cv_lib_$ac_lib_var=yes"
6319 else
6320 echo "configure: failed program was:" >&5
6321 cat conftest.$ac_ext >&5
6322 rm -rf conftest*
6323 eval "ac_cv_lib_$ac_lib_var=no"
6325 rm -f conftest*
6326 LIBS="$ac_save_LIBS"
6329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6330 echo "$ac_t""yes" 1>&6
6331 libm="-lm"
6332 else
6333 echo "$ac_t""no" 1>&6
6336 ac_save_LIBS="$LIBS"
6337 LIBS="$LIBS $libm"
6341 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6342 echo "configure:6343: checking for isinf declaration" >&5
6343 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6344 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6345 echo $ac_n "(cached) $ac_c" 1>&6
6346 else
6349 ac_ext=C
6350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6351 ac_cpp='$CXXCPP $CPPFLAGS'
6352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6354 cross_compiling=$ac_cv_prog_cxx_cross
6356 cat > conftest.$ac_ext <<EOF
6357 #line 6358 "configure"
6358 #include "confdefs.h"
6359 #include <math.h>
6360 #ifdef HAVE_IEEEFP_H
6361 #include <ieeefp.h>
6362 #endif
6364 int main() {
6365 isinf(0);
6366 ; return 0; }
6368 if { (eval echo configure:6369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6369 rm -rf conftest*
6370 glibcpp_cv_func_isinf_use=yes
6371 else
6372 echo "configure: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6374 rm -rf conftest*
6375 glibcpp_cv_func_isinf_use=no
6377 rm -f conftest*
6378 ac_ext=c
6379 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6380 ac_cpp='$CPP $CPPFLAGS'
6381 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6382 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6383 cross_compiling=$ac_cv_prog_cc_cross
6389 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6391 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6392 for ac_func in isinf
6394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6395 echo "configure:6396: checking for $ac_func" >&5
6396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6397 echo $ac_n "(cached) $ac_c" 1>&6
6398 else
6399 cat > conftest.$ac_ext <<EOF
6400 #line 6401 "configure"
6401 #include "confdefs.h"
6402 /* System header to define __stub macros and hopefully few prototypes,
6403 which can conflict with char $ac_func(); below. */
6404 #include <assert.h>
6405 /* Override any gcc2 internal prototype to avoid an error. */
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6408 char $ac_func();
6410 int main() {
6412 /* The GNU C library defines this for functions which it implements
6413 to always fail with ENOSYS. Some functions are actually named
6414 something starting with __ and the normal name is an alias. */
6415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6416 choke me
6417 #else
6418 $ac_func();
6419 #endif
6421 ; return 0; }
6423 if { (eval echo configure:6424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6424 rm -rf conftest*
6425 eval "ac_cv_func_$ac_func=yes"
6426 else
6427 echo "configure: failed program was:" >&5
6428 cat conftest.$ac_ext >&5
6429 rm -rf conftest*
6430 eval "ac_cv_func_$ac_func=no"
6432 rm -f conftest*
6435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6436 echo "$ac_t""yes" 1>&6
6437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6438 cat >> confdefs.h <<EOF
6439 #define $ac_tr_func 1
6442 else
6443 echo "$ac_t""no" 1>&6
6445 done
6447 else
6449 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6450 echo "configure:6451: checking for _isinf declaration" >&5
6451 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6452 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6453 echo $ac_n "(cached) $ac_c" 1>&6
6454 else
6457 ac_ext=C
6458 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6459 ac_cpp='$CXXCPP $CPPFLAGS'
6460 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6461 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6462 cross_compiling=$ac_cv_prog_cxx_cross
6464 cat > conftest.$ac_ext <<EOF
6465 #line 6466 "configure"
6466 #include "confdefs.h"
6467 #include <math.h>
6468 #ifdef HAVE_IEEEFP_H
6469 #include <ieeefp.h>
6470 #endif
6472 int main() {
6473 _isinf(0);
6474 ; return 0; }
6476 if { (eval echo configure:6477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6477 rm -rf conftest*
6478 glibcpp_cv_func__isinf_use=yes
6479 else
6480 echo "configure: failed program was:" >&5
6481 cat conftest.$ac_ext >&5
6482 rm -rf conftest*
6483 glibcpp_cv_func__isinf_use=no
6485 rm -f conftest*
6486 ac_ext=c
6487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6488 ac_cpp='$CPP $CPPFLAGS'
6489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6491 cross_compiling=$ac_cv_prog_cc_cross
6497 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6499 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6500 for ac_func in _isinf
6502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6503 echo "configure:6504: checking for $ac_func" >&5
6504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6506 else
6507 cat > conftest.$ac_ext <<EOF
6508 #line 6509 "configure"
6509 #include "confdefs.h"
6510 /* System header to define __stub macros and hopefully few prototypes,
6511 which can conflict with char $ac_func(); below. */
6512 #include <assert.h>
6513 /* Override any gcc2 internal prototype to avoid an error. */
6514 /* We use char because int might match the return type of a gcc2
6515 builtin and then its argument prototype would still apply. */
6516 char $ac_func();
6518 int main() {
6520 /* The GNU C library defines this for functions which it implements
6521 to always fail with ENOSYS. Some functions are actually named
6522 something starting with __ and the normal name is an alias. */
6523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6524 choke me
6525 #else
6526 $ac_func();
6527 #endif
6529 ; return 0; }
6531 if { (eval echo configure:6532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6532 rm -rf conftest*
6533 eval "ac_cv_func_$ac_func=yes"
6534 else
6535 echo "configure: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6537 rm -rf conftest*
6538 eval "ac_cv_func_$ac_func=no"
6540 rm -f conftest*
6543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6544 echo "$ac_t""yes" 1>&6
6545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6546 cat >> confdefs.h <<EOF
6547 #define $ac_tr_func 1
6550 else
6551 echo "$ac_t""no" 1>&6
6553 done
6560 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6561 echo "configure:6562: checking for isnan declaration" >&5
6562 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6563 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6564 echo $ac_n "(cached) $ac_c" 1>&6
6565 else
6568 ac_ext=C
6569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6570 ac_cpp='$CXXCPP $CPPFLAGS'
6571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6573 cross_compiling=$ac_cv_prog_cxx_cross
6575 cat > conftest.$ac_ext <<EOF
6576 #line 6577 "configure"
6577 #include "confdefs.h"
6578 #include <math.h>
6579 #ifdef HAVE_IEEEFP_H
6580 #include <ieeefp.h>
6581 #endif
6583 int main() {
6584 isnan(0);
6585 ; return 0; }
6587 if { (eval echo configure:6588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6588 rm -rf conftest*
6589 glibcpp_cv_func_isnan_use=yes
6590 else
6591 echo "configure: failed program was:" >&5
6592 cat conftest.$ac_ext >&5
6593 rm -rf conftest*
6594 glibcpp_cv_func_isnan_use=no
6596 rm -f conftest*
6597 ac_ext=c
6598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6599 ac_cpp='$CPP $CPPFLAGS'
6600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6602 cross_compiling=$ac_cv_prog_cc_cross
6608 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6610 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6611 for ac_func in isnan
6613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6614 echo "configure:6615: checking for $ac_func" >&5
6615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6616 echo $ac_n "(cached) $ac_c" 1>&6
6617 else
6618 cat > conftest.$ac_ext <<EOF
6619 #line 6620 "configure"
6620 #include "confdefs.h"
6621 /* System header to define __stub macros and hopefully few prototypes,
6622 which can conflict with char $ac_func(); below. */
6623 #include <assert.h>
6624 /* Override any gcc2 internal prototype to avoid an error. */
6625 /* We use char because int might match the return type of a gcc2
6626 builtin and then its argument prototype would still apply. */
6627 char $ac_func();
6629 int main() {
6631 /* The GNU C library defines this for functions which it implements
6632 to always fail with ENOSYS. Some functions are actually named
6633 something starting with __ and the normal name is an alias. */
6634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6635 choke me
6636 #else
6637 $ac_func();
6638 #endif
6640 ; return 0; }
6642 if { (eval echo configure:6643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6643 rm -rf conftest*
6644 eval "ac_cv_func_$ac_func=yes"
6645 else
6646 echo "configure: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6648 rm -rf conftest*
6649 eval "ac_cv_func_$ac_func=no"
6651 rm -f conftest*
6654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6655 echo "$ac_t""yes" 1>&6
6656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6657 cat >> confdefs.h <<EOF
6658 #define $ac_tr_func 1
6661 else
6662 echo "$ac_t""no" 1>&6
6664 done
6666 else
6668 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6669 echo "configure:6670: checking for _isnan declaration" >&5
6670 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6671 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6672 echo $ac_n "(cached) $ac_c" 1>&6
6673 else
6676 ac_ext=C
6677 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6678 ac_cpp='$CXXCPP $CPPFLAGS'
6679 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6680 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6681 cross_compiling=$ac_cv_prog_cxx_cross
6683 cat > conftest.$ac_ext <<EOF
6684 #line 6685 "configure"
6685 #include "confdefs.h"
6686 #include <math.h>
6687 #ifdef HAVE_IEEEFP_H
6688 #include <ieeefp.h>
6689 #endif
6691 int main() {
6692 _isnan(0);
6693 ; return 0; }
6695 if { (eval echo configure:6696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6696 rm -rf conftest*
6697 glibcpp_cv_func__isnan_use=yes
6698 else
6699 echo "configure: failed program was:" >&5
6700 cat conftest.$ac_ext >&5
6701 rm -rf conftest*
6702 glibcpp_cv_func__isnan_use=no
6704 rm -f conftest*
6705 ac_ext=c
6706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6707 ac_cpp='$CPP $CPPFLAGS'
6708 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6709 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6710 cross_compiling=$ac_cv_prog_cc_cross
6716 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6718 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6719 for ac_func in _isnan
6721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6722 echo "configure:6723: checking for $ac_func" >&5
6723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6724 echo $ac_n "(cached) $ac_c" 1>&6
6725 else
6726 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure"
6728 #include "confdefs.h"
6729 /* System header to define __stub macros and hopefully few prototypes,
6730 which can conflict with char $ac_func(); below. */
6731 #include <assert.h>
6732 /* Override any gcc2 internal prototype to avoid an error. */
6733 /* We use char because int might match the return type of a gcc2
6734 builtin and then its argument prototype would still apply. */
6735 char $ac_func();
6737 int main() {
6739 /* The GNU C library defines this for functions which it implements
6740 to always fail with ENOSYS. Some functions are actually named
6741 something starting with __ and the normal name is an alias. */
6742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6743 choke me
6744 #else
6745 $ac_func();
6746 #endif
6748 ; return 0; }
6750 if { (eval echo configure:6751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6751 rm -rf conftest*
6752 eval "ac_cv_func_$ac_func=yes"
6753 else
6754 echo "configure: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6756 rm -rf conftest*
6757 eval "ac_cv_func_$ac_func=no"
6759 rm -f conftest*
6762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6763 echo "$ac_t""yes" 1>&6
6764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6765 cat >> confdefs.h <<EOF
6766 #define $ac_tr_func 1
6769 else
6770 echo "$ac_t""no" 1>&6
6772 done
6779 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6780 echo "configure:6781: checking for finite declaration" >&5
6781 if test x${glibcpp_cv_func_finite_use+set} != xset; then
6782 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6783 echo $ac_n "(cached) $ac_c" 1>&6
6784 else
6787 ac_ext=C
6788 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6789 ac_cpp='$CXXCPP $CPPFLAGS'
6790 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6791 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6792 cross_compiling=$ac_cv_prog_cxx_cross
6794 cat > conftest.$ac_ext <<EOF
6795 #line 6796 "configure"
6796 #include "confdefs.h"
6797 #include <math.h>
6798 #ifdef HAVE_IEEEFP_H
6799 #include <ieeefp.h>
6800 #endif
6802 int main() {
6803 finite(0);
6804 ; return 0; }
6806 if { (eval echo configure:6807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6807 rm -rf conftest*
6808 glibcpp_cv_func_finite_use=yes
6809 else
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6812 rm -rf conftest*
6813 glibcpp_cv_func_finite_use=no
6815 rm -f conftest*
6816 ac_ext=c
6817 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6818 ac_cpp='$CPP $CPPFLAGS'
6819 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6820 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6821 cross_compiling=$ac_cv_prog_cc_cross
6827 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6829 if test x$glibcpp_cv_func_finite_use = x"yes"; then
6830 for ac_func in finite
6832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6833 echo "configure:6834: checking for $ac_func" >&5
6834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6835 echo $ac_n "(cached) $ac_c" 1>&6
6836 else
6837 cat > conftest.$ac_ext <<EOF
6838 #line 6839 "configure"
6839 #include "confdefs.h"
6840 /* System header to define __stub macros and hopefully few prototypes,
6841 which can conflict with char $ac_func(); below. */
6842 #include <assert.h>
6843 /* Override any gcc2 internal prototype to avoid an error. */
6844 /* We use char because int might match the return type of a gcc2
6845 builtin and then its argument prototype would still apply. */
6846 char $ac_func();
6848 int main() {
6850 /* The GNU C library defines this for functions which it implements
6851 to always fail with ENOSYS. Some functions are actually named
6852 something starting with __ and the normal name is an alias. */
6853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6854 choke me
6855 #else
6856 $ac_func();
6857 #endif
6859 ; return 0; }
6861 if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6862 rm -rf conftest*
6863 eval "ac_cv_func_$ac_func=yes"
6864 else
6865 echo "configure: failed program was:" >&5
6866 cat conftest.$ac_ext >&5
6867 rm -rf conftest*
6868 eval "ac_cv_func_$ac_func=no"
6870 rm -f conftest*
6873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6874 echo "$ac_t""yes" 1>&6
6875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6876 cat >> confdefs.h <<EOF
6877 #define $ac_tr_func 1
6880 else
6881 echo "$ac_t""no" 1>&6
6883 done
6885 else
6887 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6888 echo "configure:6889: checking for _finite declaration" >&5
6889 if test x${glibcpp_cv_func__finite_use+set} != xset; then
6890 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6891 echo $ac_n "(cached) $ac_c" 1>&6
6892 else
6895 ac_ext=C
6896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6897 ac_cpp='$CXXCPP $CPPFLAGS'
6898 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6899 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6900 cross_compiling=$ac_cv_prog_cxx_cross
6902 cat > conftest.$ac_ext <<EOF
6903 #line 6904 "configure"
6904 #include "confdefs.h"
6905 #include <math.h>
6906 #ifdef HAVE_IEEEFP_H
6907 #include <ieeefp.h>
6908 #endif
6910 int main() {
6911 _finite(0);
6912 ; return 0; }
6914 if { (eval echo configure:6915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6915 rm -rf conftest*
6916 glibcpp_cv_func__finite_use=yes
6917 else
6918 echo "configure: failed program was:" >&5
6919 cat conftest.$ac_ext >&5
6920 rm -rf conftest*
6921 glibcpp_cv_func__finite_use=no
6923 rm -f conftest*
6924 ac_ext=c
6925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6926 ac_cpp='$CPP $CPPFLAGS'
6927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6929 cross_compiling=$ac_cv_prog_cc_cross
6935 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6937 if test x$glibcpp_cv_func__finite_use = x"yes"; then
6938 for ac_func in _finite
6940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6941 echo "configure:6942: checking for $ac_func" >&5
6942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6943 echo $ac_n "(cached) $ac_c" 1>&6
6944 else
6945 cat > conftest.$ac_ext <<EOF
6946 #line 6947 "configure"
6947 #include "confdefs.h"
6948 /* System header to define __stub macros and hopefully few prototypes,
6949 which can conflict with char $ac_func(); below. */
6950 #include <assert.h>
6951 /* Override any gcc2 internal prototype to avoid an error. */
6952 /* We use char because int might match the return type of a gcc2
6953 builtin and then its argument prototype would still apply. */
6954 char $ac_func();
6956 int main() {
6958 /* The GNU C library defines this for functions which it implements
6959 to always fail with ENOSYS. Some functions are actually named
6960 something starting with __ and the normal name is an alias. */
6961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6962 choke me
6963 #else
6964 $ac_func();
6965 #endif
6967 ; return 0; }
6969 if { (eval echo configure:6970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6970 rm -rf conftest*
6971 eval "ac_cv_func_$ac_func=yes"
6972 else
6973 echo "configure: failed program was:" >&5
6974 cat conftest.$ac_ext >&5
6975 rm -rf conftest*
6976 eval "ac_cv_func_$ac_func=no"
6978 rm -f conftest*
6981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6982 echo "$ac_t""yes" 1>&6
6983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6984 cat >> confdefs.h <<EOF
6985 #define $ac_tr_func 1
6988 else
6989 echo "$ac_t""no" 1>&6
6991 done
6998 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
6999 echo "configure:7000: checking for copysign declaration" >&5
7000 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7001 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7002 echo $ac_n "(cached) $ac_c" 1>&6
7003 else
7006 ac_ext=C
7007 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7008 ac_cpp='$CXXCPP $CPPFLAGS'
7009 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7010 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7011 cross_compiling=$ac_cv_prog_cxx_cross
7013 cat > conftest.$ac_ext <<EOF
7014 #line 7015 "configure"
7015 #include "confdefs.h"
7016 #include <math.h>
7017 int main() {
7018 copysign(0, 0);
7019 ; return 0; }
7021 if { (eval echo configure:7022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7022 rm -rf conftest*
7023 glibcpp_cv_func_copysign_use=yes
7024 else
7025 echo "configure: failed program was:" >&5
7026 cat conftest.$ac_ext >&5
7027 rm -rf conftest*
7028 glibcpp_cv_func_copysign_use=no
7030 rm -f conftest*
7031 ac_ext=c
7032 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7033 ac_cpp='$CPP $CPPFLAGS'
7034 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7035 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7036 cross_compiling=$ac_cv_prog_cc_cross
7042 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7044 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7045 for ac_func in copysign
7047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7048 echo "configure:7049: checking for $ac_func" >&5
7049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7051 else
7052 cat > conftest.$ac_ext <<EOF
7053 #line 7054 "configure"
7054 #include "confdefs.h"
7055 /* System header to define __stub macros and hopefully few prototypes,
7056 which can conflict with char $ac_func(); below. */
7057 #include <assert.h>
7058 /* Override any gcc2 internal prototype to avoid an error. */
7059 /* We use char because int might match the return type of a gcc2
7060 builtin and then its argument prototype would still apply. */
7061 char $ac_func();
7063 int main() {
7065 /* The GNU C library defines this for functions which it implements
7066 to always fail with ENOSYS. Some functions are actually named
7067 something starting with __ and the normal name is an alias. */
7068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7069 choke me
7070 #else
7071 $ac_func();
7072 #endif
7074 ; return 0; }
7076 if { (eval echo configure:7077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7077 rm -rf conftest*
7078 eval "ac_cv_func_$ac_func=yes"
7079 else
7080 echo "configure: failed program was:" >&5
7081 cat conftest.$ac_ext >&5
7082 rm -rf conftest*
7083 eval "ac_cv_func_$ac_func=no"
7085 rm -f conftest*
7088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7089 echo "$ac_t""yes" 1>&6
7090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7091 cat >> confdefs.h <<EOF
7092 #define $ac_tr_func 1
7095 else
7096 echo "$ac_t""no" 1>&6
7098 done
7100 else
7102 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7103 echo "configure:7104: checking for _copysign declaration" >&5
7104 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7105 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7106 echo $ac_n "(cached) $ac_c" 1>&6
7107 else
7110 ac_ext=C
7111 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7112 ac_cpp='$CXXCPP $CPPFLAGS'
7113 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7114 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7115 cross_compiling=$ac_cv_prog_cxx_cross
7117 cat > conftest.$ac_ext <<EOF
7118 #line 7119 "configure"
7119 #include "confdefs.h"
7120 #include <math.h>
7121 int main() {
7122 _copysign(0, 0);
7123 ; return 0; }
7125 if { (eval echo configure:7126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7126 rm -rf conftest*
7127 glibcpp_cv_func__copysign_use=yes
7128 else
7129 echo "configure: failed program was:" >&5
7130 cat conftest.$ac_ext >&5
7131 rm -rf conftest*
7132 glibcpp_cv_func__copysign_use=no
7134 rm -f conftest*
7135 ac_ext=c
7136 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7137 ac_cpp='$CPP $CPPFLAGS'
7138 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7139 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7140 cross_compiling=$ac_cv_prog_cc_cross
7146 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7148 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7149 for ac_func in _copysign
7151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7152 echo "configure:7153: checking for $ac_func" >&5
7153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7155 else
7156 cat > conftest.$ac_ext <<EOF
7157 #line 7158 "configure"
7158 #include "confdefs.h"
7159 /* System header to define __stub macros and hopefully few prototypes,
7160 which can conflict with char $ac_func(); below. */
7161 #include <assert.h>
7162 /* Override any gcc2 internal prototype to avoid an error. */
7163 /* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7165 char $ac_func();
7167 int main() {
7169 /* The GNU C library defines this for functions which it implements
7170 to always fail with ENOSYS. Some functions are actually named
7171 something starting with __ and the normal name is an alias. */
7172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7173 choke me
7174 #else
7175 $ac_func();
7176 #endif
7178 ; return 0; }
7180 if { (eval echo configure:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7181 rm -rf conftest*
7182 eval "ac_cv_func_$ac_func=yes"
7183 else
7184 echo "configure: failed program was:" >&5
7185 cat conftest.$ac_ext >&5
7186 rm -rf conftest*
7187 eval "ac_cv_func_$ac_func=no"
7189 rm -f conftest*
7192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7193 echo "$ac_t""yes" 1>&6
7194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7195 cat >> confdefs.h <<EOF
7196 #define $ac_tr_func 1
7199 else
7200 echo "$ac_t""no" 1>&6
7202 done
7209 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7210 echo "configure:7211: checking for sincos declaration" >&5
7211 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7212 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7214 else
7217 ac_ext=C
7218 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7219 ac_cpp='$CXXCPP $CPPFLAGS'
7220 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7221 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7222 cross_compiling=$ac_cv_prog_cxx_cross
7224 cat > conftest.$ac_ext <<EOF
7225 #line 7226 "configure"
7226 #include "confdefs.h"
7227 #include <math.h>
7228 int main() {
7229 sincos(0, 0, 0);
7230 ; return 0; }
7232 if { (eval echo configure:7233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7233 rm -rf conftest*
7234 glibcpp_cv_func_sincos_use=yes
7235 else
7236 echo "configure: failed program was:" >&5
7237 cat conftest.$ac_ext >&5
7238 rm -rf conftest*
7239 glibcpp_cv_func_sincos_use=no
7241 rm -f conftest*
7242 ac_ext=c
7243 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7244 ac_cpp='$CPP $CPPFLAGS'
7245 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7246 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7247 cross_compiling=$ac_cv_prog_cc_cross
7253 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7255 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7256 for ac_func in sincos
7258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7259 echo "configure:7260: checking for $ac_func" >&5
7260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7261 echo $ac_n "(cached) $ac_c" 1>&6
7262 else
7263 cat > conftest.$ac_ext <<EOF
7264 #line 7265 "configure"
7265 #include "confdefs.h"
7266 /* System header to define __stub macros and hopefully few prototypes,
7267 which can conflict with char $ac_func(); below. */
7268 #include <assert.h>
7269 /* Override any gcc2 internal prototype to avoid an error. */
7270 /* We use char because int might match the return type of a gcc2
7271 builtin and then its argument prototype would still apply. */
7272 char $ac_func();
7274 int main() {
7276 /* The GNU C library defines this for functions which it implements
7277 to always fail with ENOSYS. Some functions are actually named
7278 something starting with __ and the normal name is an alias. */
7279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7280 choke me
7281 #else
7282 $ac_func();
7283 #endif
7285 ; return 0; }
7287 if { (eval echo configure:7288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7288 rm -rf conftest*
7289 eval "ac_cv_func_$ac_func=yes"
7290 else
7291 echo "configure: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7293 rm -rf conftest*
7294 eval "ac_cv_func_$ac_func=no"
7296 rm -f conftest*
7299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7300 echo "$ac_t""yes" 1>&6
7301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7302 cat >> confdefs.h <<EOF
7303 #define $ac_tr_func 1
7306 else
7307 echo "$ac_t""no" 1>&6
7309 done
7311 else
7313 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7314 echo "configure:7315: checking for _sincos declaration" >&5
7315 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7316 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7317 echo $ac_n "(cached) $ac_c" 1>&6
7318 else
7321 ac_ext=C
7322 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7323 ac_cpp='$CXXCPP $CPPFLAGS'
7324 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7325 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7326 cross_compiling=$ac_cv_prog_cxx_cross
7328 cat > conftest.$ac_ext <<EOF
7329 #line 7330 "configure"
7330 #include "confdefs.h"
7331 #include <math.h>
7332 int main() {
7333 _sincos(0, 0, 0);
7334 ; return 0; }
7336 if { (eval echo configure:7337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7337 rm -rf conftest*
7338 glibcpp_cv_func__sincos_use=yes
7339 else
7340 echo "configure: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7342 rm -rf conftest*
7343 glibcpp_cv_func__sincos_use=no
7345 rm -f conftest*
7346 ac_ext=c
7347 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7348 ac_cpp='$CPP $CPPFLAGS'
7349 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7350 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7351 cross_compiling=$ac_cv_prog_cc_cross
7357 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7359 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7360 for ac_func in _sincos
7362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7363 echo "configure:7364: checking for $ac_func" >&5
7364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7365 echo $ac_n "(cached) $ac_c" 1>&6
7366 else
7367 cat > conftest.$ac_ext <<EOF
7368 #line 7369 "configure"
7369 #include "confdefs.h"
7370 /* System header to define __stub macros and hopefully few prototypes,
7371 which can conflict with char $ac_func(); below. */
7372 #include <assert.h>
7373 /* Override any gcc2 internal prototype to avoid an error. */
7374 /* We use char because int might match the return type of a gcc2
7375 builtin and then its argument prototype would still apply. */
7376 char $ac_func();
7378 int main() {
7380 /* The GNU C library defines this for functions which it implements
7381 to always fail with ENOSYS. Some functions are actually named
7382 something starting with __ and the normal name is an alias. */
7383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7384 choke me
7385 #else
7386 $ac_func();
7387 #endif
7389 ; return 0; }
7391 if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7392 rm -rf conftest*
7393 eval "ac_cv_func_$ac_func=yes"
7394 else
7395 echo "configure: failed program was:" >&5
7396 cat conftest.$ac_ext >&5
7397 rm -rf conftest*
7398 eval "ac_cv_func_$ac_func=no"
7400 rm -f conftest*
7403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7404 echo "$ac_t""yes" 1>&6
7405 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7406 cat >> confdefs.h <<EOF
7407 #define $ac_tr_func 1
7410 else
7411 echo "$ac_t""no" 1>&6
7413 done
7420 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7421 echo "configure:7422: checking for fpclass declaration" >&5
7422 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7423 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7424 echo $ac_n "(cached) $ac_c" 1>&6
7425 else
7428 ac_ext=C
7429 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7430 ac_cpp='$CXXCPP $CPPFLAGS'
7431 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7432 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7433 cross_compiling=$ac_cv_prog_cxx_cross
7435 cat > conftest.$ac_ext <<EOF
7436 #line 7437 "configure"
7437 #include "confdefs.h"
7438 #include <math.h>
7439 #ifdef HAVE_IEEEFP_H
7440 #include <ieeefp.h>
7441 #endif
7443 int main() {
7444 fpclass(0);
7445 ; return 0; }
7447 if { (eval echo configure:7448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7448 rm -rf conftest*
7449 glibcpp_cv_func_fpclass_use=yes
7450 else
7451 echo "configure: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7453 rm -rf conftest*
7454 glibcpp_cv_func_fpclass_use=no
7456 rm -f conftest*
7457 ac_ext=c
7458 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7459 ac_cpp='$CPP $CPPFLAGS'
7460 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7461 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7462 cross_compiling=$ac_cv_prog_cc_cross
7468 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7470 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7471 for ac_func in fpclass
7473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7474 echo "configure:7475: checking for $ac_func" >&5
7475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7476 echo $ac_n "(cached) $ac_c" 1>&6
7477 else
7478 cat > conftest.$ac_ext <<EOF
7479 #line 7480 "configure"
7480 #include "confdefs.h"
7481 /* System header to define __stub macros and hopefully few prototypes,
7482 which can conflict with char $ac_func(); below. */
7483 #include <assert.h>
7484 /* Override any gcc2 internal prototype to avoid an error. */
7485 /* We use char because int might match the return type of a gcc2
7486 builtin and then its argument prototype would still apply. */
7487 char $ac_func();
7489 int main() {
7491 /* The GNU C library defines this for functions which it implements
7492 to always fail with ENOSYS. Some functions are actually named
7493 something starting with __ and the normal name is an alias. */
7494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7495 choke me
7496 #else
7497 $ac_func();
7498 #endif
7500 ; return 0; }
7502 if { (eval echo configure:7503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7503 rm -rf conftest*
7504 eval "ac_cv_func_$ac_func=yes"
7505 else
7506 echo "configure: failed program was:" >&5
7507 cat conftest.$ac_ext >&5
7508 rm -rf conftest*
7509 eval "ac_cv_func_$ac_func=no"
7511 rm -f conftest*
7514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7515 echo "$ac_t""yes" 1>&6
7516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7517 cat >> confdefs.h <<EOF
7518 #define $ac_tr_func 1
7521 else
7522 echo "$ac_t""no" 1>&6
7524 done
7526 else
7528 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7529 echo "configure:7530: checking for _fpclass declaration" >&5
7530 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7531 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7532 echo $ac_n "(cached) $ac_c" 1>&6
7533 else
7536 ac_ext=C
7537 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7538 ac_cpp='$CXXCPP $CPPFLAGS'
7539 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7540 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7541 cross_compiling=$ac_cv_prog_cxx_cross
7543 cat > conftest.$ac_ext <<EOF
7544 #line 7545 "configure"
7545 #include "confdefs.h"
7546 #include <math.h>
7547 #ifdef HAVE_IEEEFP_H
7548 #include <ieeefp.h>
7549 #endif
7551 int main() {
7552 _fpclass(0);
7553 ; return 0; }
7555 if { (eval echo configure:7556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7556 rm -rf conftest*
7557 glibcpp_cv_func__fpclass_use=yes
7558 else
7559 echo "configure: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7561 rm -rf conftest*
7562 glibcpp_cv_func__fpclass_use=no
7564 rm -f conftest*
7565 ac_ext=c
7566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7567 ac_cpp='$CPP $CPPFLAGS'
7568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7570 cross_compiling=$ac_cv_prog_cc_cross
7576 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7578 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7579 for ac_func in _fpclass
7581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7582 echo "configure:7583: checking for $ac_func" >&5
7583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7585 else
7586 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure"
7588 #include "confdefs.h"
7589 /* System header to define __stub macros and hopefully few prototypes,
7590 which can conflict with char $ac_func(); below. */
7591 #include <assert.h>
7592 /* Override any gcc2 internal prototype to avoid an error. */
7593 /* We use char because int might match the return type of a gcc2
7594 builtin and then its argument prototype would still apply. */
7595 char $ac_func();
7597 int main() {
7599 /* The GNU C library defines this for functions which it implements
7600 to always fail with ENOSYS. Some functions are actually named
7601 something starting with __ and the normal name is an alias. */
7602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7603 choke me
7604 #else
7605 $ac_func();
7606 #endif
7608 ; return 0; }
7610 if { (eval echo configure:7611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7611 rm -rf conftest*
7612 eval "ac_cv_func_$ac_func=yes"
7613 else
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7616 rm -rf conftest*
7617 eval "ac_cv_func_$ac_func=no"
7619 rm -f conftest*
7622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7623 echo "$ac_t""yes" 1>&6
7624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7625 cat >> confdefs.h <<EOF
7626 #define $ac_tr_func 1
7629 else
7630 echo "$ac_t""no" 1>&6
7632 done
7639 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7640 echo "configure:7641: checking for qfpclass declaration" >&5
7641 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7642 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7643 echo $ac_n "(cached) $ac_c" 1>&6
7644 else
7647 ac_ext=C
7648 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7649 ac_cpp='$CXXCPP $CPPFLAGS'
7650 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7651 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7652 cross_compiling=$ac_cv_prog_cxx_cross
7654 cat > conftest.$ac_ext <<EOF
7655 #line 7656 "configure"
7656 #include "confdefs.h"
7657 #include <math.h>
7658 #ifdef HAVE_IEEEFP_H
7659 #include <ieeefp.h>
7660 #endif
7662 int main() {
7663 qfpclass(0);
7664 ; return 0; }
7666 if { (eval echo configure:7667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7667 rm -rf conftest*
7668 glibcpp_cv_func_qfpclass_use=yes
7669 else
7670 echo "configure: failed program was:" >&5
7671 cat conftest.$ac_ext >&5
7672 rm -rf conftest*
7673 glibcpp_cv_func_qfpclass_use=no
7675 rm -f conftest*
7676 ac_ext=c
7677 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7678 ac_cpp='$CPP $CPPFLAGS'
7679 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7680 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7681 cross_compiling=$ac_cv_prog_cc_cross
7687 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7689 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7690 for ac_func in qfpclass
7692 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7693 echo "configure:7694: checking for $ac_func" >&5
7694 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7695 echo $ac_n "(cached) $ac_c" 1>&6
7696 else
7697 cat > conftest.$ac_ext <<EOF
7698 #line 7699 "configure"
7699 #include "confdefs.h"
7700 /* System header to define __stub macros and hopefully few prototypes,
7701 which can conflict with char $ac_func(); below. */
7702 #include <assert.h>
7703 /* Override any gcc2 internal prototype to avoid an error. */
7704 /* We use char because int might match the return type of a gcc2
7705 builtin and then its argument prototype would still apply. */
7706 char $ac_func();
7708 int main() {
7710 /* The GNU C library defines this for functions which it implements
7711 to always fail with ENOSYS. Some functions are actually named
7712 something starting with __ and the normal name is an alias. */
7713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7714 choke me
7715 #else
7716 $ac_func();
7717 #endif
7719 ; return 0; }
7721 if { (eval echo configure:7722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7722 rm -rf conftest*
7723 eval "ac_cv_func_$ac_func=yes"
7724 else
7725 echo "configure: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7727 rm -rf conftest*
7728 eval "ac_cv_func_$ac_func=no"
7730 rm -f conftest*
7733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7734 echo "$ac_t""yes" 1>&6
7735 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7736 cat >> confdefs.h <<EOF
7737 #define $ac_tr_func 1
7740 else
7741 echo "$ac_t""no" 1>&6
7743 done
7745 else
7747 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7748 echo "configure:7749: checking for _qfpclass declaration" >&5
7749 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7750 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7751 echo $ac_n "(cached) $ac_c" 1>&6
7752 else
7755 ac_ext=C
7756 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7757 ac_cpp='$CXXCPP $CPPFLAGS'
7758 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7759 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7760 cross_compiling=$ac_cv_prog_cxx_cross
7762 cat > conftest.$ac_ext <<EOF
7763 #line 7764 "configure"
7764 #include "confdefs.h"
7765 #include <math.h>
7766 #ifdef HAVE_IEEEFP_H
7767 #include <ieeefp.h>
7768 #endif
7770 int main() {
7771 _qfpclass(0);
7772 ; return 0; }
7774 if { (eval echo configure:7775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7775 rm -rf conftest*
7776 glibcpp_cv_func__qfpclass_use=yes
7777 else
7778 echo "configure: failed program was:" >&5
7779 cat conftest.$ac_ext >&5
7780 rm -rf conftest*
7781 glibcpp_cv_func__qfpclass_use=no
7783 rm -f conftest*
7784 ac_ext=c
7785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7786 ac_cpp='$CPP $CPPFLAGS'
7787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7789 cross_compiling=$ac_cv_prog_cc_cross
7795 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7797 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7798 for ac_func in _qfpclass
7800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7801 echo "configure:7802: checking for $ac_func" >&5
7802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7803 echo $ac_n "(cached) $ac_c" 1>&6
7804 else
7805 cat > conftest.$ac_ext <<EOF
7806 #line 7807 "configure"
7807 #include "confdefs.h"
7808 /* System header to define __stub macros and hopefully few prototypes,
7809 which can conflict with char $ac_func(); below. */
7810 #include <assert.h>
7811 /* Override any gcc2 internal prototype to avoid an error. */
7812 /* We use char because int might match the return type of a gcc2
7813 builtin and then its argument prototype would still apply. */
7814 char $ac_func();
7816 int main() {
7818 /* The GNU C library defines this for functions which it implements
7819 to always fail with ENOSYS. Some functions are actually named
7820 something starting with __ and the normal name is an alias. */
7821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7822 choke me
7823 #else
7824 $ac_func();
7825 #endif
7827 ; return 0; }
7829 if { (eval echo configure:7830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7830 rm -rf conftest*
7831 eval "ac_cv_func_$ac_func=yes"
7832 else
7833 echo "configure: failed program was:" >&5
7834 cat conftest.$ac_ext >&5
7835 rm -rf conftest*
7836 eval "ac_cv_func_$ac_func=no"
7838 rm -f conftest*
7841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7842 echo "$ac_t""yes" 1>&6
7843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7844 cat >> confdefs.h <<EOF
7845 #define $ac_tr_func 1
7848 else
7849 echo "$ac_t""no" 1>&6
7851 done
7858 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
7859 echo "configure:7860: checking for float trig functions" >&5
7860 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7862 else
7865 ac_ext=C
7866 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7867 ac_cpp='$CXXCPP $CPPFLAGS'
7868 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7869 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7870 cross_compiling=$ac_cv_prog_cxx_cross
7872 cat > conftest.$ac_ext <<EOF
7873 #line 7874 "configure"
7874 #include "confdefs.h"
7875 #include <math.h>
7876 int main() {
7877 `for x in acosf asinf atanf \
7878 cosf sinf tanf \
7879 coshf sinhf tanhf; do echo "$x (0);"; done`
7880 ; return 0; }
7882 if { (eval echo configure:7883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7883 rm -rf conftest*
7884 glibcpp_cv_func_float_trig_use=yes
7885 else
7886 echo "configure: failed program was:" >&5
7887 cat conftest.$ac_ext >&5
7888 rm -rf conftest*
7889 glibcpp_cv_func_float_trig_use=no
7891 rm -f conftest*
7892 ac_ext=c
7893 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7894 ac_cpp='$CPP $CPPFLAGS'
7895 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7896 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7897 cross_compiling=$ac_cv_prog_cc_cross
7901 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
7902 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
7903 for ac_func in acosf asinf atanf \
7904 cosf sinf tanf \
7905 coshf sinhf tanhf
7907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7908 echo "configure:7909: checking for $ac_func" >&5
7909 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7910 echo $ac_n "(cached) $ac_c" 1>&6
7911 else
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7915 /* System header to define __stub macros and hopefully few prototypes,
7916 which can conflict with char $ac_func(); below. */
7917 #include <assert.h>
7918 /* Override any gcc2 internal prototype to avoid an error. */
7919 /* We use char because int might match the return type of a gcc2
7920 builtin and then its argument prototype would still apply. */
7921 char $ac_func();
7923 int main() {
7925 /* The GNU C library defines this for functions which it implements
7926 to always fail with ENOSYS. Some functions are actually named
7927 something starting with __ and the normal name is an alias. */
7928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7929 choke me
7930 #else
7931 $ac_func();
7932 #endif
7934 ; return 0; }
7936 if { (eval echo configure:7937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7937 rm -rf conftest*
7938 eval "ac_cv_func_$ac_func=yes"
7939 else
7940 echo "configure: failed program was:" >&5
7941 cat conftest.$ac_ext >&5
7942 rm -rf conftest*
7943 eval "ac_cv_func_$ac_func=no"
7945 rm -f conftest*
7948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7949 echo "$ac_t""yes" 1>&6
7950 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7951 cat >> confdefs.h <<EOF
7952 #define $ac_tr_func 1
7955 else
7956 echo "$ac_t""no" 1>&6
7958 done
7963 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
7964 echo "configure:7965: checking for float round functions" >&5
7965 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
7966 echo $ac_n "(cached) $ac_c" 1>&6
7967 else
7970 ac_ext=C
7971 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7972 ac_cpp='$CXXCPP $CPPFLAGS'
7973 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7974 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7975 cross_compiling=$ac_cv_prog_cxx_cross
7977 cat > conftest.$ac_ext <<EOF
7978 #line 7979 "configure"
7979 #include "confdefs.h"
7980 #include <math.h>
7981 int main() {
7982 `for x in ceilf floorf; do echo "$x (0);"; done`
7983 ; return 0; }
7985 if { (eval echo configure:7986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7986 rm -rf conftest*
7987 glibcpp_cv_func_float_round_use=yes
7988 else
7989 echo "configure: failed program was:" >&5
7990 cat conftest.$ac_ext >&5
7991 rm -rf conftest*
7992 glibcpp_cv_func_float_round_use=no
7994 rm -f conftest*
7995 ac_ext=c
7996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7997 ac_cpp='$CPP $CPPFLAGS'
7998 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7999 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8000 cross_compiling=$ac_cv_prog_cc_cross
8004 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8005 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8006 for ac_func in ceilf floorf
8008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8009 echo "configure:8010: checking for $ac_func" >&5
8010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8012 else
8013 cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8016 /* System header to define __stub macros and hopefully few prototypes,
8017 which can conflict with char $ac_func(); below. */
8018 #include <assert.h>
8019 /* Override any gcc2 internal prototype to avoid an error. */
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8022 char $ac_func();
8024 int main() {
8026 /* The GNU C library defines this for functions which it implements
8027 to always fail with ENOSYS. Some functions are actually named
8028 something starting with __ and the normal name is an alias. */
8029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8030 choke me
8031 #else
8032 $ac_func();
8033 #endif
8035 ; return 0; }
8037 if { (eval echo configure:8038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8038 rm -rf conftest*
8039 eval "ac_cv_func_$ac_func=yes"
8040 else
8041 echo "configure: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8043 rm -rf conftest*
8044 eval "ac_cv_func_$ac_func=no"
8046 rm -f conftest*
8049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8050 echo "$ac_t""yes" 1>&6
8051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8052 cat >> confdefs.h <<EOF
8053 #define $ac_tr_func 1
8056 else
8057 echo "$ac_t""no" 1>&6
8059 done
8065 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8066 echo "configure:8067: checking for isnanf declaration" >&5
8067 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8068 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8069 echo $ac_n "(cached) $ac_c" 1>&6
8070 else
8073 ac_ext=C
8074 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8075 ac_cpp='$CXXCPP $CPPFLAGS'
8076 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8077 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8078 cross_compiling=$ac_cv_prog_cxx_cross
8080 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure"
8082 #include "confdefs.h"
8083 #include <math.h>
8084 #ifdef HAVE_IEEEFP_H
8085 #include <ieeefp.h>
8086 #endif
8088 int main() {
8089 isnanf(0);
8090 ; return 0; }
8092 if { (eval echo configure:8093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8093 rm -rf conftest*
8094 glibcpp_cv_func_isnanf_use=yes
8095 else
8096 echo "configure: failed program was:" >&5
8097 cat conftest.$ac_ext >&5
8098 rm -rf conftest*
8099 glibcpp_cv_func_isnanf_use=no
8101 rm -f conftest*
8102 ac_ext=c
8103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8104 ac_cpp='$CPP $CPPFLAGS'
8105 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8106 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8107 cross_compiling=$ac_cv_prog_cc_cross
8113 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8115 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8116 for ac_func in isnanf
8118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8119 echo "configure:8120: checking for $ac_func" >&5
8120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8121 echo $ac_n "(cached) $ac_c" 1>&6
8122 else
8123 cat > conftest.$ac_ext <<EOF
8124 #line 8125 "configure"
8125 #include "confdefs.h"
8126 /* System header to define __stub macros and hopefully few prototypes,
8127 which can conflict with char $ac_func(); below. */
8128 #include <assert.h>
8129 /* Override any gcc2 internal prototype to avoid an error. */
8130 /* We use char because int might match the return type of a gcc2
8131 builtin and then its argument prototype would still apply. */
8132 char $ac_func();
8134 int main() {
8136 /* The GNU C library defines this for functions which it implements
8137 to always fail with ENOSYS. Some functions are actually named
8138 something starting with __ and the normal name is an alias. */
8139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8140 choke me
8141 #else
8142 $ac_func();
8143 #endif
8145 ; return 0; }
8147 if { (eval echo configure:8148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8148 rm -rf conftest*
8149 eval "ac_cv_func_$ac_func=yes"
8150 else
8151 echo "configure: failed program was:" >&5
8152 cat conftest.$ac_ext >&5
8153 rm -rf conftest*
8154 eval "ac_cv_func_$ac_func=no"
8156 rm -f conftest*
8159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8160 echo "$ac_t""yes" 1>&6
8161 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8162 cat >> confdefs.h <<EOF
8163 #define $ac_tr_func 1
8166 else
8167 echo "$ac_t""no" 1>&6
8169 done
8171 else
8173 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8174 echo "configure:8175: checking for _isnanf declaration" >&5
8175 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8176 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8177 echo $ac_n "(cached) $ac_c" 1>&6
8178 else
8181 ac_ext=C
8182 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8183 ac_cpp='$CXXCPP $CPPFLAGS'
8184 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8185 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8186 cross_compiling=$ac_cv_prog_cxx_cross
8188 cat > conftest.$ac_ext <<EOF
8189 #line 8190 "configure"
8190 #include "confdefs.h"
8191 #include <math.h>
8192 #ifdef HAVE_IEEEFP_H
8193 #include <ieeefp.h>
8194 #endif
8196 int main() {
8197 _isnanf(0);
8198 ; return 0; }
8200 if { (eval echo configure:8201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8201 rm -rf conftest*
8202 glibcpp_cv_func__isnanf_use=yes
8203 else
8204 echo "configure: failed program was:" >&5
8205 cat conftest.$ac_ext >&5
8206 rm -rf conftest*
8207 glibcpp_cv_func__isnanf_use=no
8209 rm -f conftest*
8210 ac_ext=c
8211 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8212 ac_cpp='$CPP $CPPFLAGS'
8213 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8214 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8215 cross_compiling=$ac_cv_prog_cc_cross
8221 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8223 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8224 for ac_func in _isnanf
8226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8227 echo "configure:8228: checking for $ac_func" >&5
8228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8229 echo $ac_n "(cached) $ac_c" 1>&6
8230 else
8231 cat > conftest.$ac_ext <<EOF
8232 #line 8233 "configure"
8233 #include "confdefs.h"
8234 /* System header to define __stub macros and hopefully few prototypes,
8235 which can conflict with char $ac_func(); below. */
8236 #include <assert.h>
8237 /* Override any gcc2 internal prototype to avoid an error. */
8238 /* We use char because int might match the return type of a gcc2
8239 builtin and then its argument prototype would still apply. */
8240 char $ac_func();
8242 int main() {
8244 /* The GNU C library defines this for functions which it implements
8245 to always fail with ENOSYS. Some functions are actually named
8246 something starting with __ and the normal name is an alias. */
8247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8248 choke me
8249 #else
8250 $ac_func();
8251 #endif
8253 ; return 0; }
8255 if { (eval echo configure:8256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8256 rm -rf conftest*
8257 eval "ac_cv_func_$ac_func=yes"
8258 else
8259 echo "configure: failed program was:" >&5
8260 cat conftest.$ac_ext >&5
8261 rm -rf conftest*
8262 eval "ac_cv_func_$ac_func=no"
8264 rm -f conftest*
8267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8268 echo "$ac_t""yes" 1>&6
8269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8270 cat >> confdefs.h <<EOF
8271 #define $ac_tr_func 1
8274 else
8275 echo "$ac_t""no" 1>&6
8277 done
8284 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8285 echo "configure:8286: checking for isinff declaration" >&5
8286 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8287 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8288 echo $ac_n "(cached) $ac_c" 1>&6
8289 else
8292 ac_ext=C
8293 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8294 ac_cpp='$CXXCPP $CPPFLAGS'
8295 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8296 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8297 cross_compiling=$ac_cv_prog_cxx_cross
8299 cat > conftest.$ac_ext <<EOF
8300 #line 8301 "configure"
8301 #include "confdefs.h"
8302 #include <math.h>
8303 #ifdef HAVE_IEEEFP_H
8304 #include <ieeefp.h>
8305 #endif
8307 int main() {
8308 isinff(0);
8309 ; return 0; }
8311 if { (eval echo configure:8312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8312 rm -rf conftest*
8313 glibcpp_cv_func_isinff_use=yes
8314 else
8315 echo "configure: failed program was:" >&5
8316 cat conftest.$ac_ext >&5
8317 rm -rf conftest*
8318 glibcpp_cv_func_isinff_use=no
8320 rm -f conftest*
8321 ac_ext=c
8322 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8323 ac_cpp='$CPP $CPPFLAGS'
8324 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8325 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8326 cross_compiling=$ac_cv_prog_cc_cross
8332 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8334 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8335 for ac_func in isinff
8337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8338 echo "configure:8339: checking for $ac_func" >&5
8339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8340 echo $ac_n "(cached) $ac_c" 1>&6
8341 else
8342 cat > conftest.$ac_ext <<EOF
8343 #line 8344 "configure"
8344 #include "confdefs.h"
8345 /* System header to define __stub macros and hopefully few prototypes,
8346 which can conflict with char $ac_func(); below. */
8347 #include <assert.h>
8348 /* Override any gcc2 internal prototype to avoid an error. */
8349 /* We use char because int might match the return type of a gcc2
8350 builtin and then its argument prototype would still apply. */
8351 char $ac_func();
8353 int main() {
8355 /* The GNU C library defines this for functions which it implements
8356 to always fail with ENOSYS. Some functions are actually named
8357 something starting with __ and the normal name is an alias. */
8358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8359 choke me
8360 #else
8361 $ac_func();
8362 #endif
8364 ; return 0; }
8366 if { (eval echo configure:8367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8367 rm -rf conftest*
8368 eval "ac_cv_func_$ac_func=yes"
8369 else
8370 echo "configure: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8372 rm -rf conftest*
8373 eval "ac_cv_func_$ac_func=no"
8375 rm -f conftest*
8378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8379 echo "$ac_t""yes" 1>&6
8380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8381 cat >> confdefs.h <<EOF
8382 #define $ac_tr_func 1
8385 else
8386 echo "$ac_t""no" 1>&6
8388 done
8390 else
8392 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8393 echo "configure:8394: checking for _isinff declaration" >&5
8394 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8395 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8396 echo $ac_n "(cached) $ac_c" 1>&6
8397 else
8400 ac_ext=C
8401 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8402 ac_cpp='$CXXCPP $CPPFLAGS'
8403 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8404 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8405 cross_compiling=$ac_cv_prog_cxx_cross
8407 cat > conftest.$ac_ext <<EOF
8408 #line 8409 "configure"
8409 #include "confdefs.h"
8410 #include <math.h>
8411 #ifdef HAVE_IEEEFP_H
8412 #include <ieeefp.h>
8413 #endif
8415 int main() {
8416 _isinff(0);
8417 ; return 0; }
8419 if { (eval echo configure:8420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8420 rm -rf conftest*
8421 glibcpp_cv_func__isinff_use=yes
8422 else
8423 echo "configure: failed program was:" >&5
8424 cat conftest.$ac_ext >&5
8425 rm -rf conftest*
8426 glibcpp_cv_func__isinff_use=no
8428 rm -f conftest*
8429 ac_ext=c
8430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8431 ac_cpp='$CPP $CPPFLAGS'
8432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8434 cross_compiling=$ac_cv_prog_cc_cross
8440 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8442 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8443 for ac_func in _isinff
8445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8446 echo "configure:8447: checking for $ac_func" >&5
8447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8448 echo $ac_n "(cached) $ac_c" 1>&6
8449 else
8450 cat > conftest.$ac_ext <<EOF
8451 #line 8452 "configure"
8452 #include "confdefs.h"
8453 /* System header to define __stub macros and hopefully few prototypes,
8454 which can conflict with char $ac_func(); below. */
8455 #include <assert.h>
8456 /* Override any gcc2 internal prototype to avoid an error. */
8457 /* We use char because int might match the return type of a gcc2
8458 builtin and then its argument prototype would still apply. */
8459 char $ac_func();
8461 int main() {
8463 /* The GNU C library defines this for functions which it implements
8464 to always fail with ENOSYS. Some functions are actually named
8465 something starting with __ and the normal name is an alias. */
8466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8467 choke me
8468 #else
8469 $ac_func();
8470 #endif
8472 ; return 0; }
8474 if { (eval echo configure:8475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8475 rm -rf conftest*
8476 eval "ac_cv_func_$ac_func=yes"
8477 else
8478 echo "configure: failed program was:" >&5
8479 cat conftest.$ac_ext >&5
8480 rm -rf conftest*
8481 eval "ac_cv_func_$ac_func=no"
8483 rm -f conftest*
8486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8487 echo "$ac_t""yes" 1>&6
8488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8489 cat >> confdefs.h <<EOF
8490 #define $ac_tr_func 1
8493 else
8494 echo "$ac_t""no" 1>&6
8496 done
8503 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8504 echo "configure:8505: checking for fabsf declaration" >&5
8505 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8506 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8507 echo $ac_n "(cached) $ac_c" 1>&6
8508 else
8511 ac_ext=C
8512 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8513 ac_cpp='$CXXCPP $CPPFLAGS'
8514 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8515 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8516 cross_compiling=$ac_cv_prog_cxx_cross
8518 cat > conftest.$ac_ext <<EOF
8519 #line 8520 "configure"
8520 #include "confdefs.h"
8521 #include <math.h>
8522 #ifdef HAVE_IEEEFP_H
8523 #include <ieeefp.h>
8524 #endif
8526 int main() {
8527 fabsf(0);
8528 ; return 0; }
8530 if { (eval echo configure:8531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8531 rm -rf conftest*
8532 glibcpp_cv_func_fabsf_use=yes
8533 else
8534 echo "configure: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8536 rm -rf conftest*
8537 glibcpp_cv_func_fabsf_use=no
8539 rm -f conftest*
8540 ac_ext=c
8541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8542 ac_cpp='$CPP $CPPFLAGS'
8543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8545 cross_compiling=$ac_cv_prog_cc_cross
8551 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8553 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8554 for ac_func in fabsf
8556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8557 echo "configure:8558: checking for $ac_func" >&5
8558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8559 echo $ac_n "(cached) $ac_c" 1>&6
8560 else
8561 cat > conftest.$ac_ext <<EOF
8562 #line 8563 "configure"
8563 #include "confdefs.h"
8564 /* System header to define __stub macros and hopefully few prototypes,
8565 which can conflict with char $ac_func(); below. */
8566 #include <assert.h>
8567 /* Override any gcc2 internal prototype to avoid an error. */
8568 /* We use char because int might match the return type of a gcc2
8569 builtin and then its argument prototype would still apply. */
8570 char $ac_func();
8572 int main() {
8574 /* The GNU C library defines this for functions which it implements
8575 to always fail with ENOSYS. Some functions are actually named
8576 something starting with __ and the normal name is an alias. */
8577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8578 choke me
8579 #else
8580 $ac_func();
8581 #endif
8583 ; return 0; }
8585 if { (eval echo configure:8586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8586 rm -rf conftest*
8587 eval "ac_cv_func_$ac_func=yes"
8588 else
8589 echo "configure: failed program was:" >&5
8590 cat conftest.$ac_ext >&5
8591 rm -rf conftest*
8592 eval "ac_cv_func_$ac_func=no"
8594 rm -f conftest*
8597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8598 echo "$ac_t""yes" 1>&6
8599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8600 cat >> confdefs.h <<EOF
8601 #define $ac_tr_func 1
8604 else
8605 echo "$ac_t""no" 1>&6
8607 done
8609 else
8611 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
8612 echo "configure:8613: checking for _fabsf declaration" >&5
8613 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
8614 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
8615 echo $ac_n "(cached) $ac_c" 1>&6
8616 else
8619 ac_ext=C
8620 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8621 ac_cpp='$CXXCPP $CPPFLAGS'
8622 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8623 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8624 cross_compiling=$ac_cv_prog_cxx_cross
8626 cat > conftest.$ac_ext <<EOF
8627 #line 8628 "configure"
8628 #include "confdefs.h"
8629 #include <math.h>
8630 #ifdef HAVE_IEEEFP_H
8631 #include <ieeefp.h>
8632 #endif
8634 int main() {
8635 _fabsf(0);
8636 ; return 0; }
8638 if { (eval echo configure:8639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8639 rm -rf conftest*
8640 glibcpp_cv_func__fabsf_use=yes
8641 else
8642 echo "configure: failed program was:" >&5
8643 cat conftest.$ac_ext >&5
8644 rm -rf conftest*
8645 glibcpp_cv_func__fabsf_use=no
8647 rm -f conftest*
8648 ac_ext=c
8649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8650 ac_cpp='$CPP $CPPFLAGS'
8651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8653 cross_compiling=$ac_cv_prog_cc_cross
8659 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
8661 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
8662 for ac_func in _fabsf
8664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8665 echo "configure:8666: checking for $ac_func" >&5
8666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8667 echo $ac_n "(cached) $ac_c" 1>&6
8668 else
8669 cat > conftest.$ac_ext <<EOF
8670 #line 8671 "configure"
8671 #include "confdefs.h"
8672 /* System header to define __stub macros and hopefully few prototypes,
8673 which can conflict with char $ac_func(); below. */
8674 #include <assert.h>
8675 /* Override any gcc2 internal prototype to avoid an error. */
8676 /* We use char because int might match the return type of a gcc2
8677 builtin and then its argument prototype would still apply. */
8678 char $ac_func();
8680 int main() {
8682 /* The GNU C library defines this for functions which it implements
8683 to always fail with ENOSYS. Some functions are actually named
8684 something starting with __ and the normal name is an alias. */
8685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8686 choke me
8687 #else
8688 $ac_func();
8689 #endif
8691 ; return 0; }
8693 if { (eval echo configure:8694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8694 rm -rf conftest*
8695 eval "ac_cv_func_$ac_func=yes"
8696 else
8697 echo "configure: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8699 rm -rf conftest*
8700 eval "ac_cv_func_$ac_func=no"
8702 rm -f conftest*
8705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8706 echo "$ac_t""yes" 1>&6
8707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8708 cat >> confdefs.h <<EOF
8709 #define $ac_tr_func 1
8712 else
8713 echo "$ac_t""no" 1>&6
8715 done
8722 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
8723 echo "configure:8724: checking for fmodf declaration" >&5
8724 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
8725 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
8726 echo $ac_n "(cached) $ac_c" 1>&6
8727 else
8730 ac_ext=C
8731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8732 ac_cpp='$CXXCPP $CPPFLAGS'
8733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8735 cross_compiling=$ac_cv_prog_cxx_cross
8737 cat > conftest.$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8740 #include <math.h>
8741 int main() {
8742 fmodf(0, 0);
8743 ; return 0; }
8745 if { (eval echo configure:8746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8746 rm -rf conftest*
8747 glibcpp_cv_func_fmodf_use=yes
8748 else
8749 echo "configure: failed program was:" >&5
8750 cat conftest.$ac_ext >&5
8751 rm -rf conftest*
8752 glibcpp_cv_func_fmodf_use=no
8754 rm -f conftest*
8755 ac_ext=c
8756 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8757 ac_cpp='$CPP $CPPFLAGS'
8758 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8759 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8760 cross_compiling=$ac_cv_prog_cc_cross
8766 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
8768 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
8769 for ac_func in fmodf
8771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8772 echo "configure:8773: checking for $ac_func" >&5
8773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8774 echo $ac_n "(cached) $ac_c" 1>&6
8775 else
8776 cat > conftest.$ac_ext <<EOF
8777 #line 8778 "configure"
8778 #include "confdefs.h"
8779 /* System header to define __stub macros and hopefully few prototypes,
8780 which can conflict with char $ac_func(); below. */
8781 #include <assert.h>
8782 /* Override any gcc2 internal prototype to avoid an error. */
8783 /* We use char because int might match the return type of a gcc2
8784 builtin and then its argument prototype would still apply. */
8785 char $ac_func();
8787 int main() {
8789 /* The GNU C library defines this for functions which it implements
8790 to always fail with ENOSYS. Some functions are actually named
8791 something starting with __ and the normal name is an alias. */
8792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8793 choke me
8794 #else
8795 $ac_func();
8796 #endif
8798 ; return 0; }
8800 if { (eval echo configure:8801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8801 rm -rf conftest*
8802 eval "ac_cv_func_$ac_func=yes"
8803 else
8804 echo "configure: failed program was:" >&5
8805 cat conftest.$ac_ext >&5
8806 rm -rf conftest*
8807 eval "ac_cv_func_$ac_func=no"
8809 rm -f conftest*
8812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8813 echo "$ac_t""yes" 1>&6
8814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8815 cat >> confdefs.h <<EOF
8816 #define $ac_tr_func 1
8819 else
8820 echo "$ac_t""no" 1>&6
8822 done
8824 else
8826 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
8827 echo "configure:8828: checking for _fmodf declaration" >&5
8828 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
8829 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
8830 echo $ac_n "(cached) $ac_c" 1>&6
8831 else
8834 ac_ext=C
8835 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8836 ac_cpp='$CXXCPP $CPPFLAGS'
8837 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8838 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8839 cross_compiling=$ac_cv_prog_cxx_cross
8841 cat > conftest.$ac_ext <<EOF
8842 #line 8843 "configure"
8843 #include "confdefs.h"
8844 #include <math.h>
8845 int main() {
8846 _fmodf(0, 0);
8847 ; return 0; }
8849 if { (eval echo configure:8850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8850 rm -rf conftest*
8851 glibcpp_cv_func__fmodf_use=yes
8852 else
8853 echo "configure: failed program was:" >&5
8854 cat conftest.$ac_ext >&5
8855 rm -rf conftest*
8856 glibcpp_cv_func__fmodf_use=no
8858 rm -f conftest*
8859 ac_ext=c
8860 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8861 ac_cpp='$CPP $CPPFLAGS'
8862 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8863 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8864 cross_compiling=$ac_cv_prog_cc_cross
8870 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
8872 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
8873 for ac_func in _fmodf
8875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8876 echo "configure:8877: checking for $ac_func" >&5
8877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8878 echo $ac_n "(cached) $ac_c" 1>&6
8879 else
8880 cat > conftest.$ac_ext <<EOF
8881 #line 8882 "configure"
8882 #include "confdefs.h"
8883 /* System header to define __stub macros and hopefully few prototypes,
8884 which can conflict with char $ac_func(); below. */
8885 #include <assert.h>
8886 /* Override any gcc2 internal prototype to avoid an error. */
8887 /* We use char because int might match the return type of a gcc2
8888 builtin and then its argument prototype would still apply. */
8889 char $ac_func();
8891 int main() {
8893 /* The GNU C library defines this for functions which it implements
8894 to always fail with ENOSYS. Some functions are actually named
8895 something starting with __ and the normal name is an alias. */
8896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8897 choke me
8898 #else
8899 $ac_func();
8900 #endif
8902 ; return 0; }
8904 if { (eval echo configure:8905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8905 rm -rf conftest*
8906 eval "ac_cv_func_$ac_func=yes"
8907 else
8908 echo "configure: failed program was:" >&5
8909 cat conftest.$ac_ext >&5
8910 rm -rf conftest*
8911 eval "ac_cv_func_$ac_func=no"
8913 rm -f conftest*
8916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8917 echo "$ac_t""yes" 1>&6
8918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8919 cat >> confdefs.h <<EOF
8920 #define $ac_tr_func 1
8923 else
8924 echo "$ac_t""no" 1>&6
8926 done
8933 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
8934 echo "configure:8935: checking for frexpf declaration" >&5
8935 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
8936 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
8937 echo $ac_n "(cached) $ac_c" 1>&6
8938 else
8941 ac_ext=C
8942 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8943 ac_cpp='$CXXCPP $CPPFLAGS'
8944 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8945 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8946 cross_compiling=$ac_cv_prog_cxx_cross
8948 cat > conftest.$ac_ext <<EOF
8949 #line 8950 "configure"
8950 #include "confdefs.h"
8951 #include <math.h>
8952 int main() {
8953 frexpf(0, 0);
8954 ; return 0; }
8956 if { (eval echo configure:8957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8957 rm -rf conftest*
8958 glibcpp_cv_func_frexpf_use=yes
8959 else
8960 echo "configure: failed program was:" >&5
8961 cat conftest.$ac_ext >&5
8962 rm -rf conftest*
8963 glibcpp_cv_func_frexpf_use=no
8965 rm -f conftest*
8966 ac_ext=c
8967 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8968 ac_cpp='$CPP $CPPFLAGS'
8969 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8970 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8971 cross_compiling=$ac_cv_prog_cc_cross
8977 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
8979 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
8980 for ac_func in frexpf
8982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8983 echo "configure:8984: checking for $ac_func" >&5
8984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
8986 else
8987 cat > conftest.$ac_ext <<EOF
8988 #line 8989 "configure"
8989 #include "confdefs.h"
8990 /* System header to define __stub macros and hopefully few prototypes,
8991 which can conflict with char $ac_func(); below. */
8992 #include <assert.h>
8993 /* Override any gcc2 internal prototype to avoid an error. */
8994 /* We use char because int might match the return type of a gcc2
8995 builtin and then its argument prototype would still apply. */
8996 char $ac_func();
8998 int main() {
9000 /* The GNU C library defines this for functions which it implements
9001 to always fail with ENOSYS. Some functions are actually named
9002 something starting with __ and the normal name is an alias. */
9003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9004 choke me
9005 #else
9006 $ac_func();
9007 #endif
9009 ; return 0; }
9011 if { (eval echo configure:9012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9012 rm -rf conftest*
9013 eval "ac_cv_func_$ac_func=yes"
9014 else
9015 echo "configure: failed program was:" >&5
9016 cat conftest.$ac_ext >&5
9017 rm -rf conftest*
9018 eval "ac_cv_func_$ac_func=no"
9020 rm -f conftest*
9023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9024 echo "$ac_t""yes" 1>&6
9025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9026 cat >> confdefs.h <<EOF
9027 #define $ac_tr_func 1
9030 else
9031 echo "$ac_t""no" 1>&6
9033 done
9035 else
9037 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9038 echo "configure:9039: checking for _frexpf declaration" >&5
9039 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9040 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9041 echo $ac_n "(cached) $ac_c" 1>&6
9042 else
9045 ac_ext=C
9046 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9047 ac_cpp='$CXXCPP $CPPFLAGS'
9048 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9049 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9050 cross_compiling=$ac_cv_prog_cxx_cross
9052 cat > conftest.$ac_ext <<EOF
9053 #line 9054 "configure"
9054 #include "confdefs.h"
9055 #include <math.h>
9056 int main() {
9057 _frexpf(0, 0);
9058 ; return 0; }
9060 if { (eval echo configure:9061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9061 rm -rf conftest*
9062 glibcpp_cv_func__frexpf_use=yes
9063 else
9064 echo "configure: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9066 rm -rf conftest*
9067 glibcpp_cv_func__frexpf_use=no
9069 rm -f conftest*
9070 ac_ext=c
9071 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9072 ac_cpp='$CPP $CPPFLAGS'
9073 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9074 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9075 cross_compiling=$ac_cv_prog_cc_cross
9081 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9083 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9084 for ac_func in _frexpf
9086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9087 echo "configure:9088: checking for $ac_func" >&5
9088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9089 echo $ac_n "(cached) $ac_c" 1>&6
9090 else
9091 cat > conftest.$ac_ext <<EOF
9092 #line 9093 "configure"
9093 #include "confdefs.h"
9094 /* System header to define __stub macros and hopefully few prototypes,
9095 which can conflict with char $ac_func(); below. */
9096 #include <assert.h>
9097 /* Override any gcc2 internal prototype to avoid an error. */
9098 /* We use char because int might match the return type of a gcc2
9099 builtin and then its argument prototype would still apply. */
9100 char $ac_func();
9102 int main() {
9104 /* The GNU C library defines this for functions which it implements
9105 to always fail with ENOSYS. Some functions are actually named
9106 something starting with __ and the normal name is an alias. */
9107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9108 choke me
9109 #else
9110 $ac_func();
9111 #endif
9113 ; return 0; }
9115 if { (eval echo configure:9116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9116 rm -rf conftest*
9117 eval "ac_cv_func_$ac_func=yes"
9118 else
9119 echo "configure: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9121 rm -rf conftest*
9122 eval "ac_cv_func_$ac_func=no"
9124 rm -f conftest*
9127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9128 echo "$ac_t""yes" 1>&6
9129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9130 cat >> confdefs.h <<EOF
9131 #define $ac_tr_func 1
9134 else
9135 echo "$ac_t""no" 1>&6
9137 done
9144 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9145 echo "configure:9146: checking for ldexpf declaration" >&5
9146 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9147 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9148 echo $ac_n "(cached) $ac_c" 1>&6
9149 else
9152 ac_ext=C
9153 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9154 ac_cpp='$CXXCPP $CPPFLAGS'
9155 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9156 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9157 cross_compiling=$ac_cv_prog_cxx_cross
9159 cat > conftest.$ac_ext <<EOF
9160 #line 9161 "configure"
9161 #include "confdefs.h"
9162 #include <math.h>
9163 int main() {
9164 ldexpf(0, 0);
9165 ; return 0; }
9167 if { (eval echo configure:9168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9168 rm -rf conftest*
9169 glibcpp_cv_func_ldexpf_use=yes
9170 else
9171 echo "configure: failed program was:" >&5
9172 cat conftest.$ac_ext >&5
9173 rm -rf conftest*
9174 glibcpp_cv_func_ldexpf_use=no
9176 rm -f conftest*
9177 ac_ext=c
9178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9179 ac_cpp='$CPP $CPPFLAGS'
9180 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9181 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9182 cross_compiling=$ac_cv_prog_cc_cross
9188 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9190 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9191 for ac_func in ldexpf
9193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9194 echo "configure:9195: checking for $ac_func" >&5
9195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9196 echo $ac_n "(cached) $ac_c" 1>&6
9197 else
9198 cat > conftest.$ac_ext <<EOF
9199 #line 9200 "configure"
9200 #include "confdefs.h"
9201 /* System header to define __stub macros and hopefully few prototypes,
9202 which can conflict with char $ac_func(); below. */
9203 #include <assert.h>
9204 /* Override any gcc2 internal prototype to avoid an error. */
9205 /* We use char because int might match the return type of a gcc2
9206 builtin and then its argument prototype would still apply. */
9207 char $ac_func();
9209 int main() {
9211 /* The GNU C library defines this for functions which it implements
9212 to always fail with ENOSYS. Some functions are actually named
9213 something starting with __ and the normal name is an alias. */
9214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9215 choke me
9216 #else
9217 $ac_func();
9218 #endif
9220 ; return 0; }
9222 if { (eval echo configure:9223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9223 rm -rf conftest*
9224 eval "ac_cv_func_$ac_func=yes"
9225 else
9226 echo "configure: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9228 rm -rf conftest*
9229 eval "ac_cv_func_$ac_func=no"
9231 rm -f conftest*
9234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9235 echo "$ac_t""yes" 1>&6
9236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9237 cat >> confdefs.h <<EOF
9238 #define $ac_tr_func 1
9241 else
9242 echo "$ac_t""no" 1>&6
9244 done
9246 else
9248 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9249 echo "configure:9250: checking for _ldexpf declaration" >&5
9250 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9251 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9252 echo $ac_n "(cached) $ac_c" 1>&6
9253 else
9256 ac_ext=C
9257 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9258 ac_cpp='$CXXCPP $CPPFLAGS'
9259 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9260 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9261 cross_compiling=$ac_cv_prog_cxx_cross
9263 cat > conftest.$ac_ext <<EOF
9264 #line 9265 "configure"
9265 #include "confdefs.h"
9266 #include <math.h>
9267 int main() {
9268 _ldexpf(0, 0);
9269 ; return 0; }
9271 if { (eval echo configure:9272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9272 rm -rf conftest*
9273 glibcpp_cv_func__ldexpf_use=yes
9274 else
9275 echo "configure: failed program was:" >&5
9276 cat conftest.$ac_ext >&5
9277 rm -rf conftest*
9278 glibcpp_cv_func__ldexpf_use=no
9280 rm -f conftest*
9281 ac_ext=c
9282 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9283 ac_cpp='$CPP $CPPFLAGS'
9284 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9285 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9286 cross_compiling=$ac_cv_prog_cc_cross
9292 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9294 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9295 for ac_func in _ldexpf
9297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9298 echo "configure:9299: checking for $ac_func" >&5
9299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9300 echo $ac_n "(cached) $ac_c" 1>&6
9301 else
9302 cat > conftest.$ac_ext <<EOF
9303 #line 9304 "configure"
9304 #include "confdefs.h"
9305 /* System header to define __stub macros and hopefully few prototypes,
9306 which can conflict with char $ac_func(); below. */
9307 #include <assert.h>
9308 /* Override any gcc2 internal prototype to avoid an error. */
9309 /* We use char because int might match the return type of a gcc2
9310 builtin and then its argument prototype would still apply. */
9311 char $ac_func();
9313 int main() {
9315 /* The GNU C library defines this for functions which it implements
9316 to always fail with ENOSYS. Some functions are actually named
9317 something starting with __ and the normal name is an alias. */
9318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9319 choke me
9320 #else
9321 $ac_func();
9322 #endif
9324 ; return 0; }
9326 if { (eval echo configure:9327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9327 rm -rf conftest*
9328 eval "ac_cv_func_$ac_func=yes"
9329 else
9330 echo "configure: failed program was:" >&5
9331 cat conftest.$ac_ext >&5
9332 rm -rf conftest*
9333 eval "ac_cv_func_$ac_func=no"
9335 rm -f conftest*
9338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9339 echo "$ac_t""yes" 1>&6
9340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9341 cat >> confdefs.h <<EOF
9342 #define $ac_tr_func 1
9345 else
9346 echo "$ac_t""no" 1>&6
9348 done
9355 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9356 echo "configure:9357: checking for logf declaration" >&5
9357 if test x${glibcpp_cv_func_logf_use+set} != xset; then
9358 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9359 echo $ac_n "(cached) $ac_c" 1>&6
9360 else
9363 ac_ext=C
9364 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9365 ac_cpp='$CXXCPP $CPPFLAGS'
9366 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9367 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9368 cross_compiling=$ac_cv_prog_cxx_cross
9370 cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9373 #include <math.h>
9374 #ifdef HAVE_IEEEFP_H
9375 #include <ieeefp.h>
9376 #endif
9378 int main() {
9379 logf(0);
9380 ; return 0; }
9382 if { (eval echo configure:9383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9383 rm -rf conftest*
9384 glibcpp_cv_func_logf_use=yes
9385 else
9386 echo "configure: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9388 rm -rf conftest*
9389 glibcpp_cv_func_logf_use=no
9391 rm -f conftest*
9392 ac_ext=c
9393 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9394 ac_cpp='$CPP $CPPFLAGS'
9395 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9396 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9397 cross_compiling=$ac_cv_prog_cc_cross
9403 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
9405 if test x$glibcpp_cv_func_logf_use = x"yes"; then
9406 for ac_func in logf
9408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9409 echo "configure:9410: checking for $ac_func" >&5
9410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
9412 else
9413 cat > conftest.$ac_ext <<EOF
9414 #line 9415 "configure"
9415 #include "confdefs.h"
9416 /* System header to define __stub macros and hopefully few prototypes,
9417 which can conflict with char $ac_func(); below. */
9418 #include <assert.h>
9419 /* Override any gcc2 internal prototype to avoid an error. */
9420 /* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */
9422 char $ac_func();
9424 int main() {
9426 /* The GNU C library defines this for functions which it implements
9427 to always fail with ENOSYS. Some functions are actually named
9428 something starting with __ and the normal name is an alias. */
9429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9430 choke me
9431 #else
9432 $ac_func();
9433 #endif
9435 ; return 0; }
9437 if { (eval echo configure:9438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9438 rm -rf conftest*
9439 eval "ac_cv_func_$ac_func=yes"
9440 else
9441 echo "configure: failed program was:" >&5
9442 cat conftest.$ac_ext >&5
9443 rm -rf conftest*
9444 eval "ac_cv_func_$ac_func=no"
9446 rm -f conftest*
9449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9450 echo "$ac_t""yes" 1>&6
9451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9452 cat >> confdefs.h <<EOF
9453 #define $ac_tr_func 1
9456 else
9457 echo "$ac_t""no" 1>&6
9459 done
9461 else
9463 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
9464 echo "configure:9465: checking for _logf declaration" >&5
9465 if test x${glibcpp_cv_func__logf_use+set} != xset; then
9466 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
9467 echo $ac_n "(cached) $ac_c" 1>&6
9468 else
9471 ac_ext=C
9472 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9473 ac_cpp='$CXXCPP $CPPFLAGS'
9474 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9475 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9476 cross_compiling=$ac_cv_prog_cxx_cross
9478 cat > conftest.$ac_ext <<EOF
9479 #line 9480 "configure"
9480 #include "confdefs.h"
9481 #include <math.h>
9482 #ifdef HAVE_IEEEFP_H
9483 #include <ieeefp.h>
9484 #endif
9486 int main() {
9487 _logf(0);
9488 ; return 0; }
9490 if { (eval echo configure:9491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9491 rm -rf conftest*
9492 glibcpp_cv_func__logf_use=yes
9493 else
9494 echo "configure: failed program was:" >&5
9495 cat conftest.$ac_ext >&5
9496 rm -rf conftest*
9497 glibcpp_cv_func__logf_use=no
9499 rm -f conftest*
9500 ac_ext=c
9501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9502 ac_cpp='$CPP $CPPFLAGS'
9503 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9504 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9505 cross_compiling=$ac_cv_prog_cc_cross
9511 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
9513 if test x$glibcpp_cv_func__logf_use = x"yes"; then
9514 for ac_func in _logf
9516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9517 echo "configure:9518: checking for $ac_func" >&5
9518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9519 echo $ac_n "(cached) $ac_c" 1>&6
9520 else
9521 cat > conftest.$ac_ext <<EOF
9522 #line 9523 "configure"
9523 #include "confdefs.h"
9524 /* System header to define __stub macros and hopefully few prototypes,
9525 which can conflict with char $ac_func(); below. */
9526 #include <assert.h>
9527 /* Override any gcc2 internal prototype to avoid an error. */
9528 /* We use char because int might match the return type of a gcc2
9529 builtin and then its argument prototype would still apply. */
9530 char $ac_func();
9532 int main() {
9534 /* The GNU C library defines this for functions which it implements
9535 to always fail with ENOSYS. Some functions are actually named
9536 something starting with __ and the normal name is an alias. */
9537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9538 choke me
9539 #else
9540 $ac_func();
9541 #endif
9543 ; return 0; }
9545 if { (eval echo configure:9546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9546 rm -rf conftest*
9547 eval "ac_cv_func_$ac_func=yes"
9548 else
9549 echo "configure: failed program was:" >&5
9550 cat conftest.$ac_ext >&5
9551 rm -rf conftest*
9552 eval "ac_cv_func_$ac_func=no"
9554 rm -f conftest*
9557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9558 echo "$ac_t""yes" 1>&6
9559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9560 cat >> confdefs.h <<EOF
9561 #define $ac_tr_func 1
9564 else
9565 echo "$ac_t""no" 1>&6
9567 done
9574 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
9575 echo "configure:9576: checking for log10f declaration" >&5
9576 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
9577 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
9578 echo $ac_n "(cached) $ac_c" 1>&6
9579 else
9582 ac_ext=C
9583 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9584 ac_cpp='$CXXCPP $CPPFLAGS'
9585 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9586 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9587 cross_compiling=$ac_cv_prog_cxx_cross
9589 cat > conftest.$ac_ext <<EOF
9590 #line 9591 "configure"
9591 #include "confdefs.h"
9592 #include <math.h>
9593 #ifdef HAVE_IEEEFP_H
9594 #include <ieeefp.h>
9595 #endif
9597 int main() {
9598 log10f(0);
9599 ; return 0; }
9601 if { (eval echo configure:9602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9602 rm -rf conftest*
9603 glibcpp_cv_func_log10f_use=yes
9604 else
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9607 rm -rf conftest*
9608 glibcpp_cv_func_log10f_use=no
9610 rm -f conftest*
9611 ac_ext=c
9612 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9613 ac_cpp='$CPP $CPPFLAGS'
9614 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9615 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9616 cross_compiling=$ac_cv_prog_cc_cross
9622 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
9624 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
9625 for ac_func in log10f
9627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9628 echo "configure:9629: checking for $ac_func" >&5
9629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9630 echo $ac_n "(cached) $ac_c" 1>&6
9631 else
9632 cat > conftest.$ac_ext <<EOF
9633 #line 9634 "configure"
9634 #include "confdefs.h"
9635 /* System header to define __stub macros and hopefully few prototypes,
9636 which can conflict with char $ac_func(); below. */
9637 #include <assert.h>
9638 /* Override any gcc2 internal prototype to avoid an error. */
9639 /* We use char because int might match the return type of a gcc2
9640 builtin and then its argument prototype would still apply. */
9641 char $ac_func();
9643 int main() {
9645 /* The GNU C library defines this for functions which it implements
9646 to always fail with ENOSYS. Some functions are actually named
9647 something starting with __ and the normal name is an alias. */
9648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9649 choke me
9650 #else
9651 $ac_func();
9652 #endif
9654 ; return 0; }
9656 if { (eval echo configure:9657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9657 rm -rf conftest*
9658 eval "ac_cv_func_$ac_func=yes"
9659 else
9660 echo "configure: failed program was:" >&5
9661 cat conftest.$ac_ext >&5
9662 rm -rf conftest*
9663 eval "ac_cv_func_$ac_func=no"
9665 rm -f conftest*
9668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9669 echo "$ac_t""yes" 1>&6
9670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9671 cat >> confdefs.h <<EOF
9672 #define $ac_tr_func 1
9675 else
9676 echo "$ac_t""no" 1>&6
9678 done
9680 else
9682 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
9683 echo "configure:9684: checking for _log10f declaration" >&5
9684 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
9685 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9687 else
9690 ac_ext=C
9691 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9692 ac_cpp='$CXXCPP $CPPFLAGS'
9693 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9694 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9695 cross_compiling=$ac_cv_prog_cxx_cross
9697 cat > conftest.$ac_ext <<EOF
9698 #line 9699 "configure"
9699 #include "confdefs.h"
9700 #include <math.h>
9701 #ifdef HAVE_IEEEFP_H
9702 #include <ieeefp.h>
9703 #endif
9705 int main() {
9706 _log10f(0);
9707 ; return 0; }
9709 if { (eval echo configure:9710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9710 rm -rf conftest*
9711 glibcpp_cv_func__log10f_use=yes
9712 else
9713 echo "configure: failed program was:" >&5
9714 cat conftest.$ac_ext >&5
9715 rm -rf conftest*
9716 glibcpp_cv_func__log10f_use=no
9718 rm -f conftest*
9719 ac_ext=c
9720 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9721 ac_cpp='$CPP $CPPFLAGS'
9722 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9723 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9724 cross_compiling=$ac_cv_prog_cc_cross
9730 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
9732 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
9733 for ac_func in _log10f
9735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9736 echo "configure:9737: checking for $ac_func" >&5
9737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9738 echo $ac_n "(cached) $ac_c" 1>&6
9739 else
9740 cat > conftest.$ac_ext <<EOF
9741 #line 9742 "configure"
9742 #include "confdefs.h"
9743 /* System header to define __stub macros and hopefully few prototypes,
9744 which can conflict with char $ac_func(); below. */
9745 #include <assert.h>
9746 /* Override any gcc2 internal prototype to avoid an error. */
9747 /* We use char because int might match the return type of a gcc2
9748 builtin and then its argument prototype would still apply. */
9749 char $ac_func();
9751 int main() {
9753 /* The GNU C library defines this for functions which it implements
9754 to always fail with ENOSYS. Some functions are actually named
9755 something starting with __ and the normal name is an alias. */
9756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9757 choke me
9758 #else
9759 $ac_func();
9760 #endif
9762 ; return 0; }
9764 if { (eval echo configure:9765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9765 rm -rf conftest*
9766 eval "ac_cv_func_$ac_func=yes"
9767 else
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9770 rm -rf conftest*
9771 eval "ac_cv_func_$ac_func=no"
9773 rm -f conftest*
9776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9777 echo "$ac_t""yes" 1>&6
9778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9779 cat >> confdefs.h <<EOF
9780 #define $ac_tr_func 1
9783 else
9784 echo "$ac_t""no" 1>&6
9786 done
9793 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
9794 echo "configure:9795: checking for modff declaration" >&5
9795 if test x${glibcpp_cv_func_modff_use+set} != xset; then
9796 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
9797 echo $ac_n "(cached) $ac_c" 1>&6
9798 else
9801 ac_ext=C
9802 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9803 ac_cpp='$CXXCPP $CPPFLAGS'
9804 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9805 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9806 cross_compiling=$ac_cv_prog_cxx_cross
9808 cat > conftest.$ac_ext <<EOF
9809 #line 9810 "configure"
9810 #include "confdefs.h"
9811 #include <math.h>
9812 int main() {
9813 modff(0, 0);
9814 ; return 0; }
9816 if { (eval echo configure:9817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9817 rm -rf conftest*
9818 glibcpp_cv_func_modff_use=yes
9819 else
9820 echo "configure: failed program was:" >&5
9821 cat conftest.$ac_ext >&5
9822 rm -rf conftest*
9823 glibcpp_cv_func_modff_use=no
9825 rm -f conftest*
9826 ac_ext=c
9827 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9828 ac_cpp='$CPP $CPPFLAGS'
9829 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9830 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9831 cross_compiling=$ac_cv_prog_cc_cross
9837 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
9839 if test x$glibcpp_cv_func_modff_use = x"yes"; then
9840 for ac_func in modff
9842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9843 echo "configure:9844: checking for $ac_func" >&5
9844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9845 echo $ac_n "(cached) $ac_c" 1>&6
9846 else
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 /* System header to define __stub macros and hopefully few prototypes,
9851 which can conflict with char $ac_func(); below. */
9852 #include <assert.h>
9853 /* Override any gcc2 internal prototype to avoid an error. */
9854 /* We use char because int might match the return type of a gcc2
9855 builtin and then its argument prototype would still apply. */
9856 char $ac_func();
9858 int main() {
9860 /* The GNU C library defines this for functions which it implements
9861 to always fail with ENOSYS. Some functions are actually named
9862 something starting with __ and the normal name is an alias. */
9863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9864 choke me
9865 #else
9866 $ac_func();
9867 #endif
9869 ; return 0; }
9871 if { (eval echo configure:9872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9872 rm -rf conftest*
9873 eval "ac_cv_func_$ac_func=yes"
9874 else
9875 echo "configure: failed program was:" >&5
9876 cat conftest.$ac_ext >&5
9877 rm -rf conftest*
9878 eval "ac_cv_func_$ac_func=no"
9880 rm -f conftest*
9883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9884 echo "$ac_t""yes" 1>&6
9885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9886 cat >> confdefs.h <<EOF
9887 #define $ac_tr_func 1
9890 else
9891 echo "$ac_t""no" 1>&6
9893 done
9895 else
9897 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
9898 echo "configure:9899: checking for _modff declaration" >&5
9899 if test x${glibcpp_cv_func__modff_use+set} != xset; then
9900 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
9901 echo $ac_n "(cached) $ac_c" 1>&6
9902 else
9905 ac_ext=C
9906 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9907 ac_cpp='$CXXCPP $CPPFLAGS'
9908 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9909 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9910 cross_compiling=$ac_cv_prog_cxx_cross
9912 cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9915 #include <math.h>
9916 int main() {
9917 _modff(0, 0);
9918 ; return 0; }
9920 if { (eval echo configure:9921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9921 rm -rf conftest*
9922 glibcpp_cv_func__modff_use=yes
9923 else
9924 echo "configure: failed program was:" >&5
9925 cat conftest.$ac_ext >&5
9926 rm -rf conftest*
9927 glibcpp_cv_func__modff_use=no
9929 rm -f conftest*
9930 ac_ext=c
9931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9932 ac_cpp='$CPP $CPPFLAGS'
9933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9935 cross_compiling=$ac_cv_prog_cc_cross
9941 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
9943 if test x$glibcpp_cv_func__modff_use = x"yes"; then
9944 for ac_func in _modff
9946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9947 echo "configure:9948: checking for $ac_func" >&5
9948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9949 echo $ac_n "(cached) $ac_c" 1>&6
9950 else
9951 cat > conftest.$ac_ext <<EOF
9952 #line 9953 "configure"
9953 #include "confdefs.h"
9954 /* System header to define __stub macros and hopefully few prototypes,
9955 which can conflict with char $ac_func(); below. */
9956 #include <assert.h>
9957 /* Override any gcc2 internal prototype to avoid an error. */
9958 /* We use char because int might match the return type of a gcc2
9959 builtin and then its argument prototype would still apply. */
9960 char $ac_func();
9962 int main() {
9964 /* The GNU C library defines this for functions which it implements
9965 to always fail with ENOSYS. Some functions are actually named
9966 something starting with __ and the normal name is an alias. */
9967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9968 choke me
9969 #else
9970 $ac_func();
9971 #endif
9973 ; return 0; }
9975 if { (eval echo configure:9976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9976 rm -rf conftest*
9977 eval "ac_cv_func_$ac_func=yes"
9978 else
9979 echo "configure: failed program was:" >&5
9980 cat conftest.$ac_ext >&5
9981 rm -rf conftest*
9982 eval "ac_cv_func_$ac_func=no"
9984 rm -f conftest*
9987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9988 echo "$ac_t""yes" 1>&6
9989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9990 cat >> confdefs.h <<EOF
9991 #define $ac_tr_func 1
9994 else
9995 echo "$ac_t""no" 1>&6
9997 done
10004 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10005 echo "configure:10006: checking for powf declaration" >&5
10006 if test x${glibcpp_cv_func_powf_use+set} != xset; then
10007 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10008 echo $ac_n "(cached) $ac_c" 1>&6
10009 else
10012 ac_ext=C
10013 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10014 ac_cpp='$CXXCPP $CPPFLAGS'
10015 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10016 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10017 cross_compiling=$ac_cv_prog_cxx_cross
10019 cat > conftest.$ac_ext <<EOF
10020 #line 10021 "configure"
10021 #include "confdefs.h"
10022 #include <math.h>
10023 int main() {
10024 powf(0, 0);
10025 ; return 0; }
10027 if { (eval echo configure:10028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10028 rm -rf conftest*
10029 glibcpp_cv_func_powf_use=yes
10030 else
10031 echo "configure: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10033 rm -rf conftest*
10034 glibcpp_cv_func_powf_use=no
10036 rm -f conftest*
10037 ac_ext=c
10038 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10039 ac_cpp='$CPP $CPPFLAGS'
10040 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10041 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10042 cross_compiling=$ac_cv_prog_cc_cross
10048 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10050 if test x$glibcpp_cv_func_powf_use = x"yes"; then
10051 for ac_func in powf
10053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10054 echo "configure:10055: checking for $ac_func" >&5
10055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10056 echo $ac_n "(cached) $ac_c" 1>&6
10057 else
10058 cat > conftest.$ac_ext <<EOF
10059 #line 10060 "configure"
10060 #include "confdefs.h"
10061 /* System header to define __stub macros and hopefully few prototypes,
10062 which can conflict with char $ac_func(); below. */
10063 #include <assert.h>
10064 /* Override any gcc2 internal prototype to avoid an error. */
10065 /* We use char because int might match the return type of a gcc2
10066 builtin and then its argument prototype would still apply. */
10067 char $ac_func();
10069 int main() {
10071 /* The GNU C library defines this for functions which it implements
10072 to always fail with ENOSYS. Some functions are actually named
10073 something starting with __ and the normal name is an alias. */
10074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10075 choke me
10076 #else
10077 $ac_func();
10078 #endif
10080 ; return 0; }
10082 if { (eval echo configure:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10083 rm -rf conftest*
10084 eval "ac_cv_func_$ac_func=yes"
10085 else
10086 echo "configure: failed program was:" >&5
10087 cat conftest.$ac_ext >&5
10088 rm -rf conftest*
10089 eval "ac_cv_func_$ac_func=no"
10091 rm -f conftest*
10094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10095 echo "$ac_t""yes" 1>&6
10096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10097 cat >> confdefs.h <<EOF
10098 #define $ac_tr_func 1
10101 else
10102 echo "$ac_t""no" 1>&6
10104 done
10106 else
10108 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10109 echo "configure:10110: checking for _powf declaration" >&5
10110 if test x${glibcpp_cv_func__powf_use+set} != xset; then
10111 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10112 echo $ac_n "(cached) $ac_c" 1>&6
10113 else
10116 ac_ext=C
10117 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10118 ac_cpp='$CXXCPP $CPPFLAGS'
10119 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10120 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10121 cross_compiling=$ac_cv_prog_cxx_cross
10123 cat > conftest.$ac_ext <<EOF
10124 #line 10125 "configure"
10125 #include "confdefs.h"
10126 #include <math.h>
10127 int main() {
10128 _powf(0, 0);
10129 ; return 0; }
10131 if { (eval echo configure:10132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10132 rm -rf conftest*
10133 glibcpp_cv_func__powf_use=yes
10134 else
10135 echo "configure: failed program was:" >&5
10136 cat conftest.$ac_ext >&5
10137 rm -rf conftest*
10138 glibcpp_cv_func__powf_use=no
10140 rm -f conftest*
10141 ac_ext=c
10142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10143 ac_cpp='$CPP $CPPFLAGS'
10144 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10145 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10146 cross_compiling=$ac_cv_prog_cc_cross
10152 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10154 if test x$glibcpp_cv_func__powf_use = x"yes"; then
10155 for ac_func in _powf
10157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10158 echo "configure:10159: checking for $ac_func" >&5
10159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
10161 else
10162 cat > conftest.$ac_ext <<EOF
10163 #line 10164 "configure"
10164 #include "confdefs.h"
10165 /* System header to define __stub macros and hopefully few prototypes,
10166 which can conflict with char $ac_func(); below. */
10167 #include <assert.h>
10168 /* Override any gcc2 internal prototype to avoid an error. */
10169 /* We use char because int might match the return type of a gcc2
10170 builtin and then its argument prototype would still apply. */
10171 char $ac_func();
10173 int main() {
10175 /* The GNU C library defines this for functions which it implements
10176 to always fail with ENOSYS. Some functions are actually named
10177 something starting with __ and the normal name is an alias. */
10178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10179 choke me
10180 #else
10181 $ac_func();
10182 #endif
10184 ; return 0; }
10186 if { (eval echo configure:10187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10187 rm -rf conftest*
10188 eval "ac_cv_func_$ac_func=yes"
10189 else
10190 echo "configure: failed program was:" >&5
10191 cat conftest.$ac_ext >&5
10192 rm -rf conftest*
10193 eval "ac_cv_func_$ac_func=no"
10195 rm -f conftest*
10198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10199 echo "$ac_t""yes" 1>&6
10200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10201 cat >> confdefs.h <<EOF
10202 #define $ac_tr_func 1
10205 else
10206 echo "$ac_t""no" 1>&6
10208 done
10215 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10216 echo "configure:10217: checking for sqrtf declaration" >&5
10217 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10218 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10219 echo $ac_n "(cached) $ac_c" 1>&6
10220 else
10223 ac_ext=C
10224 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10225 ac_cpp='$CXXCPP $CPPFLAGS'
10226 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10227 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10228 cross_compiling=$ac_cv_prog_cxx_cross
10230 cat > conftest.$ac_ext <<EOF
10231 #line 10232 "configure"
10232 #include "confdefs.h"
10233 #include <math.h>
10234 #ifdef HAVE_IEEEFP_H
10235 #include <ieeefp.h>
10236 #endif
10238 int main() {
10239 sqrtf(0);
10240 ; return 0; }
10242 if { (eval echo configure:10243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10243 rm -rf conftest*
10244 glibcpp_cv_func_sqrtf_use=yes
10245 else
10246 echo "configure: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 rm -rf conftest*
10249 glibcpp_cv_func_sqrtf_use=no
10251 rm -f conftest*
10252 ac_ext=c
10253 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10254 ac_cpp='$CPP $CPPFLAGS'
10255 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10256 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10257 cross_compiling=$ac_cv_prog_cc_cross
10263 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10265 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10266 for ac_func in sqrtf
10268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10269 echo "configure:10270: checking for $ac_func" >&5
10270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10271 echo $ac_n "(cached) $ac_c" 1>&6
10272 else
10273 cat > conftest.$ac_ext <<EOF
10274 #line 10275 "configure"
10275 #include "confdefs.h"
10276 /* System header to define __stub macros and hopefully few prototypes,
10277 which can conflict with char $ac_func(); below. */
10278 #include <assert.h>
10279 /* Override any gcc2 internal prototype to avoid an error. */
10280 /* We use char because int might match the return type of a gcc2
10281 builtin and then its argument prototype would still apply. */
10282 char $ac_func();
10284 int main() {
10286 /* The GNU C library defines this for functions which it implements
10287 to always fail with ENOSYS. Some functions are actually named
10288 something starting with __ and the normal name is an alias. */
10289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10290 choke me
10291 #else
10292 $ac_func();
10293 #endif
10295 ; return 0; }
10297 if { (eval echo configure:10298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10298 rm -rf conftest*
10299 eval "ac_cv_func_$ac_func=yes"
10300 else
10301 echo "configure: failed program was:" >&5
10302 cat conftest.$ac_ext >&5
10303 rm -rf conftest*
10304 eval "ac_cv_func_$ac_func=no"
10306 rm -f conftest*
10309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10310 echo "$ac_t""yes" 1>&6
10311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10312 cat >> confdefs.h <<EOF
10313 #define $ac_tr_func 1
10316 else
10317 echo "$ac_t""no" 1>&6
10319 done
10321 else
10323 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10324 echo "configure:10325: checking for _sqrtf declaration" >&5
10325 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10326 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10327 echo $ac_n "(cached) $ac_c" 1>&6
10328 else
10331 ac_ext=C
10332 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10333 ac_cpp='$CXXCPP $CPPFLAGS'
10334 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10335 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10336 cross_compiling=$ac_cv_prog_cxx_cross
10338 cat > conftest.$ac_ext <<EOF
10339 #line 10340 "configure"
10340 #include "confdefs.h"
10341 #include <math.h>
10342 #ifdef HAVE_IEEEFP_H
10343 #include <ieeefp.h>
10344 #endif
10346 int main() {
10347 _sqrtf(0);
10348 ; return 0; }
10350 if { (eval echo configure:10351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10351 rm -rf conftest*
10352 glibcpp_cv_func__sqrtf_use=yes
10353 else
10354 echo "configure: failed program was:" >&5
10355 cat conftest.$ac_ext >&5
10356 rm -rf conftest*
10357 glibcpp_cv_func__sqrtf_use=no
10359 rm -f conftest*
10360 ac_ext=c
10361 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10362 ac_cpp='$CPP $CPPFLAGS'
10363 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10364 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10365 cross_compiling=$ac_cv_prog_cc_cross
10371 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
10373 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
10374 for ac_func in _sqrtf
10376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10377 echo "configure:10378: checking for $ac_func" >&5
10378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10379 echo $ac_n "(cached) $ac_c" 1>&6
10380 else
10381 cat > conftest.$ac_ext <<EOF
10382 #line 10383 "configure"
10383 #include "confdefs.h"
10384 /* System header to define __stub macros and hopefully few prototypes,
10385 which can conflict with char $ac_func(); below. */
10386 #include <assert.h>
10387 /* Override any gcc2 internal prototype to avoid an error. */
10388 /* We use char because int might match the return type of a gcc2
10389 builtin and then its argument prototype would still apply. */
10390 char $ac_func();
10392 int main() {
10394 /* The GNU C library defines this for functions which it implements
10395 to always fail with ENOSYS. Some functions are actually named
10396 something starting with __ and the normal name is an alias. */
10397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10398 choke me
10399 #else
10400 $ac_func();
10401 #endif
10403 ; return 0; }
10405 if { (eval echo configure:10406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10406 rm -rf conftest*
10407 eval "ac_cv_func_$ac_func=yes"
10408 else
10409 echo "configure: failed program was:" >&5
10410 cat conftest.$ac_ext >&5
10411 rm -rf conftest*
10412 eval "ac_cv_func_$ac_func=no"
10414 rm -f conftest*
10417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10418 echo "$ac_t""yes" 1>&6
10419 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10420 cat >> confdefs.h <<EOF
10421 #define $ac_tr_func 1
10424 else
10425 echo "$ac_t""no" 1>&6
10427 done
10434 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
10435 echo "configure:10436: checking for sincosf declaration" >&5
10436 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
10437 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
10438 echo $ac_n "(cached) $ac_c" 1>&6
10439 else
10442 ac_ext=C
10443 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10444 ac_cpp='$CXXCPP $CPPFLAGS'
10445 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10446 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10447 cross_compiling=$ac_cv_prog_cxx_cross
10449 cat > conftest.$ac_ext <<EOF
10450 #line 10451 "configure"
10451 #include "confdefs.h"
10452 #include <math.h>
10453 int main() {
10454 sincosf(0, 0, 0);
10455 ; return 0; }
10457 if { (eval echo configure:10458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10458 rm -rf conftest*
10459 glibcpp_cv_func_sincosf_use=yes
10460 else
10461 echo "configure: failed program was:" >&5
10462 cat conftest.$ac_ext >&5
10463 rm -rf conftest*
10464 glibcpp_cv_func_sincosf_use=no
10466 rm -f conftest*
10467 ac_ext=c
10468 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10469 ac_cpp='$CPP $CPPFLAGS'
10470 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10471 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10472 cross_compiling=$ac_cv_prog_cc_cross
10478 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
10480 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
10481 for ac_func in sincosf
10483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10484 echo "configure:10485: checking for $ac_func" >&5
10485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10486 echo $ac_n "(cached) $ac_c" 1>&6
10487 else
10488 cat > conftest.$ac_ext <<EOF
10489 #line 10490 "configure"
10490 #include "confdefs.h"
10491 /* System header to define __stub macros and hopefully few prototypes,
10492 which can conflict with char $ac_func(); below. */
10493 #include <assert.h>
10494 /* Override any gcc2 internal prototype to avoid an error. */
10495 /* We use char because int might match the return type of a gcc2
10496 builtin and then its argument prototype would still apply. */
10497 char $ac_func();
10499 int main() {
10501 /* The GNU C library defines this for functions which it implements
10502 to always fail with ENOSYS. Some functions are actually named
10503 something starting with __ and the normal name is an alias. */
10504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10505 choke me
10506 #else
10507 $ac_func();
10508 #endif
10510 ; return 0; }
10512 if { (eval echo configure:10513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10513 rm -rf conftest*
10514 eval "ac_cv_func_$ac_func=yes"
10515 else
10516 echo "configure: failed program was:" >&5
10517 cat conftest.$ac_ext >&5
10518 rm -rf conftest*
10519 eval "ac_cv_func_$ac_func=no"
10521 rm -f conftest*
10524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10525 echo "$ac_t""yes" 1>&6
10526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10527 cat >> confdefs.h <<EOF
10528 #define $ac_tr_func 1
10531 else
10532 echo "$ac_t""no" 1>&6
10534 done
10536 else
10538 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
10539 echo "configure:10540: checking for _sincosf declaration" >&5
10540 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
10541 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
10542 echo $ac_n "(cached) $ac_c" 1>&6
10543 else
10546 ac_ext=C
10547 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10548 ac_cpp='$CXXCPP $CPPFLAGS'
10549 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10550 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10551 cross_compiling=$ac_cv_prog_cxx_cross
10553 cat > conftest.$ac_ext <<EOF
10554 #line 10555 "configure"
10555 #include "confdefs.h"
10556 #include <math.h>
10557 int main() {
10558 _sincosf(0, 0, 0);
10559 ; return 0; }
10561 if { (eval echo configure:10562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10562 rm -rf conftest*
10563 glibcpp_cv_func__sincosf_use=yes
10564 else
10565 echo "configure: failed program was:" >&5
10566 cat conftest.$ac_ext >&5
10567 rm -rf conftest*
10568 glibcpp_cv_func__sincosf_use=no
10570 rm -f conftest*
10571 ac_ext=c
10572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10573 ac_cpp='$CPP $CPPFLAGS'
10574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10576 cross_compiling=$ac_cv_prog_cc_cross
10582 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
10584 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
10585 for ac_func in _sincosf
10587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10588 echo "configure:10589: checking for $ac_func" >&5
10589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10590 echo $ac_n "(cached) $ac_c" 1>&6
10591 else
10592 cat > conftest.$ac_ext <<EOF
10593 #line 10594 "configure"
10594 #include "confdefs.h"
10595 /* System header to define __stub macros and hopefully few prototypes,
10596 which can conflict with char $ac_func(); below. */
10597 #include <assert.h>
10598 /* Override any gcc2 internal prototype to avoid an error. */
10599 /* We use char because int might match the return type of a gcc2
10600 builtin and then its argument prototype would still apply. */
10601 char $ac_func();
10603 int main() {
10605 /* The GNU C library defines this for functions which it implements
10606 to always fail with ENOSYS. Some functions are actually named
10607 something starting with __ and the normal name is an alias. */
10608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10609 choke me
10610 #else
10611 $ac_func();
10612 #endif
10614 ; return 0; }
10616 if { (eval echo configure:10617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10617 rm -rf conftest*
10618 eval "ac_cv_func_$ac_func=yes"
10619 else
10620 echo "configure: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10622 rm -rf conftest*
10623 eval "ac_cv_func_$ac_func=no"
10625 rm -f conftest*
10628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10629 echo "$ac_t""yes" 1>&6
10630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10631 cat >> confdefs.h <<EOF
10632 #define $ac_tr_func 1
10635 else
10636 echo "$ac_t""no" 1>&6
10638 done
10645 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
10646 echo "configure:10647: checking for finitef declaration" >&5
10647 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
10648 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
10649 echo $ac_n "(cached) $ac_c" 1>&6
10650 else
10653 ac_ext=C
10654 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10655 ac_cpp='$CXXCPP $CPPFLAGS'
10656 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10657 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10658 cross_compiling=$ac_cv_prog_cxx_cross
10660 cat > conftest.$ac_ext <<EOF
10661 #line 10662 "configure"
10662 #include "confdefs.h"
10663 #include <math.h>
10664 #ifdef HAVE_IEEEFP_H
10665 #include <ieeefp.h>
10666 #endif
10668 int main() {
10669 finitef(0);
10670 ; return 0; }
10672 if { (eval echo configure:10673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10673 rm -rf conftest*
10674 glibcpp_cv_func_finitef_use=yes
10675 else
10676 echo "configure: failed program was:" >&5
10677 cat conftest.$ac_ext >&5
10678 rm -rf conftest*
10679 glibcpp_cv_func_finitef_use=no
10681 rm -f conftest*
10682 ac_ext=c
10683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10684 ac_cpp='$CPP $CPPFLAGS'
10685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10687 cross_compiling=$ac_cv_prog_cc_cross
10693 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
10695 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
10696 for ac_func in finitef
10698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10699 echo "configure:10700: checking for $ac_func" >&5
10700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10701 echo $ac_n "(cached) $ac_c" 1>&6
10702 else
10703 cat > conftest.$ac_ext <<EOF
10704 #line 10705 "configure"
10705 #include "confdefs.h"
10706 /* System header to define __stub macros and hopefully few prototypes,
10707 which can conflict with char $ac_func(); below. */
10708 #include <assert.h>
10709 /* Override any gcc2 internal prototype to avoid an error. */
10710 /* We use char because int might match the return type of a gcc2
10711 builtin and then its argument prototype would still apply. */
10712 char $ac_func();
10714 int main() {
10716 /* The GNU C library defines this for functions which it implements
10717 to always fail with ENOSYS. Some functions are actually named
10718 something starting with __ and the normal name is an alias. */
10719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10720 choke me
10721 #else
10722 $ac_func();
10723 #endif
10725 ; return 0; }
10727 if { (eval echo configure:10728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10728 rm -rf conftest*
10729 eval "ac_cv_func_$ac_func=yes"
10730 else
10731 echo "configure: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10733 rm -rf conftest*
10734 eval "ac_cv_func_$ac_func=no"
10736 rm -f conftest*
10739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10740 echo "$ac_t""yes" 1>&6
10741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10742 cat >> confdefs.h <<EOF
10743 #define $ac_tr_func 1
10746 else
10747 echo "$ac_t""no" 1>&6
10749 done
10751 else
10753 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
10754 echo "configure:10755: checking for _finitef declaration" >&5
10755 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
10756 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
10757 echo $ac_n "(cached) $ac_c" 1>&6
10758 else
10761 ac_ext=C
10762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10763 ac_cpp='$CXXCPP $CPPFLAGS'
10764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10766 cross_compiling=$ac_cv_prog_cxx_cross
10768 cat > conftest.$ac_ext <<EOF
10769 #line 10770 "configure"
10770 #include "confdefs.h"
10771 #include <math.h>
10772 #ifdef HAVE_IEEEFP_H
10773 #include <ieeefp.h>
10774 #endif
10776 int main() {
10777 _finitef(0);
10778 ; return 0; }
10780 if { (eval echo configure:10781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10781 rm -rf conftest*
10782 glibcpp_cv_func__finitef_use=yes
10783 else
10784 echo "configure: failed program was:" >&5
10785 cat conftest.$ac_ext >&5
10786 rm -rf conftest*
10787 glibcpp_cv_func__finitef_use=no
10789 rm -f conftest*
10790 ac_ext=c
10791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10792 ac_cpp='$CPP $CPPFLAGS'
10793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10795 cross_compiling=$ac_cv_prog_cc_cross
10801 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
10803 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
10804 for ac_func in _finitef
10806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10807 echo "configure:10808: checking for $ac_func" >&5
10808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10809 echo $ac_n "(cached) $ac_c" 1>&6
10810 else
10811 cat > conftest.$ac_ext <<EOF
10812 #line 10813 "configure"
10813 #include "confdefs.h"
10814 /* System header to define __stub macros and hopefully few prototypes,
10815 which can conflict with char $ac_func(); below. */
10816 #include <assert.h>
10817 /* Override any gcc2 internal prototype to avoid an error. */
10818 /* We use char because int might match the return type of a gcc2
10819 builtin and then its argument prototype would still apply. */
10820 char $ac_func();
10822 int main() {
10824 /* The GNU C library defines this for functions which it implements
10825 to always fail with ENOSYS. Some functions are actually named
10826 something starting with __ and the normal name is an alias. */
10827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10828 choke me
10829 #else
10830 $ac_func();
10831 #endif
10833 ; return 0; }
10835 if { (eval echo configure:10836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10836 rm -rf conftest*
10837 eval "ac_cv_func_$ac_func=yes"
10838 else
10839 echo "configure: failed program was:" >&5
10840 cat conftest.$ac_ext >&5
10841 rm -rf conftest*
10842 eval "ac_cv_func_$ac_func=no"
10844 rm -f conftest*
10847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10848 echo "$ac_t""yes" 1>&6
10849 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10850 cat >> confdefs.h <<EOF
10851 #define $ac_tr_func 1
10854 else
10855 echo "$ac_t""no" 1>&6
10857 done
10864 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
10865 echo "configure:10866: checking for long double trig functions" >&5
10866 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
10867 echo $ac_n "(cached) $ac_c" 1>&6
10868 else
10871 ac_ext=C
10872 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10873 ac_cpp='$CXXCPP $CPPFLAGS'
10874 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10875 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10876 cross_compiling=$ac_cv_prog_cxx_cross
10878 cat > conftest.$ac_ext <<EOF
10879 #line 10880 "configure"
10880 #include "confdefs.h"
10881 #include <math.h>
10882 int main() {
10883 `for x in acosl asinl atanl \
10884 cosl sinl tanl \
10885 coshl sinhl tanhl; do echo "$x (0);"; done`
10886 ; return 0; }
10888 if { (eval echo configure:10889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10889 rm -rf conftest*
10890 glibcpp_cv_func_long_double_trig_use=yes
10891 else
10892 echo "configure: failed program was:" >&5
10893 cat conftest.$ac_ext >&5
10894 rm -rf conftest*
10895 glibcpp_cv_func_long_double_trig_use=no
10897 rm -f conftest*
10898 ac_ext=c
10899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10900 ac_cpp='$CPP $CPPFLAGS'
10901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10903 cross_compiling=$ac_cv_prog_cc_cross
10907 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
10908 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
10909 for ac_func in acosl asinl atanl \
10910 cosl sinl tanl \
10911 coshl sinhl tanhl
10913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10914 echo "configure:10915: checking for $ac_func" >&5
10915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10916 echo $ac_n "(cached) $ac_c" 1>&6
10917 else
10918 cat > conftest.$ac_ext <<EOF
10919 #line 10920 "configure"
10920 #include "confdefs.h"
10921 /* System header to define __stub macros and hopefully few prototypes,
10922 which can conflict with char $ac_func(); below. */
10923 #include <assert.h>
10924 /* Override any gcc2 internal prototype to avoid an error. */
10925 /* We use char because int might match the return type of a gcc2
10926 builtin and then its argument prototype would still apply. */
10927 char $ac_func();
10929 int main() {
10931 /* The GNU C library defines this for functions which it implements
10932 to always fail with ENOSYS. Some functions are actually named
10933 something starting with __ and the normal name is an alias. */
10934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10935 choke me
10936 #else
10937 $ac_func();
10938 #endif
10940 ; return 0; }
10942 if { (eval echo configure:10943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10943 rm -rf conftest*
10944 eval "ac_cv_func_$ac_func=yes"
10945 else
10946 echo "configure: failed program was:" >&5
10947 cat conftest.$ac_ext >&5
10948 rm -rf conftest*
10949 eval "ac_cv_func_$ac_func=no"
10951 rm -f conftest*
10954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10955 echo "$ac_t""yes" 1>&6
10956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10957 cat >> confdefs.h <<EOF
10958 #define $ac_tr_func 1
10961 else
10962 echo "$ac_t""no" 1>&6
10964 done
10969 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
10970 echo "configure:10971: checking for long double round functions" >&5
10971 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
10972 echo $ac_n "(cached) $ac_c" 1>&6
10973 else
10976 ac_ext=C
10977 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10978 ac_cpp='$CXXCPP $CPPFLAGS'
10979 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10980 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10981 cross_compiling=$ac_cv_prog_cxx_cross
10983 cat > conftest.$ac_ext <<EOF
10984 #line 10985 "configure"
10985 #include "confdefs.h"
10986 #include <math.h>
10987 int main() {
10988 `for x in ceill floorl; do echo "$x (0);"; done`
10989 ; return 0; }
10991 if { (eval echo configure:10992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10992 rm -rf conftest*
10993 glibcpp_cv_func_long_double_round_use=yes
10994 else
10995 echo "configure: failed program was:" >&5
10996 cat conftest.$ac_ext >&5
10997 rm -rf conftest*
10998 glibcpp_cv_func_long_double_round_use=no
11000 rm -f conftest*
11001 ac_ext=c
11002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11003 ac_cpp='$CPP $CPPFLAGS'
11004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11005 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11006 cross_compiling=$ac_cv_prog_cc_cross
11010 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11011 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11012 for ac_func in ceill floorl
11014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11015 echo "configure:11016: checking for $ac_func" >&5
11016 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11017 echo $ac_n "(cached) $ac_c" 1>&6
11018 else
11019 cat > conftest.$ac_ext <<EOF
11020 #line 11021 "configure"
11021 #include "confdefs.h"
11022 /* System header to define __stub macros and hopefully few prototypes,
11023 which can conflict with char $ac_func(); below. */
11024 #include <assert.h>
11025 /* Override any gcc2 internal prototype to avoid an error. */
11026 /* We use char because int might match the return type of a gcc2
11027 builtin and then its argument prototype would still apply. */
11028 char $ac_func();
11030 int main() {
11032 /* The GNU C library defines this for functions which it implements
11033 to always fail with ENOSYS. Some functions are actually named
11034 something starting with __ and the normal name is an alias. */
11035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11036 choke me
11037 #else
11038 $ac_func();
11039 #endif
11041 ; return 0; }
11043 if { (eval echo configure:11044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11044 rm -rf conftest*
11045 eval "ac_cv_func_$ac_func=yes"
11046 else
11047 echo "configure: failed program was:" >&5
11048 cat conftest.$ac_ext >&5
11049 rm -rf conftest*
11050 eval "ac_cv_func_$ac_func=no"
11052 rm -f conftest*
11055 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11056 echo "$ac_t""yes" 1>&6
11057 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11058 cat >> confdefs.h <<EOF
11059 #define $ac_tr_func 1
11062 else
11063 echo "$ac_t""no" 1>&6
11065 done
11071 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11072 echo "configure:11073: checking for isnanl declaration" >&5
11073 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11074 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11075 echo $ac_n "(cached) $ac_c" 1>&6
11076 else
11079 ac_ext=C
11080 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11081 ac_cpp='$CXXCPP $CPPFLAGS'
11082 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11083 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11084 cross_compiling=$ac_cv_prog_cxx_cross
11086 cat > conftest.$ac_ext <<EOF
11087 #line 11088 "configure"
11088 #include "confdefs.h"
11089 #include <math.h>
11090 #ifdef HAVE_IEEEFP_H
11091 #include <ieeefp.h>
11092 #endif
11094 int main() {
11095 isnanl(0);
11096 ; return 0; }
11098 if { (eval echo configure:11099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11099 rm -rf conftest*
11100 glibcpp_cv_func_isnanl_use=yes
11101 else
11102 echo "configure: failed program was:" >&5
11103 cat conftest.$ac_ext >&5
11104 rm -rf conftest*
11105 glibcpp_cv_func_isnanl_use=no
11107 rm -f conftest*
11108 ac_ext=c
11109 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11110 ac_cpp='$CPP $CPPFLAGS'
11111 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11112 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11113 cross_compiling=$ac_cv_prog_cc_cross
11119 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11121 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11122 for ac_func in isnanl
11124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11125 echo "configure:11126: checking for $ac_func" >&5
11126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11127 echo $ac_n "(cached) $ac_c" 1>&6
11128 else
11129 cat > conftest.$ac_ext <<EOF
11130 #line 11131 "configure"
11131 #include "confdefs.h"
11132 /* System header to define __stub macros and hopefully few prototypes,
11133 which can conflict with char $ac_func(); below. */
11134 #include <assert.h>
11135 /* Override any gcc2 internal prototype to avoid an error. */
11136 /* We use char because int might match the return type of a gcc2
11137 builtin and then its argument prototype would still apply. */
11138 char $ac_func();
11140 int main() {
11142 /* The GNU C library defines this for functions which it implements
11143 to always fail with ENOSYS. Some functions are actually named
11144 something starting with __ and the normal name is an alias. */
11145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11146 choke me
11147 #else
11148 $ac_func();
11149 #endif
11151 ; return 0; }
11153 if { (eval echo configure:11154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11154 rm -rf conftest*
11155 eval "ac_cv_func_$ac_func=yes"
11156 else
11157 echo "configure: failed program was:" >&5
11158 cat conftest.$ac_ext >&5
11159 rm -rf conftest*
11160 eval "ac_cv_func_$ac_func=no"
11162 rm -f conftest*
11165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11166 echo "$ac_t""yes" 1>&6
11167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11168 cat >> confdefs.h <<EOF
11169 #define $ac_tr_func 1
11172 else
11173 echo "$ac_t""no" 1>&6
11175 done
11177 else
11179 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11180 echo "configure:11181: checking for _isnanl declaration" >&5
11181 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11182 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11183 echo $ac_n "(cached) $ac_c" 1>&6
11184 else
11187 ac_ext=C
11188 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11189 ac_cpp='$CXXCPP $CPPFLAGS'
11190 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11191 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11192 cross_compiling=$ac_cv_prog_cxx_cross
11194 cat > conftest.$ac_ext <<EOF
11195 #line 11196 "configure"
11196 #include "confdefs.h"
11197 #include <math.h>
11198 #ifdef HAVE_IEEEFP_H
11199 #include <ieeefp.h>
11200 #endif
11202 int main() {
11203 _isnanl(0);
11204 ; return 0; }
11206 if { (eval echo configure:11207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11207 rm -rf conftest*
11208 glibcpp_cv_func__isnanl_use=yes
11209 else
11210 echo "configure: failed program was:" >&5
11211 cat conftest.$ac_ext >&5
11212 rm -rf conftest*
11213 glibcpp_cv_func__isnanl_use=no
11215 rm -f conftest*
11216 ac_ext=c
11217 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11218 ac_cpp='$CPP $CPPFLAGS'
11219 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11220 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11221 cross_compiling=$ac_cv_prog_cc_cross
11227 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11229 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11230 for ac_func in _isnanl
11232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11233 echo "configure:11234: checking for $ac_func" >&5
11234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11235 echo $ac_n "(cached) $ac_c" 1>&6
11236 else
11237 cat > conftest.$ac_ext <<EOF
11238 #line 11239 "configure"
11239 #include "confdefs.h"
11240 /* System header to define __stub macros and hopefully few prototypes,
11241 which can conflict with char $ac_func(); below. */
11242 #include <assert.h>
11243 /* Override any gcc2 internal prototype to avoid an error. */
11244 /* We use char because int might match the return type of a gcc2
11245 builtin and then its argument prototype would still apply. */
11246 char $ac_func();
11248 int main() {
11250 /* The GNU C library defines this for functions which it implements
11251 to always fail with ENOSYS. Some functions are actually named
11252 something starting with __ and the normal name is an alias. */
11253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11254 choke me
11255 #else
11256 $ac_func();
11257 #endif
11259 ; return 0; }
11261 if { (eval echo configure:11262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11262 rm -rf conftest*
11263 eval "ac_cv_func_$ac_func=yes"
11264 else
11265 echo "configure: failed program was:" >&5
11266 cat conftest.$ac_ext >&5
11267 rm -rf conftest*
11268 eval "ac_cv_func_$ac_func=no"
11270 rm -f conftest*
11273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11274 echo "$ac_t""yes" 1>&6
11275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11276 cat >> confdefs.h <<EOF
11277 #define $ac_tr_func 1
11280 else
11281 echo "$ac_t""no" 1>&6
11283 done
11290 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11291 echo "configure:11292: checking for isinfl declaration" >&5
11292 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11293 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11294 echo $ac_n "(cached) $ac_c" 1>&6
11295 else
11298 ac_ext=C
11299 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11300 ac_cpp='$CXXCPP $CPPFLAGS'
11301 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11302 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11303 cross_compiling=$ac_cv_prog_cxx_cross
11305 cat > conftest.$ac_ext <<EOF
11306 #line 11307 "configure"
11307 #include "confdefs.h"
11308 #include <math.h>
11309 #ifdef HAVE_IEEEFP_H
11310 #include <ieeefp.h>
11311 #endif
11313 int main() {
11314 isinfl(0);
11315 ; return 0; }
11317 if { (eval echo configure:11318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11318 rm -rf conftest*
11319 glibcpp_cv_func_isinfl_use=yes
11320 else
11321 echo "configure: failed program was:" >&5
11322 cat conftest.$ac_ext >&5
11323 rm -rf conftest*
11324 glibcpp_cv_func_isinfl_use=no
11326 rm -f conftest*
11327 ac_ext=c
11328 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11329 ac_cpp='$CPP $CPPFLAGS'
11330 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11331 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11332 cross_compiling=$ac_cv_prog_cc_cross
11338 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11340 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11341 for ac_func in isinfl
11343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11344 echo "configure:11345: checking for $ac_func" >&5
11345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11346 echo $ac_n "(cached) $ac_c" 1>&6
11347 else
11348 cat > conftest.$ac_ext <<EOF
11349 #line 11350 "configure"
11350 #include "confdefs.h"
11351 /* System header to define __stub macros and hopefully few prototypes,
11352 which can conflict with char $ac_func(); below. */
11353 #include <assert.h>
11354 /* Override any gcc2 internal prototype to avoid an error. */
11355 /* We use char because int might match the return type of a gcc2
11356 builtin and then its argument prototype would still apply. */
11357 char $ac_func();
11359 int main() {
11361 /* The GNU C library defines this for functions which it implements
11362 to always fail with ENOSYS. Some functions are actually named
11363 something starting with __ and the normal name is an alias. */
11364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11365 choke me
11366 #else
11367 $ac_func();
11368 #endif
11370 ; return 0; }
11372 if { (eval echo configure:11373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11373 rm -rf conftest*
11374 eval "ac_cv_func_$ac_func=yes"
11375 else
11376 echo "configure: failed program was:" >&5
11377 cat conftest.$ac_ext >&5
11378 rm -rf conftest*
11379 eval "ac_cv_func_$ac_func=no"
11381 rm -f conftest*
11384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11385 echo "$ac_t""yes" 1>&6
11386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11387 cat >> confdefs.h <<EOF
11388 #define $ac_tr_func 1
11391 else
11392 echo "$ac_t""no" 1>&6
11394 done
11396 else
11398 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
11399 echo "configure:11400: checking for _isinfl declaration" >&5
11400 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
11401 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
11402 echo $ac_n "(cached) $ac_c" 1>&6
11403 else
11406 ac_ext=C
11407 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11408 ac_cpp='$CXXCPP $CPPFLAGS'
11409 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11410 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11411 cross_compiling=$ac_cv_prog_cxx_cross
11413 cat > conftest.$ac_ext <<EOF
11414 #line 11415 "configure"
11415 #include "confdefs.h"
11416 #include <math.h>
11417 #ifdef HAVE_IEEEFP_H
11418 #include <ieeefp.h>
11419 #endif
11421 int main() {
11422 _isinfl(0);
11423 ; return 0; }
11425 if { (eval echo configure:11426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11426 rm -rf conftest*
11427 glibcpp_cv_func__isinfl_use=yes
11428 else
11429 echo "configure: failed program was:" >&5
11430 cat conftest.$ac_ext >&5
11431 rm -rf conftest*
11432 glibcpp_cv_func__isinfl_use=no
11434 rm -f conftest*
11435 ac_ext=c
11436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11437 ac_cpp='$CPP $CPPFLAGS'
11438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11440 cross_compiling=$ac_cv_prog_cc_cross
11446 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
11448 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
11449 for ac_func in _isinfl
11451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11452 echo "configure:11453: checking for $ac_func" >&5
11453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11454 echo $ac_n "(cached) $ac_c" 1>&6
11455 else
11456 cat > conftest.$ac_ext <<EOF
11457 #line 11458 "configure"
11458 #include "confdefs.h"
11459 /* System header to define __stub macros and hopefully few prototypes,
11460 which can conflict with char $ac_func(); below. */
11461 #include <assert.h>
11462 /* Override any gcc2 internal prototype to avoid an error. */
11463 /* We use char because int might match the return type of a gcc2
11464 builtin and then its argument prototype would still apply. */
11465 char $ac_func();
11467 int main() {
11469 /* The GNU C library defines this for functions which it implements
11470 to always fail with ENOSYS. Some functions are actually named
11471 something starting with __ and the normal name is an alias. */
11472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11473 choke me
11474 #else
11475 $ac_func();
11476 #endif
11478 ; return 0; }
11480 if { (eval echo configure:11481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11481 rm -rf conftest*
11482 eval "ac_cv_func_$ac_func=yes"
11483 else
11484 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11486 rm -rf conftest*
11487 eval "ac_cv_func_$ac_func=no"
11489 rm -f conftest*
11492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11493 echo "$ac_t""yes" 1>&6
11494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11495 cat >> confdefs.h <<EOF
11496 #define $ac_tr_func 1
11499 else
11500 echo "$ac_t""no" 1>&6
11502 done
11509 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
11510 echo "configure:11511: checking for copysignl declaration" >&5
11511 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
11512 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
11513 echo $ac_n "(cached) $ac_c" 1>&6
11514 else
11517 ac_ext=C
11518 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11519 ac_cpp='$CXXCPP $CPPFLAGS'
11520 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11521 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11522 cross_compiling=$ac_cv_prog_cxx_cross
11524 cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure"
11526 #include "confdefs.h"
11527 #include <math.h>
11528 int main() {
11529 copysignl(0, 0);
11530 ; return 0; }
11532 if { (eval echo configure:11533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11533 rm -rf conftest*
11534 glibcpp_cv_func_copysignl_use=yes
11535 else
11536 echo "configure: failed program was:" >&5
11537 cat conftest.$ac_ext >&5
11538 rm -rf conftest*
11539 glibcpp_cv_func_copysignl_use=no
11541 rm -f conftest*
11542 ac_ext=c
11543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11544 ac_cpp='$CPP $CPPFLAGS'
11545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11547 cross_compiling=$ac_cv_prog_cc_cross
11553 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
11555 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
11556 for ac_func in copysignl
11558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11559 echo "configure:11560: checking for $ac_func" >&5
11560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11561 echo $ac_n "(cached) $ac_c" 1>&6
11562 else
11563 cat > conftest.$ac_ext <<EOF
11564 #line 11565 "configure"
11565 #include "confdefs.h"
11566 /* System header to define __stub macros and hopefully few prototypes,
11567 which can conflict with char $ac_func(); below. */
11568 #include <assert.h>
11569 /* Override any gcc2 internal prototype to avoid an error. */
11570 /* We use char because int might match the return type of a gcc2
11571 builtin and then its argument prototype would still apply. */
11572 char $ac_func();
11574 int main() {
11576 /* The GNU C library defines this for functions which it implements
11577 to always fail with ENOSYS. Some functions are actually named
11578 something starting with __ and the normal name is an alias. */
11579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11580 choke me
11581 #else
11582 $ac_func();
11583 #endif
11585 ; return 0; }
11587 if { (eval echo configure:11588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11588 rm -rf conftest*
11589 eval "ac_cv_func_$ac_func=yes"
11590 else
11591 echo "configure: failed program was:" >&5
11592 cat conftest.$ac_ext >&5
11593 rm -rf conftest*
11594 eval "ac_cv_func_$ac_func=no"
11596 rm -f conftest*
11599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11600 echo "$ac_t""yes" 1>&6
11601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11602 cat >> confdefs.h <<EOF
11603 #define $ac_tr_func 1
11606 else
11607 echo "$ac_t""no" 1>&6
11609 done
11611 else
11613 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
11614 echo "configure:11615: checking for _copysignl declaration" >&5
11615 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
11616 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11618 else
11621 ac_ext=C
11622 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11623 ac_cpp='$CXXCPP $CPPFLAGS'
11624 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11625 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11626 cross_compiling=$ac_cv_prog_cxx_cross
11628 cat > conftest.$ac_ext <<EOF
11629 #line 11630 "configure"
11630 #include "confdefs.h"
11631 #include <math.h>
11632 int main() {
11633 _copysignl(0, 0);
11634 ; return 0; }
11636 if { (eval echo configure:11637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11637 rm -rf conftest*
11638 glibcpp_cv_func__copysignl_use=yes
11639 else
11640 echo "configure: failed program was:" >&5
11641 cat conftest.$ac_ext >&5
11642 rm -rf conftest*
11643 glibcpp_cv_func__copysignl_use=no
11645 rm -f conftest*
11646 ac_ext=c
11647 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11648 ac_cpp='$CPP $CPPFLAGS'
11649 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11650 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11651 cross_compiling=$ac_cv_prog_cc_cross
11657 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
11659 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
11660 for ac_func in _copysignl
11662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11663 echo "configure:11664: checking for $ac_func" >&5
11664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11665 echo $ac_n "(cached) $ac_c" 1>&6
11666 else
11667 cat > conftest.$ac_ext <<EOF
11668 #line 11669 "configure"
11669 #include "confdefs.h"
11670 /* System header to define __stub macros and hopefully few prototypes,
11671 which can conflict with char $ac_func(); below. */
11672 #include <assert.h>
11673 /* Override any gcc2 internal prototype to avoid an error. */
11674 /* We use char because int might match the return type of a gcc2
11675 builtin and then its argument prototype would still apply. */
11676 char $ac_func();
11678 int main() {
11680 /* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11684 choke me
11685 #else
11686 $ac_func();
11687 #endif
11689 ; return 0; }
11691 if { (eval echo configure:11692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11692 rm -rf conftest*
11693 eval "ac_cv_func_$ac_func=yes"
11694 else
11695 echo "configure: failed program was:" >&5
11696 cat conftest.$ac_ext >&5
11697 rm -rf conftest*
11698 eval "ac_cv_func_$ac_func=no"
11700 rm -f conftest*
11703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11704 echo "$ac_t""yes" 1>&6
11705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11706 cat >> confdefs.h <<EOF
11707 #define $ac_tr_func 1
11710 else
11711 echo "$ac_t""no" 1>&6
11713 done
11720 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
11721 echo "configure:11722: checking for atan2l declaration" >&5
11722 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
11723 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
11724 echo $ac_n "(cached) $ac_c" 1>&6
11725 else
11728 ac_ext=C
11729 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11730 ac_cpp='$CXXCPP $CPPFLAGS'
11731 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11732 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11733 cross_compiling=$ac_cv_prog_cxx_cross
11735 cat > conftest.$ac_ext <<EOF
11736 #line 11737 "configure"
11737 #include "confdefs.h"
11738 #include <math.h>
11739 int main() {
11740 atan2l(0, 0);
11741 ; return 0; }
11743 if { (eval echo configure:11744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11744 rm -rf conftest*
11745 glibcpp_cv_func_atan2l_use=yes
11746 else
11747 echo "configure: failed program was:" >&5
11748 cat conftest.$ac_ext >&5
11749 rm -rf conftest*
11750 glibcpp_cv_func_atan2l_use=no
11752 rm -f conftest*
11753 ac_ext=c
11754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11755 ac_cpp='$CPP $CPPFLAGS'
11756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11758 cross_compiling=$ac_cv_prog_cc_cross
11764 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
11766 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
11767 for ac_func in atan2l
11769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11770 echo "configure:11771: checking for $ac_func" >&5
11771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11772 echo $ac_n "(cached) $ac_c" 1>&6
11773 else
11774 cat > conftest.$ac_ext <<EOF
11775 #line 11776 "configure"
11776 #include "confdefs.h"
11777 /* System header to define __stub macros and hopefully few prototypes,
11778 which can conflict with char $ac_func(); below. */
11779 #include <assert.h>
11780 /* Override any gcc2 internal prototype to avoid an error. */
11781 /* We use char because int might match the return type of a gcc2
11782 builtin and then its argument prototype would still apply. */
11783 char $ac_func();
11785 int main() {
11787 /* The GNU C library defines this for functions which it implements
11788 to always fail with ENOSYS. Some functions are actually named
11789 something starting with __ and the normal name is an alias. */
11790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11791 choke me
11792 #else
11793 $ac_func();
11794 #endif
11796 ; return 0; }
11798 if { (eval echo configure:11799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11799 rm -rf conftest*
11800 eval "ac_cv_func_$ac_func=yes"
11801 else
11802 echo "configure: failed program was:" >&5
11803 cat conftest.$ac_ext >&5
11804 rm -rf conftest*
11805 eval "ac_cv_func_$ac_func=no"
11807 rm -f conftest*
11810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11811 echo "$ac_t""yes" 1>&6
11812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11813 cat >> confdefs.h <<EOF
11814 #define $ac_tr_func 1
11817 else
11818 echo "$ac_t""no" 1>&6
11820 done
11822 else
11824 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
11825 echo "configure:11826: checking for _atan2l declaration" >&5
11826 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
11827 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
11828 echo $ac_n "(cached) $ac_c" 1>&6
11829 else
11832 ac_ext=C
11833 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11834 ac_cpp='$CXXCPP $CPPFLAGS'
11835 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11836 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11837 cross_compiling=$ac_cv_prog_cxx_cross
11839 cat > conftest.$ac_ext <<EOF
11840 #line 11841 "configure"
11841 #include "confdefs.h"
11842 #include <math.h>
11843 int main() {
11844 _atan2l(0, 0);
11845 ; return 0; }
11847 if { (eval echo configure:11848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11848 rm -rf conftest*
11849 glibcpp_cv_func__atan2l_use=yes
11850 else
11851 echo "configure: failed program was:" >&5
11852 cat conftest.$ac_ext >&5
11853 rm -rf conftest*
11854 glibcpp_cv_func__atan2l_use=no
11856 rm -f conftest*
11857 ac_ext=c
11858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11859 ac_cpp='$CPP $CPPFLAGS'
11860 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11861 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11862 cross_compiling=$ac_cv_prog_cc_cross
11868 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
11870 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
11871 for ac_func in _atan2l
11873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11874 echo "configure:11875: checking for $ac_func" >&5
11875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11876 echo $ac_n "(cached) $ac_c" 1>&6
11877 else
11878 cat > conftest.$ac_ext <<EOF
11879 #line 11880 "configure"
11880 #include "confdefs.h"
11881 /* System header to define __stub macros and hopefully few prototypes,
11882 which can conflict with char $ac_func(); below. */
11883 #include <assert.h>
11884 /* Override any gcc2 internal prototype to avoid an error. */
11885 /* We use char because int might match the return type of a gcc2
11886 builtin and then its argument prototype would still apply. */
11887 char $ac_func();
11889 int main() {
11891 /* The GNU C library defines this for functions which it implements
11892 to always fail with ENOSYS. Some functions are actually named
11893 something starting with __ and the normal name is an alias. */
11894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11895 choke me
11896 #else
11897 $ac_func();
11898 #endif
11900 ; return 0; }
11902 if { (eval echo configure:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11903 rm -rf conftest*
11904 eval "ac_cv_func_$ac_func=yes"
11905 else
11906 echo "configure: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11908 rm -rf conftest*
11909 eval "ac_cv_func_$ac_func=no"
11911 rm -f conftest*
11914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11915 echo "$ac_t""yes" 1>&6
11916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11917 cat >> confdefs.h <<EOF
11918 #define $ac_tr_func 1
11921 else
11922 echo "$ac_t""no" 1>&6
11924 done
11931 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
11932 echo "configure:11933: checking for expl declaration" >&5
11933 if test x${glibcpp_cv_func_expl_use+set} != xset; then
11934 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
11935 echo $ac_n "(cached) $ac_c" 1>&6
11936 else
11939 ac_ext=C
11940 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11941 ac_cpp='$CXXCPP $CPPFLAGS'
11942 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11943 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11944 cross_compiling=$ac_cv_prog_cxx_cross
11946 cat > conftest.$ac_ext <<EOF
11947 #line 11948 "configure"
11948 #include "confdefs.h"
11949 #include <math.h>
11950 #ifdef HAVE_IEEEFP_H
11951 #include <ieeefp.h>
11952 #endif
11954 int main() {
11955 expl(0);
11956 ; return 0; }
11958 if { (eval echo configure:11959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11959 rm -rf conftest*
11960 glibcpp_cv_func_expl_use=yes
11961 else
11962 echo "configure: failed program was:" >&5
11963 cat conftest.$ac_ext >&5
11964 rm -rf conftest*
11965 glibcpp_cv_func_expl_use=no
11967 rm -f conftest*
11968 ac_ext=c
11969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11970 ac_cpp='$CPP $CPPFLAGS'
11971 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11972 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11973 cross_compiling=$ac_cv_prog_cc_cross
11979 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
11981 if test x$glibcpp_cv_func_expl_use = x"yes"; then
11982 for ac_func in expl
11984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11985 echo "configure:11986: checking for $ac_func" >&5
11986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11987 echo $ac_n "(cached) $ac_c" 1>&6
11988 else
11989 cat > conftest.$ac_ext <<EOF
11990 #line 11991 "configure"
11991 #include "confdefs.h"
11992 /* System header to define __stub macros and hopefully few prototypes,
11993 which can conflict with char $ac_func(); below. */
11994 #include <assert.h>
11995 /* Override any gcc2 internal prototype to avoid an error. */
11996 /* We use char because int might match the return type of a gcc2
11997 builtin and then its argument prototype would still apply. */
11998 char $ac_func();
12000 int main() {
12002 /* The GNU C library defines this for functions which it implements
12003 to always fail with ENOSYS. Some functions are actually named
12004 something starting with __ and the normal name is an alias. */
12005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12006 choke me
12007 #else
12008 $ac_func();
12009 #endif
12011 ; return 0; }
12013 if { (eval echo configure:12014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12014 rm -rf conftest*
12015 eval "ac_cv_func_$ac_func=yes"
12016 else
12017 echo "configure: failed program was:" >&5
12018 cat conftest.$ac_ext >&5
12019 rm -rf conftest*
12020 eval "ac_cv_func_$ac_func=no"
12022 rm -f conftest*
12025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12026 echo "$ac_t""yes" 1>&6
12027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12028 cat >> confdefs.h <<EOF
12029 #define $ac_tr_func 1
12032 else
12033 echo "$ac_t""no" 1>&6
12035 done
12037 else
12039 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12040 echo "configure:12041: checking for _expl declaration" >&5
12041 if test x${glibcpp_cv_func__expl_use+set} != xset; then
12042 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12043 echo $ac_n "(cached) $ac_c" 1>&6
12044 else
12047 ac_ext=C
12048 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12049 ac_cpp='$CXXCPP $CPPFLAGS'
12050 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12051 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12052 cross_compiling=$ac_cv_prog_cxx_cross
12054 cat > conftest.$ac_ext <<EOF
12055 #line 12056 "configure"
12056 #include "confdefs.h"
12057 #include <math.h>
12058 #ifdef HAVE_IEEEFP_H
12059 #include <ieeefp.h>
12060 #endif
12062 int main() {
12063 _expl(0);
12064 ; return 0; }
12066 if { (eval echo configure:12067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12067 rm -rf conftest*
12068 glibcpp_cv_func__expl_use=yes
12069 else
12070 echo "configure: failed program was:" >&5
12071 cat conftest.$ac_ext >&5
12072 rm -rf conftest*
12073 glibcpp_cv_func__expl_use=no
12075 rm -f conftest*
12076 ac_ext=c
12077 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12078 ac_cpp='$CPP $CPPFLAGS'
12079 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12080 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12081 cross_compiling=$ac_cv_prog_cc_cross
12087 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12089 if test x$glibcpp_cv_func__expl_use = x"yes"; then
12090 for ac_func in _expl
12092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12093 echo "configure:12094: checking for $ac_func" >&5
12094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12095 echo $ac_n "(cached) $ac_c" 1>&6
12096 else
12097 cat > conftest.$ac_ext <<EOF
12098 #line 12099 "configure"
12099 #include "confdefs.h"
12100 /* System header to define __stub macros and hopefully few prototypes,
12101 which can conflict with char $ac_func(); below. */
12102 #include <assert.h>
12103 /* Override any gcc2 internal prototype to avoid an error. */
12104 /* We use char because int might match the return type of a gcc2
12105 builtin and then its argument prototype would still apply. */
12106 char $ac_func();
12108 int main() {
12110 /* The GNU C library defines this for functions which it implements
12111 to always fail with ENOSYS. Some functions are actually named
12112 something starting with __ and the normal name is an alias. */
12113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12114 choke me
12115 #else
12116 $ac_func();
12117 #endif
12119 ; return 0; }
12121 if { (eval echo configure:12122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12122 rm -rf conftest*
12123 eval "ac_cv_func_$ac_func=yes"
12124 else
12125 echo "configure: failed program was:" >&5
12126 cat conftest.$ac_ext >&5
12127 rm -rf conftest*
12128 eval "ac_cv_func_$ac_func=no"
12130 rm -f conftest*
12133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12134 echo "$ac_t""yes" 1>&6
12135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12136 cat >> confdefs.h <<EOF
12137 #define $ac_tr_func 1
12140 else
12141 echo "$ac_t""no" 1>&6
12143 done
12150 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12151 echo "configure:12152: checking for fabsl declaration" >&5
12152 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12153 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12154 echo $ac_n "(cached) $ac_c" 1>&6
12155 else
12158 ac_ext=C
12159 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12160 ac_cpp='$CXXCPP $CPPFLAGS'
12161 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12162 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12163 cross_compiling=$ac_cv_prog_cxx_cross
12165 cat > conftest.$ac_ext <<EOF
12166 #line 12167 "configure"
12167 #include "confdefs.h"
12168 #include <math.h>
12169 #ifdef HAVE_IEEEFP_H
12170 #include <ieeefp.h>
12171 #endif
12173 int main() {
12174 fabsl(0);
12175 ; return 0; }
12177 if { (eval echo configure:12178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12178 rm -rf conftest*
12179 glibcpp_cv_func_fabsl_use=yes
12180 else
12181 echo "configure: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12183 rm -rf conftest*
12184 glibcpp_cv_func_fabsl_use=no
12186 rm -f conftest*
12187 ac_ext=c
12188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12189 ac_cpp='$CPP $CPPFLAGS'
12190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12192 cross_compiling=$ac_cv_prog_cc_cross
12198 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12200 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12201 for ac_func in fabsl
12203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12204 echo "configure:12205: checking for $ac_func" >&5
12205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12206 echo $ac_n "(cached) $ac_c" 1>&6
12207 else
12208 cat > conftest.$ac_ext <<EOF
12209 #line 12210 "configure"
12210 #include "confdefs.h"
12211 /* System header to define __stub macros and hopefully few prototypes,
12212 which can conflict with char $ac_func(); below. */
12213 #include <assert.h>
12214 /* Override any gcc2 internal prototype to avoid an error. */
12215 /* We use char because int might match the return type of a gcc2
12216 builtin and then its argument prototype would still apply. */
12217 char $ac_func();
12219 int main() {
12221 /* The GNU C library defines this for functions which it implements
12222 to always fail with ENOSYS. Some functions are actually named
12223 something starting with __ and the normal name is an alias. */
12224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12225 choke me
12226 #else
12227 $ac_func();
12228 #endif
12230 ; return 0; }
12232 if { (eval echo configure:12233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12233 rm -rf conftest*
12234 eval "ac_cv_func_$ac_func=yes"
12235 else
12236 echo "configure: failed program was:" >&5
12237 cat conftest.$ac_ext >&5
12238 rm -rf conftest*
12239 eval "ac_cv_func_$ac_func=no"
12241 rm -f conftest*
12244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12245 echo "$ac_t""yes" 1>&6
12246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12247 cat >> confdefs.h <<EOF
12248 #define $ac_tr_func 1
12251 else
12252 echo "$ac_t""no" 1>&6
12254 done
12256 else
12258 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12259 echo "configure:12260: checking for _fabsl declaration" >&5
12260 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12261 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12262 echo $ac_n "(cached) $ac_c" 1>&6
12263 else
12266 ac_ext=C
12267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12268 ac_cpp='$CXXCPP $CPPFLAGS'
12269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12271 cross_compiling=$ac_cv_prog_cxx_cross
12273 cat > conftest.$ac_ext <<EOF
12274 #line 12275 "configure"
12275 #include "confdefs.h"
12276 #include <math.h>
12277 #ifdef HAVE_IEEEFP_H
12278 #include <ieeefp.h>
12279 #endif
12281 int main() {
12282 _fabsl(0);
12283 ; return 0; }
12285 if { (eval echo configure:12286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12286 rm -rf conftest*
12287 glibcpp_cv_func__fabsl_use=yes
12288 else
12289 echo "configure: failed program was:" >&5
12290 cat conftest.$ac_ext >&5
12291 rm -rf conftest*
12292 glibcpp_cv_func__fabsl_use=no
12294 rm -f conftest*
12295 ac_ext=c
12296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12297 ac_cpp='$CPP $CPPFLAGS'
12298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12300 cross_compiling=$ac_cv_prog_cc_cross
12306 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
12308 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12309 for ac_func in _fabsl
12311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12312 echo "configure:12313: checking for $ac_func" >&5
12313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12314 echo $ac_n "(cached) $ac_c" 1>&6
12315 else
12316 cat > conftest.$ac_ext <<EOF
12317 #line 12318 "configure"
12318 #include "confdefs.h"
12319 /* System header to define __stub macros and hopefully few prototypes,
12320 which can conflict with char $ac_func(); below. */
12321 #include <assert.h>
12322 /* Override any gcc2 internal prototype to avoid an error. */
12323 /* We use char because int might match the return type of a gcc2
12324 builtin and then its argument prototype would still apply. */
12325 char $ac_func();
12327 int main() {
12329 /* The GNU C library defines this for functions which it implements
12330 to always fail with ENOSYS. Some functions are actually named
12331 something starting with __ and the normal name is an alias. */
12332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12333 choke me
12334 #else
12335 $ac_func();
12336 #endif
12338 ; return 0; }
12340 if { (eval echo configure:12341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12341 rm -rf conftest*
12342 eval "ac_cv_func_$ac_func=yes"
12343 else
12344 echo "configure: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12346 rm -rf conftest*
12347 eval "ac_cv_func_$ac_func=no"
12349 rm -f conftest*
12352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12353 echo "$ac_t""yes" 1>&6
12354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12355 cat >> confdefs.h <<EOF
12356 #define $ac_tr_func 1
12359 else
12360 echo "$ac_t""no" 1>&6
12362 done
12369 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
12370 echo "configure:12371: checking for fmodl declaration" >&5
12371 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
12372 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
12373 echo $ac_n "(cached) $ac_c" 1>&6
12374 else
12377 ac_ext=C
12378 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12379 ac_cpp='$CXXCPP $CPPFLAGS'
12380 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12381 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12382 cross_compiling=$ac_cv_prog_cxx_cross
12384 cat > conftest.$ac_ext <<EOF
12385 #line 12386 "configure"
12386 #include "confdefs.h"
12387 #include <math.h>
12388 int main() {
12389 fmodl(0, 0);
12390 ; return 0; }
12392 if { (eval echo configure:12393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12393 rm -rf conftest*
12394 glibcpp_cv_func_fmodl_use=yes
12395 else
12396 echo "configure: failed program was:" >&5
12397 cat conftest.$ac_ext >&5
12398 rm -rf conftest*
12399 glibcpp_cv_func_fmodl_use=no
12401 rm -f conftest*
12402 ac_ext=c
12403 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12404 ac_cpp='$CPP $CPPFLAGS'
12405 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12406 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12407 cross_compiling=$ac_cv_prog_cc_cross
12413 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
12415 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
12416 for ac_func in fmodl
12418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12419 echo "configure:12420: checking for $ac_func" >&5
12420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12421 echo $ac_n "(cached) $ac_c" 1>&6
12422 else
12423 cat > conftest.$ac_ext <<EOF
12424 #line 12425 "configure"
12425 #include "confdefs.h"
12426 /* System header to define __stub macros and hopefully few prototypes,
12427 which can conflict with char $ac_func(); below. */
12428 #include <assert.h>
12429 /* Override any gcc2 internal prototype to avoid an error. */
12430 /* We use char because int might match the return type of a gcc2
12431 builtin and then its argument prototype would still apply. */
12432 char $ac_func();
12434 int main() {
12436 /* The GNU C library defines this for functions which it implements
12437 to always fail with ENOSYS. Some functions are actually named
12438 something starting with __ and the normal name is an alias. */
12439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12440 choke me
12441 #else
12442 $ac_func();
12443 #endif
12445 ; return 0; }
12447 if { (eval echo configure:12448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12448 rm -rf conftest*
12449 eval "ac_cv_func_$ac_func=yes"
12450 else
12451 echo "configure: failed program was:" >&5
12452 cat conftest.$ac_ext >&5
12453 rm -rf conftest*
12454 eval "ac_cv_func_$ac_func=no"
12456 rm -f conftest*
12459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12460 echo "$ac_t""yes" 1>&6
12461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12462 cat >> confdefs.h <<EOF
12463 #define $ac_tr_func 1
12466 else
12467 echo "$ac_t""no" 1>&6
12469 done
12471 else
12473 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
12474 echo "configure:12475: checking for _fmodl declaration" >&5
12475 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
12476 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
12477 echo $ac_n "(cached) $ac_c" 1>&6
12478 else
12481 ac_ext=C
12482 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12483 ac_cpp='$CXXCPP $CPPFLAGS'
12484 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12485 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12486 cross_compiling=$ac_cv_prog_cxx_cross
12488 cat > conftest.$ac_ext <<EOF
12489 #line 12490 "configure"
12490 #include "confdefs.h"
12491 #include <math.h>
12492 int main() {
12493 _fmodl(0, 0);
12494 ; return 0; }
12496 if { (eval echo configure:12497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12497 rm -rf conftest*
12498 glibcpp_cv_func__fmodl_use=yes
12499 else
12500 echo "configure: failed program was:" >&5
12501 cat conftest.$ac_ext >&5
12502 rm -rf conftest*
12503 glibcpp_cv_func__fmodl_use=no
12505 rm -f conftest*
12506 ac_ext=c
12507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12508 ac_cpp='$CPP $CPPFLAGS'
12509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12511 cross_compiling=$ac_cv_prog_cc_cross
12517 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
12519 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
12520 for ac_func in _fmodl
12522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12523 echo "configure:12524: checking for $ac_func" >&5
12524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12525 echo $ac_n "(cached) $ac_c" 1>&6
12526 else
12527 cat > conftest.$ac_ext <<EOF
12528 #line 12529 "configure"
12529 #include "confdefs.h"
12530 /* System header to define __stub macros and hopefully few prototypes,
12531 which can conflict with char $ac_func(); below. */
12532 #include <assert.h>
12533 /* Override any gcc2 internal prototype to avoid an error. */
12534 /* We use char because int might match the return type of a gcc2
12535 builtin and then its argument prototype would still apply. */
12536 char $ac_func();
12538 int main() {
12540 /* The GNU C library defines this for functions which it implements
12541 to always fail with ENOSYS. Some functions are actually named
12542 something starting with __ and the normal name is an alias. */
12543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12544 choke me
12545 #else
12546 $ac_func();
12547 #endif
12549 ; return 0; }
12551 if { (eval echo configure:12552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12552 rm -rf conftest*
12553 eval "ac_cv_func_$ac_func=yes"
12554 else
12555 echo "configure: failed program was:" >&5
12556 cat conftest.$ac_ext >&5
12557 rm -rf conftest*
12558 eval "ac_cv_func_$ac_func=no"
12560 rm -f conftest*
12563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12564 echo "$ac_t""yes" 1>&6
12565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12566 cat >> confdefs.h <<EOF
12567 #define $ac_tr_func 1
12570 else
12571 echo "$ac_t""no" 1>&6
12573 done
12580 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
12581 echo "configure:12582: checking for frexpl declaration" >&5
12582 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
12583 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
12584 echo $ac_n "(cached) $ac_c" 1>&6
12585 else
12588 ac_ext=C
12589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12590 ac_cpp='$CXXCPP $CPPFLAGS'
12591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12593 cross_compiling=$ac_cv_prog_cxx_cross
12595 cat > conftest.$ac_ext <<EOF
12596 #line 12597 "configure"
12597 #include "confdefs.h"
12598 #include <math.h>
12599 int main() {
12600 frexpl(0, 0);
12601 ; return 0; }
12603 if { (eval echo configure:12604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12604 rm -rf conftest*
12605 glibcpp_cv_func_frexpl_use=yes
12606 else
12607 echo "configure: failed program was:" >&5
12608 cat conftest.$ac_ext >&5
12609 rm -rf conftest*
12610 glibcpp_cv_func_frexpl_use=no
12612 rm -f conftest*
12613 ac_ext=c
12614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12615 ac_cpp='$CPP $CPPFLAGS'
12616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12618 cross_compiling=$ac_cv_prog_cc_cross
12624 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
12626 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
12627 for ac_func in frexpl
12629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12630 echo "configure:12631: checking for $ac_func" >&5
12631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12632 echo $ac_n "(cached) $ac_c" 1>&6
12633 else
12634 cat > conftest.$ac_ext <<EOF
12635 #line 12636 "configure"
12636 #include "confdefs.h"
12637 /* System header to define __stub macros and hopefully few prototypes,
12638 which can conflict with char $ac_func(); below. */
12639 #include <assert.h>
12640 /* Override any gcc2 internal prototype to avoid an error. */
12641 /* We use char because int might match the return type of a gcc2
12642 builtin and then its argument prototype would still apply. */
12643 char $ac_func();
12645 int main() {
12647 /* The GNU C library defines this for functions which it implements
12648 to always fail with ENOSYS. Some functions are actually named
12649 something starting with __ and the normal name is an alias. */
12650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12651 choke me
12652 #else
12653 $ac_func();
12654 #endif
12656 ; return 0; }
12658 if { (eval echo configure:12659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12659 rm -rf conftest*
12660 eval "ac_cv_func_$ac_func=yes"
12661 else
12662 echo "configure: failed program was:" >&5
12663 cat conftest.$ac_ext >&5
12664 rm -rf conftest*
12665 eval "ac_cv_func_$ac_func=no"
12667 rm -f conftest*
12670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12671 echo "$ac_t""yes" 1>&6
12672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12673 cat >> confdefs.h <<EOF
12674 #define $ac_tr_func 1
12677 else
12678 echo "$ac_t""no" 1>&6
12680 done
12682 else
12684 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
12685 echo "configure:12686: checking for _frexpl declaration" >&5
12686 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
12687 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
12688 echo $ac_n "(cached) $ac_c" 1>&6
12689 else
12692 ac_ext=C
12693 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12694 ac_cpp='$CXXCPP $CPPFLAGS'
12695 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12696 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12697 cross_compiling=$ac_cv_prog_cxx_cross
12699 cat > conftest.$ac_ext <<EOF
12700 #line 12701 "configure"
12701 #include "confdefs.h"
12702 #include <math.h>
12703 int main() {
12704 _frexpl(0, 0);
12705 ; return 0; }
12707 if { (eval echo configure:12708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12708 rm -rf conftest*
12709 glibcpp_cv_func__frexpl_use=yes
12710 else
12711 echo "configure: failed program was:" >&5
12712 cat conftest.$ac_ext >&5
12713 rm -rf conftest*
12714 glibcpp_cv_func__frexpl_use=no
12716 rm -f conftest*
12717 ac_ext=c
12718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12719 ac_cpp='$CPP $CPPFLAGS'
12720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12722 cross_compiling=$ac_cv_prog_cc_cross
12728 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
12730 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
12731 for ac_func in _frexpl
12733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12734 echo "configure:12735: checking for $ac_func" >&5
12735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12736 echo $ac_n "(cached) $ac_c" 1>&6
12737 else
12738 cat > conftest.$ac_ext <<EOF
12739 #line 12740 "configure"
12740 #include "confdefs.h"
12741 /* System header to define __stub macros and hopefully few prototypes,
12742 which can conflict with char $ac_func(); below. */
12743 #include <assert.h>
12744 /* Override any gcc2 internal prototype to avoid an error. */
12745 /* We use char because int might match the return type of a gcc2
12746 builtin and then its argument prototype would still apply. */
12747 char $ac_func();
12749 int main() {
12751 /* The GNU C library defines this for functions which it implements
12752 to always fail with ENOSYS. Some functions are actually named
12753 something starting with __ and the normal name is an alias. */
12754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12755 choke me
12756 #else
12757 $ac_func();
12758 #endif
12760 ; return 0; }
12762 if { (eval echo configure:12763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12763 rm -rf conftest*
12764 eval "ac_cv_func_$ac_func=yes"
12765 else
12766 echo "configure: failed program was:" >&5
12767 cat conftest.$ac_ext >&5
12768 rm -rf conftest*
12769 eval "ac_cv_func_$ac_func=no"
12771 rm -f conftest*
12774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12775 echo "$ac_t""yes" 1>&6
12776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12777 cat >> confdefs.h <<EOF
12778 #define $ac_tr_func 1
12781 else
12782 echo "$ac_t""no" 1>&6
12784 done
12791 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
12792 echo "configure:12793: checking for ldexpl declaration" >&5
12793 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
12794 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
12795 echo $ac_n "(cached) $ac_c" 1>&6
12796 else
12799 ac_ext=C
12800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12801 ac_cpp='$CXXCPP $CPPFLAGS'
12802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12804 cross_compiling=$ac_cv_prog_cxx_cross
12806 cat > conftest.$ac_ext <<EOF
12807 #line 12808 "configure"
12808 #include "confdefs.h"
12809 #include <math.h>
12810 int main() {
12811 ldexpl(0, 0);
12812 ; return 0; }
12814 if { (eval echo configure:12815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12815 rm -rf conftest*
12816 glibcpp_cv_func_ldexpl_use=yes
12817 else
12818 echo "configure: failed program was:" >&5
12819 cat conftest.$ac_ext >&5
12820 rm -rf conftest*
12821 glibcpp_cv_func_ldexpl_use=no
12823 rm -f conftest*
12824 ac_ext=c
12825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12826 ac_cpp='$CPP $CPPFLAGS'
12827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12829 cross_compiling=$ac_cv_prog_cc_cross
12835 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
12837 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
12838 for ac_func in ldexpl
12840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12841 echo "configure:12842: checking for $ac_func" >&5
12842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12843 echo $ac_n "(cached) $ac_c" 1>&6
12844 else
12845 cat > conftest.$ac_ext <<EOF
12846 #line 12847 "configure"
12847 #include "confdefs.h"
12848 /* System header to define __stub macros and hopefully few prototypes,
12849 which can conflict with char $ac_func(); below. */
12850 #include <assert.h>
12851 /* Override any gcc2 internal prototype to avoid an error. */
12852 /* We use char because int might match the return type of a gcc2
12853 builtin and then its argument prototype would still apply. */
12854 char $ac_func();
12856 int main() {
12858 /* The GNU C library defines this for functions which it implements
12859 to always fail with ENOSYS. Some functions are actually named
12860 something starting with __ and the normal name is an alias. */
12861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12862 choke me
12863 #else
12864 $ac_func();
12865 #endif
12867 ; return 0; }
12869 if { (eval echo configure:12870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12870 rm -rf conftest*
12871 eval "ac_cv_func_$ac_func=yes"
12872 else
12873 echo "configure: failed program was:" >&5
12874 cat conftest.$ac_ext >&5
12875 rm -rf conftest*
12876 eval "ac_cv_func_$ac_func=no"
12878 rm -f conftest*
12881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12882 echo "$ac_t""yes" 1>&6
12883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12884 cat >> confdefs.h <<EOF
12885 #define $ac_tr_func 1
12888 else
12889 echo "$ac_t""no" 1>&6
12891 done
12893 else
12895 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
12896 echo "configure:12897: checking for _ldexpl declaration" >&5
12897 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
12898 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
12899 echo $ac_n "(cached) $ac_c" 1>&6
12900 else
12903 ac_ext=C
12904 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12905 ac_cpp='$CXXCPP $CPPFLAGS'
12906 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12907 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12908 cross_compiling=$ac_cv_prog_cxx_cross
12910 cat > conftest.$ac_ext <<EOF
12911 #line 12912 "configure"
12912 #include "confdefs.h"
12913 #include <math.h>
12914 int main() {
12915 _ldexpl(0, 0);
12916 ; return 0; }
12918 if { (eval echo configure:12919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12919 rm -rf conftest*
12920 glibcpp_cv_func__ldexpl_use=yes
12921 else
12922 echo "configure: failed program was:" >&5
12923 cat conftest.$ac_ext >&5
12924 rm -rf conftest*
12925 glibcpp_cv_func__ldexpl_use=no
12927 rm -f conftest*
12928 ac_ext=c
12929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12930 ac_cpp='$CPP $CPPFLAGS'
12931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12933 cross_compiling=$ac_cv_prog_cc_cross
12939 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
12941 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
12942 for ac_func in _ldexpl
12944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12945 echo "configure:12946: checking for $ac_func" >&5
12946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12947 echo $ac_n "(cached) $ac_c" 1>&6
12948 else
12949 cat > conftest.$ac_ext <<EOF
12950 #line 12951 "configure"
12951 #include "confdefs.h"
12952 /* System header to define __stub macros and hopefully few prototypes,
12953 which can conflict with char $ac_func(); below. */
12954 #include <assert.h>
12955 /* Override any gcc2 internal prototype to avoid an error. */
12956 /* We use char because int might match the return type of a gcc2
12957 builtin and then its argument prototype would still apply. */
12958 char $ac_func();
12960 int main() {
12962 /* The GNU C library defines this for functions which it implements
12963 to always fail with ENOSYS. Some functions are actually named
12964 something starting with __ and the normal name is an alias. */
12965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12966 choke me
12967 #else
12968 $ac_func();
12969 #endif
12971 ; return 0; }
12973 if { (eval echo configure:12974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12974 rm -rf conftest*
12975 eval "ac_cv_func_$ac_func=yes"
12976 else
12977 echo "configure: failed program was:" >&5
12978 cat conftest.$ac_ext >&5
12979 rm -rf conftest*
12980 eval "ac_cv_func_$ac_func=no"
12982 rm -f conftest*
12985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12986 echo "$ac_t""yes" 1>&6
12987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12988 cat >> confdefs.h <<EOF
12989 #define $ac_tr_func 1
12992 else
12993 echo "$ac_t""no" 1>&6
12995 done
13002 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13003 echo "configure:13004: checking for logl declaration" >&5
13004 if test x${glibcpp_cv_func_logl_use+set} != xset; then
13005 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13006 echo $ac_n "(cached) $ac_c" 1>&6
13007 else
13010 ac_ext=C
13011 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13012 ac_cpp='$CXXCPP $CPPFLAGS'
13013 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13014 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13015 cross_compiling=$ac_cv_prog_cxx_cross
13017 cat > conftest.$ac_ext <<EOF
13018 #line 13019 "configure"
13019 #include "confdefs.h"
13020 #include <math.h>
13021 #ifdef HAVE_IEEEFP_H
13022 #include <ieeefp.h>
13023 #endif
13025 int main() {
13026 logl(0);
13027 ; return 0; }
13029 if { (eval echo configure:13030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13030 rm -rf conftest*
13031 glibcpp_cv_func_logl_use=yes
13032 else
13033 echo "configure: failed program was:" >&5
13034 cat conftest.$ac_ext >&5
13035 rm -rf conftest*
13036 glibcpp_cv_func_logl_use=no
13038 rm -f conftest*
13039 ac_ext=c
13040 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13041 ac_cpp='$CPP $CPPFLAGS'
13042 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13043 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13044 cross_compiling=$ac_cv_prog_cc_cross
13050 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13052 if test x$glibcpp_cv_func_logl_use = x"yes"; then
13053 for ac_func in logl
13055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13056 echo "configure:13057: checking for $ac_func" >&5
13057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13058 echo $ac_n "(cached) $ac_c" 1>&6
13059 else
13060 cat > conftest.$ac_ext <<EOF
13061 #line 13062 "configure"
13062 #include "confdefs.h"
13063 /* System header to define __stub macros and hopefully few prototypes,
13064 which can conflict with char $ac_func(); below. */
13065 #include <assert.h>
13066 /* Override any gcc2 internal prototype to avoid an error. */
13067 /* We use char because int might match the return type of a gcc2
13068 builtin and then its argument prototype would still apply. */
13069 char $ac_func();
13071 int main() {
13073 /* The GNU C library defines this for functions which it implements
13074 to always fail with ENOSYS. Some functions are actually named
13075 something starting with __ and the normal name is an alias. */
13076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13077 choke me
13078 #else
13079 $ac_func();
13080 #endif
13082 ; return 0; }
13084 if { (eval echo configure:13085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13085 rm -rf conftest*
13086 eval "ac_cv_func_$ac_func=yes"
13087 else
13088 echo "configure: failed program was:" >&5
13089 cat conftest.$ac_ext >&5
13090 rm -rf conftest*
13091 eval "ac_cv_func_$ac_func=no"
13093 rm -f conftest*
13096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13097 echo "$ac_t""yes" 1>&6
13098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13099 cat >> confdefs.h <<EOF
13100 #define $ac_tr_func 1
13103 else
13104 echo "$ac_t""no" 1>&6
13106 done
13108 else
13110 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
13111 echo "configure:13112: checking for _logl declaration" >&5
13112 if test x${glibcpp_cv_func__logl_use+set} != xset; then
13113 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
13114 echo $ac_n "(cached) $ac_c" 1>&6
13115 else
13118 ac_ext=C
13119 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13120 ac_cpp='$CXXCPP $CPPFLAGS'
13121 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13122 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13123 cross_compiling=$ac_cv_prog_cxx_cross
13125 cat > conftest.$ac_ext <<EOF
13126 #line 13127 "configure"
13127 #include "confdefs.h"
13128 #include <math.h>
13129 #ifdef HAVE_IEEEFP_H
13130 #include <ieeefp.h>
13131 #endif
13133 int main() {
13134 _logl(0);
13135 ; return 0; }
13137 if { (eval echo configure:13138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13138 rm -rf conftest*
13139 glibcpp_cv_func__logl_use=yes
13140 else
13141 echo "configure: failed program was:" >&5
13142 cat conftest.$ac_ext >&5
13143 rm -rf conftest*
13144 glibcpp_cv_func__logl_use=no
13146 rm -f conftest*
13147 ac_ext=c
13148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13149 ac_cpp='$CPP $CPPFLAGS'
13150 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13151 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13152 cross_compiling=$ac_cv_prog_cc_cross
13158 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
13160 if test x$glibcpp_cv_func__logl_use = x"yes"; then
13161 for ac_func in _logl
13163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13164 echo "configure:13165: checking for $ac_func" >&5
13165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13166 echo $ac_n "(cached) $ac_c" 1>&6
13167 else
13168 cat > conftest.$ac_ext <<EOF
13169 #line 13170 "configure"
13170 #include "confdefs.h"
13171 /* System header to define __stub macros and hopefully few prototypes,
13172 which can conflict with char $ac_func(); below. */
13173 #include <assert.h>
13174 /* Override any gcc2 internal prototype to avoid an error. */
13175 /* We use char because int might match the return type of a gcc2
13176 builtin and then its argument prototype would still apply. */
13177 char $ac_func();
13179 int main() {
13181 /* The GNU C library defines this for functions which it implements
13182 to always fail with ENOSYS. Some functions are actually named
13183 something starting with __ and the normal name is an alias. */
13184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13185 choke me
13186 #else
13187 $ac_func();
13188 #endif
13190 ; return 0; }
13192 if { (eval echo configure:13193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13193 rm -rf conftest*
13194 eval "ac_cv_func_$ac_func=yes"
13195 else
13196 echo "configure: failed program was:" >&5
13197 cat conftest.$ac_ext >&5
13198 rm -rf conftest*
13199 eval "ac_cv_func_$ac_func=no"
13201 rm -f conftest*
13204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13205 echo "$ac_t""yes" 1>&6
13206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13207 cat >> confdefs.h <<EOF
13208 #define $ac_tr_func 1
13211 else
13212 echo "$ac_t""no" 1>&6
13214 done
13221 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
13222 echo "configure:13223: checking for log10l declaration" >&5
13223 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
13224 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
13225 echo $ac_n "(cached) $ac_c" 1>&6
13226 else
13229 ac_ext=C
13230 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13231 ac_cpp='$CXXCPP $CPPFLAGS'
13232 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13233 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13234 cross_compiling=$ac_cv_prog_cxx_cross
13236 cat > conftest.$ac_ext <<EOF
13237 #line 13238 "configure"
13238 #include "confdefs.h"
13239 #include <math.h>
13240 #ifdef HAVE_IEEEFP_H
13241 #include <ieeefp.h>
13242 #endif
13244 int main() {
13245 log10l(0);
13246 ; return 0; }
13248 if { (eval echo configure:13249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13249 rm -rf conftest*
13250 glibcpp_cv_func_log10l_use=yes
13251 else
13252 echo "configure: failed program was:" >&5
13253 cat conftest.$ac_ext >&5
13254 rm -rf conftest*
13255 glibcpp_cv_func_log10l_use=no
13257 rm -f conftest*
13258 ac_ext=c
13259 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13260 ac_cpp='$CPP $CPPFLAGS'
13261 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13262 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13263 cross_compiling=$ac_cv_prog_cc_cross
13269 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
13271 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
13272 for ac_func in log10l
13274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13275 echo "configure:13276: checking for $ac_func" >&5
13276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13277 echo $ac_n "(cached) $ac_c" 1>&6
13278 else
13279 cat > conftest.$ac_ext <<EOF
13280 #line 13281 "configure"
13281 #include "confdefs.h"
13282 /* System header to define __stub macros and hopefully few prototypes,
13283 which can conflict with char $ac_func(); below. */
13284 #include <assert.h>
13285 /* Override any gcc2 internal prototype to avoid an error. */
13286 /* We use char because int might match the return type of a gcc2
13287 builtin and then its argument prototype would still apply. */
13288 char $ac_func();
13290 int main() {
13292 /* The GNU C library defines this for functions which it implements
13293 to always fail with ENOSYS. Some functions are actually named
13294 something starting with __ and the normal name is an alias. */
13295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13296 choke me
13297 #else
13298 $ac_func();
13299 #endif
13301 ; return 0; }
13303 if { (eval echo configure:13304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13304 rm -rf conftest*
13305 eval "ac_cv_func_$ac_func=yes"
13306 else
13307 echo "configure: failed program was:" >&5
13308 cat conftest.$ac_ext >&5
13309 rm -rf conftest*
13310 eval "ac_cv_func_$ac_func=no"
13312 rm -f conftest*
13315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13316 echo "$ac_t""yes" 1>&6
13317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13318 cat >> confdefs.h <<EOF
13319 #define $ac_tr_func 1
13322 else
13323 echo "$ac_t""no" 1>&6
13325 done
13327 else
13329 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
13330 echo "configure:13331: checking for _log10l declaration" >&5
13331 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
13332 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
13333 echo $ac_n "(cached) $ac_c" 1>&6
13334 else
13337 ac_ext=C
13338 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13339 ac_cpp='$CXXCPP $CPPFLAGS'
13340 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13341 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13342 cross_compiling=$ac_cv_prog_cxx_cross
13344 cat > conftest.$ac_ext <<EOF
13345 #line 13346 "configure"
13346 #include "confdefs.h"
13347 #include <math.h>
13348 #ifdef HAVE_IEEEFP_H
13349 #include <ieeefp.h>
13350 #endif
13352 int main() {
13353 _log10l(0);
13354 ; return 0; }
13356 if { (eval echo configure:13357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13357 rm -rf conftest*
13358 glibcpp_cv_func__log10l_use=yes
13359 else
13360 echo "configure: failed program was:" >&5
13361 cat conftest.$ac_ext >&5
13362 rm -rf conftest*
13363 glibcpp_cv_func__log10l_use=no
13365 rm -f conftest*
13366 ac_ext=c
13367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13368 ac_cpp='$CPP $CPPFLAGS'
13369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13371 cross_compiling=$ac_cv_prog_cc_cross
13377 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
13379 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
13380 for ac_func in _log10l
13382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13383 echo "configure:13384: checking for $ac_func" >&5
13384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13385 echo $ac_n "(cached) $ac_c" 1>&6
13386 else
13387 cat > conftest.$ac_ext <<EOF
13388 #line 13389 "configure"
13389 #include "confdefs.h"
13390 /* System header to define __stub macros and hopefully few prototypes,
13391 which can conflict with char $ac_func(); below. */
13392 #include <assert.h>
13393 /* Override any gcc2 internal prototype to avoid an error. */
13394 /* We use char because int might match the return type of a gcc2
13395 builtin and then its argument prototype would still apply. */
13396 char $ac_func();
13398 int main() {
13400 /* The GNU C library defines this for functions which it implements
13401 to always fail with ENOSYS. Some functions are actually named
13402 something starting with __ and the normal name is an alias. */
13403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13404 choke me
13405 #else
13406 $ac_func();
13407 #endif
13409 ; return 0; }
13411 if { (eval echo configure:13412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13412 rm -rf conftest*
13413 eval "ac_cv_func_$ac_func=yes"
13414 else
13415 echo "configure: failed program was:" >&5
13416 cat conftest.$ac_ext >&5
13417 rm -rf conftest*
13418 eval "ac_cv_func_$ac_func=no"
13420 rm -f conftest*
13423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13424 echo "$ac_t""yes" 1>&6
13425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13426 cat >> confdefs.h <<EOF
13427 #define $ac_tr_func 1
13430 else
13431 echo "$ac_t""no" 1>&6
13433 done
13440 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
13441 echo "configure:13442: checking for modfl declaration" >&5
13442 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
13443 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
13444 echo $ac_n "(cached) $ac_c" 1>&6
13445 else
13448 ac_ext=C
13449 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13450 ac_cpp='$CXXCPP $CPPFLAGS'
13451 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13452 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13453 cross_compiling=$ac_cv_prog_cxx_cross
13455 cat > conftest.$ac_ext <<EOF
13456 #line 13457 "configure"
13457 #include "confdefs.h"
13458 #include <math.h>
13459 int main() {
13460 modfl(0, 0);
13461 ; return 0; }
13463 if { (eval echo configure:13464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13464 rm -rf conftest*
13465 glibcpp_cv_func_modfl_use=yes
13466 else
13467 echo "configure: failed program was:" >&5
13468 cat conftest.$ac_ext >&5
13469 rm -rf conftest*
13470 glibcpp_cv_func_modfl_use=no
13472 rm -f conftest*
13473 ac_ext=c
13474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13475 ac_cpp='$CPP $CPPFLAGS'
13476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13478 cross_compiling=$ac_cv_prog_cc_cross
13484 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
13486 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
13487 for ac_func in modfl
13489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13490 echo "configure:13491: checking for $ac_func" >&5
13491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13492 echo $ac_n "(cached) $ac_c" 1>&6
13493 else
13494 cat > conftest.$ac_ext <<EOF
13495 #line 13496 "configure"
13496 #include "confdefs.h"
13497 /* System header to define __stub macros and hopefully few prototypes,
13498 which can conflict with char $ac_func(); below. */
13499 #include <assert.h>
13500 /* Override any gcc2 internal prototype to avoid an error. */
13501 /* We use char because int might match the return type of a gcc2
13502 builtin and then its argument prototype would still apply. */
13503 char $ac_func();
13505 int main() {
13507 /* The GNU C library defines this for functions which it implements
13508 to always fail with ENOSYS. Some functions are actually named
13509 something starting with __ and the normal name is an alias. */
13510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13511 choke me
13512 #else
13513 $ac_func();
13514 #endif
13516 ; return 0; }
13518 if { (eval echo configure:13519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13519 rm -rf conftest*
13520 eval "ac_cv_func_$ac_func=yes"
13521 else
13522 echo "configure: failed program was:" >&5
13523 cat conftest.$ac_ext >&5
13524 rm -rf conftest*
13525 eval "ac_cv_func_$ac_func=no"
13527 rm -f conftest*
13530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13531 echo "$ac_t""yes" 1>&6
13532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13533 cat >> confdefs.h <<EOF
13534 #define $ac_tr_func 1
13537 else
13538 echo "$ac_t""no" 1>&6
13540 done
13542 else
13544 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
13545 echo "configure:13546: checking for _modfl declaration" >&5
13546 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
13547 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
13548 echo $ac_n "(cached) $ac_c" 1>&6
13549 else
13552 ac_ext=C
13553 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13554 ac_cpp='$CXXCPP $CPPFLAGS'
13555 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13556 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13557 cross_compiling=$ac_cv_prog_cxx_cross
13559 cat > conftest.$ac_ext <<EOF
13560 #line 13561 "configure"
13561 #include "confdefs.h"
13562 #include <math.h>
13563 int main() {
13564 _modfl(0, 0);
13565 ; return 0; }
13567 if { (eval echo configure:13568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13568 rm -rf conftest*
13569 glibcpp_cv_func__modfl_use=yes
13570 else
13571 echo "configure: failed program was:" >&5
13572 cat conftest.$ac_ext >&5
13573 rm -rf conftest*
13574 glibcpp_cv_func__modfl_use=no
13576 rm -f conftest*
13577 ac_ext=c
13578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13579 ac_cpp='$CPP $CPPFLAGS'
13580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13582 cross_compiling=$ac_cv_prog_cc_cross
13588 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
13590 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
13591 for ac_func in _modfl
13593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13594 echo "configure:13595: checking for $ac_func" >&5
13595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13596 echo $ac_n "(cached) $ac_c" 1>&6
13597 else
13598 cat > conftest.$ac_ext <<EOF
13599 #line 13600 "configure"
13600 #include "confdefs.h"
13601 /* System header to define __stub macros and hopefully few prototypes,
13602 which can conflict with char $ac_func(); below. */
13603 #include <assert.h>
13604 /* Override any gcc2 internal prototype to avoid an error. */
13605 /* We use char because int might match the return type of a gcc2
13606 builtin and then its argument prototype would still apply. */
13607 char $ac_func();
13609 int main() {
13611 /* The GNU C library defines this for functions which it implements
13612 to always fail with ENOSYS. Some functions are actually named
13613 something starting with __ and the normal name is an alias. */
13614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13615 choke me
13616 #else
13617 $ac_func();
13618 #endif
13620 ; return 0; }
13622 if { (eval echo configure:13623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13623 rm -rf conftest*
13624 eval "ac_cv_func_$ac_func=yes"
13625 else
13626 echo "configure: failed program was:" >&5
13627 cat conftest.$ac_ext >&5
13628 rm -rf conftest*
13629 eval "ac_cv_func_$ac_func=no"
13631 rm -f conftest*
13634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13635 echo "$ac_t""yes" 1>&6
13636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13637 cat >> confdefs.h <<EOF
13638 #define $ac_tr_func 1
13641 else
13642 echo "$ac_t""no" 1>&6
13644 done
13651 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
13652 echo "configure:13653: checking for powl declaration" >&5
13653 if test x${glibcpp_cv_func_powl_use+set} != xset; then
13654 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
13655 echo $ac_n "(cached) $ac_c" 1>&6
13656 else
13659 ac_ext=C
13660 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13661 ac_cpp='$CXXCPP $CPPFLAGS'
13662 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13663 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13664 cross_compiling=$ac_cv_prog_cxx_cross
13666 cat > conftest.$ac_ext <<EOF
13667 #line 13668 "configure"
13668 #include "confdefs.h"
13669 #include <math.h>
13670 int main() {
13671 powl(0, 0);
13672 ; return 0; }
13674 if { (eval echo configure:13675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13675 rm -rf conftest*
13676 glibcpp_cv_func_powl_use=yes
13677 else
13678 echo "configure: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13680 rm -rf conftest*
13681 glibcpp_cv_func_powl_use=no
13683 rm -f conftest*
13684 ac_ext=c
13685 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13686 ac_cpp='$CPP $CPPFLAGS'
13687 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13688 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13689 cross_compiling=$ac_cv_prog_cc_cross
13695 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
13697 if test x$glibcpp_cv_func_powl_use = x"yes"; then
13698 for ac_func in powl
13700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13701 echo "configure:13702: checking for $ac_func" >&5
13702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13703 echo $ac_n "(cached) $ac_c" 1>&6
13704 else
13705 cat > conftest.$ac_ext <<EOF
13706 #line 13707 "configure"
13707 #include "confdefs.h"
13708 /* System header to define __stub macros and hopefully few prototypes,
13709 which can conflict with char $ac_func(); below. */
13710 #include <assert.h>
13711 /* Override any gcc2 internal prototype to avoid an error. */
13712 /* We use char because int might match the return type of a gcc2
13713 builtin and then its argument prototype would still apply. */
13714 char $ac_func();
13716 int main() {
13718 /* The GNU C library defines this for functions which it implements
13719 to always fail with ENOSYS. Some functions are actually named
13720 something starting with __ and the normal name is an alias. */
13721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13722 choke me
13723 #else
13724 $ac_func();
13725 #endif
13727 ; return 0; }
13729 if { (eval echo configure:13730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13730 rm -rf conftest*
13731 eval "ac_cv_func_$ac_func=yes"
13732 else
13733 echo "configure: failed program was:" >&5
13734 cat conftest.$ac_ext >&5
13735 rm -rf conftest*
13736 eval "ac_cv_func_$ac_func=no"
13738 rm -f conftest*
13741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13742 echo "$ac_t""yes" 1>&6
13743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13744 cat >> confdefs.h <<EOF
13745 #define $ac_tr_func 1
13748 else
13749 echo "$ac_t""no" 1>&6
13751 done
13753 else
13755 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
13756 echo "configure:13757: checking for _powl declaration" >&5
13757 if test x${glibcpp_cv_func__powl_use+set} != xset; then
13758 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
13759 echo $ac_n "(cached) $ac_c" 1>&6
13760 else
13763 ac_ext=C
13764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13765 ac_cpp='$CXXCPP $CPPFLAGS'
13766 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13767 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13768 cross_compiling=$ac_cv_prog_cxx_cross
13770 cat > conftest.$ac_ext <<EOF
13771 #line 13772 "configure"
13772 #include "confdefs.h"
13773 #include <math.h>
13774 int main() {
13775 _powl(0, 0);
13776 ; return 0; }
13778 if { (eval echo configure:13779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13779 rm -rf conftest*
13780 glibcpp_cv_func__powl_use=yes
13781 else
13782 echo "configure: failed program was:" >&5
13783 cat conftest.$ac_ext >&5
13784 rm -rf conftest*
13785 glibcpp_cv_func__powl_use=no
13787 rm -f conftest*
13788 ac_ext=c
13789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13790 ac_cpp='$CPP $CPPFLAGS'
13791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13793 cross_compiling=$ac_cv_prog_cc_cross
13799 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
13801 if test x$glibcpp_cv_func__powl_use = x"yes"; then
13802 for ac_func in _powl
13804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13805 echo "configure:13806: checking for $ac_func" >&5
13806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13807 echo $ac_n "(cached) $ac_c" 1>&6
13808 else
13809 cat > conftest.$ac_ext <<EOF
13810 #line 13811 "configure"
13811 #include "confdefs.h"
13812 /* System header to define __stub macros and hopefully few prototypes,
13813 which can conflict with char $ac_func(); below. */
13814 #include <assert.h>
13815 /* Override any gcc2 internal prototype to avoid an error. */
13816 /* We use char because int might match the return type of a gcc2
13817 builtin and then its argument prototype would still apply. */
13818 char $ac_func();
13820 int main() {
13822 /* The GNU C library defines this for functions which it implements
13823 to always fail with ENOSYS. Some functions are actually named
13824 something starting with __ and the normal name is an alias. */
13825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13826 choke me
13827 #else
13828 $ac_func();
13829 #endif
13831 ; return 0; }
13833 if { (eval echo configure:13834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13834 rm -rf conftest*
13835 eval "ac_cv_func_$ac_func=yes"
13836 else
13837 echo "configure: failed program was:" >&5
13838 cat conftest.$ac_ext >&5
13839 rm -rf conftest*
13840 eval "ac_cv_func_$ac_func=no"
13842 rm -f conftest*
13845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13846 echo "$ac_t""yes" 1>&6
13847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13848 cat >> confdefs.h <<EOF
13849 #define $ac_tr_func 1
13852 else
13853 echo "$ac_t""no" 1>&6
13855 done
13862 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
13863 echo "configure:13864: checking for sqrtl declaration" >&5
13864 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
13865 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
13866 echo $ac_n "(cached) $ac_c" 1>&6
13867 else
13870 ac_ext=C
13871 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13872 ac_cpp='$CXXCPP $CPPFLAGS'
13873 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13874 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13875 cross_compiling=$ac_cv_prog_cxx_cross
13877 cat > conftest.$ac_ext <<EOF
13878 #line 13879 "configure"
13879 #include "confdefs.h"
13880 #include <math.h>
13881 #ifdef HAVE_IEEEFP_H
13882 #include <ieeefp.h>
13883 #endif
13885 int main() {
13886 sqrtl(0);
13887 ; return 0; }
13889 if { (eval echo configure:13890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13890 rm -rf conftest*
13891 glibcpp_cv_func_sqrtl_use=yes
13892 else
13893 echo "configure: failed program was:" >&5
13894 cat conftest.$ac_ext >&5
13895 rm -rf conftest*
13896 glibcpp_cv_func_sqrtl_use=no
13898 rm -f conftest*
13899 ac_ext=c
13900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13901 ac_cpp='$CPP $CPPFLAGS'
13902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13904 cross_compiling=$ac_cv_prog_cc_cross
13910 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
13912 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
13913 for ac_func in sqrtl
13915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13916 echo "configure:13917: checking for $ac_func" >&5
13917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13918 echo $ac_n "(cached) $ac_c" 1>&6
13919 else
13920 cat > conftest.$ac_ext <<EOF
13921 #line 13922 "configure"
13922 #include "confdefs.h"
13923 /* System header to define __stub macros and hopefully few prototypes,
13924 which can conflict with char $ac_func(); below. */
13925 #include <assert.h>
13926 /* Override any gcc2 internal prototype to avoid an error. */
13927 /* We use char because int might match the return type of a gcc2
13928 builtin and then its argument prototype would still apply. */
13929 char $ac_func();
13931 int main() {
13933 /* The GNU C library defines this for functions which it implements
13934 to always fail with ENOSYS. Some functions are actually named
13935 something starting with __ and the normal name is an alias. */
13936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13937 choke me
13938 #else
13939 $ac_func();
13940 #endif
13942 ; return 0; }
13944 if { (eval echo configure:13945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13945 rm -rf conftest*
13946 eval "ac_cv_func_$ac_func=yes"
13947 else
13948 echo "configure: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13950 rm -rf conftest*
13951 eval "ac_cv_func_$ac_func=no"
13953 rm -f conftest*
13956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13957 echo "$ac_t""yes" 1>&6
13958 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13959 cat >> confdefs.h <<EOF
13960 #define $ac_tr_func 1
13963 else
13964 echo "$ac_t""no" 1>&6
13966 done
13968 else
13970 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
13971 echo "configure:13972: checking for _sqrtl declaration" >&5
13972 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
13973 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
13974 echo $ac_n "(cached) $ac_c" 1>&6
13975 else
13978 ac_ext=C
13979 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13980 ac_cpp='$CXXCPP $CPPFLAGS'
13981 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13982 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13983 cross_compiling=$ac_cv_prog_cxx_cross
13985 cat > conftest.$ac_ext <<EOF
13986 #line 13987 "configure"
13987 #include "confdefs.h"
13988 #include <math.h>
13989 #ifdef HAVE_IEEEFP_H
13990 #include <ieeefp.h>
13991 #endif
13993 int main() {
13994 _sqrtl(0);
13995 ; return 0; }
13997 if { (eval echo configure:13998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13998 rm -rf conftest*
13999 glibcpp_cv_func__sqrtl_use=yes
14000 else
14001 echo "configure: failed program was:" >&5
14002 cat conftest.$ac_ext >&5
14003 rm -rf conftest*
14004 glibcpp_cv_func__sqrtl_use=no
14006 rm -f conftest*
14007 ac_ext=c
14008 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14009 ac_cpp='$CPP $CPPFLAGS'
14010 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14011 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14012 cross_compiling=$ac_cv_prog_cc_cross
14018 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14020 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14021 for ac_func in _sqrtl
14023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14024 echo "configure:14025: checking for $ac_func" >&5
14025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14026 echo $ac_n "(cached) $ac_c" 1>&6
14027 else
14028 cat > conftest.$ac_ext <<EOF
14029 #line 14030 "configure"
14030 #include "confdefs.h"
14031 /* System header to define __stub macros and hopefully few prototypes,
14032 which can conflict with char $ac_func(); below. */
14033 #include <assert.h>
14034 /* Override any gcc2 internal prototype to avoid an error. */
14035 /* We use char because int might match the return type of a gcc2
14036 builtin and then its argument prototype would still apply. */
14037 char $ac_func();
14039 int main() {
14041 /* The GNU C library defines this for functions which it implements
14042 to always fail with ENOSYS. Some functions are actually named
14043 something starting with __ and the normal name is an alias. */
14044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14045 choke me
14046 #else
14047 $ac_func();
14048 #endif
14050 ; return 0; }
14052 if { (eval echo configure:14053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14053 rm -rf conftest*
14054 eval "ac_cv_func_$ac_func=yes"
14055 else
14056 echo "configure: failed program was:" >&5
14057 cat conftest.$ac_ext >&5
14058 rm -rf conftest*
14059 eval "ac_cv_func_$ac_func=no"
14061 rm -f conftest*
14064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14065 echo "$ac_t""yes" 1>&6
14066 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14067 cat >> confdefs.h <<EOF
14068 #define $ac_tr_func 1
14071 else
14072 echo "$ac_t""no" 1>&6
14074 done
14081 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
14082 echo "configure:14083: checking for sincosl declaration" >&5
14083 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
14084 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
14085 echo $ac_n "(cached) $ac_c" 1>&6
14086 else
14089 ac_ext=C
14090 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14091 ac_cpp='$CXXCPP $CPPFLAGS'
14092 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14093 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14094 cross_compiling=$ac_cv_prog_cxx_cross
14096 cat > conftest.$ac_ext <<EOF
14097 #line 14098 "configure"
14098 #include "confdefs.h"
14099 #include <math.h>
14100 int main() {
14101 sincosl(0, 0, 0);
14102 ; return 0; }
14104 if { (eval echo configure:14105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14105 rm -rf conftest*
14106 glibcpp_cv_func_sincosl_use=yes
14107 else
14108 echo "configure: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 rm -rf conftest*
14111 glibcpp_cv_func_sincosl_use=no
14113 rm -f conftest*
14114 ac_ext=c
14115 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14116 ac_cpp='$CPP $CPPFLAGS'
14117 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14118 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14119 cross_compiling=$ac_cv_prog_cc_cross
14125 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
14127 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
14128 for ac_func in sincosl
14130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14131 echo "configure:14132: checking for $ac_func" >&5
14132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14133 echo $ac_n "(cached) $ac_c" 1>&6
14134 else
14135 cat > conftest.$ac_ext <<EOF
14136 #line 14137 "configure"
14137 #include "confdefs.h"
14138 /* System header to define __stub macros and hopefully few prototypes,
14139 which can conflict with char $ac_func(); below. */
14140 #include <assert.h>
14141 /* Override any gcc2 internal prototype to avoid an error. */
14142 /* We use char because int might match the return type of a gcc2
14143 builtin and then its argument prototype would still apply. */
14144 char $ac_func();
14146 int main() {
14148 /* The GNU C library defines this for functions which it implements
14149 to always fail with ENOSYS. Some functions are actually named
14150 something starting with __ and the normal name is an alias. */
14151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14152 choke me
14153 #else
14154 $ac_func();
14155 #endif
14157 ; return 0; }
14159 if { (eval echo configure:14160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14160 rm -rf conftest*
14161 eval "ac_cv_func_$ac_func=yes"
14162 else
14163 echo "configure: failed program was:" >&5
14164 cat conftest.$ac_ext >&5
14165 rm -rf conftest*
14166 eval "ac_cv_func_$ac_func=no"
14168 rm -f conftest*
14171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14172 echo "$ac_t""yes" 1>&6
14173 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14174 cat >> confdefs.h <<EOF
14175 #define $ac_tr_func 1
14178 else
14179 echo "$ac_t""no" 1>&6
14181 done
14183 else
14185 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
14186 echo "configure:14187: checking for _sincosl declaration" >&5
14187 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
14188 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
14189 echo $ac_n "(cached) $ac_c" 1>&6
14190 else
14193 ac_ext=C
14194 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14195 ac_cpp='$CXXCPP $CPPFLAGS'
14196 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14197 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14198 cross_compiling=$ac_cv_prog_cxx_cross
14200 cat > conftest.$ac_ext <<EOF
14201 #line 14202 "configure"
14202 #include "confdefs.h"
14203 #include <math.h>
14204 int main() {
14205 _sincosl(0, 0, 0);
14206 ; return 0; }
14208 if { (eval echo configure:14209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14209 rm -rf conftest*
14210 glibcpp_cv_func__sincosl_use=yes
14211 else
14212 echo "configure: failed program was:" >&5
14213 cat conftest.$ac_ext >&5
14214 rm -rf conftest*
14215 glibcpp_cv_func__sincosl_use=no
14217 rm -f conftest*
14218 ac_ext=c
14219 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14220 ac_cpp='$CPP $CPPFLAGS'
14221 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14222 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14223 cross_compiling=$ac_cv_prog_cc_cross
14229 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
14231 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
14232 for ac_func in _sincosl
14234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14235 echo "configure:14236: checking for $ac_func" >&5
14236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14237 echo $ac_n "(cached) $ac_c" 1>&6
14238 else
14239 cat > conftest.$ac_ext <<EOF
14240 #line 14241 "configure"
14241 #include "confdefs.h"
14242 /* System header to define __stub macros and hopefully few prototypes,
14243 which can conflict with char $ac_func(); below. */
14244 #include <assert.h>
14245 /* Override any gcc2 internal prototype to avoid an error. */
14246 /* We use char because int might match the return type of a gcc2
14247 builtin and then its argument prototype would still apply. */
14248 char $ac_func();
14250 int main() {
14252 /* The GNU C library defines this for functions which it implements
14253 to always fail with ENOSYS. Some functions are actually named
14254 something starting with __ and the normal name is an alias. */
14255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14256 choke me
14257 #else
14258 $ac_func();
14259 #endif
14261 ; return 0; }
14263 if { (eval echo configure:14264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14264 rm -rf conftest*
14265 eval "ac_cv_func_$ac_func=yes"
14266 else
14267 echo "configure: failed program was:" >&5
14268 cat conftest.$ac_ext >&5
14269 rm -rf conftest*
14270 eval "ac_cv_func_$ac_func=no"
14272 rm -f conftest*
14275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14276 echo "$ac_t""yes" 1>&6
14277 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14278 cat >> confdefs.h <<EOF
14279 #define $ac_tr_func 1
14282 else
14283 echo "$ac_t""no" 1>&6
14285 done
14292 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
14293 echo "configure:14294: checking for finitel declaration" >&5
14294 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
14295 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
14296 echo $ac_n "(cached) $ac_c" 1>&6
14297 else
14300 ac_ext=C
14301 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14302 ac_cpp='$CXXCPP $CPPFLAGS'
14303 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14304 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14305 cross_compiling=$ac_cv_prog_cxx_cross
14307 cat > conftest.$ac_ext <<EOF
14308 #line 14309 "configure"
14309 #include "confdefs.h"
14310 #include <math.h>
14311 #ifdef HAVE_IEEEFP_H
14312 #include <ieeefp.h>
14313 #endif
14315 int main() {
14316 finitel(0);
14317 ; return 0; }
14319 if { (eval echo configure:14320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14320 rm -rf conftest*
14321 glibcpp_cv_func_finitel_use=yes
14322 else
14323 echo "configure: failed program was:" >&5
14324 cat conftest.$ac_ext >&5
14325 rm -rf conftest*
14326 glibcpp_cv_func_finitel_use=no
14328 rm -f conftest*
14329 ac_ext=c
14330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14331 ac_cpp='$CPP $CPPFLAGS'
14332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14334 cross_compiling=$ac_cv_prog_cc_cross
14340 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
14342 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
14343 for ac_func in finitel
14345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14346 echo "configure:14347: checking for $ac_func" >&5
14347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14348 echo $ac_n "(cached) $ac_c" 1>&6
14349 else
14350 cat > conftest.$ac_ext <<EOF
14351 #line 14352 "configure"
14352 #include "confdefs.h"
14353 /* System header to define __stub macros and hopefully few prototypes,
14354 which can conflict with char $ac_func(); below. */
14355 #include <assert.h>
14356 /* Override any gcc2 internal prototype to avoid an error. */
14357 /* We use char because int might match the return type of a gcc2
14358 builtin and then its argument prototype would still apply. */
14359 char $ac_func();
14361 int main() {
14363 /* The GNU C library defines this for functions which it implements
14364 to always fail with ENOSYS. Some functions are actually named
14365 something starting with __ and the normal name is an alias. */
14366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14367 choke me
14368 #else
14369 $ac_func();
14370 #endif
14372 ; return 0; }
14374 if { (eval echo configure:14375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14375 rm -rf conftest*
14376 eval "ac_cv_func_$ac_func=yes"
14377 else
14378 echo "configure: failed program was:" >&5
14379 cat conftest.$ac_ext >&5
14380 rm -rf conftest*
14381 eval "ac_cv_func_$ac_func=no"
14383 rm -f conftest*
14386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14387 echo "$ac_t""yes" 1>&6
14388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14389 cat >> confdefs.h <<EOF
14390 #define $ac_tr_func 1
14393 else
14394 echo "$ac_t""no" 1>&6
14396 done
14398 else
14400 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
14401 echo "configure:14402: checking for _finitel declaration" >&5
14402 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
14403 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
14404 echo $ac_n "(cached) $ac_c" 1>&6
14405 else
14408 ac_ext=C
14409 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14410 ac_cpp='$CXXCPP $CPPFLAGS'
14411 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14412 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14413 cross_compiling=$ac_cv_prog_cxx_cross
14415 cat > conftest.$ac_ext <<EOF
14416 #line 14417 "configure"
14417 #include "confdefs.h"
14418 #include <math.h>
14419 #ifdef HAVE_IEEEFP_H
14420 #include <ieeefp.h>
14421 #endif
14423 int main() {
14424 _finitel(0);
14425 ; return 0; }
14427 if { (eval echo configure:14428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14428 rm -rf conftest*
14429 glibcpp_cv_func__finitel_use=yes
14430 else
14431 echo "configure: failed program was:" >&5
14432 cat conftest.$ac_ext >&5
14433 rm -rf conftest*
14434 glibcpp_cv_func__finitel_use=no
14436 rm -f conftest*
14437 ac_ext=c
14438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14439 ac_cpp='$CPP $CPPFLAGS'
14440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14442 cross_compiling=$ac_cv_prog_cc_cross
14448 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
14450 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
14451 for ac_func in _finitel
14453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14454 echo "configure:14455: checking for $ac_func" >&5
14455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14456 echo $ac_n "(cached) $ac_c" 1>&6
14457 else
14458 cat > conftest.$ac_ext <<EOF
14459 #line 14460 "configure"
14460 #include "confdefs.h"
14461 /* System header to define __stub macros and hopefully few prototypes,
14462 which can conflict with char $ac_func(); below. */
14463 #include <assert.h>
14464 /* Override any gcc2 internal prototype to avoid an error. */
14465 /* We use char because int might match the return type of a gcc2
14466 builtin and then its argument prototype would still apply. */
14467 char $ac_func();
14469 int main() {
14471 /* The GNU C library defines this for functions which it implements
14472 to always fail with ENOSYS. Some functions are actually named
14473 something starting with __ and the normal name is an alias. */
14474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14475 choke me
14476 #else
14477 $ac_func();
14478 #endif
14480 ; return 0; }
14482 if { (eval echo configure:14483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14483 rm -rf conftest*
14484 eval "ac_cv_func_$ac_func=yes"
14485 else
14486 echo "configure: failed program was:" >&5
14487 cat conftest.$ac_ext >&5
14488 rm -rf conftest*
14489 eval "ac_cv_func_$ac_func=no"
14491 rm -f conftest*
14494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14495 echo "$ac_t""yes" 1>&6
14496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14497 cat >> confdefs.h <<EOF
14498 #define $ac_tr_func 1
14501 else
14502 echo "$ac_t""no" 1>&6
14504 done
14512 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
14513 echo "configure:14514: checking for _float trig functions" >&5
14514 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
14515 echo $ac_n "(cached) $ac_c" 1>&6
14516 else
14519 ac_ext=C
14520 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14521 ac_cpp='$CXXCPP $CPPFLAGS'
14522 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14523 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14524 cross_compiling=$ac_cv_prog_cxx_cross
14526 cat > conftest.$ac_ext <<EOF
14527 #line 14528 "configure"
14528 #include "confdefs.h"
14529 #include <math.h>
14530 int main() {
14531 `for x in _acosf _asinf _atanf \
14532 _cosf _sinf _tanf \
14533 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
14534 ; return 0; }
14536 if { (eval echo configure:14537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14537 rm -rf conftest*
14538 glibcpp_cv_func__float_trig_use=yes
14539 else
14540 echo "configure: failed program was:" >&5
14541 cat conftest.$ac_ext >&5
14542 rm -rf conftest*
14543 glibcpp_cv_func__float_trig_use=no
14545 rm -f conftest*
14546 ac_ext=c
14547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14548 ac_cpp='$CPP $CPPFLAGS'
14549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14551 cross_compiling=$ac_cv_prog_cc_cross
14555 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
14556 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
14557 for ac_func in _acosf _asinf _atanf \
14558 _cosf _sinf _tanf \
14559 _coshf _sinhf _tanhf
14561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14562 echo "configure:14563: checking for $ac_func" >&5
14563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14564 echo $ac_n "(cached) $ac_c" 1>&6
14565 else
14566 cat > conftest.$ac_ext <<EOF
14567 #line 14568 "configure"
14568 #include "confdefs.h"
14569 /* System header to define __stub macros and hopefully few prototypes,
14570 which can conflict with char $ac_func(); below. */
14571 #include <assert.h>
14572 /* Override any gcc2 internal prototype to avoid an error. */
14573 /* We use char because int might match the return type of a gcc2
14574 builtin and then its argument prototype would still apply. */
14575 char $ac_func();
14577 int main() {
14579 /* The GNU C library defines this for functions which it implements
14580 to always fail with ENOSYS. Some functions are actually named
14581 something starting with __ and the normal name is an alias. */
14582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14583 choke me
14584 #else
14585 $ac_func();
14586 #endif
14588 ; return 0; }
14590 if { (eval echo configure:14591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14591 rm -rf conftest*
14592 eval "ac_cv_func_$ac_func=yes"
14593 else
14594 echo "configure: failed program was:" >&5
14595 cat conftest.$ac_ext >&5
14596 rm -rf conftest*
14597 eval "ac_cv_func_$ac_func=no"
14599 rm -f conftest*
14602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14603 echo "$ac_t""yes" 1>&6
14604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14605 cat >> confdefs.h <<EOF
14606 #define $ac_tr_func 1
14609 else
14610 echo "$ac_t""no" 1>&6
14612 done
14617 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
14618 echo "configure:14619: checking for _float round functions" >&5
14619 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
14620 echo $ac_n "(cached) $ac_c" 1>&6
14621 else
14624 ac_ext=C
14625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14626 ac_cpp='$CXXCPP $CPPFLAGS'
14627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14629 cross_compiling=$ac_cv_prog_cxx_cross
14631 cat > conftest.$ac_ext <<EOF
14632 #line 14633 "configure"
14633 #include "confdefs.h"
14634 #include <math.h>
14635 int main() {
14636 `for x in _ceilf _floorf; do echo "$x (0);"; done`
14637 ; return 0; }
14639 if { (eval echo configure:14640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14640 rm -rf conftest*
14641 glibcpp_cv_func__float_round_use=yes
14642 else
14643 echo "configure: failed program was:" >&5
14644 cat conftest.$ac_ext >&5
14645 rm -rf conftest*
14646 glibcpp_cv_func__float_round_use=no
14648 rm -f conftest*
14649 ac_ext=c
14650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14651 ac_cpp='$CPP $CPPFLAGS'
14652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14654 cross_compiling=$ac_cv_prog_cc_cross
14658 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
14659 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
14660 for ac_func in _ceilf _floorf
14662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14663 echo "configure:14664: checking for $ac_func" >&5
14664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14665 echo $ac_n "(cached) $ac_c" 1>&6
14666 else
14667 cat > conftest.$ac_ext <<EOF
14668 #line 14669 "configure"
14669 #include "confdefs.h"
14670 /* System header to define __stub macros and hopefully few prototypes,
14671 which can conflict with char $ac_func(); below. */
14672 #include <assert.h>
14673 /* Override any gcc2 internal prototype to avoid an error. */
14674 /* We use char because int might match the return type of a gcc2
14675 builtin and then its argument prototype would still apply. */
14676 char $ac_func();
14678 int main() {
14680 /* The GNU C library defines this for functions which it implements
14681 to always fail with ENOSYS. Some functions are actually named
14682 something starting with __ and the normal name is an alias. */
14683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14684 choke me
14685 #else
14686 $ac_func();
14687 #endif
14689 ; return 0; }
14691 if { (eval echo configure:14692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14692 rm -rf conftest*
14693 eval "ac_cv_func_$ac_func=yes"
14694 else
14695 echo "configure: failed program was:" >&5
14696 cat conftest.$ac_ext >&5
14697 rm -rf conftest*
14698 eval "ac_cv_func_$ac_func=no"
14700 rm -f conftest*
14703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14704 echo "$ac_t""yes" 1>&6
14705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14706 cat >> confdefs.h <<EOF
14707 #define $ac_tr_func 1
14710 else
14711 echo "$ac_t""no" 1>&6
14713 done
14719 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
14720 echo "configure:14721: checking for _long double trig functions" >&5
14721 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
14722 echo $ac_n "(cached) $ac_c" 1>&6
14723 else
14726 ac_ext=C
14727 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14728 ac_cpp='$CXXCPP $CPPFLAGS'
14729 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14730 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14731 cross_compiling=$ac_cv_prog_cxx_cross
14733 cat > conftest.$ac_ext <<EOF
14734 #line 14735 "configure"
14735 #include "confdefs.h"
14736 #include <math.h>
14737 int main() {
14738 `for x in _acosl _asinl _atanl \
14739 _cosl _sinl _tanl \
14740 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
14741 ; return 0; }
14743 if { (eval echo configure:14744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14744 rm -rf conftest*
14745 glibcpp_cv_func__long_double_trig_use=yes
14746 else
14747 echo "configure: failed program was:" >&5
14748 cat conftest.$ac_ext >&5
14749 rm -rf conftest*
14750 glibcpp_cv_func__long_double_trig_use=no
14752 rm -f conftest*
14753 ac_ext=c
14754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14755 ac_cpp='$CPP $CPPFLAGS'
14756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14758 cross_compiling=$ac_cv_prog_cc_cross
14762 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
14763 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
14764 for ac_func in _acosl _asinl _atanl \
14765 _cosl _sinl _tanl \
14766 _coshl _sinhl _tanhl
14768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14769 echo "configure:14770: checking for $ac_func" >&5
14770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14771 echo $ac_n "(cached) $ac_c" 1>&6
14772 else
14773 cat > conftest.$ac_ext <<EOF
14774 #line 14775 "configure"
14775 #include "confdefs.h"
14776 /* System header to define __stub macros and hopefully few prototypes,
14777 which can conflict with char $ac_func(); below. */
14778 #include <assert.h>
14779 /* Override any gcc2 internal prototype to avoid an error. */
14780 /* We use char because int might match the return type of a gcc2
14781 builtin and then its argument prototype would still apply. */
14782 char $ac_func();
14784 int main() {
14786 /* The GNU C library defines this for functions which it implements
14787 to always fail with ENOSYS. Some functions are actually named
14788 something starting with __ and the normal name is an alias. */
14789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14790 choke me
14791 #else
14792 $ac_func();
14793 #endif
14795 ; return 0; }
14797 if { (eval echo configure:14798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14798 rm -rf conftest*
14799 eval "ac_cv_func_$ac_func=yes"
14800 else
14801 echo "configure: failed program was:" >&5
14802 cat conftest.$ac_ext >&5
14803 rm -rf conftest*
14804 eval "ac_cv_func_$ac_func=no"
14806 rm -f conftest*
14809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14810 echo "$ac_t""yes" 1>&6
14811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14812 cat >> confdefs.h <<EOF
14813 #define $ac_tr_func 1
14816 else
14817 echo "$ac_t""no" 1>&6
14819 done
14824 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
14825 echo "configure:14826: checking for _long double round functions" >&5
14826 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
14827 echo $ac_n "(cached) $ac_c" 1>&6
14828 else
14831 ac_ext=C
14832 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14833 ac_cpp='$CXXCPP $CPPFLAGS'
14834 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14835 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14836 cross_compiling=$ac_cv_prog_cxx_cross
14838 cat > conftest.$ac_ext <<EOF
14839 #line 14840 "configure"
14840 #include "confdefs.h"
14841 #include <math.h>
14842 int main() {
14843 `for x in _ceill _floorl; do echo "$x (0);"; done`
14844 ; return 0; }
14846 if { (eval echo configure:14847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14847 rm -rf conftest*
14848 glibcpp_cv_func__long_double_round_use=yes
14849 else
14850 echo "configure: failed program was:" >&5
14851 cat conftest.$ac_ext >&5
14852 rm -rf conftest*
14853 glibcpp_cv_func__long_double_round_use=no
14855 rm -f conftest*
14856 ac_ext=c
14857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14858 ac_cpp='$CPP $CPPFLAGS'
14859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14861 cross_compiling=$ac_cv_prog_cc_cross
14865 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
14866 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
14867 for ac_func in _ceill _floorl
14869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14870 echo "configure:14871: checking for $ac_func" >&5
14871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14872 echo $ac_n "(cached) $ac_c" 1>&6
14873 else
14874 cat > conftest.$ac_ext <<EOF
14875 #line 14876 "configure"
14876 #include "confdefs.h"
14877 /* System header to define __stub macros and hopefully few prototypes,
14878 which can conflict with char $ac_func(); below. */
14879 #include <assert.h>
14880 /* Override any gcc2 internal prototype to avoid an error. */
14881 /* We use char because int might match the return type of a gcc2
14882 builtin and then its argument prototype would still apply. */
14883 char $ac_func();
14885 int main() {
14887 /* The GNU C library defines this for functions which it implements
14888 to always fail with ENOSYS. Some functions are actually named
14889 something starting with __ and the normal name is an alias. */
14890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14891 choke me
14892 #else
14893 $ac_func();
14894 #endif
14896 ; return 0; }
14898 if { (eval echo configure:14899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14899 rm -rf conftest*
14900 eval "ac_cv_func_$ac_func=yes"
14901 else
14902 echo "configure: failed program was:" >&5
14903 cat conftest.$ac_ext >&5
14904 rm -rf conftest*
14905 eval "ac_cv_func_$ac_func=no"
14907 rm -f conftest*
14910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14911 echo "$ac_t""yes" 1>&6
14912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14913 cat >> confdefs.h <<EOF
14914 #define $ac_tr_func 1
14917 else
14918 echo "$ac_t""no" 1>&6
14920 done
14925 LIBS="$ac_save_LIBS"
14926 CXXFLAGS="$ac_save_CXXFLAGS"
14929 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
14930 echo "configure:14931: checking for main in -lm" >&5
14931 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
14932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14933 echo $ac_n "(cached) $ac_c" 1>&6
14934 else
14935 ac_save_LIBS="$LIBS"
14936 LIBS="-lm $LIBS"
14937 cat > conftest.$ac_ext <<EOF
14938 #line 14939 "configure"
14939 #include "confdefs.h"
14941 int main() {
14942 main()
14943 ; return 0; }
14945 if { (eval echo configure:14946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14946 rm -rf conftest*
14947 eval "ac_cv_lib_$ac_lib_var=yes"
14948 else
14949 echo "configure: failed program was:" >&5
14950 cat conftest.$ac_ext >&5
14951 rm -rf conftest*
14952 eval "ac_cv_lib_$ac_lib_var=no"
14954 rm -f conftest*
14955 LIBS="$ac_save_LIBS"
14958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14959 echo "$ac_t""yes" 1>&6
14960 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14961 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14962 cat >> confdefs.h <<EOF
14963 #define $ac_tr_lib 1
14966 LIBS="-lm $LIBS"
14968 else
14969 echo "$ac_t""no" 1>&6
14972 for ac_func in nan hypot hypotf atan2f expf copysignf
14974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14975 echo "configure:14976: checking for $ac_func" >&5
14976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14977 echo $ac_n "(cached) $ac_c" 1>&6
14978 else
14979 cat > conftest.$ac_ext <<EOF
14980 #line 14981 "configure"
14981 #include "confdefs.h"
14982 /* System header to define __stub macros and hopefully few prototypes,
14983 which can conflict with char $ac_func(); below. */
14984 #include <assert.h>
14985 /* Override any gcc2 internal prototype to avoid an error. */
14986 /* We use char because int might match the return type of a gcc2
14987 builtin and then its argument prototype would still apply. */
14988 char $ac_func();
14990 int main() {
14992 /* The GNU C library defines this for functions which it implements
14993 to always fail with ENOSYS. Some functions are actually named
14994 something starting with __ and the normal name is an alias. */
14995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14996 choke me
14997 #else
14998 $ac_func();
14999 #endif
15001 ; return 0; }
15003 if { (eval echo configure:15004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15004 rm -rf conftest*
15005 eval "ac_cv_func_$ac_func=yes"
15006 else
15007 echo "configure: failed program was:" >&5
15008 cat conftest.$ac_ext >&5
15009 rm -rf conftest*
15010 eval "ac_cv_func_$ac_func=no"
15012 rm -f conftest*
15015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15016 echo "$ac_t""yes" 1>&6
15017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15018 cat >> confdefs.h <<EOF
15019 #define $ac_tr_func 1
15022 else
15023 echo "$ac_t""no" 1>&6
15024 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15026 done
15030 USE_COMPLEX_LONG_DOUBLE=no
15031 if test x$ac_cv_func_atan2l = x"yes" \
15032 && test x$ac_cv_func_copysignl = x"yes"; then
15033 USE_COMPLEX_LONG_DOUBLE=yes
15034 for ac_func in hypotl signbitl
15036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15037 echo "configure:15038: checking for $ac_func" >&5
15038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15039 echo $ac_n "(cached) $ac_c" 1>&6
15040 else
15041 cat > conftest.$ac_ext <<EOF
15042 #line 15043 "configure"
15043 #include "confdefs.h"
15044 /* System header to define __stub macros and hopefully few prototypes,
15045 which can conflict with char $ac_func(); below. */
15046 #include <assert.h>
15047 /* Override any gcc2 internal prototype to avoid an error. */
15048 /* We use char because int might match the return type of a gcc2
15049 builtin and then its argument prototype would still apply. */
15050 char $ac_func();
15052 int main() {
15054 /* The GNU C library defines this for functions which it implements
15055 to always fail with ENOSYS. Some functions are actually named
15056 something starting with __ and the normal name is an alias. */
15057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15058 choke me
15059 #else
15060 $ac_func();
15061 #endif
15063 ; return 0; }
15065 if { (eval echo configure:15066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15066 rm -rf conftest*
15067 eval "ac_cv_func_$ac_func=yes"
15068 else
15069 echo "configure: failed program was:" >&5
15070 cat conftest.$ac_ext >&5
15071 rm -rf conftest*
15072 eval "ac_cv_func_$ac_func=no"
15074 rm -f conftest*
15077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15078 echo "$ac_t""yes" 1>&6
15079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15080 cat >> confdefs.h <<EOF
15081 #define $ac_tr_func 1
15084 else
15085 echo "$ac_t""no" 1>&6
15086 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15088 done
15097 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15098 echo "configure:15099: checking for mbstate_t" >&5
15099 cat > conftest.$ac_ext <<EOF
15100 #line 15101 "configure"
15101 #include "confdefs.h"
15102 #include <wchar.h>
15103 int main() {
15104 mbstate_t teststate;
15105 ; return 0; }
15107 if { (eval echo configure:15108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15108 rm -rf conftest*
15109 have_mbstate_t=yes
15110 else
15111 echo "configure: failed program was:" >&5
15112 cat conftest.$ac_ext >&5
15113 rm -rf conftest*
15114 have_mbstate_t=no
15116 rm -f conftest*
15117 echo "$ac_t""$have_mbstate_t" 1>&6
15118 if test x"$have_mbstate_t" = xyes; then
15119 cat >> confdefs.h <<\EOF
15120 #define HAVE_MBSTATE_T 1
15125 for ac_hdr in wchar.h
15127 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15129 echo "configure:15130: checking for $ac_hdr" >&5
15130 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15131 echo $ac_n "(cached) $ac_c" 1>&6
15132 else
15133 cat > conftest.$ac_ext <<EOF
15134 #line 15135 "configure"
15135 #include "confdefs.h"
15136 #include <$ac_hdr>
15138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15139 { (eval echo configure:15140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15141 if test -z "$ac_err"; then
15142 rm -rf conftest*
15143 eval "ac_cv_header_$ac_safe=yes"
15144 else
15145 echo "$ac_err" >&5
15146 echo "configure: failed program was:" >&5
15147 cat conftest.$ac_ext >&5
15148 rm -rf conftest*
15149 eval "ac_cv_header_$ac_safe=no"
15151 rm -f conftest*
15153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15154 echo "$ac_t""yes" 1>&6
15155 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15156 cat >> confdefs.h <<EOF
15157 #define $ac_tr_hdr 1
15159 ac_has_wchar_h=yes
15160 else
15161 echo "$ac_t""no" 1>&6
15162 ac_has_wchar_h=no
15164 done
15166 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
15167 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
15168 echo "configure:15169: checking for wctype.h" >&5
15169 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15170 echo $ac_n "(cached) $ac_c" 1>&6
15171 else
15172 cat > conftest.$ac_ext <<EOF
15173 #line 15174 "configure"
15174 #include "confdefs.h"
15175 #include <wctype.h>
15177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15178 { (eval echo configure:15179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15180 if test -z "$ac_err"; then
15181 rm -rf conftest*
15182 eval "ac_cv_header_$ac_safe=yes"
15183 else
15184 echo "$ac_err" >&5
15185 echo "configure: failed program was:" >&5
15186 cat conftest.$ac_ext >&5
15187 rm -rf conftest*
15188 eval "ac_cv_header_$ac_safe=no"
15190 rm -f conftest*
15192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15193 echo "$ac_t""yes" 1>&6
15194 ac_has_wctype_h=yes
15195 else
15196 echo "$ac_t""no" 1>&6
15197 ac_has_wctype_h=no
15201 if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes \
15202 && test x"$enable_c_mbchar" != xno; then
15204 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
15205 echo "configure:15206: checking for WCHAR_MIN and WCHAR_MAX" >&5
15206 cat > conftest.$ac_ext <<EOF
15207 #line 15208 "configure"
15208 #include "confdefs.h"
15209 #include <wchar.h>
15210 int main() {
15211 int i = WCHAR_MIN; int j = WCHAR_MAX;
15212 ; return 0; }
15214 if { (eval echo configure:15215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15215 rm -rf conftest*
15216 has_wchar_minmax=yes
15217 else
15218 echo "configure: failed program was:" >&5
15219 cat conftest.$ac_ext >&5
15220 rm -rf conftest*
15221 has_wchar_minmax=no
15223 rm -f conftest*
15224 echo "$ac_t""$has_wchar_minmax" 1>&6
15226 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
15227 echo "configure:15228: checking for WEOF" >&5
15228 cat > conftest.$ac_ext <<EOF
15229 #line 15230 "configure"
15230 #include "confdefs.h"
15232 #include <wchar.h>
15233 #include <stddef.h>
15234 int main() {
15235 wint_t i = WEOF;
15236 ; return 0; }
15238 if { (eval echo configure:15239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15239 rm -rf conftest*
15240 has_weof=yes
15241 else
15242 echo "configure: failed program was:" >&5
15243 cat conftest.$ac_ext >&5
15244 rm -rf conftest*
15245 has_weof=no
15247 rm -f conftest*
15248 echo "$ac_t""$has_weof" 1>&6
15250 ac_wfuncs=yes
15251 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
15253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15254 echo "configure:15255: checking for $ac_func" >&5
15255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15256 echo $ac_n "(cached) $ac_c" 1>&6
15257 else
15258 cat > conftest.$ac_ext <<EOF
15259 #line 15260 "configure"
15260 #include "confdefs.h"
15261 /* System header to define __stub macros and hopefully few prototypes,
15262 which can conflict with char $ac_func(); below. */
15263 #include <assert.h>
15264 /* Override any gcc2 internal prototype to avoid an error. */
15265 /* We use char because int might match the return type of a gcc2
15266 builtin and then its argument prototype would still apply. */
15267 char $ac_func();
15269 int main() {
15271 /* The GNU C library defines this for functions which it implements
15272 to always fail with ENOSYS. Some functions are actually named
15273 something starting with __ and the normal name is an alias. */
15274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15275 choke me
15276 #else
15277 $ac_func();
15278 #endif
15280 ; return 0; }
15282 if { (eval echo configure:15283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15283 rm -rf conftest*
15284 eval "ac_cv_func_$ac_func=yes"
15285 else
15286 echo "configure: failed program was:" >&5
15287 cat conftest.$ac_ext >&5
15288 rm -rf conftest*
15289 eval "ac_cv_func_$ac_func=no"
15291 rm -f conftest*
15294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15295 echo "$ac_t""yes" 1>&6
15296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15297 cat >> confdefs.h <<EOF
15298 #define $ac_tr_func 1
15301 else
15302 echo "$ac_t""no" 1>&6
15304 ac_wfuncs=no
15306 done
15309 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
15310 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
15311 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
15312 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
15313 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
15314 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
15316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15317 echo "configure:15318: checking for $ac_func" >&5
15318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15319 echo $ac_n "(cached) $ac_c" 1>&6
15320 else
15321 cat > conftest.$ac_ext <<EOF
15322 #line 15323 "configure"
15323 #include "confdefs.h"
15324 /* System header to define __stub macros and hopefully few prototypes,
15325 which can conflict with char $ac_func(); below. */
15326 #include <assert.h>
15327 /* Override any gcc2 internal prototype to avoid an error. */
15328 /* We use char because int might match the return type of a gcc2
15329 builtin and then its argument prototype would still apply. */
15330 char $ac_func();
15332 int main() {
15334 /* The GNU C library defines this for functions which it implements
15335 to always fail with ENOSYS. Some functions are actually named
15336 something starting with __ and the normal name is an alias. */
15337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15338 choke me
15339 #else
15340 $ac_func();
15341 #endif
15343 ; return 0; }
15345 if { (eval echo configure:15346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15346 rm -rf conftest*
15347 eval "ac_cv_func_$ac_func=yes"
15348 else
15349 echo "configure: failed program was:" >&5
15350 cat conftest.$ac_ext >&5
15351 rm -rf conftest*
15352 eval "ac_cv_func_$ac_func=no"
15354 rm -f conftest*
15357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15358 echo "$ac_t""yes" 1>&6
15359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15360 cat >> confdefs.h <<EOF
15361 #define $ac_tr_func 1
15364 else
15365 echo "$ac_t""no" 1>&6
15367 ac_wfuncs=no
15369 done
15372 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
15373 echo "configure:15374: checking for ISO C99 wchar_t support" >&5
15374 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes \
15375 && test x"$ac_wfuncs" = xyes; then
15376 ac_isoC99_wchar_t=yes
15377 else
15378 ac_isoC99_wchar_t=no
15380 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
15382 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
15383 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
15384 echo "configure:15385: checking for iconv.h" >&5
15385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15386 echo $ac_n "(cached) $ac_c" 1>&6
15387 else
15388 cat > conftest.$ac_ext <<EOF
15389 #line 15390 "configure"
15390 #include "confdefs.h"
15391 #include <iconv.h>
15393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15394 { (eval echo configure:15395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15396 if test -z "$ac_err"; then
15397 rm -rf conftest*
15398 eval "ac_cv_header_$ac_safe=yes"
15399 else
15400 echo "$ac_err" >&5
15401 echo "configure: failed program was:" >&5
15402 cat conftest.$ac_ext >&5
15403 rm -rf conftest*
15404 eval "ac_cv_header_$ac_safe=no"
15406 rm -f conftest*
15408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15409 echo "$ac_t""yes" 1>&6
15410 ac_has_iconv_h=yes
15411 else
15412 echo "$ac_t""no" 1>&6
15413 ac_has_iconv_h=no
15416 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
15417 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
15418 echo "configure:15419: checking for langinfo.h" >&5
15419 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15420 echo $ac_n "(cached) $ac_c" 1>&6
15421 else
15422 cat > conftest.$ac_ext <<EOF
15423 #line 15424 "configure"
15424 #include "confdefs.h"
15425 #include <langinfo.h>
15427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15428 { (eval echo configure:15429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15430 if test -z "$ac_err"; then
15431 rm -rf conftest*
15432 eval "ac_cv_header_$ac_safe=yes"
15433 else
15434 echo "$ac_err" >&5
15435 echo "configure: failed program was:" >&5
15436 cat conftest.$ac_ext >&5
15437 rm -rf conftest*
15438 eval "ac_cv_header_$ac_safe=no"
15440 rm -f conftest*
15442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15443 echo "$ac_t""yes" 1>&6
15444 ac_has_langinfo_h=yes
15445 else
15446 echo "$ac_t""no" 1>&6
15447 ac_has_langinfo_h=no
15451 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
15452 echo "configure:15453: checking for iconv in -liconv" >&5
15453 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
15454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15455 echo $ac_n "(cached) $ac_c" 1>&6
15456 else
15457 ac_save_LIBS="$LIBS"
15458 LIBS="-liconv $LIBS"
15459 cat > conftest.$ac_ext <<EOF
15460 #line 15461 "configure"
15461 #include "confdefs.h"
15462 /* Override any gcc2 internal prototype to avoid an error. */
15463 /* We use char because int might match the return type of a gcc2
15464 builtin and then its argument prototype would still apply. */
15465 char iconv();
15467 int main() {
15468 iconv()
15469 ; return 0; }
15471 if { (eval echo configure:15472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15472 rm -rf conftest*
15473 eval "ac_cv_lib_$ac_lib_var=yes"
15474 else
15475 echo "configure: failed program was:" >&5
15476 cat conftest.$ac_ext >&5
15477 rm -rf conftest*
15478 eval "ac_cv_lib_$ac_lib_var=no"
15480 rm -f conftest*
15481 LIBS="$ac_save_LIBS"
15484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15485 echo "$ac_t""yes" 1>&6
15486 libiconv="-liconv"
15487 else
15488 echo "$ac_t""no" 1>&6
15491 ac_save_LIBS="$LIBS"
15492 LIBS="$LIBS $libiconv"
15494 for ac_func in iconv_open iconv_close iconv nl_langinfo
15496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15497 echo "configure:15498: checking for $ac_func" >&5
15498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15499 echo $ac_n "(cached) $ac_c" 1>&6
15500 else
15501 cat > conftest.$ac_ext <<EOF
15502 #line 15503 "configure"
15503 #include "confdefs.h"
15504 /* System header to define __stub macros and hopefully few prototypes,
15505 which can conflict with char $ac_func(); below. */
15506 #include <assert.h>
15507 /* Override any gcc2 internal prototype to avoid an error. */
15508 /* We use char because int might match the return type of a gcc2
15509 builtin and then its argument prototype would still apply. */
15510 char $ac_func();
15512 int main() {
15514 /* The GNU C library defines this for functions which it implements
15515 to always fail with ENOSYS. Some functions are actually named
15516 something starting with __ and the normal name is an alias. */
15517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15518 choke me
15519 #else
15520 $ac_func();
15521 #endif
15523 ; return 0; }
15525 if { (eval echo configure:15526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15526 rm -rf conftest*
15527 eval "ac_cv_func_$ac_func=yes"
15528 else
15529 echo "configure: failed program was:" >&5
15530 cat conftest.$ac_ext >&5
15531 rm -rf conftest*
15532 eval "ac_cv_func_$ac_func=no"
15534 rm -f conftest*
15537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15538 echo "$ac_t""yes" 1>&6
15539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15540 cat >> confdefs.h <<EOF
15541 #define $ac_tr_func 1
15544 ac_XPG2funcs=yes
15545 else
15546 echo "$ac_t""no" 1>&6
15547 ac_XPG2funcs=no
15549 done
15552 LIBS="$ac_save_LIBS"
15554 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
15555 echo "configure:15556: checking for XPG2 wchar_t support" >&5
15556 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes \
15557 && test x"$ac_XPG2funcs" = xyes; then
15558 ac_XPG2_wchar_t=yes
15559 else
15560 ac_XPG2_wchar_t=no
15562 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
15564 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
15565 echo "configure:15566: checking for enabled wchar_t specializations" >&5
15566 if test x"$ac_isoC99_wchar_t" = xyes \
15567 && test x"$ac_XPG2_wchar_t" = xyes; then
15568 cat >> confdefs.h <<\EOF
15569 #define _GLIBCPP_USE_WCHAR_T 1
15572 echo "$ac_t"""yes"" 1>&6
15573 else
15574 echo "$ac_t"""no"" 1>&6
15576 else
15577 echo "configure: warning: wchar_t support disabled." 1>&2
15581 ac_test_CXXFLAGS="${CXXFLAGS+set}"
15582 ac_save_CXXFLAGS="$CXXFLAGS"
15583 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
15586 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
15587 echo "configure:15588: checking for strtold declaration" >&5
15588 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
15589 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
15590 echo $ac_n "(cached) $ac_c" 1>&6
15591 else
15594 ac_ext=C
15595 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15596 ac_cpp='$CXXCPP $CPPFLAGS'
15597 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15598 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15599 cross_compiling=$ac_cv_prog_cxx_cross
15601 cat > conftest.$ac_ext <<EOF
15602 #line 15603 "configure"
15603 #include "confdefs.h"
15604 #include <stdlib.h>
15605 int main() {
15606 strtold(0, 0);
15607 ; return 0; }
15609 if { (eval echo configure:15610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15610 rm -rf conftest*
15611 glibcpp_cv_func_strtold_use=yes
15612 else
15613 echo "configure: failed program was:" >&5
15614 cat conftest.$ac_ext >&5
15615 rm -rf conftest*
15616 glibcpp_cv_func_strtold_use=no
15618 rm -f conftest*
15619 ac_ext=c
15620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15621 ac_cpp='$CPP $CPPFLAGS'
15622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15624 cross_compiling=$ac_cv_prog_cc_cross
15630 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
15631 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
15632 for ac_func in strtold
15634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15635 echo "configure:15636: checking for $ac_func" >&5
15636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15637 echo $ac_n "(cached) $ac_c" 1>&6
15638 else
15639 cat > conftest.$ac_ext <<EOF
15640 #line 15641 "configure"
15641 #include "confdefs.h"
15642 /* System header to define __stub macros and hopefully few prototypes,
15643 which can conflict with char $ac_func(); below. */
15644 #include <assert.h>
15645 /* Override any gcc2 internal prototype to avoid an error. */
15646 /* We use char because int might match the return type of a gcc2
15647 builtin and then its argument prototype would still apply. */
15648 char $ac_func();
15650 int main() {
15652 /* The GNU C library defines this for functions which it implements
15653 to always fail with ENOSYS. Some functions are actually named
15654 something starting with __ and the normal name is an alias. */
15655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15656 choke me
15657 #else
15658 $ac_func();
15659 #endif
15661 ; return 0; }
15663 if { (eval echo configure:15664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15664 rm -rf conftest*
15665 eval "ac_cv_func_$ac_func=yes"
15666 else
15667 echo "configure: failed program was:" >&5
15668 cat conftest.$ac_ext >&5
15669 rm -rf conftest*
15670 eval "ac_cv_func_$ac_func=no"
15672 rm -f conftest*
15675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15676 echo "$ac_t""yes" 1>&6
15677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15678 cat >> confdefs.h <<EOF
15679 #define $ac_tr_func 1
15682 else
15683 echo "$ac_t""no" 1>&6
15685 done
15689 for ac_func in drand48
15691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15692 echo "configure:15693: checking for $ac_func" >&5
15693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15694 echo $ac_n "(cached) $ac_c" 1>&6
15695 else
15696 cat > conftest.$ac_ext <<EOF
15697 #line 15698 "configure"
15698 #include "confdefs.h"
15699 /* System header to define __stub macros and hopefully few prototypes,
15700 which can conflict with char $ac_func(); below. */
15701 #include <assert.h>
15702 /* Override any gcc2 internal prototype to avoid an error. */
15703 /* We use char because int might match the return type of a gcc2
15704 builtin and then its argument prototype would still apply. */
15705 char $ac_func();
15707 int main() {
15709 /* The GNU C library defines this for functions which it implements
15710 to always fail with ENOSYS. Some functions are actually named
15711 something starting with __ and the normal name is an alias. */
15712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15713 choke me
15714 #else
15715 $ac_func();
15716 #endif
15718 ; return 0; }
15720 if { (eval echo configure:15721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15721 rm -rf conftest*
15722 eval "ac_cv_func_$ac_func=yes"
15723 else
15724 echo "configure: failed program was:" >&5
15725 cat conftest.$ac_ext >&5
15726 rm -rf conftest*
15727 eval "ac_cv_func_$ac_func=no"
15729 rm -f conftest*
15732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15733 echo "$ac_t""yes" 1>&6
15734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15735 cat >> confdefs.h <<EOF
15736 #define $ac_tr_func 1
15739 else
15740 echo "$ac_t""no" 1>&6
15742 done
15745 CXXFLAGS="$ac_save_CXXFLAGS"
15748 cat > conftest.$ac_ext <<EOF
15749 #line 15750 "configure"
15750 #include "confdefs.h"
15752 #include <setjmp.h>
15754 int main() {
15755 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
15756 ; return 0; }
15758 if { (eval echo configure:15759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15759 rm -rf conftest*
15760 cat >> confdefs.h <<\EOF
15761 #define HAVE_SIGSETJMP 1
15764 else
15765 echo "configure: failed program was:" >&5
15766 cat conftest.$ac_ext >&5
15768 rm -f conftest*
15770 for ac_hdr in unistd.h
15772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15774 echo "configure:15775: checking for $ac_hdr" >&5
15775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15776 echo $ac_n "(cached) $ac_c" 1>&6
15777 else
15778 cat > conftest.$ac_ext <<EOF
15779 #line 15780 "configure"
15780 #include "confdefs.h"
15781 #include <$ac_hdr>
15783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15784 { (eval echo configure:15785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15786 if test -z "$ac_err"; then
15787 rm -rf conftest*
15788 eval "ac_cv_header_$ac_safe=yes"
15789 else
15790 echo "$ac_err" >&5
15791 echo "configure: failed program was:" >&5
15792 cat conftest.$ac_ext >&5
15793 rm -rf conftest*
15794 eval "ac_cv_header_$ac_safe=no"
15796 rm -f conftest*
15798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15799 echo "$ac_t""yes" 1>&6
15800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15801 cat >> confdefs.h <<EOF
15802 #define $ac_tr_hdr 1
15805 else
15806 echo "$ac_t""no" 1>&6
15808 done
15810 for ac_func in getpagesize
15812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15813 echo "configure:15814: checking for $ac_func" >&5
15814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15815 echo $ac_n "(cached) $ac_c" 1>&6
15816 else
15817 cat > conftest.$ac_ext <<EOF
15818 #line 15819 "configure"
15819 #include "confdefs.h"
15820 /* System header to define __stub macros and hopefully few prototypes,
15821 which can conflict with char $ac_func(); below. */
15822 #include <assert.h>
15823 /* Override any gcc2 internal prototype to avoid an error. */
15824 /* We use char because int might match the return type of a gcc2
15825 builtin and then its argument prototype would still apply. */
15826 char $ac_func();
15828 int main() {
15830 /* The GNU C library defines this for functions which it implements
15831 to always fail with ENOSYS. Some functions are actually named
15832 something starting with __ and the normal name is an alias. */
15833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15834 choke me
15835 #else
15836 $ac_func();
15837 #endif
15839 ; return 0; }
15841 if { (eval echo configure:15842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15842 rm -rf conftest*
15843 eval "ac_cv_func_$ac_func=yes"
15844 else
15845 echo "configure: failed program was:" >&5
15846 cat conftest.$ac_ext >&5
15847 rm -rf conftest*
15848 eval "ac_cv_func_$ac_func=no"
15850 rm -f conftest*
15853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15854 echo "$ac_t""yes" 1>&6
15855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15856 cat >> confdefs.h <<EOF
15857 #define $ac_tr_func 1
15860 else
15861 echo "$ac_t""no" 1>&6
15863 done
15865 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
15866 echo "configure:15867: checking for working mmap" >&5
15867 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
15868 echo $ac_n "(cached) $ac_c" 1>&6
15869 else
15870 if test "$cross_compiling" = yes; then
15871 ac_cv_func_mmap_fixed_mapped=no
15872 else
15873 cat > conftest.$ac_ext <<EOF
15874 #line 15875 "configure"
15875 #include "confdefs.h"
15877 /* Thanks to Mike Haertel and Jim Avera for this test.
15878 Here is a matrix of mmap possibilities:
15879 mmap private not fixed
15880 mmap private fixed at somewhere currently unmapped
15881 mmap private fixed at somewhere already mapped
15882 mmap shared not fixed
15883 mmap shared fixed at somewhere currently unmapped
15884 mmap shared fixed at somewhere already mapped
15885 For private mappings, we should verify that changes cannot be read()
15886 back from the file, nor mmap's back from the file at a different
15887 address. (There have been systems where private was not correctly
15888 implemented like the infamous i386 svr4.0, and systems where the
15889 VM page cache was not coherent with the filesystem buffer cache
15890 like early versions of FreeBSD and possibly contemporary NetBSD.)
15891 For shared mappings, we should conversely verify that changes get
15892 propogated back to all the places they're supposed to be.
15894 Grep wants private fixed already mapped.
15895 The main things grep needs to know about mmap are:
15896 * does it exist and is it safe to write into the mmap'd area
15897 * how to use it (BSD variants) */
15898 #include <sys/types.h>
15899 #include <fcntl.h>
15900 #include <sys/mman.h>
15902 /* This mess was copied from the GNU getpagesize.h. */
15903 #ifndef HAVE_GETPAGESIZE
15904 # ifdef HAVE_UNISTD_H
15905 # include <unistd.h>
15906 # endif
15908 /* Assume that all systems that can run configure have sys/param.h. */
15909 # ifndef HAVE_SYS_PARAM_H
15910 # define HAVE_SYS_PARAM_H 1
15911 # endif
15913 # ifdef _SC_PAGESIZE
15914 # define getpagesize() sysconf(_SC_PAGESIZE)
15915 # else /* no _SC_PAGESIZE */
15916 # ifdef HAVE_SYS_PARAM_H
15917 # include <sys/param.h>
15918 # ifdef EXEC_PAGESIZE
15919 # define getpagesize() EXEC_PAGESIZE
15920 # else /* no EXEC_PAGESIZE */
15921 # ifdef NBPG
15922 # define getpagesize() NBPG * CLSIZE
15923 # ifndef CLSIZE
15924 # define CLSIZE 1
15925 # endif /* no CLSIZE */
15926 # else /* no NBPG */
15927 # ifdef NBPC
15928 # define getpagesize() NBPC
15929 # else /* no NBPC */
15930 # ifdef PAGESIZE
15931 # define getpagesize() PAGESIZE
15932 # endif /* PAGESIZE */
15933 # endif /* no NBPC */
15934 # endif /* no NBPG */
15935 # endif /* no EXEC_PAGESIZE */
15936 # else /* no HAVE_SYS_PARAM_H */
15937 # define getpagesize() 8192 /* punt totally */
15938 # endif /* no HAVE_SYS_PARAM_H */
15939 # endif /* no _SC_PAGESIZE */
15941 #endif /* no HAVE_GETPAGESIZE */
15943 #ifdef __cplusplus
15944 extern "C" { void *malloc(unsigned); }
15945 #else
15946 char *malloc();
15947 #endif
15950 main()
15952 char *data, *data2, *data3;
15953 int i, pagesize;
15954 int fd;
15956 pagesize = getpagesize();
15959 * First, make a file with some known garbage in it.
15961 data = malloc(pagesize);
15962 if (!data)
15963 exit(1);
15964 for (i = 0; i < pagesize; ++i)
15965 *(data + i) = rand();
15966 umask(0);
15967 fd = creat("conftestmmap", 0600);
15968 if (fd < 0)
15969 exit(1);
15970 if (write(fd, data, pagesize) != pagesize)
15971 exit(1);
15972 close(fd);
15975 * Next, try to mmap the file at a fixed address which
15976 * already has something else allocated at it. If we can,
15977 * also make sure that we see the same garbage.
15979 fd = open("conftestmmap", O_RDWR);
15980 if (fd < 0)
15981 exit(1);
15982 data2 = malloc(2 * pagesize);
15983 if (!data2)
15984 exit(1);
15985 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
15986 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
15987 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15988 exit(1);
15989 for (i = 0; i < pagesize; ++i)
15990 if (*(data + i) != *(data2 + i))
15991 exit(1);
15994 * Finally, make sure that changes to the mapped area
15995 * do not percolate back to the file as seen by read().
15996 * (This is a bug on some variants of i386 svr4.0.)
15998 for (i = 0; i < pagesize; ++i)
15999 *(data2 + i) = *(data2 + i) + 1;
16000 data3 = malloc(pagesize);
16001 if (!data3)
16002 exit(1);
16003 if (read(fd, data3, pagesize) != pagesize)
16004 exit(1);
16005 for (i = 0; i < pagesize; ++i)
16006 if (*(data + i) != *(data3 + i))
16007 exit(1);
16008 close(fd);
16009 unlink("conftestmmap");
16010 exit(0);
16014 if { (eval echo configure:16015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16015 then
16016 ac_cv_func_mmap_fixed_mapped=yes
16017 else
16018 echo "configure: failed program was:" >&5
16019 cat conftest.$ac_ext >&5
16020 rm -fr conftest*
16021 ac_cv_func_mmap_fixed_mapped=no
16023 rm -fr conftest*
16028 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16029 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16030 cat >> confdefs.h <<\EOF
16031 #define HAVE_MMAP 1
16038 # Now that ctype is determined for all possible targets, we can do this...
16046 if test "$NULL_TARGET" = yes; then
16047 NULL_TARGET_TRUE=
16048 NULL_TARGET_FALSE='#'
16049 else
16050 NULL_TARGET_TRUE='#'
16051 NULL_TARGET_FALSE=
16055 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
16056 NATIVE_TRUE=
16057 NATIVE_FALSE='#'
16058 else
16059 NATIVE_TRUE='#'
16060 NATIVE_FALSE=
16064 if test "$CANADIAN" = yes; then
16065 CANADIAN_TRUE=
16066 CANADIAN_FALSE='#'
16067 else
16068 CANADIAN_TRUE='#'
16069 CANADIAN_FALSE=
16072 cat > confcache <<\EOF
16073 # This file is a shell script that caches the results of configure
16074 # tests run on this system so they can be shared between configure
16075 # scripts and configure runs. It is not useful on other systems.
16076 # If it contains results you don't want to keep, you may remove or edit it.
16078 # By default, configure uses ./config.cache as the cache file,
16079 # creating it if it does not exist already. You can give configure
16080 # the --cache-file=FILE option to use a different cache file; that is
16081 # what configure does when it calls configure scripts in
16082 # subdirectories, so they share the cache.
16083 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16084 # config.status only pays attention to the cache file if you give it the
16085 # --recheck option to rerun configure.
16088 # The following way of writing the cache mishandles newlines in values,
16089 # but we know of no workaround that is simple, portable, and efficient.
16090 # So, don't put newlines in cache variables' values.
16091 # Ultrix sh set writes to stderr and can't be redirected directly,
16092 # and sets the high bit in the cache file unless we assign to the vars.
16093 (set) 2>&1 |
16094 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16095 *ac_space=\ *)
16096 # `set' does not quote correctly, so add quotes (double-quote substitution
16097 # turns \\\\ into \\, and sed turns \\ into \).
16098 sed -n \
16099 -e "s/'/'\\\\''/g" \
16100 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16103 # `set' quotes correctly as required by POSIX, so do not add quotes.
16104 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16106 esac >> confcache
16107 if cmp -s $cache_file confcache; then
16109 else
16110 if test -w $cache_file; then
16111 echo "updating cache $cache_file"
16112 cat confcache > $cache_file
16113 else
16114 echo "not updating unwritable cache $cache_file"
16117 rm -f confcache
16120 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16121 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16122 echo "configure:16123: checking for locale.h" >&5
16123 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16124 echo $ac_n "(cached) $ac_c" 1>&6
16125 else
16126 cat > conftest.$ac_ext <<EOF
16127 #line 16128 "configure"
16128 #include "confdefs.h"
16129 #include <locale.h>
16131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16132 { (eval echo configure:16133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16134 if test -z "$ac_err"; then
16135 rm -rf conftest*
16136 eval "ac_cv_header_$ac_safe=yes"
16137 else
16138 echo "$ac_err" >&5
16139 echo "configure: failed program was:" >&5
16140 cat conftest.$ac_ext >&5
16141 rm -rf conftest*
16142 eval "ac_cv_header_$ac_safe=no"
16144 rm -f conftest*
16146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16147 echo "$ac_t""yes" 1>&6
16149 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16150 echo "configure:16151: checking for LC_MESSAGES" >&5
16151 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16152 echo $ac_n "(cached) $ac_c" 1>&6
16153 else
16154 cat > conftest.$ac_ext <<EOF
16155 #line 16156 "configure"
16156 #include "confdefs.h"
16157 #include <locale.h>
16158 int main() {
16159 return LC_MESSAGES
16160 ; return 0; }
16162 if { (eval echo configure:16163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16163 rm -rf conftest*
16164 ac_cv_val_LC_MESSAGES=yes
16165 else
16166 echo "configure: failed program was:" >&5
16167 cat conftest.$ac_ext >&5
16168 rm -rf conftest*
16169 ac_cv_val_LC_MESSAGES=no
16171 rm -f conftest*
16174 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16175 if test $ac_cv_val_LC_MESSAGES = yes; then
16176 cat >> confdefs.h <<\EOF
16177 #define HAVE_LC_MESSAGES 1
16182 else
16183 echo "$ac_t""no" 1>&6
16188 if test "${multilib}" = "yes"; then
16189 multilib_arg="--enable-multilib"
16190 else
16191 multilib_arg=
16195 # Generate the various Makefiles, include files, and scripts.
16197 # Needed so that g++ can find the correct include subdir automatically.
16198 INTERFACE=v3
16200 # Export all the install information
16203 glibcpp_toolexecdir=no
16204 glibcpp_toolexeclibdir=no
16206 # Export build and source directories.
16207 # These need to be absolute paths, yet at the same time need to
16208 # canonicalize only relative paths, because then amd will not unmount
16209 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
16210 glibcpp_builddir=`pwd`
16211 case $srcdir in
16212 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
16213 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
16214 esac
16215 glibcpp_prefixdir=${prefix}
16217 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
16218 echo "configure:16219: checking for interface version number" >&5
16219 libstdcxx_interface=$INTERFACE
16220 echo "$ac_t""$libstdcxx_interface" 1>&6
16222 # Process the option --with-gxx-include-dir=<path to include-files directory>
16223 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
16224 echo "configure:16225: checking for --with-gxx-include-dir" >&5
16225 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
16226 if test "${with_gxx_include_dir+set}" = set; then
16227 withval="$with_gxx_include_dir"
16228 case "${withval}" in
16229 yes)
16230 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
16231 gxx_include_dir=no
16234 gxx_include_dir=no
16237 gxx_include_dir=${withval}
16239 esac
16240 else
16241 gxx_include_dir=no
16244 echo "$ac_t""$gxx_include_dir" 1>&6
16246 # Process the option "--enable-version-specific-runtime-libs"
16247 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
16248 echo "configure:16249: checking for --enable-version-specific-runtime-libs" >&5
16249 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16250 if test "${enable_version_specific_runtime_libs+set}" = set; then
16251 enableval="$enable_version_specific_runtime_libs"
16252 version_specific_libs=yes
16253 # Need the gcc compiler version to know where to install libraries
16254 # and header files if --enable-version-specific-runtime-libs option
16255 # is selected.
16256 gcc_version_trigger=${srcdir}/../gcc/version.c
16257 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
16258 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
16259 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
16260 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16261 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}
16263 else
16264 version_specific_libs=no
16267 echo "$ac_t""$version_specific_libs" 1>&6
16269 # Default case for install directory for include files.
16270 if test x"$version_specific_libs" = x"no" \
16271 && test x"$gxx_include_dir" = x"no"; then
16272 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
16275 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
16276 # Install a library built with a cross compiler in tooldir, not libdir.
16277 if test x"$glibcpp_toolexecdir" = x"no"; then
16278 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
16279 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
16280 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
16281 else
16282 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16283 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
16287 echo $ac_n "checking for install location""... $ac_c" 1>&6
16288 echo "configure:16289: checking for install location" >&5
16289 echo "$ac_t""$gxx_include_dir" 1>&6
16299 # Export all the include and flag information to makefiles.
16301 # Root level of the include sources.
16302 GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include'
16304 # Can either use include/c or include/c_std to grab "C" headers. This
16305 # variable is set to the include directory currently in use.
16306 # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS
16308 # Passed down for canadian crosses.
16309 if test x"$CANADIAN" = xyes; then
16310 TOPLEVEL_INCLUDES='-I$(includedir)'
16313 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
16315 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
16317 #if GLIBCPP_NEED_LIBIO
16318 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
16319 #else
16320 #LIBIO_INCLUDES='-I$(top_srcdir)/libio'
16321 #endif
16323 #if GLIBCPP_USE_CSHADOW
16324 # CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \
16325 # -I$(top_blddir)/cshadow'
16326 #else
16327 CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)'
16328 #endif
16330 # Now, export this to all the little Makefiles....
16339 # Optimization flags that are probably a good idea for thrill-seekers. Just
16340 # uncomment the lines below and make, everything else is ready to go...
16341 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
16342 OPTIMIZE_CXXFLAGS=
16345 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
16349 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
16350 grep "enable shared" > /dev/null; then
16351 LIBSUPCXX_PICFLAGS=-prefer-pic
16352 else
16353 LIBSUPCXX_PICFLAGS=
16357 # This should be done by mkincludedir, but hack around it now.
16358 blddir=`pwd`
16359 echo "checking for $blddir/include"
16361 if test ! -d "$blddir/include"; then
16362 mkdir "$blddir/include"
16365 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
16366 # and libsupc++/Makefile.am so that multilib installs will end up
16367 # installed in the correct place. To work around this not being passed
16368 # down from config-ml.in -> top_srcdir/Makefile.am ->
16369 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
16370 trap '' 1 2 15
16371 cat > confcache <<\EOF
16372 # This file is a shell script that caches the results of configure
16373 # tests run on this system so they can be shared between configure
16374 # scripts and configure runs. It is not useful on other systems.
16375 # If it contains results you don't want to keep, you may remove or edit it.
16377 # By default, configure uses ./config.cache as the cache file,
16378 # creating it if it does not exist already. You can give configure
16379 # the --cache-file=FILE option to use a different cache file; that is
16380 # what configure does when it calls configure scripts in
16381 # subdirectories, so they share the cache.
16382 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16383 # config.status only pays attention to the cache file if you give it the
16384 # --recheck option to rerun configure.
16387 # The following way of writing the cache mishandles newlines in values,
16388 # but we know of no workaround that is simple, portable, and efficient.
16389 # So, don't put newlines in cache variables' values.
16390 # Ultrix sh set writes to stderr and can't be redirected directly,
16391 # and sets the high bit in the cache file unless we assign to the vars.
16392 (set) 2>&1 |
16393 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16394 *ac_space=\ *)
16395 # `set' does not quote correctly, so add quotes (double-quote substitution
16396 # turns \\\\ into \\, and sed turns \\ into \).
16397 sed -n \
16398 -e "s/'/'\\\\''/g" \
16399 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16402 # `set' quotes correctly as required by POSIX, so do not add quotes.
16403 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16405 esac >> confcache
16406 if cmp -s $cache_file confcache; then
16408 else
16409 if test -w $cache_file; then
16410 echo "updating cache $cache_file"
16411 cat confcache > $cache_file
16412 else
16413 echo "not updating unwritable cache $cache_file"
16416 rm -f confcache
16418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16421 # Let make expand exec_prefix.
16422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16424 # Any assignment to VPATH causes Sun make to only execute
16425 # the first set of double-colon rules, so remove it if not needed.
16426 # If there is a colon in the path, we need to keep it.
16427 if test "x$srcdir" = x.; then
16428 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16431 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16433 DEFS=-DHAVE_CONFIG_H
16435 # Without the "./", some shells look in PATH for config.status.
16436 : ${CONFIG_STATUS=./config.status}
16438 echo creating $CONFIG_STATUS
16439 rm -f $CONFIG_STATUS
16440 cat > $CONFIG_STATUS <<EOF
16441 #! /bin/sh
16442 # Generated automatically by configure.
16443 # Run this file to recreate the current configuration.
16444 # This directory was configured as follows,
16445 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16447 # $0 $ac_configure_args
16449 # Compiler output produced by configure, useful for debugging
16450 # configure, is in ./config.log if it exists.
16452 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16453 for ac_option
16455 case "\$ac_option" in
16456 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16457 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16458 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16459 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16460 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16461 exit 0 ;;
16462 -help | --help | --hel | --he | --h)
16463 echo "\$ac_cs_usage"; exit 0 ;;
16464 *) echo "\$ac_cs_usage"; exit 1 ;;
16465 esac
16466 done
16468 ac_given_srcdir=$srcdir
16469 ac_given_INSTALL="$INSTALL"
16471 trap 'rm -fr `echo "Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16473 cat >> $CONFIG_STATUS <<EOF
16475 # Protect against being on the right side of a sed subst in config.status.
16476 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16477 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16478 $ac_vpsub
16479 $extrasub
16480 s%@SHELL@%$SHELL%g
16481 s%@CFLAGS@%$CFLAGS%g
16482 s%@CPPFLAGS@%$CPPFLAGS%g
16483 s%@CXXFLAGS@%$CXXFLAGS%g
16484 s%@FFLAGS@%$FFLAGS%g
16485 s%@DEFS@%$DEFS%g
16486 s%@LDFLAGS@%$LDFLAGS%g
16487 s%@LIBS@%$LIBS%g
16488 s%@exec_prefix@%$exec_prefix%g
16489 s%@prefix@%$prefix%g
16490 s%@program_transform_name@%$program_transform_name%g
16491 s%@bindir@%$bindir%g
16492 s%@sbindir@%$sbindir%g
16493 s%@libexecdir@%$libexecdir%g
16494 s%@datadir@%$datadir%g
16495 s%@sysconfdir@%$sysconfdir%g
16496 s%@sharedstatedir@%$sharedstatedir%g
16497 s%@localstatedir@%$localstatedir%g
16498 s%@libdir@%$libdir%g
16499 s%@includedir@%$includedir%g
16500 s%@oldincludedir@%$oldincludedir%g
16501 s%@infodir@%$infodir%g
16502 s%@mandir@%$mandir%g
16503 s%@toplevel_srcdir@%$toplevel_srcdir%g
16504 s%@host@%$host%g
16505 s%@host_alias@%$host_alias%g
16506 s%@host_cpu@%$host_cpu%g
16507 s%@host_vendor@%$host_vendor%g
16508 s%@host_os@%$host_os%g
16509 s%@target@%$target%g
16510 s%@target_alias@%$target_alias%g
16511 s%@target_cpu@%$target_cpu%g
16512 s%@target_vendor@%$target_vendor%g
16513 s%@target_os@%$target_os%g
16514 s%@build@%$build%g
16515 s%@build_alias@%$build_alias%g
16516 s%@build_cpu@%$build_cpu%g
16517 s%@build_vendor@%$build_vendor%g
16518 s%@build_os@%$build_os%g
16519 s%@glibcpp_basedir@%$glibcpp_basedir%g
16520 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16521 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16522 s%@INSTALL_DATA@%$INSTALL_DATA%g
16523 s%@PACKAGE@%$PACKAGE%g
16524 s%@VERSION@%$VERSION%g
16525 s%@ACLOCAL@%$ACLOCAL%g
16526 s%@AUTOCONF@%$AUTOCONF%g
16527 s%@AUTOMAKE@%$AUTOMAKE%g
16528 s%@AUTOHEADER@%$AUTOHEADER%g
16529 s%@MAKEINFO@%$MAKEINFO%g
16530 s%@SET_MAKE@%$SET_MAKE%g
16531 s%@CC@%$CC%g
16532 s%@glibcpp_CXX@%$glibcpp_CXX%g
16533 s%@AS@%$AS%g
16534 s%@AR@%$AR%g
16535 s%@RANLIB@%$RANLIB%g
16536 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
16537 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
16538 s%@MAINT@%$MAINT%g
16539 s%@EXEEXT@%$EXEEXT%g
16540 s%@LN_S@%$LN_S%g
16541 s%@OBJEXT@%$OBJEXT%g
16542 s%@STRIP@%$STRIP%g
16543 s%@LIBTOOL@%$LIBTOOL%g
16544 s%@CXXCPP@%$CXXCPP%g
16545 s%@enable_shared@%$enable_shared%g
16546 s%@enable_static@%$enable_static%g
16547 s%@ifGNUmake@%$ifGNUmake%g
16548 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
16549 s%@CPP@%$CPP%g
16550 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
16551 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
16552 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
16553 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
16554 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
16555 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
16556 s%@libio_la@%$libio_la%g
16557 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
16558 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
16559 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
16560 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
16561 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
16562 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
16563 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
16564 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
16565 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
16566 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
16567 s%@WERROR@%$WERROR%g
16568 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
16569 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
16570 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
16571 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
16572 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
16573 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
16574 s%@glibcpp_builddir@%$glibcpp_builddir%g
16575 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
16576 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
16577 s%@gxx_include_dir@%$gxx_include_dir%g
16578 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
16579 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
16580 s%@GLIBCPP_INCLUDE_DIR@%$GLIBCPP_INCLUDE_DIR%g
16581 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
16582 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
16583 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
16584 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
16585 s%@CSTD_INCLUDES@%$CSTD_INCLUDES%g
16586 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
16587 s%@WARN_FLAGS@%$WARN_FLAGS%g
16588 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
16590 CEOF
16593 cat >> $CONFIG_STATUS <<\EOF
16595 # Split the substitutions into bite-sized pieces for seds with
16596 # small command number limits, like on Digital OSF/1 and HP-UX.
16597 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16598 ac_file=1 # Number of current file.
16599 ac_beg=1 # First line for current file.
16600 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16601 ac_more_lines=:
16602 ac_sed_cmds=""
16603 while $ac_more_lines; do
16604 if test $ac_beg -gt 1; then
16605 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16606 else
16607 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16609 if test ! -s conftest.s$ac_file; then
16610 ac_more_lines=false
16611 rm -f conftest.s$ac_file
16612 else
16613 if test -z "$ac_sed_cmds"; then
16614 ac_sed_cmds="sed -f conftest.s$ac_file"
16615 else
16616 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16618 ac_file=`expr $ac_file + 1`
16619 ac_beg=$ac_end
16620 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16622 done
16623 if test -z "$ac_sed_cmds"; then
16624 ac_sed_cmds=cat
16628 cat >> $CONFIG_STATUS <<EOF
16630 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags"}
16632 cat >> $CONFIG_STATUS <<\EOF
16633 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16634 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16635 case "$ac_file" in
16636 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16637 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16638 *) ac_file_in="${ac_file}.in" ;;
16639 esac
16641 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16643 # Remove last slash and all that follows it. Not all systems have dirname.
16644 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16645 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16646 # The file is in a subdirectory.
16647 test ! -d "$ac_dir" && mkdir "$ac_dir"
16648 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16649 # A "../" for each directory in $ac_dir_suffix.
16650 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16651 else
16652 ac_dir_suffix= ac_dots=
16655 case "$ac_given_srcdir" in
16656 .) srcdir=.
16657 if test -z "$ac_dots"; then top_srcdir=.
16658 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16659 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16660 *) # Relative path.
16661 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16662 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16663 esac
16665 case "$ac_given_INSTALL" in
16666 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16667 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16668 esac
16670 echo creating "$ac_file"
16671 rm -f "$ac_file"
16672 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16673 case "$ac_file" in
16674 *Makefile*) ac_comsub="1i\\
16675 # $configure_input" ;;
16676 *) ac_comsub= ;;
16677 esac
16679 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16680 sed -e "$ac_comsub
16681 s%@configure_input@%$configure_input%g
16682 s%@srcdir@%$srcdir%g
16683 s%@top_srcdir@%$top_srcdir%g
16684 s%@INSTALL@%$INSTALL%g
16685 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16686 fi; done
16687 rm -f conftest.s*
16689 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16690 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16692 # ac_d sets the value in "#define NAME VALUE" lines.
16693 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16694 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16695 ac_dC='\3'
16696 ac_dD='%g'
16697 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16698 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16699 ac_uB='\([ ]\)%\1#\2define\3'
16700 ac_uC=' '
16701 ac_uD='\4%g'
16702 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16703 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16704 ac_eB='$%\1#\2define\3'
16705 ac_eC=' '
16706 ac_eD='%g'
16708 if test "${CONFIG_HEADERS+set}" != set; then
16710 cat >> $CONFIG_STATUS <<EOF
16711 CONFIG_HEADERS="config.h"
16713 cat >> $CONFIG_STATUS <<\EOF
16715 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16716 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16717 case "$ac_file" in
16718 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16719 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16720 *) ac_file_in="${ac_file}.in" ;;
16721 esac
16723 echo creating $ac_file
16725 rm -f conftest.frag conftest.in conftest.out
16726 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16727 cat $ac_file_inputs > conftest.in
16731 # Transform confdefs.h into a sed script conftest.vals that substitutes
16732 # the proper values into config.h.in to produce config.h. And first:
16733 # Protect against being on the right side of a sed subst in config.status.
16734 # Protect against being in an unquoted here document in config.status.
16735 rm -f conftest.vals
16736 cat > conftest.hdr <<\EOF
16737 s/[\\&%]/\\&/g
16738 s%[\\$`]%\\&%g
16739 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16740 s%ac_d%ac_u%gp
16741 s%ac_u%ac_e%gp
16743 sed -n -f conftest.hdr confdefs.h > conftest.vals
16744 rm -f conftest.hdr
16746 # This sed command replaces #undef with comments. This is necessary, for
16747 # example, in the case of _POSIX_SOURCE, which is predefined and required
16748 # on some systems where configure will not decide to define it.
16749 cat >> conftest.vals <<\EOF
16750 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16753 # Break up conftest.vals because some shells have a limit on
16754 # the size of here documents, and old seds have small limits too.
16756 rm -f conftest.tail
16757 while :
16759 ac_lines=`grep -c . conftest.vals`
16760 # grep -c gives empty output for an empty file on some AIX systems.
16761 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16762 # Write a limited-size here document to conftest.frag.
16763 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16764 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16765 echo 'CEOF
16766 sed -f conftest.frag conftest.in > conftest.out
16767 rm -f conftest.in
16768 mv conftest.out conftest.in
16769 ' >> $CONFIG_STATUS
16770 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16771 rm -f conftest.vals
16772 mv conftest.tail conftest.vals
16773 done
16774 rm -f conftest.vals
16776 cat >> $CONFIG_STATUS <<\EOF
16777 rm -f conftest.frag conftest.h
16778 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16779 cat conftest.in >> conftest.h
16780 rm -f conftest.in
16781 if cmp -s $ac_file conftest.h 2>/dev/null; then
16782 echo "$ac_file is unchanged"
16783 rm -f conftest.h
16784 else
16785 # Remove last slash and all that follows it. Not all systems have dirname.
16786 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16787 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16788 # The file is in a subdirectory.
16789 test ! -d "$ac_dir" && mkdir "$ac_dir"
16791 rm -f $ac_file
16792 mv conftest.h $ac_file
16794 fi; done
16798 cat >> $CONFIG_STATUS <<EOF
16799 ac_sources="$os_include_dir/bits/os_defines.h $CSTDIO_H $BASIC_FILE_H $BASIC_FILE_CC $CCODECVT_C $CLOCALE_H $CLOCALE_CC $toprel/gcc/gthr.h $toprel/gcc/gthr-single.h $toprel/gcc/gthr-$target_thread_file.h $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"
16800 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/gthr.h-in include/bits/gthr-single.h-in include/bits/gthr-default.h-in \
16801 include/bits/ctype_base.h \
16802 include/bits/ctype_inline.h \
16803 include/bits/ctype_noninline.h include/bits/atomicity.h"
16806 cat >> $CONFIG_STATUS <<\EOF
16807 srcdir=$ac_given_srcdir
16808 while test -n "$ac_sources"; do
16809 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16810 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16812 echo "linking $srcdir/$ac_source to $ac_dest"
16814 if test ! -r $srcdir/$ac_source; then
16815 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
16817 rm -f $ac_dest
16819 # Make relative symlinks.
16820 # Remove last slash and all that follows it. Not all systems have dirname.
16821 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
16822 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
16823 # The dest file is in a subdirectory.
16824 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
16825 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
16826 # A "../" for each directory in $ac_dest_dir_suffix.
16827 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
16828 else
16829 ac_dest_dir_suffix= ac_dots=
16832 case "$srcdir" in
16833 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
16834 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
16835 esac
16837 # Make a symlink if possible; otherwise try a hard link.
16838 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16839 ln $srcdir/$ac_source $ac_dest; then :
16840 else
16841 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
16843 done
16845 cat >> $CONFIG_STATUS <<EOF
16848 srcdir=${srcdir}
16849 host=${host}
16850 target=${target}
16851 with_multisubdir=${with_multisubdir}
16852 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16853 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16854 glibcpp_basedir=${glibcpp_basedir}
16855 CC="${CC}"
16856 CXX="${CXX}"
16859 cat >> $CONFIG_STATUS <<\EOF
16860 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
16861 d=include/bits
16862 rm -f $d/gthr.h $d/gthr-single.h $d/gthr-default.h
16863 sed '/^#/s/\([A-Z_][A-Z_]*\)/_GLIBCPP_\1/g' <$d/gthr.h-in >$d/gthr.h
16864 sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-single.h-in \
16865 | sed 's/\(GCC[A-Z_]*_H\)/_GLIBCPP_\1/g' >$d/gthr-single.h
16866 sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-default.h-in \
16867 | sed 's/\(GCC[A-Z_]*_H\)/_GLIBCPP_\1/g' \
16868 | sed 's/\([A-Z_]*WEAK\)/_GLIBCPP_\1/g' >$d/gthr-default.h
16869 if test -n "$CONFIG_FILES"; then
16870 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
16871 grep '^MULTISUBDIR =' Makefile >> src/Makefile
16872 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
16874 chmod +x mkcheck
16875 chmod +x testsuite_flags
16877 exit 0
16879 chmod +x $CONFIG_STATUS
16880 rm -fr confdefs* $ac_clean_files
16881 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16885 # Generate bits/c++config.h
16886 # NB: This must be the first generated file as others include it. . .
16887 $srcdir/mkc++config $blddir $srcdir
16889 # Generate bits/std_limits.h and src/limitsMEMBERS.cc
16890 if test ! -f stamp-limits; then
16891 $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
16892 if test ! -f include/bits/std_limits.h; then
16893 echo "mknumeric_limits failed to execute properly: exiting"
16894 exit 1
16895 else
16896 touch stamp-limits
16901 # Sanity checking & User-visible messages.
16902 # Checks down here, otherwise they get scrolled off before
16903 # the user will notice.
16905 # Trying to get more people to read documentation. Possibly remove
16906 # check and warn all the time. There is no "informational" AC_MSG_
16907 # macro, so these are going to be printed even when --quiet/--silent
16908 # is given.
16909 if test ! -f stamp-sanity-warned; then
16910 touch stamp-sanity-warned
16911 echo ""
16912 echo "Please make certain that you read the installation information here:"
16913 echo " faster => ${srcdir}/docs/install.html"
16914 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
16915 echo ""
16916 echo "and the configuration information here:"
16917 echo " faster => ${srcdir}/docs/configopts.html"
16918 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
16919 echo ""
16920 echo "before proceeding with ${_cv_gnu_make_command}."
16921 echo ""