Precompiled headers now record macro defs, i fixed a bug in unpickling strings.
[official-gcc.git] / libstdc++-v3 / configure
blob9fcafe411f15156bce0ac734d854261157628d08
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build hella library versions (default)"
16 ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19 ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-debug extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39 --enable-cstdio enable stdio for target io package.
40 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
42 ac_help="$ac_help
43 --enable-clocale enable model for target locale package.
44 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
46 ac_help="$ac_help
47 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
48 ac_help="$ac_help
49 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
50 ac_help="$ac_help
51 --enable-long-long turns on 'long long' [default=yes]"
52 ac_help="$ac_help
53 --enable-cheaders construct "C" header files for g++ [default=c_std]"
54 ac_help="$ac_help
55 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
56 [default=none]"
57 ac_help="$ac_help
58 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
59 ac_help="$ac_help
60 --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 PACKAGE=libstdc++
576 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
577 release_VERSION=3.1.0
579 # For libtool versioning info, format is CURRENT:REVISION:AGE
580 libtool_VERSION=4:0:0
583 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
584 # AC 2.50 sets target_alias iff the user specified --target, but we use it
585 # everywhere, so we set it here just to be sure.
586 ac_aux_dir=
587 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
588 if test -f $ac_dir/install-sh; then
589 ac_aux_dir=$ac_dir
590 ac_install_sh="$ac_aux_dir/install-sh -c"
591 break
592 elif test -f $ac_dir/install.sh; then
593 ac_aux_dir=$ac_dir
594 ac_install_sh="$ac_aux_dir/install.sh -c"
595 break
597 done
598 if test -z "$ac_aux_dir"; then
599 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
601 ac_config_guess=$ac_aux_dir/config.guess
602 ac_config_sub=$ac_aux_dir/config.sub
603 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
606 # Do some error checking and defaulting for the host and target type.
607 # The inputs are:
608 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
610 # The rules are:
611 # 1. You are not allowed to specify --host, --target, and nonopt at the
612 # same time.
613 # 2. Host defaults to nonopt.
614 # 3. If nonopt is not specified, then host defaults to the current host,
615 # as determined by config.guess.
616 # 4. Target and build default to nonopt.
617 # 5. If nonopt is not specified, then target and build default to host.
619 # The aliases save the names the user supplied, while $host etc.
620 # will get canonicalized.
621 case $host---$target---$nonopt in
622 NONE---*---* | *---NONE---* | *---*---NONE) ;;
623 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
624 esac
627 # Make sure we can run config.sub.
628 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
629 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
632 echo $ac_n "checking host system type""... $ac_c" 1>&6
633 echo "configure:634: checking host system type" >&5
635 host_alias=$host
636 case "$host_alias" in
637 NONE)
638 case $nonopt in
639 NONE)
640 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
641 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
642 fi ;;
643 *) host_alias=$nonopt ;;
644 esac ;;
645 esac
647 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
648 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
649 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
650 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
651 echo "$ac_t""$host" 1>&6
653 echo $ac_n "checking target system type""... $ac_c" 1>&6
654 echo "configure:655: checking target system type" >&5
656 target_alias=$target
657 case "$target_alias" in
658 NONE)
659 case $nonopt in
660 NONE) target_alias=$host_alias ;;
661 *) target_alias=$nonopt ;;
662 esac ;;
663 esac
665 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
666 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
667 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
668 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
669 echo "$ac_t""$target" 1>&6
671 echo $ac_n "checking build system type""... $ac_c" 1>&6
672 echo "configure:673: checking build system type" >&5
674 build_alias=$build
675 case "$build_alias" in
676 NONE)
677 case $nonopt in
678 NONE) build_alias=$host_alias ;;
679 *) build_alias=$nonopt ;;
680 esac ;;
681 esac
683 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
684 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
685 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
686 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
687 echo "$ac_t""$build" 1>&6
689 test "$host_alias" != "$target_alias" &&
690 test "$program_prefix$program_suffix$program_transform_name" = \
691 NONENONEs,x,x, &&
692 program_prefix=${target_alias}-
694 target_alias=${target_alias-$target}
697 # Find a good install program. We prefer a C program (faster),
698 # so one script is as good as another. But avoid the broken or
699 # incompatible versions:
700 # SysV /etc/install, /usr/sbin/install
701 # SunOS /usr/etc/install
702 # IRIX /sbin/install
703 # AIX /bin/install
704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
707 # ./install, which can be erroneously created by make from ./install.sh.
708 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
709 echo "configure:710: checking for a BSD compatible install" >&5
710 if test -z "$INSTALL"; then
711 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
712 echo $ac_n "(cached) $ac_c" 1>&6
713 else
714 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
715 for ac_dir in $PATH; do
716 # Account for people who put trailing slashes in PATH elements.
717 case "$ac_dir/" in
718 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
720 # OSF1 and SCO ODT 3.0 have their own names for install.
721 # Don't use installbsd from OSF since it installs stuff as root
722 # by default.
723 for ac_prog in ginstall scoinst install; do
724 if test -f $ac_dir/$ac_prog; then
725 if test $ac_prog = install &&
726 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
727 # AIX install. It has an incompatible calling convention.
729 else
730 ac_cv_path_install="$ac_dir/$ac_prog -c"
731 break 2
734 done
736 esac
737 done
738 IFS="$ac_save_IFS"
741 if test "${ac_cv_path_install+set}" = set; then
742 INSTALL="$ac_cv_path_install"
743 else
744 # As a last resort, use the slow shell script. We don't cache a
745 # path for INSTALL within a source directory, because that will
746 # break other packages using the cache if that directory is
747 # removed, or if the path is relative.
748 INSTALL="$ac_install_sh"
751 echo "$ac_t""$INSTALL" 1>&6
753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
754 # It thinks the first close brace ends the variable substitution.
755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
761 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
762 echo "configure:763: checking whether build environment is sane" >&5
763 # Just in case
764 sleep 1
765 echo timestamp > conftestfile
766 # Do `set' in a subshell so we don't clobber the current shell's
767 # arguments. Must try -L first in case configure is actually a
768 # symlink; some systems play weird games with the mod time of symlinks
769 # (eg FreeBSD returns the mod time of the symlink's containing
770 # directory).
771 if (
772 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
773 if test "$*" = "X"; then
774 # -L didn't work.
775 set X `ls -t $srcdir/configure conftestfile`
777 if test "$*" != "X $srcdir/configure conftestfile" \
778 && test "$*" != "X conftestfile $srcdir/configure"; then
780 # If neither matched, then we have a broken ls. This can happen
781 # if, for instance, CONFIG_SHELL is bash and it inherits a
782 # broken ls alias from the environment. This has actually
783 # happened. Such a system could not be considered "sane".
784 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
785 alias in your environment" 1>&2; exit 1; }
788 test "$2" = conftestfile
790 then
791 # Ok.
793 else
794 { echo "configure: error: newly created file is older than distributed files!
795 Check your system clock" 1>&2; exit 1; }
797 rm -f conftest*
798 echo "$ac_t""yes" 1>&6
799 if test "$program_transform_name" = s,x,x,; then
800 program_transform_name=
801 else
802 # Double any \ or $. echo might interpret backslashes.
803 cat <<\EOF_SED > conftestsed
804 s,\\,\\\\,g; s,\$,$$,g
805 EOF_SED
806 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
807 rm -f conftestsed
809 test "$program_prefix" != NONE &&
810 program_transform_name="s,^,${program_prefix},; $program_transform_name"
811 # Use a double $ so make ignores it.
812 test "$program_suffix" != NONE &&
813 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
815 # sed with no file args requires a program.
816 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
818 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
819 echo "configure:820: checking whether ${MAKE-make} sets \${MAKE}" >&5
820 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
821 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
823 else
824 cat > conftestmake <<\EOF
825 all:
826 @echo 'ac_maketemp="${MAKE}"'
828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
829 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
830 if test -n "$ac_maketemp"; then
831 eval ac_cv_prog_make_${ac_make}_set=yes
832 else
833 eval ac_cv_prog_make_${ac_make}_set=no
835 rm -f conftestmake
837 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
838 echo "$ac_t""yes" 1>&6
839 SET_MAKE=
840 else
841 echo "$ac_t""no" 1>&6
842 SET_MAKE="MAKE=${MAKE-make}"
846 PACKAGE=$PACKAGE
848 VERSION=$release_VERSION
850 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
851 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
853 cat >> confdefs.h <<EOF
854 #define PACKAGE "$PACKAGE"
857 cat >> confdefs.h <<EOF
858 #define VERSION "$VERSION"
863 missing_dir=`cd $ac_aux_dir && pwd`
864 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
865 echo "configure:866: checking for working aclocal" >&5
866 # Run test in a subshell; some versions of sh will print an error if
867 # an executable is not found, even if stderr is redirected.
868 # Redirect stdin to placate older versions of autoconf. Sigh.
869 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
870 ACLOCAL=aclocal
871 echo "$ac_t""found" 1>&6
872 else
873 ACLOCAL="$missing_dir/missing aclocal"
874 echo "$ac_t""missing" 1>&6
877 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
878 echo "configure:879: checking for working autoconf" >&5
879 # Run test in a subshell; some versions of sh will print an error if
880 # an executable is not found, even if stderr is redirected.
881 # Redirect stdin to placate older versions of autoconf. Sigh.
882 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
883 AUTOCONF=autoconf
884 echo "$ac_t""found" 1>&6
885 else
886 AUTOCONF="$missing_dir/missing autoconf"
887 echo "$ac_t""missing" 1>&6
890 echo $ac_n "checking for working automake""... $ac_c" 1>&6
891 echo "configure:892: checking for working automake" >&5
892 # Run test in a subshell; some versions of sh will print an error if
893 # an executable is not found, even if stderr is redirected.
894 # Redirect stdin to placate older versions of autoconf. Sigh.
895 if (automake --version) < /dev/null > /dev/null 2>&1; then
896 AUTOMAKE=automake
897 echo "$ac_t""found" 1>&6
898 else
899 AUTOMAKE="$missing_dir/missing automake"
900 echo "$ac_t""missing" 1>&6
903 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
904 echo "configure:905: checking for working autoheader" >&5
905 # Run test in a subshell; some versions of sh will print an error if
906 # an executable is not found, even if stderr is redirected.
907 # Redirect stdin to placate older versions of autoconf. Sigh.
908 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
909 AUTOHEADER=autoheader
910 echo "$ac_t""found" 1>&6
911 else
912 AUTOHEADER="$missing_dir/missing autoheader"
913 echo "$ac_t""missing" 1>&6
916 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
917 echo "configure:918: checking for working makeinfo" >&5
918 # Run test in a subshell; some versions of sh will print an error if
919 # an executable is not found, even if stderr is redirected.
920 # Redirect stdin to placate older versions of autoconf. Sigh.
921 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
922 MAKEINFO=makeinfo
923 echo "$ac_t""found" 1>&6
924 else
925 MAKEINFO="$missing_dir/missing makeinfo"
926 echo "$ac_t""missing" 1>&6
934 # Runs configure.host and configure.target, as well as finds CC, CXX
935 # and assorted other critical bits. Have to run this before the
936 # GLIBCPP_ENABLE_* macros below.
937 if test $host != $build; then
938 ac_tool_prefix=${host_alias}-
939 else
940 ac_tool_prefix=
943 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
944 echo "configure:945: checking for Cygwin environment" >&5
945 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
947 else
948 cat > conftest.$ac_ext <<EOF
949 #line 950 "configure"
950 #include "confdefs.h"
952 int main() {
954 #ifndef __CYGWIN__
955 #define __CYGWIN__ __CYGWIN32__
956 #endif
957 return __CYGWIN__;
958 ; return 0; }
960 if { (eval echo configure:961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
961 rm -rf conftest*
962 ac_cv_cygwin=yes
963 else
964 echo "configure: failed program was:" >&5
965 cat conftest.$ac_ext >&5
966 rm -rf conftest*
967 ac_cv_cygwin=no
969 rm -f conftest*
970 rm -f conftest*
973 echo "$ac_t""$ac_cv_cygwin" 1>&6
974 CYGWIN=
975 test "$ac_cv_cygwin" = yes && CYGWIN=yes
976 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
977 echo "configure:978: checking for mingw32 environment" >&5
978 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
980 else
981 cat > conftest.$ac_ext <<EOF
982 #line 983 "configure"
983 #include "confdefs.h"
985 int main() {
986 return __MINGW32__;
987 ; return 0; }
989 if { (eval echo configure:990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
990 rm -rf conftest*
991 ac_cv_mingw32=yes
992 else
993 echo "configure: failed program was:" >&5
994 cat conftest.$ac_ext >&5
995 rm -rf conftest*
996 ac_cv_mingw32=no
998 rm -f conftest*
999 rm -f conftest*
1002 echo "$ac_t""$ac_cv_mingw32" 1>&6
1003 MINGW32=
1004 test "$ac_cv_mingw32" = yes && MINGW32=yes
1006 # Check whether --enable-multilib or --disable-multilib was given.
1007 if test "${enable_multilib+set}" = set; then
1008 enableval="$enable_multilib"
1009 case "${enableval}" in
1010 yes) multilib=yes ;;
1011 no) multilib=no ;;
1012 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1013 esac
1014 else
1015 multilib=yes
1018 # When building with srcdir == objdir, links to the source files will
1019 # be created in directories within the target_subdir. We have to
1020 # adjust toplevel_srcdir accordingly, so that configure finds
1021 # install-sh and other auxiliary files that live in the top-level
1022 # source directory.
1023 if test "${srcdir}" = "."; then
1024 if test -z "${with_target_subdir}"; then
1025 toprel=".."
1026 else
1027 if test "${with_target_subdir}" != "."; then
1028 toprel="${with_multisrctop}../.."
1029 else
1030 toprel="${with_multisrctop}.."
1033 else
1034 toprel=".."
1036 ac_aux_dir=
1037 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1038 if test -f $ac_dir/install-sh; then
1039 ac_aux_dir=$ac_dir
1040 ac_install_sh="$ac_aux_dir/install-sh -c"
1041 break
1042 elif test -f $ac_dir/install.sh; then
1043 ac_aux_dir=$ac_dir
1044 ac_install_sh="$ac_aux_dir/install.sh -c"
1045 break
1047 done
1048 if test -z "$ac_aux_dir"; then
1049 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1051 ac_config_guess=$ac_aux_dir/config.guess
1052 ac_config_sub=$ac_aux_dir/config.sub
1053 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1055 toplevel_srcdir=\${top_srcdir}/$toprel
1058 # Export build and source directories.
1059 # These need to be absolute paths, yet at the same time need to
1060 # canonicalize only relative paths, because then amd will not unmount
1061 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1062 glibcpp_builddir=`pwd`
1063 case $srcdir in
1064 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1065 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1066 esac
1072 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
1073 # be 'cp -p' if linking isn't available.
1074 #ac_cv_prog_LN_S='cp -p'
1075 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1076 echo "configure:1077: checking whether ln -s works" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1079 else
1080 rm -f conftestdata
1081 if ln -s X conftestdata 2>/dev/null
1082 then
1083 rm -f conftestdata
1084 ac_cv_prog_LN_S="ln -s"
1085 else
1086 ac_cv_prog_LN_S=ln
1089 LN_S="$ac_cv_prog_LN_S"
1090 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1091 echo "$ac_t""yes" 1>&6
1092 else
1093 echo "$ac_t""no" 1>&6
1097 # We use these options to decide which functions to include.
1098 # Check whether --with-target-subdir or --without-target-subdir was given.
1099 if test "${with_target_subdir+set}" = set; then
1100 withval="$with_target_subdir"
1104 # Check whether --with-cross-host or --without-cross-host was given.
1105 if test "${with_cross_host+set}" = set; then
1106 withval="$with_cross_host"
1111 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1114 # Never versions of autoconf add an underscore to these functions.
1115 # Prevent future problems ...
1121 # AC_PROG_CC
1123 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1124 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1125 # are probably using a cross compiler, which will not be able to fully
1126 # link an executable. This should really be fixed in autoconf
1127 # itself.
1132 # Extract the first word of "gcc", so it can be a program name with args.
1133 set dummy gcc; ac_word=$2
1134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1135 echo "configure:1136: checking for $ac_word" >&5
1136 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1138 else
1139 if test -n "$CC"; then
1140 ac_cv_prog_CC="$CC" # Let the user override the test.
1141 else
1142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1143 ac_dummy="$PATH"
1144 for ac_dir in $ac_dummy; do
1145 test -z "$ac_dir" && ac_dir=.
1146 if test -f $ac_dir/$ac_word; then
1147 ac_cv_prog_CC="gcc"
1148 break
1150 done
1151 IFS="$ac_save_ifs"
1154 CC="$ac_cv_prog_CC"
1155 if test -n "$CC"; then
1156 echo "$ac_t""$CC" 1>&6
1157 else
1158 echo "$ac_t""no" 1>&6
1161 if test -z "$CC"; then
1162 # Extract the first word of "cc", so it can be a program name with args.
1163 set dummy cc; ac_word=$2
1164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165 echo "configure:1166: checking for $ac_word" >&5
1166 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1168 else
1169 if test -n "$CC"; then
1170 ac_cv_prog_CC="$CC" # Let the user override the test.
1171 else
1172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1173 ac_prog_rejected=no
1174 ac_dummy="$PATH"
1175 for ac_dir in $ac_dummy; do
1176 test -z "$ac_dir" && ac_dir=.
1177 if test -f $ac_dir/$ac_word; then
1178 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1179 ac_prog_rejected=yes
1180 continue
1182 ac_cv_prog_CC="cc"
1183 break
1185 done
1186 IFS="$ac_save_ifs"
1187 if test $ac_prog_rejected = yes; then
1188 # We found a bogon in the path, so make sure we never use it.
1189 set dummy $ac_cv_prog_CC
1190 shift
1191 if test $# -gt 0; then
1192 # We chose a different compiler from the bogus one.
1193 # However, it has the same basename, so the bogon will be chosen
1194 # first if we set CC to just the basename; use the full file name.
1195 shift
1196 set dummy "$ac_dir/$ac_word" "$@"
1197 shift
1198 ac_cv_prog_CC="$@"
1203 CC="$ac_cv_prog_CC"
1204 if test -n "$CC"; then
1205 echo "$ac_t""$CC" 1>&6
1206 else
1207 echo "$ac_t""no" 1>&6
1210 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1213 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1214 echo "configure:1215: checking whether we are using GNU C" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 cat > conftest.c <<EOF
1219 #ifdef __GNUC__
1220 yes;
1221 #endif
1223 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1224 ac_cv_prog_gcc=yes
1225 else
1226 ac_cv_prog_gcc=no
1230 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1232 if test $ac_cv_prog_gcc = yes; then
1233 GCC=yes
1234 ac_test_CFLAGS="${CFLAGS+set}"
1235 ac_save_CFLAGS="$CFLAGS"
1236 CFLAGS=
1237 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1238 echo "configure:1239: checking whether ${CC-cc} accepts -g" >&5
1239 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1241 else
1242 echo 'void f(){}' > conftest.c
1243 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1244 ac_cv_prog_cc_g=yes
1245 else
1246 ac_cv_prog_cc_g=no
1248 rm -f conftest*
1252 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1253 if test "$ac_test_CFLAGS" = set; then
1254 CFLAGS="$ac_save_CFLAGS"
1255 elif test $ac_cv_prog_cc_g = yes; then
1256 CFLAGS="-g -O2"
1257 else
1258 CFLAGS="-O2"
1260 else
1261 GCC=
1262 test "${CFLAGS+set}" = set || CFLAGS="-g"
1266 # Can't just call these here as g++ requires libstc++ to be built....
1267 # AC_PROG_CXX
1269 # Likewise for AC_PROG_CXX.
1273 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1274 # flags that come in CXX while configuring libstdc++. They're different
1275 # from those used for all other target libraries. If CXX is set in
1276 # the environment, respect that here.
1277 glibcpp_CXX=$CXX
1278 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1280 # Extract the first word of "$ac_prog", so it can be a program name with args.
1281 set dummy $ac_prog; ac_word=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287 if test -n "$glibcpp_CXX"; then
1288 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1289 else
1290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1291 ac_dummy="$PATH"
1292 for ac_dir in $ac_dummy; do
1293 test -z "$ac_dir" && ac_dir=.
1294 if test -f $ac_dir/$ac_word; then
1295 ac_cv_prog_glibcpp_CXX="$ac_prog"
1296 break
1298 done
1299 IFS="$ac_save_ifs"
1302 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1303 if test -n "$glibcpp_CXX"; then
1304 echo "$ac_t""$glibcpp_CXX" 1>&6
1305 else
1306 echo "$ac_t""no" 1>&6
1309 test -n "$glibcpp_CXX" && break
1310 done
1311 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1314 CXX=$glibcpp_CXX
1315 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1317 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1318 echo "configure:1319: checking whether we are using GNU C++" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322 cat > conftest.C <<EOF
1323 #ifdef __GNUC__
1324 yes;
1325 #endif
1327 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1328 ac_cv_prog_gxx=yes
1329 else
1330 ac_cv_prog_gxx=no
1334 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1336 if test $ac_cv_prog_gxx = yes; then
1337 GXX=yes
1338 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1339 ac_save_CXXFLAGS="$CXXFLAGS"
1340 CXXFLAGS=
1341 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1342 echo "configure:1343: checking whether ${CXX-g++} accepts -g" >&5
1343 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1345 else
1346 echo 'void f(){}' > conftest.cc
1347 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1348 ac_cv_prog_cxx_g=yes
1349 else
1350 ac_cv_prog_cxx_g=no
1352 rm -f conftest*
1356 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1357 if test "$ac_test_CXXFLAGS" = set; then
1358 CXXFLAGS="$ac_save_CXXFLAGS"
1359 elif test $ac_cv_prog_cxx_g = yes; then
1360 CXXFLAGS="-g -O2"
1361 else
1362 CXXFLAGS="-O2"
1364 else
1365 GXX=
1366 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1370 # For some reason, gettext needs this.
1371 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1372 echo "configure:1373: checking for POSIXized ISC" >&5
1373 if test -d /etc/conf/kconfig.d &&
1374 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1375 then
1376 echo "$ac_t""yes" 1>&6
1377 ISC=yes # If later tests want to check for ISC.
1378 cat >> confdefs.h <<\EOF
1379 #define _POSIX_SOURCE 1
1382 if test "$GCC" = yes; then
1383 CC="$CC -posix"
1384 else
1385 CC="$CC -Xp"
1387 else
1388 echo "$ac_t""no" 1>&6
1389 ISC=
1393 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1394 set dummy ${ac_tool_prefix}as; ac_word=$2
1395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1396 echo "configure:1397: checking for $ac_word" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1399 else
1400 if test -n "$AS"; then
1401 ac_cv_prog_AS="$AS" # Let the user override the test.
1402 else
1403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1404 ac_dummy="$PATH"
1405 for ac_dir in $ac_dummy; do
1406 test -z "$ac_dir" && ac_dir=.
1407 if test -f $ac_dir/$ac_word; then
1408 ac_cv_prog_AS="${ac_tool_prefix}as"
1409 break
1411 done
1412 IFS="$ac_save_ifs"
1413 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1416 AS="$ac_cv_prog_AS"
1417 if test -n "$AS"; then
1418 echo "$ac_t""$AS" 1>&6
1419 else
1420 echo "$ac_t""no" 1>&6
1425 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1426 set dummy ${ac_tool_prefix}ar; ac_word=$2
1427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1428 echo "configure:1429: checking for $ac_word" >&5
1429 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1431 else
1432 if test -n "$AR"; then
1433 ac_cv_prog_AR="$AR" # Let the user override the test.
1434 else
1435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1436 ac_dummy="$PATH"
1437 for ac_dir in $ac_dummy; do
1438 test -z "$ac_dir" && ac_dir=.
1439 if test -f $ac_dir/$ac_word; then
1440 ac_cv_prog_AR="${ac_tool_prefix}ar"
1441 break
1443 done
1444 IFS="$ac_save_ifs"
1445 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1448 AR="$ac_cv_prog_AR"
1449 if test -n "$AR"; then
1450 echo "$ac_t""$AR" 1>&6
1451 else
1452 echo "$ac_t""no" 1>&6
1457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1458 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1460 echo "configure:1461: checking for $ac_word" >&5
1461 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1463 else
1464 if test -n "$RANLIB"; then
1465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1466 else
1467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1468 ac_dummy="$PATH"
1469 for ac_dir in $ac_dummy; do
1470 test -z "$ac_dir" && ac_dir=.
1471 if test -f $ac_dir/$ac_word; then
1472 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1473 break
1475 done
1476 IFS="$ac_save_ifs"
1479 RANLIB="$ac_cv_prog_RANLIB"
1480 if test -n "$RANLIB"; then
1481 echo "$ac_t""$RANLIB" 1>&6
1482 else
1483 echo "$ac_t""no" 1>&6
1487 if test -z "$ac_cv_prog_RANLIB"; then
1488 if test -n "$ac_tool_prefix"; then
1489 # Extract the first word of "ranlib", so it can be a program name with args.
1490 set dummy ranlib; ac_word=$2
1491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1492 echo "configure:1493: checking for $ac_word" >&5
1493 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1495 else
1496 if test -n "$RANLIB"; then
1497 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1498 else
1499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1500 ac_dummy="$PATH"
1501 for ac_dir in $ac_dummy; do
1502 test -z "$ac_dir" && ac_dir=.
1503 if test -f $ac_dir/$ac_word; then
1504 ac_cv_prog_RANLIB="ranlib"
1505 break
1507 done
1508 IFS="$ac_save_ifs"
1509 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1512 RANLIB="$ac_cv_prog_RANLIB"
1513 if test -n "$RANLIB"; then
1514 echo "$ac_t""$RANLIB" 1>&6
1515 else
1516 echo "$ac_t""no" 1>&6
1519 else
1520 RANLIB="ranlib-not-found-in-path-error"
1524 # Find a good install program. We prefer a C program (faster),
1525 # so one script is as good as another. But avoid the broken or
1526 # incompatible versions:
1527 # SysV /etc/install, /usr/sbin/install
1528 # SunOS /usr/etc/install
1529 # IRIX /sbin/install
1530 # AIX /bin/install
1531 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1532 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1533 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1534 # ./install, which can be erroneously created by make from ./install.sh.
1535 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1536 echo "configure:1537: checking for a BSD compatible install" >&5
1537 if test -z "$INSTALL"; then
1538 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1540 else
1541 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1542 for ac_dir in $PATH; do
1543 # Account for people who put trailing slashes in PATH elements.
1544 case "$ac_dir/" in
1545 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1547 # OSF1 and SCO ODT 3.0 have their own names for install.
1548 # Don't use installbsd from OSF since it installs stuff as root
1549 # by default.
1550 for ac_prog in ginstall scoinst install; do
1551 if test -f $ac_dir/$ac_prog; then
1552 if test $ac_prog = install &&
1553 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1554 # AIX install. It has an incompatible calling convention.
1556 else
1557 ac_cv_path_install="$ac_dir/$ac_prog -c"
1558 break 2
1561 done
1563 esac
1564 done
1565 IFS="$ac_save_IFS"
1568 if test "${ac_cv_path_install+set}" = set; then
1569 INSTALL="$ac_cv_path_install"
1570 else
1571 # As a last resort, use the slow shell script. We don't cache a
1572 # path for INSTALL within a source directory, because that will
1573 # break other packages using the cache if that directory is
1574 # removed, or if the path is relative.
1575 INSTALL="$ac_install_sh"
1578 echo "$ac_t""$INSTALL" 1>&6
1580 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1581 # It thinks the first close brace ends the variable substitution.
1582 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1584 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1586 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1589 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1590 echo "configure:1591: checking whether to enable maintainer-specific portions of Makefiles" >&5
1591 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1592 if test "${enable_maintainer_mode+set}" = set; then
1593 enableval="$enable_maintainer_mode"
1594 USE_MAINTAINER_MODE=$enableval
1595 else
1596 USE_MAINTAINER_MODE=no
1599 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1602 if test $USE_MAINTAINER_MODE = yes; then
1603 MAINTAINER_MODE_TRUE=
1604 MAINTAINER_MODE_FALSE='#'
1605 else
1606 MAINTAINER_MODE_TRUE='#'
1607 MAINTAINER_MODE_FALSE=
1609 MAINT=$MAINTAINER_MODE_TRUE
1613 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1614 # at least currently, we never actually build a program, so we never
1615 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1616 # fails, because we are probably configuring with a cross compiler
1617 # which cant create executables. So we include AC_EXEEXT to keep
1618 # automake happy, but we dont execute it, since we dont care about
1619 # the result.
1620 if false; then
1621 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1622 # to nothing, so nothing would remain between `then' and `fi' if it
1623 # were not for the `:' below.
1627 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1628 echo "configure:1629: checking for executable suffix" >&5
1629 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1631 else
1632 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1633 ac_cv_exeext=.exe
1634 else
1635 rm -f conftest*
1636 echo 'int main () { return 0; }' > conftest.$ac_ext
1637 ac_cv_exeext=
1638 if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1639 for file in conftest.*; do
1640 case $file in
1641 *.c | *.o | *.obj) ;;
1642 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1643 esac
1644 done
1645 else
1646 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1648 rm -f conftest*
1649 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1653 EXEEXT=""
1654 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1655 echo "$ac_t""${ac_cv_exeext}" 1>&6
1656 ac_exeext=$EXEEXT
1660 . ${glibcpp_basedir}/configure.host
1662 case ${glibcpp_basedir} in
1663 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1664 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1665 esac
1667 # This does for the target what configure.host does for the host. In
1668 # addition to possibly modifying the same flags, it also sets up symlinks.
1670 . ${glibcpp_basedir}/configure.target
1671 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1672 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1679 # Check whether --enable-shared or --disable-shared was given.
1680 if test "${enable_shared+set}" = set; then
1681 enableval="$enable_shared"
1682 p=${PACKAGE-default}
1683 case $enableval in
1684 yes) enable_shared=yes ;;
1685 no) enable_shared=no ;;
1687 enable_shared=no
1688 # Look at the argument we got. We use all the common list separators.
1689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1690 for pkg in $enableval; do
1691 if test "X$pkg" = "X$p"; then
1692 enable_shared=yes
1694 done
1695 IFS="$ac_save_ifs"
1697 esac
1698 else
1699 enable_shared=yes
1702 # Check whether --enable-static or --disable-static was given.
1703 if test "${enable_static+set}" = set; then
1704 enableval="$enable_static"
1705 p=${PACKAGE-default}
1706 case $enableval in
1707 yes) enable_static=yes ;;
1708 no) enable_static=no ;;
1710 enable_static=no
1711 # Look at the argument we got. We use all the common list separators.
1712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1713 for pkg in $enableval; do
1714 if test "X$pkg" = "X$p"; then
1715 enable_static=yes
1717 done
1718 IFS="$ac_save_ifs"
1720 esac
1721 else
1722 enable_static=yes
1725 # Check whether --enable-fast-install or --disable-fast-install was given.
1726 if test "${enable_fast_install+set}" = set; then
1727 enableval="$enable_fast_install"
1728 p=${PACKAGE-default}
1729 case $enableval in
1730 yes) enable_fast_install=yes ;;
1731 no) enable_fast_install=no ;;
1733 enable_fast_install=no
1734 # Look at the argument we got. We use all the common list separators.
1735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1736 for pkg in $enableval; do
1737 if test "X$pkg" = "X$p"; then
1738 enable_fast_install=yes
1740 done
1741 IFS="$ac_save_ifs"
1743 esac
1744 else
1745 enable_fast_install=yes
1748 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1749 if test "${with_gnu_ld+set}" = set; then
1750 withval="$with_gnu_ld"
1751 test "$withval" = no || with_gnu_ld=yes
1752 else
1753 with_gnu_ld=no
1756 ac_prog=ld
1757 if test "$GCC" = yes; then
1758 # Check if gcc -print-prog-name=ld gives a path.
1759 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1760 echo "configure:1761: checking for ld used by GCC" >&5
1761 case $host in
1762 *-*-mingw*)
1763 # gcc leaves a trailing carriage return which upsets mingw
1764 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1766 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1767 esac
1768 case $ac_prog in
1769 # Accept absolute paths.
1770 [\\/]* | [A-Za-z]:[\\/]*)
1771 re_direlt='/[^/][^/]*/\.\./'
1772 # Canonicalize the path of ld
1773 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1774 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1775 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1776 done
1777 test -z "$LD" && LD="$ac_prog"
1780 # If it fails, then pretend we aren't using GCC.
1781 ac_prog=ld
1784 # If it is relative, then search for the first ld in PATH.
1785 with_gnu_ld=unknown
1787 esac
1788 elif test "$with_gnu_ld" = yes; then
1789 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1790 echo "configure:1791: checking for GNU ld" >&5
1791 else
1792 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1793 echo "configure:1794: checking for non-GNU ld" >&5
1795 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1797 else
1798 if test -z "$LD"; then
1799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1800 for ac_dir in $PATH; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1803 lt_cv_path_LD="$ac_dir/$ac_prog"
1804 # Check to see if the program is GNU ld. I'd rather use --version,
1805 # but apparently some GNU ld's only accept -v.
1806 # Break only if it was the GNU/non-GNU ld that we prefer.
1807 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1808 test "$with_gnu_ld" != no && break
1809 else
1810 test "$with_gnu_ld" != yes && break
1813 done
1814 IFS="$ac_save_ifs"
1815 else
1816 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1820 LD="$lt_cv_path_LD"
1821 if test -n "$LD"; then
1822 echo "$ac_t""$LD" 1>&6
1823 else
1824 echo "$ac_t""no" 1>&6
1826 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1827 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking if the linker ($LD) is GNU ld" >&5
1829 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1833 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1834 lt_cv_prog_gnu_ld=yes
1835 else
1836 lt_cv_prog_gnu_ld=no
1840 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1841 with_gnu_ld=$lt_cv_prog_gnu_ld
1844 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $LD option to reload object files" >&5
1846 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849 lt_cv_ld_reload_flag='-r'
1852 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1853 reload_flag=$lt_cv_ld_reload_flag
1854 test -n "$reload_flag" && reload_flag=" $reload_flag"
1856 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1857 echo "configure:1858: checking for BSD-compatible nm" >&5
1858 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861 if test -n "$NM"; then
1862 # Let the user override the test.
1863 lt_cv_path_NM="$NM"
1864 else
1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1866 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1867 test -z "$ac_dir" && ac_dir=.
1868 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1869 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1870 # Check to see if the nm accepts a BSD-compat flag.
1871 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1872 # nm: unknown option "B" ignored
1873 # Tru64's nm complains that /dev/null is an invalid object file
1874 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1875 lt_cv_path_NM="$tmp_nm -B"
1876 break
1877 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1878 lt_cv_path_NM="$tmp_nm -p"
1879 break
1880 else
1881 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1882 continue # so that we can try to find one that supports BSD flags
1885 done
1886 IFS="$ac_save_ifs"
1887 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1891 NM="$lt_cv_path_NM"
1892 echo "$ac_t""$NM" 1>&6
1894 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1895 echo "configure:1896: checking how to recognise dependant libraries" >&5
1896 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899 lt_cv_file_magic_cmd='$MAGIC_CMD'
1900 lt_cv_file_magic_test_file=
1901 lt_cv_deplibs_check_method='unknown'
1902 # Need to set the preceding variable on all platforms that support
1903 # interlibrary dependencies.
1904 # 'none' -- dependencies not supported.
1905 # `unknown' -- same as none, but documents that we really don't know.
1906 # 'pass_all' -- all dependencies passed with no checks.
1907 # 'test_compile' -- check by making test program.
1908 # 'file_magic [regex]' -- check by looking for files in library path
1909 # which responds to the $file_magic_cmd with a given egrep regex.
1910 # If you have `file' or equivalent on your system and you're not sure
1911 # whether `pass_all' will *always* work, you probably want this one.
1913 case $host_os in
1914 aix*)
1915 lt_cv_deplibs_check_method=pass_all
1918 beos*)
1919 lt_cv_deplibs_check_method=pass_all
1922 bsdi4*)
1923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1924 lt_cv_file_magic_cmd='/usr/bin/file -L'
1925 lt_cv_file_magic_test_file=/shlib/libc.so
1928 cygwin* | mingw* |pw32*)
1929 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1930 lt_cv_file_magic_cmd='$OBJDUMP -f'
1933 darwin* | rhapsody*)
1934 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1935 lt_cv_file_magic_cmd='/usr/bin/file -L'
1936 case "$host_os" in
1937 rhapsody* | darwin1.012)
1938 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1940 *) # Darwin 1.3 on
1941 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1943 esac
1946 freebsd* )
1947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1948 case $host_cpu in
1949 i*86 )
1950 # Not sure whether the presence of OpenBSD here was a mistake.
1951 # Let's accept both of them until this is cleared up.
1952 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1953 lt_cv_file_magic_cmd=/usr/bin/file
1954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1956 esac
1957 else
1958 lt_cv_deplibs_check_method=pass_all
1962 gnu*)
1963 lt_cv_deplibs_check_method=pass_all
1966 hpux10.20*|hpux11*)
1967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1968 lt_cv_file_magic_cmd=/usr/bin/file
1969 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1972 irix5* | irix6*)
1973 case $host_os in
1974 irix5*)
1975 # this will be overridden with pass_all, but let us keep it just in case
1976 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1979 case $LD in
1980 *-32|*"-32 ") libmagic=32-bit;;
1981 *-n32|*"-n32 ") libmagic=N32;;
1982 *-64|*"-64 ") libmagic=64-bit;;
1983 *) libmagic=never-match;;
1984 esac
1985 # this will be overridden with pass_all, but let us keep it just in case
1986 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1988 esac
1989 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1990 lt_cv_deplibs_check_method=pass_all
1993 # This must be Linux ELF.
1994 linux-gnu*)
1995 case $host_cpu in
1996 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1997 lt_cv_deplibs_check_method=pass_all ;;
1999 # glibc up to 2.1.1 does not perform some relocations on ARM
2000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2001 esac
2002 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2005 netbsd*)
2006 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2007 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2008 else
2009 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2013 newsos6)
2014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2015 lt_cv_file_magic_cmd=/usr/bin/file
2016 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2019 osf3* | osf4* | osf5*)
2020 # this will be overridden with pass_all, but let us keep it just in case
2021 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2022 lt_cv_file_magic_test_file=/shlib/libc.so
2023 lt_cv_deplibs_check_method=pass_all
2026 sco3.2v5*)
2027 lt_cv_deplibs_check_method=pass_all
2030 solaris*)
2031 lt_cv_deplibs_check_method=pass_all
2032 lt_cv_file_magic_test_file=/lib/libc.so
2035 sysv5uw[78]* | sysv4*uw2*)
2036 lt_cv_deplibs_check_method=pass_all
2039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2040 case $host_vendor in
2041 ncr)
2042 lt_cv_deplibs_check_method=pass_all
2044 motorola)
2045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2048 esac
2050 esac
2054 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2055 file_magic_cmd=$lt_cv_file_magic_cmd
2056 deplibs_check_method=$lt_cv_deplibs_check_method
2058 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2059 echo "configure:2060: checking for object suffix" >&5
2060 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2062 else
2063 rm -f conftest*
2064 echo 'int i = 1;' > conftest.$ac_ext
2065 if { (eval echo configure:2066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2066 for ac_file in conftest.*; do
2067 case $ac_file in
2068 *.c) ;;
2069 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2070 esac
2071 done
2072 else
2073 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2075 rm -f conftest*
2078 echo "$ac_t""$ac_cv_objext" 1>&6
2079 OBJEXT=$ac_cv_objext
2080 ac_objext=$ac_cv_objext
2082 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2084 # Only perform the check for file, if the check method requires it
2085 case $deplibs_check_method in
2086 file_magic*)
2087 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2088 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2089 echo "configure:2090: checking for ${ac_tool_prefix}file" >&5
2090 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093 case $MAGIC_CMD in
2095 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2097 ?:/*)
2098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2101 ac_save_MAGIC_CMD="$MAGIC_CMD"
2102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2103 ac_dummy="/usr/bin:$PATH"
2104 for ac_dir in $ac_dummy; do
2105 test -z "$ac_dir" && ac_dir=.
2106 if test -f $ac_dir/${ac_tool_prefix}file; then
2107 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2108 if test -n "$file_magic_test_file"; then
2109 case $deplibs_check_method in
2110 "file_magic "*)
2111 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2112 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2113 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2114 egrep "$file_magic_regex" > /dev/null; then
2116 else
2117 cat <<EOF 1>&2
2119 *** Warning: the command libtool uses to detect shared libraries,
2120 *** $file_magic_cmd, produces output that libtool cannot recognize.
2121 *** The result is that libtool may fail to recognize shared libraries
2122 *** as such. This will affect the creation of libtool libraries that
2123 *** depend on shared libraries, but programs linked with such libtool
2124 *** libraries will work regardless of this problem. Nevertheless, you
2125 *** may want to report the problem to your system manager and/or to
2126 *** bug-libtool@gnu.org
2129 fi ;;
2130 esac
2132 break
2134 done
2135 IFS="$ac_save_ifs"
2136 MAGIC_CMD="$ac_save_MAGIC_CMD"
2138 esac
2141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2142 if test -n "$MAGIC_CMD"; then
2143 echo "$ac_t""$MAGIC_CMD" 1>&6
2144 else
2145 echo "$ac_t""no" 1>&6
2148 if test -z "$lt_cv_path_MAGIC_CMD"; then
2149 if test -n "$ac_tool_prefix"; then
2150 echo $ac_n "checking for file""... $ac_c" 1>&6
2151 echo "configure:2152: checking for file" >&5
2152 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2154 else
2155 case $MAGIC_CMD in
2157 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2159 ?:/*)
2160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2163 ac_save_MAGIC_CMD="$MAGIC_CMD"
2164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2165 ac_dummy="/usr/bin:$PATH"
2166 for ac_dir in $ac_dummy; do
2167 test -z "$ac_dir" && ac_dir=.
2168 if test -f $ac_dir/file; then
2169 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2170 if test -n "$file_magic_test_file"; then
2171 case $deplibs_check_method in
2172 "file_magic "*)
2173 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2175 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2176 egrep "$file_magic_regex" > /dev/null; then
2178 else
2179 cat <<EOF 1>&2
2181 *** Warning: the command libtool uses to detect shared libraries,
2182 *** $file_magic_cmd, produces output that libtool cannot recognize.
2183 *** The result is that libtool may fail to recognize shared libraries
2184 *** as such. This will affect the creation of libtool libraries that
2185 *** depend on shared libraries, but programs linked with such libtool
2186 *** libraries will work regardless of this problem. Nevertheless, you
2187 *** may want to report the problem to your system manager and/or to
2188 *** bug-libtool@gnu.org
2191 fi ;;
2192 esac
2194 break
2196 done
2197 IFS="$ac_save_ifs"
2198 MAGIC_CMD="$ac_save_MAGIC_CMD"
2200 esac
2203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2204 if test -n "$MAGIC_CMD"; then
2205 echo "$ac_t""$MAGIC_CMD" 1>&6
2206 else
2207 echo "$ac_t""no" 1>&6
2210 else
2211 MAGIC_CMD=:
2217 esac
2219 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2220 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_word" >&5
2223 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226 if test -n "$RANLIB"; then
2227 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2228 else
2229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2230 ac_dummy="$PATH"
2231 for ac_dir in $ac_dummy; do
2232 test -z "$ac_dir" && ac_dir=.
2233 if test -f $ac_dir/$ac_word; then
2234 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2235 break
2237 done
2238 IFS="$ac_save_ifs"
2241 RANLIB="$ac_cv_prog_RANLIB"
2242 if test -n "$RANLIB"; then
2243 echo "$ac_t""$RANLIB" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2249 if test -z "$ac_cv_prog_RANLIB"; then
2250 if test -n "$ac_tool_prefix"; then
2251 # Extract the first word of "ranlib", so it can be a program name with args.
2252 set dummy ranlib; ac_word=$2
2253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_word" >&5
2255 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2257 else
2258 if test -n "$RANLIB"; then
2259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2260 else
2261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2262 ac_dummy="$PATH"
2263 for ac_dir in $ac_dummy; do
2264 test -z "$ac_dir" && ac_dir=.
2265 if test -f $ac_dir/$ac_word; then
2266 ac_cv_prog_RANLIB="ranlib"
2267 break
2269 done
2270 IFS="$ac_save_ifs"
2271 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2274 RANLIB="$ac_cv_prog_RANLIB"
2275 if test -n "$RANLIB"; then
2276 echo "$ac_t""$RANLIB" 1>&6
2277 else
2278 echo "$ac_t""no" 1>&6
2281 else
2282 RANLIB=":"
2286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}strip; ac_word=$2
2288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_word" >&5
2290 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2292 else
2293 if test -n "$STRIP"; then
2294 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2295 else
2296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2297 ac_dummy="$PATH"
2298 for ac_dir in $ac_dummy; do
2299 test -z "$ac_dir" && ac_dir=.
2300 if test -f $ac_dir/$ac_word; then
2301 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2302 break
2304 done
2305 IFS="$ac_save_ifs"
2308 STRIP="$ac_cv_prog_STRIP"
2309 if test -n "$STRIP"; then
2310 echo "$ac_t""$STRIP" 1>&6
2311 else
2312 echo "$ac_t""no" 1>&6
2316 if test -z "$ac_cv_prog_STRIP"; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "strip", so it can be a program name with args.
2319 set dummy strip; ac_word=$2
2320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2321 echo "configure:2322: checking for $ac_word" >&5
2322 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2324 else
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 else
2328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2329 ac_dummy="$PATH"
2330 for ac_dir in $ac_dummy; do
2331 test -z "$ac_dir" && ac_dir=.
2332 if test -f $ac_dir/$ac_word; then
2333 ac_cv_prog_STRIP="strip"
2334 break
2336 done
2337 IFS="$ac_save_ifs"
2338 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2341 STRIP="$ac_cv_prog_STRIP"
2342 if test -n "$STRIP"; then
2343 echo "$ac_t""$STRIP" 1>&6
2344 else
2345 echo "$ac_t""no" 1>&6
2348 else
2349 STRIP=":"
2354 # Check for any special flags to pass to ltconfig.
2355 libtool_flags="--cache-file=$cache_file"
2356 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2357 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2358 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2359 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2360 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2361 libtool_flags="$libtool_flags --enable-dlopen"
2363 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2364 if test "${enable_libtool_lock+set}" = set; then
2365 enableval="$enable_libtool_lock"
2369 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2370 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2372 # Check whether --with-pic or --without-pic was given.
2373 if test "${with_pic+set}" = set; then
2374 withval="$with_pic"
2375 pic_mode="$withval"
2376 else
2377 pic_mode=default
2380 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2381 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2383 # Some flags need to be propagated to the compiler or linker for good
2384 # libtool support.
2385 case $host in
2386 *-*-irix6*)
2387 # Find out which ABI we are using.
2388 echo '#line 2389 "configure"' > conftest.$ac_ext
2389 if { (eval echo configure:2390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2390 case `/usr/bin/file conftest.$ac_objext` in
2391 *32-bit*)
2392 LD="${LD-ld} -32"
2394 *N32*)
2395 LD="${LD-ld} -n32"
2397 *64-bit*)
2398 LD="${LD-ld} -64"
2400 esac
2402 rm -rf conftest*
2405 *-*-sco3.2v5*)
2406 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2407 SAVE_CFLAGS="$CFLAGS"
2408 CFLAGS="$CFLAGS -belf"
2409 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2410 echo "configure:2411: checking whether the C compiler needs -belf" >&5
2411 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2413 else
2415 ac_ext=c
2416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2419 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2420 cross_compiling=$ac_cv_prog_cc_cross
2422 cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2426 int main() {
2428 ; return 0; }
2430 if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2431 rm -rf conftest*
2432 lt_cv_cc_needs_belf=yes
2433 else
2434 echo "configure: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2436 rm -rf conftest*
2437 lt_cv_cc_needs_belf=no
2439 rm -f conftest*
2440 ac_ext=c
2441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2445 cross_compiling=$ac_cv_prog_cc_cross
2449 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2450 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2451 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2452 CFLAGS="$SAVE_CFLAGS"
2457 esac
2459 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2460 echo "configure:2461: checking how to run the C++ preprocessor" >&5
2461 if test -z "$CXXCPP"; then
2462 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2464 else
2465 ac_ext=C
2466 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2467 ac_cpp='$CXXCPP $CPPFLAGS'
2468 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2469 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2470 cross_compiling=$ac_cv_prog_cxx_cross
2471 CXXCPP="${CXX-g++} -E"
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 #include <stdlib.h>
2477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2478 { (eval echo configure:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2480 if test -z "$ac_err"; then
2482 else
2483 echo "$ac_err" >&5
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2486 rm -rf conftest*
2487 CXXCPP=/lib/cpp
2489 rm -f conftest*
2490 ac_cv_prog_CXXCPP="$CXXCPP"
2491 ac_ext=c
2492 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2493 ac_cpp='$CPP $CPPFLAGS'
2494 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2495 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2496 cross_compiling=$ac_cv_prog_cc_cross
2499 CXXCPP="$ac_cv_prog_CXXCPP"
2500 echo "$ac_t""$CXXCPP" 1>&6
2503 # Save cache, so that ltconfig can load it
2504 cat > confcache <<\EOF
2505 # This file is a shell script that caches the results of configure
2506 # tests run on this system so they can be shared between configure
2507 # scripts and configure runs. It is not useful on other systems.
2508 # If it contains results you don't want to keep, you may remove or edit it.
2510 # By default, configure uses ./config.cache as the cache file,
2511 # creating it if it does not exist already. You can give configure
2512 # the --cache-file=FILE option to use a different cache file; that is
2513 # what configure does when it calls configure scripts in
2514 # subdirectories, so they share the cache.
2515 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2516 # config.status only pays attention to the cache file if you give it the
2517 # --recheck option to rerun configure.
2520 # The following way of writing the cache mishandles newlines in values,
2521 # but we know of no workaround that is simple, portable, and efficient.
2522 # So, don't put newlines in cache variables' values.
2523 # Ultrix sh set writes to stderr and can't be redirected directly,
2524 # and sets the high bit in the cache file unless we assign to the vars.
2525 (set) 2>&1 |
2526 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2527 *ac_space=\ *)
2528 # `set' does not quote correctly, so add quotes (double-quote substitution
2529 # turns \\\\ into \\, and sed turns \\ into \).
2530 sed -n \
2531 -e "s/'/'\\\\''/g" \
2532 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2535 # `set' quotes correctly as required by POSIX, so do not add quotes.
2536 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2538 esac >> confcache
2539 if cmp -s $cache_file confcache; then
2541 else
2542 if test -w $cache_file; then
2543 echo "updating cache $cache_file"
2544 cat confcache > $cache_file
2545 else
2546 echo "not updating unwritable cache $cache_file"
2549 rm -f confcache
2552 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2553 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2554 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2555 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2556 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2557 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2558 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2559 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2560 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2561 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2563 # Reload cache, that may have been modified by ltconfig
2564 if test -r "$cache_file"; then
2565 echo "loading cache $cache_file"
2566 . $cache_file
2567 else
2568 echo "creating cache $cache_file"
2569 > $cache_file
2573 # This can be used to rebuild libtool when needed
2574 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2576 # Always use our own libtool.
2577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2579 # Redirect the config.log output again, so that the ltconfig log is not
2580 # clobbered by the next message.
2581 exec 5>>./config.log
2585 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2586 lt_save_CC="$CC"
2587 lt_save_CFLAGS="$CFLAGS"
2588 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2589 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2590 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2591 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2592 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2593 deplibs_check_method="$deplibs_check_method" \
2594 file_magic_cmd="$file_magic_cmd" \
2595 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2596 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2597 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2598 CC="$lt_save_CC"
2599 CFLAGS="$lt_save_CFLAGS"
2601 # Redirect the config.log output again, so that the ltconfig log is not
2602 # clobbered by the next message.
2603 exec 5>>./config.log
2613 # Check for c++ or library specific bits that don't require linking.
2614 #GLIBCPP_CHECK_COMPILER_VERSION
2615 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2616 echo "configure:2617: checking for GNU make" >&5
2617 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2619 else
2620 _cv_gnu_make_command='' ;
2621 for a in "${MAKE-make}" make gmake gnumake ; do
2622 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2623 then
2624 _cv_gnu_make_command=$a ;
2625 break;
2627 done ;
2631 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2632 if test "x$_cv_gnu_make_command" != "x" ; then
2633 ifGNUmake='' ;
2634 else
2635 ifGNUmake='#' ;
2640 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2641 # Check whether --enable-debug or --disable-debug was given.
2642 if test "${enable_debug+set}" = set; then
2643 enableval="$enable_debug"
2644 case "${enableval}" in
2645 yes) enable_debug=yes ;;
2646 no) enable_debug=no ;;
2647 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2648 esac
2649 else
2650 enable_debug=no
2653 case "${enable_debug}" in
2654 yes)
2655 DEBUG_FLAGS='-O0 -ggdb3'
2657 no)
2658 DEBUG_FLAGS='-g'
2660 esac
2663 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2664 echo "configure:2665: checking how to run the C preprocessor" >&5
2665 # On Suns, sometimes $CPP names a directory.
2666 if test -n "$CPP" && test -d "$CPP"; then
2667 CPP=
2669 if test -z "$CPP"; then
2670 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2672 else
2673 # This must be in double quotes, not single quotes, because CPP may get
2674 # substituted into the Makefile and "${CC-cc}" will confuse make.
2675 CPP="${CC-cc} -E"
2676 # On the NeXT, cc -E runs the code through the compiler's parser,
2677 # not just through cpp.
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 #include <assert.h>
2682 Syntax Error
2684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2685 { (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2687 if test -z "$ac_err"; then
2689 else
2690 echo "$ac_err" >&5
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2693 rm -rf conftest*
2694 CPP="${CC-cc} -E -traditional-cpp"
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 #include <assert.h>
2699 Syntax Error
2701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2702 { (eval echo configure:2703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2704 if test -z "$ac_err"; then
2706 else
2707 echo "$ac_err" >&5
2708 echo "configure: failed program was:" >&5
2709 cat conftest.$ac_ext >&5
2710 rm -rf conftest*
2711 CPP="${CC-cc} -nologo -E"
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 #include <assert.h>
2716 Syntax Error
2718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2719 { (eval echo configure:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2721 if test -z "$ac_err"; then
2723 else
2724 echo "$ac_err" >&5
2725 echo "configure: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2727 rm -rf conftest*
2728 CPP=/lib/cpp
2730 rm -f conftest*
2732 rm -f conftest*
2734 rm -f conftest*
2735 ac_cv_prog_CPP="$CPP"
2737 CPP="$ac_cv_prog_CPP"
2738 else
2739 ac_cv_prog_CPP="$CPP"
2741 echo "$ac_t""$CPP" 1>&6
2744 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2745 echo "configure:2746: checking for cstdio to use" >&5
2746 # Check whether --enable-cstdio or --disable-cstdio was given.
2747 if test "${enable_cstdio+set}" = set; then
2748 enableval="$enable_cstdio"
2749 if test x$enable_cstdio = xno; then
2750 enable_cstdio=stdio
2752 else
2753 enable_cstdio=stdio
2757 enable_cstdio_flag=$enable_cstdio
2759 case x${enable_cstdio_flag} in
2760 xlibio)
2761 CSTDIO_H=config/io/c_io_libio.h
2762 BASIC_FILE_H=config/io/basic_file_libio.h
2763 BASIC_FILE_CC=config/io/basic_file_libio.cc
2764 echo "$ac_t""libio" 1>&6
2766 # see if we are on a system with libio native (ie, linux)
2767 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2768 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2769 echo "configure:2770: checking for libio.h" >&5
2770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2772 else
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 #include <libio.h>
2778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2779 { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2781 if test -z "$ac_err"; then
2782 rm -rf conftest*
2783 eval "ac_cv_header_$ac_safe=yes"
2784 else
2785 echo "$ac_err" >&5
2786 echo "configure: failed program was:" >&5
2787 cat conftest.$ac_ext >&5
2788 rm -rf conftest*
2789 eval "ac_cv_header_$ac_safe=no"
2791 rm -f conftest*
2793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2794 echo "$ac_t""yes" 1>&6
2795 has_libio=yes
2796 else
2797 echo "$ac_t""no" 1>&6
2798 has_libio=no
2802 # Need to check and see what version of glibc is being used. If
2803 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2804 # compile most of libio for linux systems.
2805 if test x$has_libio = x"yes"; then
2806 case "$target" in
2807 *-*-linux*)
2808 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2809 echo "configure:2810: checking for glibc version >= 2.2" >&5
2810 cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2814 #include <features.h>
2815 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2817 #endif
2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2821 egrep "ok" >/dev/null 2>&1; then
2822 rm -rf conftest*
2823 glibc_satisfactory=yes
2824 else
2825 rm -rf conftest*
2826 glibc_satisfactory=no
2828 rm -f conftest*
2830 echo "$ac_t""$glibc_satisfactory" 1>&6
2832 esac
2834 # XXX at the moment, admit defeat and force the recompilation
2835 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2836 glibc_satisfactory=no
2838 if test x$glibc_satisfactory = x"yes"; then
2839 need_libio=no
2840 need_wlibio=no
2841 else
2842 need_libio=yes
2843 # bkoz XXX need to add checks to enable this
2844 # pme XXX here's a first pass at such a check
2845 if test x$enable_c_mbchar != xno; then
2846 need_wlibio=yes
2847 else
2848 need_wlibio=no
2852 else
2853 # Using libio, but <libio.h> doesn't exist on the target system. . .
2854 need_libio=yes
2855 # bkoz XXX need to add checks to enable this
2856 # pme XXX here's a first pass at such a check
2857 if test x$enable_c_mbchar != xno; then
2858 need_wlibio=yes
2859 else
2860 need_wlibio=no
2864 xstdio | x | xno | xnone | xyes)
2865 # default
2866 CSTDIO_H=config/io/c_io_stdio.h
2867 BASIC_FILE_H=config/io/basic_file_stdio.h
2868 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2869 echo "$ac_t""stdio" 1>&6
2871 # We're not using stdio.
2872 need_libio=no
2873 need_wlibio=no
2876 echo "$enable_cstdio is an unknown io package" 1>&2
2877 exit 1
2879 esac
2884 # 2000-08-04 bkoz hack
2885 CCODECVT_C=config/io/c_io_libio_codecvt.c
2887 # 2000-08-04 bkoz hack
2891 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2892 GLIBCPP_BUILD_LIBIO_TRUE=
2893 GLIBCPP_BUILD_LIBIO_FALSE='#'
2894 else
2895 GLIBCPP_BUILD_LIBIO_TRUE='#'
2896 GLIBCPP_BUILD_LIBIO_FALSE=
2900 if test "$need_libio" = yes; then
2901 GLIBCPP_NEED_LIBIO_TRUE=
2902 GLIBCPP_NEED_LIBIO_FALSE='#'
2903 else
2904 GLIBCPP_NEED_LIBIO_TRUE='#'
2905 GLIBCPP_NEED_LIBIO_FALSE=
2909 if test "$need_wlibio" = yes; then
2910 GLIBCPP_NEED_WLIBIO_TRUE=
2911 GLIBCPP_NEED_WLIBIO_FALSE='#'
2912 else
2913 GLIBCPP_NEED_WLIBIO_TRUE='#'
2914 GLIBCPP_NEED_WLIBIO_FALSE=
2916 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2917 libio_la=../libio/libio.la
2918 else
2919 libio_la=
2924 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2925 echo "configure:2926: checking for clocale to use" >&5
2926 # Check whether --enable-clocale or --disable-clocale was given.
2927 if test "${enable_clocale+set}" = set; then
2928 enableval="$enable_clocale"
2929 if test x$enable_clocale = xno; then
2930 enable_clocale=generic
2932 else
2933 enable_clocale=generic
2937 enable_clocale_flag=$enable_clocale
2939 case x${enable_clocale_flag} in
2940 xgeneric)
2941 echo "$ac_t""generic" 1>&6
2943 # Don't use gettext.
2944 USE_NLS=no
2946 CLOCALE_H=config/locale/c_locale_generic.h
2947 CLOCALE_CC=config/locale/c_locale_generic.cc
2948 CCODECVT_H=config/locale/codecvt_specializations_generic.h
2949 CCOLLATE_CC=config/locale/collate_members_generic.cc
2950 CMESSAGES_H=config/locale/messages_members_generic.h
2951 CMESSAGES_CC=config/locale/messages_members_generic.cc
2952 CMONEY_CC=config/locale/moneypunct_members_generic.cc
2953 CNUMERIC_CC=config/locale/numpunct_members_generic.cc
2955 xgnu)
2956 echo "$ac_t""gnu" 1>&6
2958 # Declare intention to use gettext, and add support for specific
2959 # languages.
2960 # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
2961 ALL_LINGUAS="de fr"
2962 # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
2963 # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
2964 USE_NLS=yes
2966 # Export the build objects.
2967 for ling in $ALL_LINGUAS; do \
2968 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
2969 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
2970 done
2974 CLOCALE_H=config/locale/c_locale_gnu.h
2975 CLOCALE_CC=config/locale/c_locale_gnu.cc
2976 CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
2977 CCOLLATE_CC=config/locale/collate_members_gnu.cc
2978 CMESSAGES_H=config/locale/messages_members_gnu.h
2979 CMESSAGES_CC=config/locale/messages_members_gnu.cc
2980 CMONEY_CC=config/locale/moneypunct_members_gnu.cc
2981 CNUMERIC_CC=config/locale/numpunct_members_gnu.cc
2983 xieee_1003.1)
2984 echo "$ac_t""generic" 1>&6
2986 # Don't use gettext.
2987 USE_NLS=no
2989 CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
2990 CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
2991 CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
2992 CCOLLATE_CC=config/locale/collate_members_generic.cc
2993 CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
2994 CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
2995 CMONEY_CC=config/locale/moneypunct_members_generic.cc
2996 CNUMERIC_CC=config/locale/numpunct_members_generic.cc
2999 echo "$enable_clocale is an unknown locale package" 1>&2
3000 exit 1
3002 esac
3004 # This is where the testsuite looks for locale catalogs, using the
3005 # -DLOCALEDIR define during testsuite compilation.
3006 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3019 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3020 if test "${enable_c_mbchar+set}" = set; then
3021 enableval="$enable_c_mbchar"
3022 case "$enableval" in
3023 yes) enable_c_mbchar=yes ;;
3024 no) enable_c_mbchar=no ;;
3025 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3026 esac
3027 else
3028 enable_c_mbchar=yes
3032 # Check whether --enable-c99 or --disable-c99 was given.
3033 if test "${enable_c99+set}" = set; then
3034 enableval="$enable_c99"
3035 case "$enableval" in
3036 yes) enable_c99=yes ;;
3037 no) enable_c99=no ;;
3038 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3039 esac
3040 else
3041 enable_c99=yes
3045 ac_ext=C
3046 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3047 ac_cpp='$CXXCPP $CPPFLAGS'
3048 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3049 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3050 cross_compiling=$ac_cv_prog_cxx_cross
3053 # Check for the existence of <math.h> functions used if C99 is enabled.
3054 ac_c99_math=yes;
3055 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3056 echo "configure:3057: checking for ISO C99 support in <math.h>" >&5
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 #include <math.h>
3061 int main() {
3062 fpclassify(0.0);
3063 ; return 0; }
3065 if { (eval echo configure:3066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3067 else
3068 echo "configure: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3070 rm -rf conftest*
3071 ac_c99_math=no
3073 rm -f conftest*
3074 cat > conftest.$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3077 #include <math.h>
3078 int main() {
3079 isfinite(0.0);
3080 ; return 0; }
3082 if { (eval echo configure:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3084 else
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 rm -rf conftest*
3088 ac_c99_math=no
3090 rm -f conftest*
3091 cat > conftest.$ac_ext <<EOF
3092 #line 3093 "configure"
3093 #include "confdefs.h"
3094 #include <math.h>
3095 int main() {
3096 isinf(0.0);
3097 ; return 0; }
3099 if { (eval echo configure:3100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3101 else
3102 echo "configure: failed program was:" >&5
3103 cat conftest.$ac_ext >&5
3104 rm -rf conftest*
3105 ac_c99_math=no
3107 rm -f conftest*
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 #include <math.h>
3112 int main() {
3113 isnan(0.0);
3114 ; return 0; }
3116 if { (eval echo configure:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3118 else
3119 echo "configure: failed program was:" >&5
3120 cat conftest.$ac_ext >&5
3121 rm -rf conftest*
3122 ac_c99_math=no
3124 rm -f conftest*
3125 cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 #include <math.h>
3129 int main() {
3130 isnormal(0.0);
3131 ; return 0; }
3133 if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3135 else
3136 echo "configure: failed program was:" >&5
3137 cat conftest.$ac_ext >&5
3138 rm -rf conftest*
3139 ac_c99_math=no
3141 rm -f conftest*
3142 cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 #include <math.h>
3146 int main() {
3147 signbit(0.0);
3148 ; return 0; }
3150 if { (eval echo configure:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3152 else
3153 echo "configure: failed program was:" >&5
3154 cat conftest.$ac_ext >&5
3155 rm -rf conftest*
3156 ac_c99_math=no
3158 rm -f conftest*
3159 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 #include <math.h>
3163 int main() {
3164 isgreater(0.0,0.0);
3165 ; return 0; }
3167 if { (eval echo configure:3168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3169 else
3170 echo "configure: failed program was:" >&5
3171 cat conftest.$ac_ext >&5
3172 rm -rf conftest*
3173 ac_c99_math=no
3175 rm -f conftest*
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #include <math.h>
3180 int main() {
3181 isgreaterequal(0.0,0.0);
3182 ; return 0; }
3184 if { (eval echo configure:3185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3186 else
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3189 rm -rf conftest*
3190 ac_c99_math=no
3192 rm -f conftest*
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 #include <math.h>
3197 int main() {
3198 isless(0.0,0.0);
3199 ; return 0; }
3201 if { (eval echo configure:3202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3203 else
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3206 rm -rf conftest*
3207 ac_c99_math=no
3209 rm -f conftest*
3210 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 #include <math.h>
3214 int main() {
3215 islessequal(0.0,0.0);
3216 ; return 0; }
3218 if { (eval echo configure:3219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3220 else
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3223 rm -rf conftest*
3224 ac_c99_math=no
3226 rm -f conftest*
3227 cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3230 #include <math.h>
3231 int main() {
3232 islessgreater(0.0,0.0);
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_math=no
3243 rm -f conftest*
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 #include <math.h>
3248 int main() {
3249 isunordered(0.0,0.0);
3250 ; return 0; }
3252 if { (eval echo configure:3253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3254 else
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3257 rm -rf conftest*
3258 ac_c99_math=no
3260 rm -f conftest*
3261 echo "$ac_t""$ac_c99_math" 1>&6
3263 # Check for the existence in <stdio.h> of vscanf, et. al.
3264 ac_c99_stdio=yes;
3265 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3266 echo "configure:3267: checking for ISO C99 support in <stdio.h>" >&5
3267 cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 #include <stdio.h>
3271 int main() {
3272 snprintf("12", 0, "%i");
3273 ; return 0; }
3275 if { (eval echo configure:3276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3277 else
3278 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3280 rm -rf conftest*
3281 ac_c99_stdio=no
3283 rm -f conftest*
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 #include <stdio.h>
3288 #include <stdarg.h>
3289 void foo(char* fmt, ...)
3290 {va_list args; va_start(args, fmt);
3291 vfscanf(stderr, "%i", args);}
3292 int main() {
3294 ; return 0; }
3296 if { (eval echo configure:3297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3298 else
3299 echo "configure: failed program was:" >&5
3300 cat conftest.$ac_ext >&5
3301 rm -rf conftest*
3302 ac_c99_stdio=no
3304 rm -f conftest*
3305 cat > conftest.$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 #include <stdio.h>
3309 #include <stdarg.h>
3310 void foo(char* fmt, ...)
3311 {va_list args; va_start(args, fmt);
3312 vscanf("%i", args);}
3313 int main() {
3315 ; return 0; }
3317 if { (eval echo configure:3318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3319 else
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 rm -rf conftest*
3323 ac_c99_stdio=no
3325 rm -f conftest*
3326 cat > conftest.$ac_ext <<EOF
3327 #line 3328 "configure"
3328 #include "confdefs.h"
3329 #include <stdio.h>
3330 #include <stdarg.h>
3331 void foo(char* fmt, ...)
3332 {va_list args; va_start(args, fmt);
3333 vsnprintf(fmt, 0, "%i", args);}
3334 int main() {
3336 ; return 0; }
3338 if { (eval echo configure:3339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3340 else
3341 echo "configure: failed program was:" >&5
3342 cat conftest.$ac_ext >&5
3343 rm -rf conftest*
3344 ac_c99_stdio=no
3346 rm -f conftest*
3347 cat > conftest.$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3350 #include <stdio.h>
3351 #include <stdarg.h>
3352 void foo(char* fmt, ...)
3353 {va_list args; va_start(args, fmt);
3354 vsscanf(fmt, "%i", args);}
3355 int main() {
3357 ; return 0; }
3359 if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3361 else
3362 echo "configure: failed program was:" >&5
3363 cat conftest.$ac_ext >&5
3364 rm -rf conftest*
3365 ac_c99_stdio=no
3367 rm -f conftest*
3368 echo "$ac_t""$ac_c99_stdio" 1>&6
3370 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3371 ac_c99_stdlib=yes;
3372 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3373 echo "configure:3374: checking for lldiv_t declaration" >&5
3374 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3376 else
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 #include <stdlib.h>
3382 int main() {
3383 lldiv_t mydivt;
3384 ; return 0; }
3386 if { (eval echo configure:3387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3387 rm -rf conftest*
3388 ac_c99_lldiv_t=yes
3389 else
3390 echo "configure: failed program was:" >&5
3391 cat conftest.$ac_ext >&5
3392 rm -rf conftest*
3393 ac_c99_lldiv_t=no
3395 rm -f conftest*
3399 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3401 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3402 echo "configure:3403: checking for ISO C99 support in <stdlib.h>" >&5
3403 cat > conftest.$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3406 #include <stdlib.h>
3407 int main() {
3408 char* tmp; strtof("gnu", &tmp);
3409 ; return 0; }
3411 if { (eval echo configure:3412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3413 else
3414 echo "configure: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3416 rm -rf conftest*
3417 ac_c99_stdlib=no
3419 rm -f conftest*
3420 cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 #include <stdlib.h>
3424 int main() {
3425 char* tmp; strtold("gnu", &tmp);
3426 ; return 0; }
3428 if { (eval echo configure:3429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3430 else
3431 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3433 rm -rf conftest*
3434 ac_c99_stdlib=no
3436 rm -f conftest*
3437 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <stdlib.h>
3441 int main() {
3442 char* tmp; strtoll("gnu", &tmp, 10);
3443 ; return 0; }
3445 if { (eval echo configure:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3447 else
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3450 rm -rf conftest*
3451 ac_c99_stdlib=no
3453 rm -f conftest*
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 #include <stdlib.h>
3458 int main() {
3459 char* tmp; strtoull("gnu", &tmp, 10);
3460 ; return 0; }
3462 if { (eval echo configure:3463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3464 else
3465 echo "configure: failed program was:" >&5
3466 cat conftest.$ac_ext >&5
3467 rm -rf conftest*
3468 ac_c99_stdlib=no
3470 rm -f conftest*
3471 cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 #include <stdlib.h>
3475 int main() {
3476 llabs(10);
3477 ; return 0; }
3479 if { (eval echo configure:3480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3481 else
3482 echo "configure: failed program was:" >&5
3483 cat conftest.$ac_ext >&5
3484 rm -rf conftest*
3485 ac_c99_stdlib=no
3487 rm -f conftest*
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 #include <stdlib.h>
3492 int main() {
3493 lldiv(10,1);
3494 ; return 0; }
3496 if { (eval echo configure:3497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3498 else
3499 echo "configure: failed program was:" >&5
3500 cat conftest.$ac_ext >&5
3501 rm -rf conftest*
3502 ac_c99_stdlib=no
3504 rm -f conftest*
3505 cat > conftest.$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3508 #include <stdlib.h>
3509 int main() {
3510 atoll("10");
3511 ; return 0; }
3513 if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515 else
3516 echo "configure: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3518 rm -rf conftest*
3519 ac_c99_stdlib=no
3521 rm -f conftest*
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 #include <stdlib.h>
3526 int main() {
3527 _Exit(0);
3528 ; return 0; }
3530 if { (eval echo configure:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3532 else
3533 echo "configure: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3535 rm -rf conftest*
3536 ac_c99_stdlib=no
3538 rm -f conftest*
3539 if test x"$ac_c99_lldiv_t" = x"no"; then
3540 ac_c99_stdlib=no;
3541 fi;
3542 echo "$ac_t""$ac_c99_stdlib" 1>&6
3544 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3545 # XXX the wchar.h checks should be rolled into the general C99 bits.
3546 ac_c99_wchar=yes;
3547 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3548 echo "configure:3549: checking for additional ISO C99 support in <wchar.h>" >&5
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3552 #include <wchar.h>
3553 int main() {
3554 wcstold(L"10.0", NULL);
3555 ; return 0; }
3557 if { (eval echo configure:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3559 else
3560 echo "configure: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3562 rm -rf conftest*
3563 ac_c99_wchar=no
3565 rm -f conftest*
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 #include <wchar.h>
3570 int main() {
3571 wcstoll(L"10", NULL, 10);
3572 ; return 0; }
3574 if { (eval echo configure:3575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3576 else
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3579 rm -rf conftest*
3580 ac_c99_wchar=no
3582 rm -f conftest*
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 #include <wchar.h>
3587 int main() {
3588 wcstoull(L"10", NULL, 10);
3589 ; return 0; }
3591 if { (eval echo configure:3592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3593 else
3594 echo "configure: failed program was:" >&5
3595 cat conftest.$ac_ext >&5
3596 rm -rf conftest*
3597 ac_c99_wchar=no
3599 rm -f conftest*
3600 echo "$ac_t""$ac_c99_wchar" 1>&6
3602 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3603 echo "configure:3604: checking for enabled ISO C99 support" >&5
3604 if test x"$ac_c99_math" = x"no" ||
3605 test x"$ac_c99_stdio" = x"no" ||
3606 test x"$ac_c99_stdlib" = x"no" ||
3607 test x"$ac_c99_wchar" = x"no"; then
3608 enable_c99=no;
3609 fi;
3610 echo "$ac_t""$enable_c99" 1>&6
3612 # Option parsed, now set things appropriately
3613 if test x"$enable_c99" = x"yes"; then
3614 cat >> confdefs.h <<\EOF
3615 #define _GLIBCPP_USE_C99 1
3620 ac_ext=c
3621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3622 ac_cpp='$CPP $CPPFLAGS'
3623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3625 cross_compiling=$ac_cv_prog_cc_cross
3629 # Check whether --enable-long-long or --disable-long-long was given.
3630 if test "${enable_long_long+set}" = set; then
3631 enableval="$enable_long_long"
3632 case "$enableval" in
3633 yes) enable_long_long=yes ;;
3634 no) enable_long_long=no ;;
3635 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3636 esac
3637 else
3638 enable_long_long=yes
3641 # iostreams require strtoll, strtoull to compile. If the
3642 # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3643 # go ahead and allow long long to be used.
3644 if test x"$enable_c99" = x"no"; then
3645 enable_long_long=no;
3648 # Option parsed, now set things appropriately
3649 echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3650 echo "configure:3651: checking for enabled long long support" >&5
3651 if test x"$enable_long_long" = xyes; then
3652 cat >> confdefs.h <<\EOF
3653 #define _GLIBCPP_USE_LONG_LONG 1
3657 echo "$ac_t""$enable_long_long" 1>&6
3659 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3660 echo "configure:3661: checking for c header strategy to use" >&5
3661 # Check whether --enable-cheaders or --disable-cheaders was given.
3662 if test "${enable_cheaders+set}" = set; then
3663 enableval="$enable_cheaders"
3665 case "$enableval" in
3667 enable_cheaders=c
3669 c_std)
3670 enable_cheaders=c_std
3672 c_shadow)
3673 enable_cheaders=c_shadow
3675 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3677 esac
3678 else
3679 enable_cheaders=c_std
3682 echo "$ac_t""$enable_cheaders" 1>&6
3684 case "$enable_cheaders" in
3685 c_shadow)
3686 CSHADOW_FLAGS="-fno-builtin"
3687 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3688 cat >> confdefs.h <<\EOF
3689 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3693 c_std)
3694 CSHADOW_FLAGS=""
3695 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3698 CSHADOW_FLAGS=""
3699 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3701 esac
3707 if test "$enable_cheaders" = c_shadow; then
3708 GLIBCPP_USE_CSHADOW_TRUE=
3709 GLIBCPP_USE_CSHADOW_FALSE='#'
3710 else
3711 GLIBCPP_USE_CSHADOW_TRUE='#'
3712 GLIBCPP_USE_CSHADOW_FALSE=
3716 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3717 echo "configure:3718: checking for thread model used by GCC" >&5
3718 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3719 echo "$ac_t""$target_thread_file" 1>&6
3721 if test $target_thread_file != single; then
3722 cat >> confdefs.h <<\EOF
3723 #define HAVE_GTHR_DEFAULT 1
3726 cat >> confdefs.h <<\EOF
3727 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3732 glibcpp_thread_h=gthr-$target_thread_file.h
3735 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3736 if test "${enable_cxx_flags+set}" = set; then
3737 enableval="$enable_cxx_flags"
3738 case "x$enableval" in
3739 xyes)
3740 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3741 xno|x)
3742 enable_cxx_flags='' ;;
3744 enable_cxx_flags="$enableval" ;;
3745 esac
3746 else
3747 enable_cxx_flags='none'
3751 if test "$enable_cxx_flags" = "none"; then
3752 enable_cxx_flags='';
3755 if test -n "$enable_cxx_flags"; then
3756 for f in $enable_cxx_flags; do
3757 case "$f" in
3758 -fhonor-std) ;;
3759 -*) ;;
3760 *) # and we're trying to pass /what/ exactly?
3761 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3762 esac
3763 done
3765 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3769 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3770 echo "configure:3771: checking for exception model to use" >&5
3772 ac_ext=C
3773 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3774 ac_cpp='$CXXCPP $CPPFLAGS'
3775 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3776 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3777 cross_compiling=$ac_cv_prog_cxx_cross
3779 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3780 if test "${enable_sjlj_exceptions+set}" = set; then
3781 enableval="$enable_sjlj_exceptions"
3783 else
3784 cat > conftest.$ac_ext << EOF
3785 #line 3786 "configure"
3786 struct S { ~S(); };
3787 void bar();
3788 void foo()
3790 S s;
3791 bar();
3794 old_CXXFLAGS="$CXXFLAGS"
3795 CXXFLAGS=-S
3796 if { (eval echo configure:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3797 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3798 enable_sjlj_exceptions=yes
3799 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3800 enable_sjlj_exceptions=no
3803 CXXFLAGS="$old_CXXFLAGS"
3804 rm -f conftest*
3807 if test x$enable_sjlj_exceptions = xyes; then
3808 cat >> confdefs.h <<\EOF
3809 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3812 ac_exception_model_name=sjlj
3813 elif test x$enable_sjlj_exceptions = xno; then
3814 ac_exception_model_name="call frame"
3815 else
3816 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3818 ac_ext=c
3819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3823 cross_compiling=$ac_cv_prog_cc_cross
3825 echo "$ac_t""$ac_exception_model_name" 1>&6
3829 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3831 # We are being configured with some form of cross compiler.
3832 # mknumeric_limits may not work correctly, either because the
3833 # compiler may not run on this machine, may not be able to link
3834 # executables, or may produce executables we can't run on this
3835 # machine. Thus, just use the pre-generated include/bits/limits_generic.h
3836 GLIBCPP_IS_CROSS_COMPILING=1
3838 # If Canadian cross, then don't pick up tools from the build
3839 # directory.
3840 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3841 CANADIAN=yes
3842 else
3843 CANADIAN=no
3846 case "$target_alias" in
3847 *-linux*)
3848 # Construct linux crosses by hand, eliminating bits that need ld...
3849 # Check for available headers.
3850 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3851 machine/endian.h machine/param.h sys/machine.h sys/types.h \
3852 fp.h locale.h float.h inttypes.h
3854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3856 echo "configure:3857: checking for $ac_hdr" >&5
3857 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3859 else
3860 cat > conftest.$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3863 #include <$ac_hdr>
3865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3866 { (eval echo configure:3867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3868 if test -z "$ac_err"; then
3869 rm -rf conftest*
3870 eval "ac_cv_header_$ac_safe=yes"
3871 else
3872 echo "$ac_err" >&5
3873 echo "configure: failed program was:" >&5
3874 cat conftest.$ac_ext >&5
3875 rm -rf conftest*
3876 eval "ac_cv_header_$ac_safe=no"
3878 rm -f conftest*
3880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3881 echo "$ac_t""yes" 1>&6
3882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3883 cat >> confdefs.h <<EOF
3884 #define $ac_tr_hdr 1
3887 else
3888 echo "$ac_t""no" 1>&6
3890 done
3893 # GLIBCPP_CHECK_COMPILER_FEATURES
3894 SECTION_FLAGS='-ffunction-sections -fdata-sections'
3897 # If we're not using GNU ld, then there's no point in even trying these
3898 # tests. Check for that first. We should have already tested for gld
3899 # by now (in libtool), but require it now just to be safe...
3900 SECTION_LDFLAGS=''
3901 OPT_LDFLAGS=''
3904 # Set --gc-sections.
3905 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3906 # GNU ld it is! Joy and bunny rabbits!
3908 # All these tests are for C++; save the language and the compiler flags.
3909 # Need to do this so that g++ won't try to link in libstdc++
3910 ac_test_CFLAGS="${CFLAGS+set}"
3911 ac_save_CFLAGS="$CFLAGS"
3912 CFLAGS='-x c++ -Wl,--gc-sections'
3914 # Check for -Wl,--gc-sections
3915 # XXX This test is broken at the moment, as symbols required for
3916 # linking are now in libsupc++ (not built yet.....). In addition,
3917 # this test has cored on solaris in the past. In addition,
3918 # --gc-sections doesn't really work at the moment (keeps on discarding
3919 # used sections, first .eh_frame and now some of the glibc sections for
3920 # iconv). Bzzzzt. Thanks for playing, maybe next time.
3921 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3922 echo "configure:3923: checking for ld that supports -Wl,--gc-sections" >&5
3923 if test "$cross_compiling" = yes; then
3924 ac_sectionLDflags=yes
3925 else
3926 cat > conftest.$ac_ext <<EOF
3927 #line 3928 "configure"
3928 #include "confdefs.h"
3930 int main(void)
3932 try { throw 1; }
3933 catch (...) { };
3934 return 0;
3938 if { (eval echo configure:3939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3939 then
3940 ac_sectionLDflags=yes
3941 else
3942 echo "configure: failed program was:" >&5
3943 cat conftest.$ac_ext >&5
3944 rm -fr conftest*
3945 ac_sectionLFflags=no
3947 rm -fr conftest*
3950 if test "$ac_test_CFLAGS" = set; then
3951 CFLAGS="$ac_save_CFLAGS"
3952 else
3953 # this is the suspicious part
3954 CFLAGS=''
3956 if test "$ac_sectionLDflags" = "yes"; then
3957 SECTION_LDFLAGS='-Wl,--gc-sections'
3959 echo "$ac_t""$ac_sectionLDflags" 1>&6
3962 # Set linker optimization flags.
3963 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
3964 test x"$enable_debug" = x"no"; then
3965 OPT_LDFLAGS='-Wl,-O1'
3971 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3972 # GLIBCPP_CHECK_MATH_SUPPORT
3973 cat >> confdefs.h <<\EOF
3974 #define HAVE_ACOSF 1
3977 cat >> confdefs.h <<\EOF
3978 #define HAVE_ASINF 1
3981 cat >> confdefs.h <<\EOF
3982 #define HAVE_ATAN2F 1
3985 cat >> confdefs.h <<\EOF
3986 #define HAVE_ATANF 1
3989 cat >> confdefs.h <<\EOF
3990 #define HAVE_CEILF 1
3993 cat >> confdefs.h <<\EOF
3994 #define HAVE_COPYSIGN 1
3997 cat >> confdefs.h <<\EOF
3998 #define HAVE_COPYSIGNF 1
4001 cat >> confdefs.h <<\EOF
4002 #define HAVE_COSF 1
4005 cat >> confdefs.h <<\EOF
4006 #define HAVE_COSHF 1
4009 cat >> confdefs.h <<\EOF
4010 #define HAVE_EXPF 1
4013 cat >> confdefs.h <<\EOF
4014 #define HAVE_FABSF 1
4017 cat >> confdefs.h <<\EOF
4018 #define HAVE_FINITE 1
4021 cat >> confdefs.h <<\EOF
4022 #define HAVE_FINITEF 1
4025 cat >> confdefs.h <<\EOF
4026 #define HAVE_FLOORF 1
4029 cat >> confdefs.h <<\EOF
4030 #define HAVE_FMODF 1
4033 cat >> confdefs.h <<\EOF
4034 #define HAVE_FREXPF 1
4037 cat >> confdefs.h <<\EOF
4038 #define HAVE_ISINF 1
4041 cat >> confdefs.h <<\EOF
4042 #define HAVE_ISINFF 1
4045 cat >> confdefs.h <<\EOF
4046 #define HAVE_ISNAN 1
4049 cat >> confdefs.h <<\EOF
4050 #define HAVE_ISNANF 1
4053 cat >> confdefs.h <<\EOF
4054 #define HAVE_LDEXPF 1
4057 cat >> confdefs.h <<\EOF
4058 #define HAVE_LOG10F 1
4061 cat >> confdefs.h <<\EOF
4062 #define HAVE_LOGF 1
4065 cat >> confdefs.h <<\EOF
4066 #define HAVE_MODFF 1
4069 cat >> confdefs.h <<\EOF
4070 #define HAVE_POWF 1
4073 cat >> confdefs.h <<\EOF
4074 #define HAVE_SINCOS 1
4077 cat >> confdefs.h <<\EOF
4078 #define HAVE_SINCOSF 1
4081 cat >> confdefs.h <<\EOF
4082 #define HAVE_SINF 1
4085 cat >> confdefs.h <<\EOF
4086 #define HAVE_SINHF 1
4089 cat >> confdefs.h <<\EOF
4090 #define HAVE_SQRTF 1
4093 cat >> confdefs.h <<\EOF
4094 #define HAVE_TANF 1
4097 cat >> confdefs.h <<\EOF
4098 #define HAVE_TANHF 1
4102 # At some point, we should differentiate between architectures
4103 # like x86, which have long double versions, and alpha/powerpc/etc.,
4104 # which don't. For the time being, punt.
4105 if test x"long_double_math_on_this_cpu" = x"yes"; then
4106 cat >> confdefs.h <<\EOF
4107 #define HAVE_ACOSL 1
4110 cat >> confdefs.h <<\EOF
4111 #define HAVE_ASINL 1
4114 cat >> confdefs.h <<\EOF
4115 #define HAVE_ATAN2L 1
4118 cat >> confdefs.h <<\EOF
4119 #define HAVE_ATANL 1
4122 cat >> confdefs.h <<\EOF
4123 #define HAVE_CEILL 1
4126 cat >> confdefs.h <<\EOF
4127 #define HAVE_COPYSIGNL 1
4130 cat >> confdefs.h <<\EOF
4131 #define HAVE_COSL 1
4134 cat >> confdefs.h <<\EOF
4135 #define HAVE_COSHL 1
4138 cat >> confdefs.h <<\EOF
4139 #define HAVE_EXPL 1
4142 cat >> confdefs.h <<\EOF
4143 #define HAVE_FABSL 1
4146 cat >> confdefs.h <<\EOF
4147 #define HAVE_FINITEL 1
4150 cat >> confdefs.h <<\EOF
4151 #define HAVE_FLOORL 1
4154 cat >> confdefs.h <<\EOF
4155 #define HAVE_FMODL 1
4158 cat >> confdefs.h <<\EOF
4159 #define HAVE_FREXPL 1
4162 cat >> confdefs.h <<\EOF
4163 #define HAVE_ISINFL 1
4166 cat >> confdefs.h <<\EOF
4167 #define HAVE_ISNANL 1
4170 cat >> confdefs.h <<\EOF
4171 #define HAVE_LDEXPL 1
4174 cat >> confdefs.h <<\EOF
4175 #define HAVE_LOG10L 1
4178 cat >> confdefs.h <<\EOF
4179 #define HAVE_LOGL 1
4182 cat >> confdefs.h <<\EOF
4183 #define HAVE_MODFL 1
4186 cat >> confdefs.h <<\EOF
4187 #define HAVE_POWL 1
4190 cat >> confdefs.h <<\EOF
4191 #define HAVE_SINCOSL 1
4194 cat >> confdefs.h <<\EOF
4195 #define HAVE_SINL 1
4198 cat >> confdefs.h <<\EOF
4199 #define HAVE_SINHL 1
4202 cat >> confdefs.h <<\EOF
4203 #define HAVE_SQRTL 1
4206 cat >> confdefs.h <<\EOF
4207 #define HAVE_TANL 1
4210 cat >> confdefs.h <<\EOF
4211 #define HAVE_TANHL 1
4216 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4217 echo "configure:4218: checking for main in -lm" >&5
4218 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4221 else
4222 ac_save_LIBS="$LIBS"
4223 LIBS="-lm $LIBS"
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4228 int main() {
4229 main()
4230 ; return 0; }
4232 if { (eval echo configure:4233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4233 rm -rf conftest*
4234 eval "ac_cv_lib_$ac_lib_var=yes"
4235 else
4236 echo "configure: failed program was:" >&5
4237 cat conftest.$ac_ext >&5
4238 rm -rf conftest*
4239 eval "ac_cv_lib_$ac_lib_var=no"
4241 rm -f conftest*
4242 LIBS="$ac_save_LIBS"
4245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4246 echo "$ac_t""yes" 1>&6
4247 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4248 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4249 cat >> confdefs.h <<EOF
4250 #define $ac_tr_lib 1
4253 LIBS="-lm $LIBS"
4255 else
4256 echo "$ac_t""no" 1>&6
4259 for ac_func in nan copysignf
4261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4262 echo "configure:4263: checking for $ac_func" >&5
4263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4265 else
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269 /* System header to define __stub macros and hopefully few prototypes,
4270 which can conflict with char $ac_func(); below. */
4271 #include <assert.h>
4272 /* Override any gcc2 internal prototype to avoid an error. */
4273 /* We use char because int might match the return type of a gcc2
4274 builtin and then its argument prototype would still apply. */
4275 char $ac_func();
4277 int main() {
4279 /* The GNU C library defines this for functions which it implements
4280 to always fail with ENOSYS. Some functions are actually named
4281 something starting with __ and the normal name is an alias. */
4282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4283 choke me
4284 #else
4285 $ac_func();
4286 #endif
4288 ; return 0; }
4290 if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4291 rm -rf conftest*
4292 eval "ac_cv_func_$ac_func=yes"
4293 else
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4296 rm -rf conftest*
4297 eval "ac_cv_func_$ac_func=no"
4299 rm -f conftest*
4302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4303 echo "$ac_t""yes" 1>&6
4304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4305 cat >> confdefs.h <<EOF
4306 #define $ac_tr_func 1
4309 else
4310 echo "$ac_t""no" 1>&6
4311 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4313 done
4317 USE_COMPLEX_LONG_DOUBLE=no
4318 if test x$ac_cv_func_copysignl = x"yes"; then
4319 USE_COMPLEX_LONG_DOUBLE=yes
4320 for ac_func in signbitl
4322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4323 echo "configure:4324: checking for $ac_func" >&5
4324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4326 else
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330 /* System header to define __stub macros and hopefully few prototypes,
4331 which can conflict with char $ac_func(); below. */
4332 #include <assert.h>
4333 /* Override any gcc2 internal prototype to avoid an error. */
4334 /* We use char because int might match the return type of a gcc2
4335 builtin and then its argument prototype would still apply. */
4336 char $ac_func();
4338 int main() {
4340 /* The GNU C library defines this for functions which it implements
4341 to always fail with ENOSYS. Some functions are actually named
4342 something starting with __ and the normal name is an alias. */
4343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4344 choke me
4345 #else
4346 $ac_func();
4347 #endif
4349 ; return 0; }
4351 if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4352 rm -rf conftest*
4353 eval "ac_cv_func_$ac_func=yes"
4354 else
4355 echo "configure: failed program was:" >&5
4356 cat conftest.$ac_ext >&5
4357 rm -rf conftest*
4358 eval "ac_cv_func_$ac_func=no"
4360 rm -f conftest*
4363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4364 echo "$ac_t""yes" 1>&6
4365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4366 cat >> confdefs.h <<EOF
4367 #define $ac_tr_func 1
4370 else
4371 echo "$ac_t""no" 1>&6
4372 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4374 done
4383 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4384 echo "configure:4385: checking for mbstate_t" >&5
4385 cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4388 #include <wchar.h>
4389 int main() {
4390 mbstate_t teststate;
4391 ; return 0; }
4393 if { (eval echo configure:4394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4394 rm -rf conftest*
4395 have_mbstate_t=yes
4396 else
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4399 rm -rf conftest*
4400 have_mbstate_t=no
4402 rm -f conftest*
4403 echo "$ac_t""$have_mbstate_t" 1>&6
4404 if test x"$have_mbstate_t" = xyes; then
4405 cat >> confdefs.h <<\EOF
4406 #define HAVE_MBSTATE_T 1
4411 for ac_hdr in wchar.h
4413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_hdr" >&5
4416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4418 else
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 #include <$ac_hdr>
4424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4425 { (eval echo configure:4426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4427 if test -z "$ac_err"; then
4428 rm -rf conftest*
4429 eval "ac_cv_header_$ac_safe=yes"
4430 else
4431 echo "$ac_err" >&5
4432 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4434 rm -rf conftest*
4435 eval "ac_cv_header_$ac_safe=no"
4437 rm -f conftest*
4439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4442 cat >> confdefs.h <<EOF
4443 #define $ac_tr_hdr 1
4445 ac_has_wchar_h=yes
4446 else
4447 echo "$ac_t""no" 1>&6
4448 ac_has_wchar_h=no
4450 done
4452 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4453 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4454 echo "configure:4455: checking for wctype.h" >&5
4455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4457 else
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4461 #include <wctype.h>
4463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4464 { (eval echo configure:4465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4466 if test -z "$ac_err"; then
4467 rm -rf conftest*
4468 eval "ac_cv_header_$ac_safe=yes"
4469 else
4470 echo "$ac_err" >&5
4471 echo "configure: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4473 rm -rf conftest*
4474 eval "ac_cv_header_$ac_safe=no"
4476 rm -f conftest*
4478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4479 echo "$ac_t""yes" 1>&6
4480 ac_has_wctype_h=yes
4481 else
4482 echo "$ac_t""no" 1>&6
4483 ac_has_wctype_h=no
4487 if test x"$ac_has_wchar_h" = xyes &&
4488 test x"$ac_has_wctype_h" = xyes &&
4489 test x"$enable_c_mbchar" != xno; then
4491 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4492 echo "configure:4493: checking for WCHAR_MIN and WCHAR_MAX" >&5
4493 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4496 #include <wchar.h>
4497 int main() {
4498 int i = WCHAR_MIN; int j = WCHAR_MAX;
4499 ; return 0; }
4501 if { (eval echo configure:4502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4502 rm -rf conftest*
4503 has_wchar_minmax=yes
4504 else
4505 echo "configure: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4507 rm -rf conftest*
4508 has_wchar_minmax=no
4510 rm -f conftest*
4511 echo "$ac_t""$has_wchar_minmax" 1>&6
4513 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4514 echo "configure:4515: checking for WEOF" >&5
4515 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4519 #include <wchar.h>
4520 #include <stddef.h>
4521 int main() {
4522 wint_t i = WEOF;
4523 ; return 0; }
4525 if { (eval echo configure:4526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4526 rm -rf conftest*
4527 has_weof=yes
4528 else
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4531 rm -rf conftest*
4532 has_weof=no
4534 rm -f conftest*
4535 echo "$ac_t""$has_weof" 1>&6
4537 ac_wfuncs=yes
4538 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4541 echo "configure:4542: checking for $ac_func" >&5
4542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4543 echo $ac_n "(cached) $ac_c" 1>&6
4544 else
4545 cat > conftest.$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4548 /* System header to define __stub macros and hopefully few prototypes,
4549 which can conflict with char $ac_func(); below. */
4550 #include <assert.h>
4551 /* Override any gcc2 internal prototype to avoid an error. */
4552 /* We use char because int might match the return type of a gcc2
4553 builtin and then its argument prototype would still apply. */
4554 char $ac_func();
4556 int main() {
4558 /* The GNU C library defines this for functions which it implements
4559 to always fail with ENOSYS. Some functions are actually named
4560 something starting with __ and the normal name is an alias. */
4561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4562 choke me
4563 #else
4564 $ac_func();
4565 #endif
4567 ; return 0; }
4569 if { (eval echo configure:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4570 rm -rf conftest*
4571 eval "ac_cv_func_$ac_func=yes"
4572 else
4573 echo "configure: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4575 rm -rf conftest*
4576 eval "ac_cv_func_$ac_func=no"
4578 rm -f conftest*
4581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4582 echo "$ac_t""yes" 1>&6
4583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4584 cat >> confdefs.h <<EOF
4585 #define $ac_tr_func 1
4588 else
4589 echo "$ac_t""no" 1>&6
4591 ac_wfuncs=no
4593 done
4596 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4597 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4598 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4599 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4600 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4601 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4604 echo "configure:4605: checking for $ac_func" >&5
4605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4607 else
4608 cat > conftest.$ac_ext <<EOF
4609 #line 4610 "configure"
4610 #include "confdefs.h"
4611 /* System header to define __stub macros and hopefully few prototypes,
4612 which can conflict with char $ac_func(); below. */
4613 #include <assert.h>
4614 /* Override any gcc2 internal prototype to avoid an error. */
4615 /* We use char because int might match the return type of a gcc2
4616 builtin and then its argument prototype would still apply. */
4617 char $ac_func();
4619 int main() {
4621 /* The GNU C library defines this for functions which it implements
4622 to always fail with ENOSYS. Some functions are actually named
4623 something starting with __ and the normal name is an alias. */
4624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4625 choke me
4626 #else
4627 $ac_func();
4628 #endif
4630 ; return 0; }
4632 if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4633 rm -rf conftest*
4634 eval "ac_cv_func_$ac_func=yes"
4635 else
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4638 rm -rf conftest*
4639 eval "ac_cv_func_$ac_func=no"
4641 rm -f conftest*
4644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4647 cat >> confdefs.h <<EOF
4648 #define $ac_tr_func 1
4651 else
4652 echo "$ac_t""no" 1>&6
4654 ac_wfuncs=no
4656 done
4659 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4660 echo "configure:4661: checking for ISO C99 wchar_t support" >&5
4661 if test x"$has_weof" = xyes &&
4662 test x"$has_wchar_minmax" = xyes &&
4663 test x"$ac_wfuncs" = xyes; then
4664 ac_isoC99_wchar_t=yes
4665 else
4666 ac_isoC99_wchar_t=no
4668 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4670 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4671 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4672 echo "configure:4673: checking for iconv.h" >&5
4673 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4675 else
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 #include <iconv.h>
4681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4682 { (eval echo configure:4683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4684 if test -z "$ac_err"; then
4685 rm -rf conftest*
4686 eval "ac_cv_header_$ac_safe=yes"
4687 else
4688 echo "$ac_err" >&5
4689 echo "configure: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4691 rm -rf conftest*
4692 eval "ac_cv_header_$ac_safe=no"
4694 rm -f conftest*
4696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4697 echo "$ac_t""yes" 1>&6
4698 ac_has_iconv_h=yes
4699 else
4700 echo "$ac_t""no" 1>&6
4701 ac_has_iconv_h=no
4704 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4705 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4706 echo "configure:4707: checking for langinfo.h" >&5
4707 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4709 else
4710 cat > conftest.$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4713 #include <langinfo.h>
4715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4716 { (eval echo configure:4717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4718 if test -z "$ac_err"; then
4719 rm -rf conftest*
4720 eval "ac_cv_header_$ac_safe=yes"
4721 else
4722 echo "$ac_err" >&5
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4725 rm -rf conftest*
4726 eval "ac_cv_header_$ac_safe=no"
4728 rm -f conftest*
4730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4731 echo "$ac_t""yes" 1>&6
4732 ac_has_langinfo_h=yes
4733 else
4734 echo "$ac_t""no" 1>&6
4735 ac_has_langinfo_h=no
4739 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4740 echo "configure:4741: checking for iconv in -liconv" >&5
4741 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4744 else
4745 ac_save_LIBS="$LIBS"
4746 LIBS="-liconv $LIBS"
4747 cat > conftest.$ac_ext <<EOF
4748 #line 4749 "configure"
4749 #include "confdefs.h"
4750 /* Override any gcc2 internal prototype to avoid an error. */
4751 /* We use char because int might match the return type of a gcc2
4752 builtin and then its argument prototype would still apply. */
4753 char iconv();
4755 int main() {
4756 iconv()
4757 ; return 0; }
4759 if { (eval echo configure:4760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4760 rm -rf conftest*
4761 eval "ac_cv_lib_$ac_lib_var=yes"
4762 else
4763 echo "configure: failed program was:" >&5
4764 cat conftest.$ac_ext >&5
4765 rm -rf conftest*
4766 eval "ac_cv_lib_$ac_lib_var=no"
4768 rm -f conftest*
4769 LIBS="$ac_save_LIBS"
4772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4773 echo "$ac_t""yes" 1>&6
4774 libiconv="-liconv"
4775 else
4776 echo "$ac_t""no" 1>&6
4779 ac_save_LIBS="$LIBS"
4780 LIBS="$LIBS $libiconv"
4782 for ac_func in iconv_open iconv_close iconv nl_langinfo
4784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4785 echo "configure:4786: checking for $ac_func" >&5
4786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4788 else
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4792 /* System header to define __stub macros and hopefully few prototypes,
4793 which can conflict with char $ac_func(); below. */
4794 #include <assert.h>
4795 /* Override any gcc2 internal prototype to avoid an error. */
4796 /* We use char because int might match the return type of a gcc2
4797 builtin and then its argument prototype would still apply. */
4798 char $ac_func();
4800 int main() {
4802 /* The GNU C library defines this for functions which it implements
4803 to always fail with ENOSYS. Some functions are actually named
4804 something starting with __ and the normal name is an alias. */
4805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4806 choke me
4807 #else
4808 $ac_func();
4809 #endif
4811 ; return 0; }
4813 if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4814 rm -rf conftest*
4815 eval "ac_cv_func_$ac_func=yes"
4816 else
4817 echo "configure: failed program was:" >&5
4818 cat conftest.$ac_ext >&5
4819 rm -rf conftest*
4820 eval "ac_cv_func_$ac_func=no"
4822 rm -f conftest*
4825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4826 echo "$ac_t""yes" 1>&6
4827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4828 cat >> confdefs.h <<EOF
4829 #define $ac_tr_func 1
4832 ac_XPG2funcs=yes
4833 else
4834 echo "$ac_t""no" 1>&6
4835 ac_XPG2funcs=no
4837 done
4840 LIBS="$ac_save_LIBS"
4842 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4843 echo "configure:4844: checking for XPG2 wchar_t support" >&5
4844 if test x"$ac_has_iconv_h" = xyes &&
4845 test x"$ac_has_langinfo_h" = xyes &&
4846 test x"$ac_XPG2funcs" = xyes; then
4847 ac_XPG2_wchar_t=yes
4848 else
4849 ac_XPG2_wchar_t=no
4851 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4853 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4854 echo "configure:4855: checking for enabled wchar_t specializations" >&5
4855 if test x"$ac_isoC99_wchar_t" = xyes &&
4856 test x"$ac_XPG2_wchar_t" = xyes; then
4857 cat >> confdefs.h <<\EOF
4858 #define _GLIBCPP_USE_WCHAR_T 1
4861 echo "$ac_t"""yes"" 1>&6
4862 else
4863 echo "$ac_t"""no"" 1>&6
4865 else
4866 echo "configure: warning: wchar_t support disabled." 1>&2
4869 os_include_dir="config/os/gnu-linux"
4870 # GLIBCPP_CHECK_STDLIB_SUPPORT
4871 cat >> confdefs.h <<\EOF
4872 #define HAVE_STRTOF 1
4875 cat >> confdefs.h <<\EOF
4876 #define HAVE_STRTOLD 1
4879 # AC_FUNC_MMAP
4880 cat >> confdefs.h <<\EOF
4881 #define HAVE_MMAP 1
4886 # We assume newlib. This lets us hard-code the functions we know
4887 # we'll have.
4888 cat >> confdefs.h <<\EOF
4889 #define HAVE_FINITE 1
4892 cat >> confdefs.h <<\EOF
4893 #define HAVE_ISNAN 1
4896 cat >> confdefs.h <<\EOF
4897 #define HAVE_ISNANF 1
4900 cat >> confdefs.h <<\EOF
4901 #define HAVE_ISINF 1
4904 cat >> confdefs.h <<\EOF
4905 #define HAVE_ISINFF 1
4909 os_include_dir="config/os/newlib"
4911 # need to check for faster f versions of math functions, ie sinf?
4913 esac
4914 else
4916 # We are being configured natively. We can do more elaborate tests
4917 # that include AC_TRY_COMPILE now, as the linker is assumed to be
4918 # working.
4919 GLIBCPP_IS_CROSS_COMPILING=0
4920 CANADIAN=no
4922 # Check for available headers.
4923 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4924 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4926 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4927 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4928 echo "configure:4929: checking for $ac_hdr" >&5
4929 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6
4931 else
4932 cat > conftest.$ac_ext <<EOF
4933 #line 4934 "configure"
4934 #include "confdefs.h"
4935 #include <$ac_hdr>
4937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4938 { (eval echo configure:4939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4940 if test -z "$ac_err"; then
4941 rm -rf conftest*
4942 eval "ac_cv_header_$ac_safe=yes"
4943 else
4944 echo "$ac_err" >&5
4945 echo "configure: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4947 rm -rf conftest*
4948 eval "ac_cv_header_$ac_safe=no"
4950 rm -f conftest*
4952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4953 echo "$ac_t""yes" 1>&6
4954 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4955 cat >> confdefs.h <<EOF
4956 #define $ac_tr_hdr 1
4959 else
4960 echo "$ac_t""no" 1>&6
4962 done
4966 # All these tests are for C++; save the language and the compiler flags.
4967 # The CXXFLAGS thing is suspicious, but based on similar bits previously
4968 # found in GLIBCPP_CONFIGURE.
4970 ac_ext=C
4971 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4972 ac_cpp='$CXXCPP $CPPFLAGS'
4973 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4974 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4975 cross_compiling=$ac_cv_prog_cxx_cross
4977 ac_test_CXXFLAGS="${CXXFLAGS+set}"
4978 ac_save_CXXFLAGS="$CXXFLAGS"
4980 # Check for maintainer-mode bits.
4981 if test x"$USE_MAINTAINER_MODE" = xno; then
4982 WERROR=''
4983 else
4984 WERROR='-Werror'
4987 # Check for -ffunction-sections -fdata-sections
4988 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4989 echo "configure:4990: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4990 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4991 cat > conftest.$ac_ext <<EOF
4992 #line 4993 "configure"
4993 #include "confdefs.h"
4995 int main() {
4996 int foo;
4998 ; return 0; }
5000 if { (eval echo configure:5001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5001 rm -rf conftest*
5002 ac_fdsections=yes
5003 else
5004 echo "configure: failed program was:" >&5
5005 cat conftest.$ac_ext >&5
5006 rm -rf conftest*
5007 ac_fdsections=no
5009 rm -f conftest*
5010 if test "$ac_test_CXXFLAGS" = set; then
5011 CXXFLAGS="$ac_save_CXXFLAGS"
5012 else
5013 # this is the suspicious part
5014 CXXFLAGS=''
5016 if test x"$ac_fdsections" = x"yes" &&
5017 test x"$enable_debug" = x"no"; then
5018 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5020 echo "$ac_t""$ac_fdsections" 1>&6
5022 ac_ext=c
5023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5024 ac_cpp='$CPP $CPPFLAGS'
5025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5027 cross_compiling=$ac_cv_prog_cc_cross
5033 # If we're not using GNU ld, then there's no point in even trying these
5034 # tests. Check for that first. We should have already tested for gld
5035 # by now (in libtool), but require it now just to be safe...
5036 SECTION_LDFLAGS=''
5037 OPT_LDFLAGS=''
5040 # Set --gc-sections.
5041 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5042 # GNU ld it is! Joy and bunny rabbits!
5044 # All these tests are for C++; save the language and the compiler flags.
5045 # Need to do this so that g++ won't try to link in libstdc++
5046 ac_test_CFLAGS="${CFLAGS+set}"
5047 ac_save_CFLAGS="$CFLAGS"
5048 CFLAGS='-x c++ -Wl,--gc-sections'
5050 # Check for -Wl,--gc-sections
5051 # XXX This test is broken at the moment, as symbols required for
5052 # linking are now in libsupc++ (not built yet.....). In addition,
5053 # this test has cored on solaris in the past. In addition,
5054 # --gc-sections doesn't really work at the moment (keeps on discarding
5055 # used sections, first .eh_frame and now some of the glibc sections for
5056 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5057 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5058 echo "configure:5059: checking for ld that supports -Wl,--gc-sections" >&5
5059 if test "$cross_compiling" = yes; then
5060 ac_sectionLDflags=yes
5061 else
5062 cat > conftest.$ac_ext <<EOF
5063 #line 5064 "configure"
5064 #include "confdefs.h"
5066 int main(void)
5068 try { throw 1; }
5069 catch (...) { };
5070 return 0;
5074 if { (eval echo configure:5075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5075 then
5076 ac_sectionLDflags=yes
5077 else
5078 echo "configure: failed program was:" >&5
5079 cat conftest.$ac_ext >&5
5080 rm -fr conftest*
5081 ac_sectionLFflags=no
5083 rm -fr conftest*
5086 if test "$ac_test_CFLAGS" = set; then
5087 CFLAGS="$ac_save_CFLAGS"
5088 else
5089 # this is the suspicious part
5090 CFLAGS=''
5092 if test "$ac_sectionLDflags" = "yes"; then
5093 SECTION_LDFLAGS='-Wl,--gc-sections'
5095 echo "$ac_t""$ac_sectionLDflags" 1>&6
5098 # Set linker optimization flags.
5099 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5100 test x"$enable_debug" = x"no"; then
5101 OPT_LDFLAGS='-Wl,-O1'
5109 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5110 echo "configure:5111: checking for __builtin_abs declaration" >&5
5111 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5112 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5113 echo $ac_n "(cached) $ac_c" 1>&6
5114 else
5117 ac_ext=C
5118 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5119 ac_cpp='$CXXCPP $CPPFLAGS'
5120 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5121 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5122 cross_compiling=$ac_cv_prog_cxx_cross
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5127 #include <math.h>
5128 int main() {
5129 __builtin_abs(0);
5130 ; return 0; }
5132 if { (eval echo configure:5133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5133 rm -rf conftest*
5134 glibcpp_cv_func___builtin_abs_use=yes
5135 else
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5138 rm -rf conftest*
5139 glibcpp_cv_func___builtin_abs_use=no
5141 rm -f conftest*
5142 ac_ext=c
5143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5144 ac_cpp='$CPP $CPPFLAGS'
5145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5147 cross_compiling=$ac_cv_prog_cc_cross
5153 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5154 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5155 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5156 echo "configure:5157: checking for __builtin_abs linkage" >&5
5157 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5158 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5159 echo $ac_n "(cached) $ac_c" 1>&6
5160 else
5162 cat > conftest.$ac_ext <<EOF
5163 #line 5164 "configure"
5164 #include "confdefs.h"
5165 #include <math.h>
5166 int main() {
5167 __builtin_abs(0);
5168 ; return 0; }
5170 if { (eval echo configure:5171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5171 rm -rf conftest*
5172 glibcpp_cv_func___builtin_abs_link=yes
5173 else
5174 echo "configure: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5176 rm -rf conftest*
5177 glibcpp_cv_func___builtin_abs_link=no
5179 rm -f conftest*
5184 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5185 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5186 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5187 cat >> confdefs.h <<EOF
5188 #define ${ac_tr_func} 1
5195 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5196 echo "configure:5197: checking for __builtin_fabsf declaration" >&5
5197 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5198 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5199 echo $ac_n "(cached) $ac_c" 1>&6
5200 else
5203 ac_ext=C
5204 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5205 ac_cpp='$CXXCPP $CPPFLAGS'
5206 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5207 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5208 cross_compiling=$ac_cv_prog_cxx_cross
5210 cat > conftest.$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5213 #include <math.h>
5214 int main() {
5215 __builtin_fabsf(0);
5216 ; return 0; }
5218 if { (eval echo configure:5219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5219 rm -rf conftest*
5220 glibcpp_cv_func___builtin_fabsf_use=yes
5221 else
5222 echo "configure: failed program was:" >&5
5223 cat conftest.$ac_ext >&5
5224 rm -rf conftest*
5225 glibcpp_cv_func___builtin_fabsf_use=no
5227 rm -f conftest*
5228 ac_ext=c
5229 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5230 ac_cpp='$CPP $CPPFLAGS'
5231 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5232 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5233 cross_compiling=$ac_cv_prog_cc_cross
5239 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5240 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5241 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5242 echo "configure:5243: checking for __builtin_fabsf linkage" >&5
5243 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5244 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5245 echo $ac_n "(cached) $ac_c" 1>&6
5246 else
5248 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5251 #include <math.h>
5252 int main() {
5253 __builtin_fabsf(0);
5254 ; return 0; }
5256 if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5257 rm -rf conftest*
5258 glibcpp_cv_func___builtin_fabsf_link=yes
5259 else
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5262 rm -rf conftest*
5263 glibcpp_cv_func___builtin_fabsf_link=no
5265 rm -f conftest*
5270 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5271 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5272 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5273 cat >> confdefs.h <<EOF
5274 #define ${ac_tr_func} 1
5281 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5282 echo "configure:5283: checking for __builtin_fabs declaration" >&5
5283 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5284 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5286 else
5289 ac_ext=C
5290 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5291 ac_cpp='$CXXCPP $CPPFLAGS'
5292 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5293 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5294 cross_compiling=$ac_cv_prog_cxx_cross
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 #include <math.h>
5300 int main() {
5301 __builtin_fabs(0);
5302 ; return 0; }
5304 if { (eval echo configure:5305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5305 rm -rf conftest*
5306 glibcpp_cv_func___builtin_fabs_use=yes
5307 else
5308 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5310 rm -rf conftest*
5311 glibcpp_cv_func___builtin_fabs_use=no
5313 rm -f conftest*
5314 ac_ext=c
5315 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5316 ac_cpp='$CPP $CPPFLAGS'
5317 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5318 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5319 cross_compiling=$ac_cv_prog_cc_cross
5325 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5326 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5327 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5328 echo "configure:5329: checking for __builtin_fabs linkage" >&5
5329 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5330 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5332 else
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5337 #include <math.h>
5338 int main() {
5339 __builtin_fabs(0);
5340 ; return 0; }
5342 if { (eval echo configure:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5343 rm -rf conftest*
5344 glibcpp_cv_func___builtin_fabs_link=yes
5345 else
5346 echo "configure: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5348 rm -rf conftest*
5349 glibcpp_cv_func___builtin_fabs_link=no
5351 rm -f conftest*
5356 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5357 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5358 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5359 cat >> confdefs.h <<EOF
5360 #define ${ac_tr_func} 1
5367 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5368 echo "configure:5369: checking for __builtin_fabsl declaration" >&5
5369 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5370 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5372 else
5375 ac_ext=C
5376 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5377 ac_cpp='$CXXCPP $CPPFLAGS'
5378 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5379 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5380 cross_compiling=$ac_cv_prog_cxx_cross
5382 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5385 #include <math.h>
5386 int main() {
5387 __builtin_fabsl(0);
5388 ; return 0; }
5390 if { (eval echo configure:5391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5391 rm -rf conftest*
5392 glibcpp_cv_func___builtin_fabsl_use=yes
5393 else
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5396 rm -rf conftest*
5397 glibcpp_cv_func___builtin_fabsl_use=no
5399 rm -f conftest*
5400 ac_ext=c
5401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5402 ac_cpp='$CPP $CPPFLAGS'
5403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5405 cross_compiling=$ac_cv_prog_cc_cross
5411 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5412 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5413 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5414 echo "configure:5415: checking for __builtin_fabsl linkage" >&5
5415 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5416 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5418 else
5420 cat > conftest.$ac_ext <<EOF
5421 #line 5422 "configure"
5422 #include "confdefs.h"
5423 #include <math.h>
5424 int main() {
5425 __builtin_fabsl(0);
5426 ; return 0; }
5428 if { (eval echo configure:5429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5429 rm -rf conftest*
5430 glibcpp_cv_func___builtin_fabsl_link=yes
5431 else
5432 echo "configure: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5434 rm -rf conftest*
5435 glibcpp_cv_func___builtin_fabsl_link=no
5437 rm -f conftest*
5442 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5443 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5444 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5445 cat >> confdefs.h <<EOF
5446 #define ${ac_tr_func} 1
5453 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5454 echo "configure:5455: checking for __builtin_labs declaration" >&5
5455 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5456 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5457 echo $ac_n "(cached) $ac_c" 1>&6
5458 else
5461 ac_ext=C
5462 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5463 ac_cpp='$CXXCPP $CPPFLAGS'
5464 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5465 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5466 cross_compiling=$ac_cv_prog_cxx_cross
5468 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5471 #include <math.h>
5472 int main() {
5473 __builtin_labs(0);
5474 ; return 0; }
5476 if { (eval echo configure:5477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5477 rm -rf conftest*
5478 glibcpp_cv_func___builtin_labs_use=yes
5479 else
5480 echo "configure: failed program was:" >&5
5481 cat conftest.$ac_ext >&5
5482 rm -rf conftest*
5483 glibcpp_cv_func___builtin_labs_use=no
5485 rm -f conftest*
5486 ac_ext=c
5487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5488 ac_cpp='$CPP $CPPFLAGS'
5489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5491 cross_compiling=$ac_cv_prog_cc_cross
5497 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5498 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5499 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5500 echo "configure:5501: checking for __builtin_labs linkage" >&5
5501 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5502 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5504 else
5506 cat > conftest.$ac_ext <<EOF
5507 #line 5508 "configure"
5508 #include "confdefs.h"
5509 #include <math.h>
5510 int main() {
5511 __builtin_labs(0);
5512 ; return 0; }
5514 if { (eval echo configure:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5515 rm -rf conftest*
5516 glibcpp_cv_func___builtin_labs_link=yes
5517 else
5518 echo "configure: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5520 rm -rf conftest*
5521 glibcpp_cv_func___builtin_labs_link=no
5523 rm -f conftest*
5528 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5529 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5530 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5531 cat >> confdefs.h <<EOF
5532 #define ${ac_tr_func} 1
5540 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5541 echo "configure:5542: checking for __builtin_sqrtf declaration" >&5
5542 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5543 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5544 echo $ac_n "(cached) $ac_c" 1>&6
5545 else
5548 ac_ext=C
5549 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5550 ac_cpp='$CXXCPP $CPPFLAGS'
5551 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5552 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5553 cross_compiling=$ac_cv_prog_cxx_cross
5555 cat > conftest.$ac_ext <<EOF
5556 #line 5557 "configure"
5557 #include "confdefs.h"
5558 #include <math.h>
5559 int main() {
5560 __builtin_sqrtf(0);
5561 ; return 0; }
5563 if { (eval echo configure:5564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5564 rm -rf conftest*
5565 glibcpp_cv_func___builtin_sqrtf_use=yes
5566 else
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5569 rm -rf conftest*
5570 glibcpp_cv_func___builtin_sqrtf_use=no
5572 rm -f conftest*
5573 ac_ext=c
5574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5575 ac_cpp='$CPP $CPPFLAGS'
5576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5578 cross_compiling=$ac_cv_prog_cc_cross
5584 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5585 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5586 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5587 echo "configure:5588: checking for __builtin_sqrtf linkage" >&5
5588 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5589 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5590 echo $ac_n "(cached) $ac_c" 1>&6
5591 else
5593 cat > conftest.$ac_ext <<EOF
5594 #line 5595 "configure"
5595 #include "confdefs.h"
5596 #include <math.h>
5597 int main() {
5598 __builtin_sqrtf(0);
5599 ; return 0; }
5601 if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5602 rm -rf conftest*
5603 glibcpp_cv_func___builtin_sqrtf_link=yes
5604 else
5605 echo "configure: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5607 rm -rf conftest*
5608 glibcpp_cv_func___builtin_sqrtf_link=no
5610 rm -f conftest*
5615 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5616 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5617 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5618 cat >> confdefs.h <<EOF
5619 #define ${ac_tr_func} 1
5626 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5627 echo "configure:5628: checking for __builtin_fsqrt declaration" >&5
5628 if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5629 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5630 echo $ac_n "(cached) $ac_c" 1>&6
5631 else
5634 ac_ext=C
5635 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5636 ac_cpp='$CXXCPP $CPPFLAGS'
5637 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5638 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5639 cross_compiling=$ac_cv_prog_cxx_cross
5641 cat > conftest.$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5644 #include <math.h>
5645 int main() {
5646 __builtin_fsqrt(0);
5647 ; return 0; }
5649 if { (eval echo configure:5650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5650 rm -rf conftest*
5651 glibcpp_cv_func___builtin_fsqrt_use=yes
5652 else
5653 echo "configure: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5655 rm -rf conftest*
5656 glibcpp_cv_func___builtin_fsqrt_use=no
5658 rm -f conftest*
5659 ac_ext=c
5660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5661 ac_cpp='$CPP $CPPFLAGS'
5662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5664 cross_compiling=$ac_cv_prog_cc_cross
5670 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5671 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5672 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5673 echo "configure:5674: checking for __builtin_fsqrt linkage" >&5
5674 if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5675 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5676 echo $ac_n "(cached) $ac_c" 1>&6
5677 else
5679 cat > conftest.$ac_ext <<EOF
5680 #line 5681 "configure"
5681 #include "confdefs.h"
5682 #include <math.h>
5683 int main() {
5684 __builtin_fsqrt(0);
5685 ; return 0; }
5687 if { (eval echo configure:5688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5688 rm -rf conftest*
5689 glibcpp_cv_func___builtin_fsqrt_link=yes
5690 else
5691 echo "configure: failed program was:" >&5
5692 cat conftest.$ac_ext >&5
5693 rm -rf conftest*
5694 glibcpp_cv_func___builtin_fsqrt_link=no
5696 rm -f conftest*
5701 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5702 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5703 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5704 cat >> confdefs.h <<EOF
5705 #define ${ac_tr_func} 1
5712 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5713 echo "configure:5714: checking for __builtin_sqrtl declaration" >&5
5714 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5715 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5717 else
5720 ac_ext=C
5721 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5722 ac_cpp='$CXXCPP $CPPFLAGS'
5723 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5724 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5725 cross_compiling=$ac_cv_prog_cxx_cross
5727 cat > conftest.$ac_ext <<EOF
5728 #line 5729 "configure"
5729 #include "confdefs.h"
5730 #include <math.h>
5731 int main() {
5732 __builtin_sqrtl(0);
5733 ; return 0; }
5735 if { (eval echo configure:5736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5736 rm -rf conftest*
5737 glibcpp_cv_func___builtin_sqrtl_use=yes
5738 else
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5741 rm -rf conftest*
5742 glibcpp_cv_func___builtin_sqrtl_use=no
5744 rm -f conftest*
5745 ac_ext=c
5746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5747 ac_cpp='$CPP $CPPFLAGS'
5748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5750 cross_compiling=$ac_cv_prog_cc_cross
5756 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5757 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5758 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5759 echo "configure:5760: checking for __builtin_sqrtl linkage" >&5
5760 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5761 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5763 else
5765 cat > conftest.$ac_ext <<EOF
5766 #line 5767 "configure"
5767 #include "confdefs.h"
5768 #include <math.h>
5769 int main() {
5770 __builtin_sqrtl(0);
5771 ; return 0; }
5773 if { (eval echo configure:5774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5774 rm -rf conftest*
5775 glibcpp_cv_func___builtin_sqrtl_link=yes
5776 else
5777 echo "configure: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5779 rm -rf conftest*
5780 glibcpp_cv_func___builtin_sqrtl_link=no
5782 rm -f conftest*
5787 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5788 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5789 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5790 cat >> confdefs.h <<EOF
5791 #define ${ac_tr_func} 1
5799 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5800 echo "configure:5801: checking for __builtin_sinf declaration" >&5
5801 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5802 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5803 echo $ac_n "(cached) $ac_c" 1>&6
5804 else
5807 ac_ext=C
5808 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5809 ac_cpp='$CXXCPP $CPPFLAGS'
5810 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5811 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5812 cross_compiling=$ac_cv_prog_cxx_cross
5814 cat > conftest.$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5817 #include <math.h>
5818 int main() {
5819 __builtin_sinf(0);
5820 ; return 0; }
5822 if { (eval echo configure:5823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5823 rm -rf conftest*
5824 glibcpp_cv_func___builtin_sinf_use=yes
5825 else
5826 echo "configure: failed program was:" >&5
5827 cat conftest.$ac_ext >&5
5828 rm -rf conftest*
5829 glibcpp_cv_func___builtin_sinf_use=no
5831 rm -f conftest*
5832 ac_ext=c
5833 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5834 ac_cpp='$CPP $CPPFLAGS'
5835 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5836 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5837 cross_compiling=$ac_cv_prog_cc_cross
5843 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5844 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5845 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5846 echo "configure:5847: checking for __builtin_sinf linkage" >&5
5847 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5848 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5850 else
5852 cat > conftest.$ac_ext <<EOF
5853 #line 5854 "configure"
5854 #include "confdefs.h"
5855 #include <math.h>
5856 int main() {
5857 __builtin_sinf(0);
5858 ; return 0; }
5860 if { (eval echo configure:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5861 rm -rf conftest*
5862 glibcpp_cv_func___builtin_sinf_link=yes
5863 else
5864 echo "configure: failed program was:" >&5
5865 cat conftest.$ac_ext >&5
5866 rm -rf conftest*
5867 glibcpp_cv_func___builtin_sinf_link=no
5869 rm -f conftest*
5874 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5875 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5876 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5877 cat >> confdefs.h <<EOF
5878 #define ${ac_tr_func} 1
5885 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5886 echo "configure:5887: checking for __builtin_sin declaration" >&5
5887 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5888 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5889 echo $ac_n "(cached) $ac_c" 1>&6
5890 else
5893 ac_ext=C
5894 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5895 ac_cpp='$CXXCPP $CPPFLAGS'
5896 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5897 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5898 cross_compiling=$ac_cv_prog_cxx_cross
5900 cat > conftest.$ac_ext <<EOF
5901 #line 5902 "configure"
5902 #include "confdefs.h"
5903 #include <math.h>
5904 int main() {
5905 __builtin_sin(0);
5906 ; return 0; }
5908 if { (eval echo configure:5909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5909 rm -rf conftest*
5910 glibcpp_cv_func___builtin_sin_use=yes
5911 else
5912 echo "configure: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5914 rm -rf conftest*
5915 glibcpp_cv_func___builtin_sin_use=no
5917 rm -f conftest*
5918 ac_ext=c
5919 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5920 ac_cpp='$CPP $CPPFLAGS'
5921 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5922 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5923 cross_compiling=$ac_cv_prog_cc_cross
5929 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5930 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5931 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5932 echo "configure:5933: checking for __builtin_sin linkage" >&5
5933 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5934 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5935 echo $ac_n "(cached) $ac_c" 1>&6
5936 else
5938 cat > conftest.$ac_ext <<EOF
5939 #line 5940 "configure"
5940 #include "confdefs.h"
5941 #include <math.h>
5942 int main() {
5943 __builtin_sin(0);
5944 ; return 0; }
5946 if { (eval echo configure:5947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5947 rm -rf conftest*
5948 glibcpp_cv_func___builtin_sin_link=yes
5949 else
5950 echo "configure: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5952 rm -rf conftest*
5953 glibcpp_cv_func___builtin_sin_link=no
5955 rm -f conftest*
5960 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5961 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5962 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5963 cat >> confdefs.h <<EOF
5964 #define ${ac_tr_func} 1
5971 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5972 echo "configure:5973: checking for __builtin_sinl declaration" >&5
5973 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5974 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5975 echo $ac_n "(cached) $ac_c" 1>&6
5976 else
5979 ac_ext=C
5980 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5981 ac_cpp='$CXXCPP $CPPFLAGS'
5982 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5983 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5984 cross_compiling=$ac_cv_prog_cxx_cross
5986 cat > conftest.$ac_ext <<EOF
5987 #line 5988 "configure"
5988 #include "confdefs.h"
5989 #include <math.h>
5990 int main() {
5991 __builtin_sinl(0);
5992 ; return 0; }
5994 if { (eval echo configure:5995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5995 rm -rf conftest*
5996 glibcpp_cv_func___builtin_sinl_use=yes
5997 else
5998 echo "configure: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6000 rm -rf conftest*
6001 glibcpp_cv_func___builtin_sinl_use=no
6003 rm -f conftest*
6004 ac_ext=c
6005 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6006 ac_cpp='$CPP $CPPFLAGS'
6007 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6008 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6009 cross_compiling=$ac_cv_prog_cc_cross
6015 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
6016 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
6017 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
6018 echo "configure:6019: checking for __builtin_sinl linkage" >&5
6019 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
6020 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
6021 echo $ac_n "(cached) $ac_c" 1>&6
6022 else
6024 cat > conftest.$ac_ext <<EOF
6025 #line 6026 "configure"
6026 #include "confdefs.h"
6027 #include <math.h>
6028 int main() {
6029 __builtin_sinl(0);
6030 ; return 0; }
6032 if { (eval echo configure:6033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6033 rm -rf conftest*
6034 glibcpp_cv_func___builtin_sinl_link=yes
6035 else
6036 echo "configure: failed program was:" >&5
6037 cat conftest.$ac_ext >&5
6038 rm -rf conftest*
6039 glibcpp_cv_func___builtin_sinl_link=no
6041 rm -f conftest*
6046 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
6047 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
6048 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6049 cat >> confdefs.h <<EOF
6050 #define ${ac_tr_func} 1
6058 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
6059 echo "configure:6060: checking for __builtin_cosf declaration" >&5
6060 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
6061 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
6062 echo $ac_n "(cached) $ac_c" 1>&6
6063 else
6066 ac_ext=C
6067 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6068 ac_cpp='$CXXCPP $CPPFLAGS'
6069 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6070 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6071 cross_compiling=$ac_cv_prog_cxx_cross
6073 cat > conftest.$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6076 #include <math.h>
6077 int main() {
6078 __builtin_cosf(0);
6079 ; return 0; }
6081 if { (eval echo configure:6082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6082 rm -rf conftest*
6083 glibcpp_cv_func___builtin_cosf_use=yes
6084 else
6085 echo "configure: failed program was:" >&5
6086 cat conftest.$ac_ext >&5
6087 rm -rf conftest*
6088 glibcpp_cv_func___builtin_cosf_use=no
6090 rm -f conftest*
6091 ac_ext=c
6092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6093 ac_cpp='$CPP $CPPFLAGS'
6094 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6095 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6096 cross_compiling=$ac_cv_prog_cc_cross
6102 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6103 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6104 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6105 echo "configure:6106: checking for __builtin_cosf linkage" >&5
6106 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6107 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6108 echo $ac_n "(cached) $ac_c" 1>&6
6109 else
6111 cat > conftest.$ac_ext <<EOF
6112 #line 6113 "configure"
6113 #include "confdefs.h"
6114 #include <math.h>
6115 int main() {
6116 __builtin_cosf(0);
6117 ; return 0; }
6119 if { (eval echo configure:6120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6120 rm -rf conftest*
6121 glibcpp_cv_func___builtin_cosf_link=yes
6122 else
6123 echo "configure: failed program was:" >&5
6124 cat conftest.$ac_ext >&5
6125 rm -rf conftest*
6126 glibcpp_cv_func___builtin_cosf_link=no
6128 rm -f conftest*
6133 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6134 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6135 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6136 cat >> confdefs.h <<EOF
6137 #define ${ac_tr_func} 1
6144 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6145 echo "configure:6146: checking for __builtin_cos declaration" >&5
6146 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6147 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6148 echo $ac_n "(cached) $ac_c" 1>&6
6149 else
6152 ac_ext=C
6153 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6154 ac_cpp='$CXXCPP $CPPFLAGS'
6155 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6156 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6157 cross_compiling=$ac_cv_prog_cxx_cross
6159 cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure"
6161 #include "confdefs.h"
6162 #include <math.h>
6163 int main() {
6164 __builtin_cos(0);
6165 ; return 0; }
6167 if { (eval echo configure:6168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6168 rm -rf conftest*
6169 glibcpp_cv_func___builtin_cos_use=yes
6170 else
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6173 rm -rf conftest*
6174 glibcpp_cv_func___builtin_cos_use=no
6176 rm -f conftest*
6177 ac_ext=c
6178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6179 ac_cpp='$CPP $CPPFLAGS'
6180 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6181 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6182 cross_compiling=$ac_cv_prog_cc_cross
6188 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6189 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6190 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6191 echo "configure:6192: checking for __builtin_cos linkage" >&5
6192 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6193 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6194 echo $ac_n "(cached) $ac_c" 1>&6
6195 else
6197 cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200 #include <math.h>
6201 int main() {
6202 __builtin_cos(0);
6203 ; return 0; }
6205 if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6206 rm -rf conftest*
6207 glibcpp_cv_func___builtin_cos_link=yes
6208 else
6209 echo "configure: failed program was:" >&5
6210 cat conftest.$ac_ext >&5
6211 rm -rf conftest*
6212 glibcpp_cv_func___builtin_cos_link=no
6214 rm -f conftest*
6219 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6220 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6221 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6222 cat >> confdefs.h <<EOF
6223 #define ${ac_tr_func} 1
6230 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6231 echo "configure:6232: checking for __builtin_cosl declaration" >&5
6232 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6233 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6234 echo $ac_n "(cached) $ac_c" 1>&6
6235 else
6238 ac_ext=C
6239 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6240 ac_cpp='$CXXCPP $CPPFLAGS'
6241 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6242 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6243 cross_compiling=$ac_cv_prog_cxx_cross
6245 cat > conftest.$ac_ext <<EOF
6246 #line 6247 "configure"
6247 #include "confdefs.h"
6248 #include <math.h>
6249 int main() {
6250 __builtin_cosl(0);
6251 ; return 0; }
6253 if { (eval echo configure:6254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6254 rm -rf conftest*
6255 glibcpp_cv_func___builtin_cosl_use=yes
6256 else
6257 echo "configure: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6259 rm -rf conftest*
6260 glibcpp_cv_func___builtin_cosl_use=no
6262 rm -f conftest*
6263 ac_ext=c
6264 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6265 ac_cpp='$CPP $CPPFLAGS'
6266 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6267 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6268 cross_compiling=$ac_cv_prog_cc_cross
6274 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6275 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6276 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6277 echo "configure:6278: checking for __builtin_cosl linkage" >&5
6278 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6279 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6280 echo $ac_n "(cached) $ac_c" 1>&6
6281 else
6283 cat > conftest.$ac_ext <<EOF
6284 #line 6285 "configure"
6285 #include "confdefs.h"
6286 #include <math.h>
6287 int main() {
6288 __builtin_cosl(0);
6289 ; return 0; }
6291 if { (eval echo configure:6292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6292 rm -rf conftest*
6293 glibcpp_cv_func___builtin_cosl_link=yes
6294 else
6295 echo "configure: failed program was:" >&5
6296 cat conftest.$ac_ext >&5
6297 rm -rf conftest*
6298 glibcpp_cv_func___builtin_cosl_link=no
6300 rm -f conftest*
6305 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6306 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6307 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6308 cat >> confdefs.h <<EOF
6309 #define ${ac_tr_func} 1
6316 dummyvar=no
6317 if test x$dummyvar = x"yes"; then
6318 cat >> confdefs.h <<\EOF
6319 #define HAVE___BUILTIN_ABS 1
6322 cat >> confdefs.h <<\EOF
6323 #define HAVE___BUILTIN_LABS 1
6326 cat >> confdefs.h <<\EOF
6327 #define HAVE___BUILTIN_COS 1
6330 cat >> confdefs.h <<\EOF
6331 #define HAVE___BUILTIN_COSF 1
6334 cat >> confdefs.h <<\EOF
6335 #define HAVE___BUILTIN_COSL 1
6338 cat >> confdefs.h <<\EOF
6339 #define HAVE___BUILTIN_FABS 1
6342 cat >> confdefs.h <<\EOF
6343 #define HAVE___BUILTIN_FABSF 1
6346 cat >> confdefs.h <<\EOF
6347 #define HAVE___BUILTIN_FABSL 1
6350 cat >> confdefs.h <<\EOF
6351 #define HAVE___BUILTIN_SIN 1
6354 cat >> confdefs.h <<\EOF
6355 #define HAVE___BUILTIN_SINF 1
6358 cat >> confdefs.h <<\EOF
6359 #define HAVE___BUILTIN_SINL 1
6362 cat >> confdefs.h <<\EOF
6363 #define HAVE___BUILTIN_FSQRT 1
6366 cat >> confdefs.h <<\EOF
6367 #define HAVE___BUILTIN_SQRTF 1
6370 cat >> confdefs.h <<\EOF
6371 #define HAVE___BUILTIN_SQRTL 1
6377 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6378 ac_save_CXXFLAGS="$CXXFLAGS"
6379 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6381 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6382 echo "configure:6383: checking for sin in -lm" >&5
6383 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6385 echo $ac_n "(cached) $ac_c" 1>&6
6386 else
6387 ac_save_LIBS="$LIBS"
6388 LIBS="-lm $LIBS"
6389 cat > conftest.$ac_ext <<EOF
6390 #line 6391 "configure"
6391 #include "confdefs.h"
6392 /* Override any gcc2 internal prototype to avoid an error. */
6393 /* We use char because int might match the return type of a gcc2
6394 builtin and then its argument prototype would still apply. */
6395 char sin();
6397 int main() {
6398 sin()
6399 ; return 0; }
6401 if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6402 rm -rf conftest*
6403 eval "ac_cv_lib_$ac_lib_var=yes"
6404 else
6405 echo "configure: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6407 rm -rf conftest*
6408 eval "ac_cv_lib_$ac_lib_var=no"
6410 rm -f conftest*
6411 LIBS="$ac_save_LIBS"
6414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6415 echo "$ac_t""yes" 1>&6
6416 libm="-lm"
6417 else
6418 echo "$ac_t""no" 1>&6
6421 ac_save_LIBS="$LIBS"
6422 LIBS="$LIBS $libm"
6426 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6427 echo "configure:6428: checking for isinf declaration" >&5
6428 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6429 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6430 echo $ac_n "(cached) $ac_c" 1>&6
6431 else
6434 ac_ext=C
6435 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6436 ac_cpp='$CXXCPP $CPPFLAGS'
6437 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6438 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6439 cross_compiling=$ac_cv_prog_cxx_cross
6441 cat > conftest.$ac_ext <<EOF
6442 #line 6443 "configure"
6443 #include "confdefs.h"
6444 #include <math.h>
6445 #ifdef HAVE_IEEEFP_H
6446 #include <ieeefp.h>
6447 #endif
6449 int main() {
6450 isinf(0);
6451 ; return 0; }
6453 if { (eval echo configure:6454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6454 rm -rf conftest*
6455 glibcpp_cv_func_isinf_use=yes
6456 else
6457 echo "configure: failed program was:" >&5
6458 cat conftest.$ac_ext >&5
6459 rm -rf conftest*
6460 glibcpp_cv_func_isinf_use=no
6462 rm -f conftest*
6463 ac_ext=c
6464 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6465 ac_cpp='$CPP $CPPFLAGS'
6466 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6467 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6468 cross_compiling=$ac_cv_prog_cc_cross
6474 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6476 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6477 for ac_func in isinf
6479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6480 echo "configure:6481: checking for $ac_func" >&5
6481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6482 echo $ac_n "(cached) $ac_c" 1>&6
6483 else
6484 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6487 /* System header to define __stub macros and hopefully few prototypes,
6488 which can conflict with char $ac_func(); below. */
6489 #include <assert.h>
6490 /* Override any gcc2 internal prototype to avoid an error. */
6491 /* We use char because int might match the return type of a gcc2
6492 builtin and then its argument prototype would still apply. */
6493 char $ac_func();
6495 int main() {
6497 /* The GNU C library defines this for functions which it implements
6498 to always fail with ENOSYS. Some functions are actually named
6499 something starting with __ and the normal name is an alias. */
6500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6501 choke me
6502 #else
6503 $ac_func();
6504 #endif
6506 ; return 0; }
6508 if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6509 rm -rf conftest*
6510 eval "ac_cv_func_$ac_func=yes"
6511 else
6512 echo "configure: failed program was:" >&5
6513 cat conftest.$ac_ext >&5
6514 rm -rf conftest*
6515 eval "ac_cv_func_$ac_func=no"
6517 rm -f conftest*
6520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6521 echo "$ac_t""yes" 1>&6
6522 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6523 cat >> confdefs.h <<EOF
6524 #define $ac_tr_func 1
6527 else
6528 echo "$ac_t""no" 1>&6
6530 done
6532 else
6534 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6535 echo "configure:6536: checking for _isinf declaration" >&5
6536 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6537 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6538 echo $ac_n "(cached) $ac_c" 1>&6
6539 else
6542 ac_ext=C
6543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6544 ac_cpp='$CXXCPP $CPPFLAGS'
6545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6547 cross_compiling=$ac_cv_prog_cxx_cross
6549 cat > conftest.$ac_ext <<EOF
6550 #line 6551 "configure"
6551 #include "confdefs.h"
6552 #include <math.h>
6553 #ifdef HAVE_IEEEFP_H
6554 #include <ieeefp.h>
6555 #endif
6557 int main() {
6558 _isinf(0);
6559 ; return 0; }
6561 if { (eval echo configure:6562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6562 rm -rf conftest*
6563 glibcpp_cv_func__isinf_use=yes
6564 else
6565 echo "configure: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6567 rm -rf conftest*
6568 glibcpp_cv_func__isinf_use=no
6570 rm -f conftest*
6571 ac_ext=c
6572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6573 ac_cpp='$CPP $CPPFLAGS'
6574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6576 cross_compiling=$ac_cv_prog_cc_cross
6582 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6584 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6585 for ac_func in _isinf
6587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6588 echo "configure:6589: checking for $ac_func" >&5
6589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6591 else
6592 cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6595 /* System header to define __stub macros and hopefully few prototypes,
6596 which can conflict with char $ac_func(); below. */
6597 #include <assert.h>
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6601 char $ac_func();
6603 int main() {
6605 /* The GNU C library defines this for functions which it implements
6606 to always fail with ENOSYS. Some functions are actually named
6607 something starting with __ and the normal name is an alias. */
6608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6609 choke me
6610 #else
6611 $ac_func();
6612 #endif
6614 ; return 0; }
6616 if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6617 rm -rf conftest*
6618 eval "ac_cv_func_$ac_func=yes"
6619 else
6620 echo "configure: failed program was:" >&5
6621 cat conftest.$ac_ext >&5
6622 rm -rf conftest*
6623 eval "ac_cv_func_$ac_func=no"
6625 rm -f conftest*
6628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6629 echo "$ac_t""yes" 1>&6
6630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6631 cat >> confdefs.h <<EOF
6632 #define $ac_tr_func 1
6635 else
6636 echo "$ac_t""no" 1>&6
6638 done
6645 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6646 echo "configure:6647: checking for isnan declaration" >&5
6647 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6648 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6649 echo $ac_n "(cached) $ac_c" 1>&6
6650 else
6653 ac_ext=C
6654 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6655 ac_cpp='$CXXCPP $CPPFLAGS'
6656 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6657 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6658 cross_compiling=$ac_cv_prog_cxx_cross
6660 cat > conftest.$ac_ext <<EOF
6661 #line 6662 "configure"
6662 #include "confdefs.h"
6663 #include <math.h>
6664 #ifdef HAVE_IEEEFP_H
6665 #include <ieeefp.h>
6666 #endif
6668 int main() {
6669 isnan(0);
6670 ; return 0; }
6672 if { (eval echo configure:6673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6673 rm -rf conftest*
6674 glibcpp_cv_func_isnan_use=yes
6675 else
6676 echo "configure: failed program was:" >&5
6677 cat conftest.$ac_ext >&5
6678 rm -rf conftest*
6679 glibcpp_cv_func_isnan_use=no
6681 rm -f conftest*
6682 ac_ext=c
6683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6684 ac_cpp='$CPP $CPPFLAGS'
6685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6687 cross_compiling=$ac_cv_prog_cc_cross
6693 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6695 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6696 for ac_func in isnan
6698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6699 echo "configure:6700: checking for $ac_func" >&5
6700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6701 echo $ac_n "(cached) $ac_c" 1>&6
6702 else
6703 cat > conftest.$ac_ext <<EOF
6704 #line 6705 "configure"
6705 #include "confdefs.h"
6706 /* System header to define __stub macros and hopefully few prototypes,
6707 which can conflict with char $ac_func(); below. */
6708 #include <assert.h>
6709 /* Override any gcc2 internal prototype to avoid an error. */
6710 /* We use char because int might match the return type of a gcc2
6711 builtin and then its argument prototype would still apply. */
6712 char $ac_func();
6714 int main() {
6716 /* The GNU C library defines this for functions which it implements
6717 to always fail with ENOSYS. Some functions are actually named
6718 something starting with __ and the normal name is an alias. */
6719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6720 choke me
6721 #else
6722 $ac_func();
6723 #endif
6725 ; return 0; }
6727 if { (eval echo configure:6728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6728 rm -rf conftest*
6729 eval "ac_cv_func_$ac_func=yes"
6730 else
6731 echo "configure: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6733 rm -rf conftest*
6734 eval "ac_cv_func_$ac_func=no"
6736 rm -f conftest*
6739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6740 echo "$ac_t""yes" 1>&6
6741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6742 cat >> confdefs.h <<EOF
6743 #define $ac_tr_func 1
6746 else
6747 echo "$ac_t""no" 1>&6
6749 done
6751 else
6753 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6754 echo "configure:6755: checking for _isnan declaration" >&5
6755 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6756 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6757 echo $ac_n "(cached) $ac_c" 1>&6
6758 else
6761 ac_ext=C
6762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6763 ac_cpp='$CXXCPP $CPPFLAGS'
6764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6766 cross_compiling=$ac_cv_prog_cxx_cross
6768 cat > conftest.$ac_ext <<EOF
6769 #line 6770 "configure"
6770 #include "confdefs.h"
6771 #include <math.h>
6772 #ifdef HAVE_IEEEFP_H
6773 #include <ieeefp.h>
6774 #endif
6776 int main() {
6777 _isnan(0);
6778 ; return 0; }
6780 if { (eval echo configure:6781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6781 rm -rf conftest*
6782 glibcpp_cv_func__isnan_use=yes
6783 else
6784 echo "configure: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6786 rm -rf conftest*
6787 glibcpp_cv_func__isnan_use=no
6789 rm -f conftest*
6790 ac_ext=c
6791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6792 ac_cpp='$CPP $CPPFLAGS'
6793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6795 cross_compiling=$ac_cv_prog_cc_cross
6801 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6803 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6804 for ac_func in _isnan
6806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6807 echo "configure:6808: checking for $ac_func" >&5
6808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6809 echo $ac_n "(cached) $ac_c" 1>&6
6810 else
6811 cat > conftest.$ac_ext <<EOF
6812 #line 6813 "configure"
6813 #include "confdefs.h"
6814 /* System header to define __stub macros and hopefully few prototypes,
6815 which can conflict with char $ac_func(); below. */
6816 #include <assert.h>
6817 /* Override any gcc2 internal prototype to avoid an error. */
6818 /* We use char because int might match the return type of a gcc2
6819 builtin and then its argument prototype would still apply. */
6820 char $ac_func();
6822 int main() {
6824 /* The GNU C library defines this for functions which it implements
6825 to always fail with ENOSYS. Some functions are actually named
6826 something starting with __ and the normal name is an alias. */
6827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6828 choke me
6829 #else
6830 $ac_func();
6831 #endif
6833 ; return 0; }
6835 if { (eval echo configure:6836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6836 rm -rf conftest*
6837 eval "ac_cv_func_$ac_func=yes"
6838 else
6839 echo "configure: failed program was:" >&5
6840 cat conftest.$ac_ext >&5
6841 rm -rf conftest*
6842 eval "ac_cv_func_$ac_func=no"
6844 rm -f conftest*
6847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6848 echo "$ac_t""yes" 1>&6
6849 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6850 cat >> confdefs.h <<EOF
6851 #define $ac_tr_func 1
6854 else
6855 echo "$ac_t""no" 1>&6
6857 done
6864 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6865 echo "configure:6866: checking for finite declaration" >&5
6866 if test x${glibcpp_cv_func_finite_use+set} != xset; then
6867 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6868 echo $ac_n "(cached) $ac_c" 1>&6
6869 else
6872 ac_ext=C
6873 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6874 ac_cpp='$CXXCPP $CPPFLAGS'
6875 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6876 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6877 cross_compiling=$ac_cv_prog_cxx_cross
6879 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure"
6881 #include "confdefs.h"
6882 #include <math.h>
6883 #ifdef HAVE_IEEEFP_H
6884 #include <ieeefp.h>
6885 #endif
6887 int main() {
6888 finite(0);
6889 ; return 0; }
6891 if { (eval echo configure:6892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6892 rm -rf conftest*
6893 glibcpp_cv_func_finite_use=yes
6894 else
6895 echo "configure: failed program was:" >&5
6896 cat conftest.$ac_ext >&5
6897 rm -rf conftest*
6898 glibcpp_cv_func_finite_use=no
6900 rm -f conftest*
6901 ac_ext=c
6902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6903 ac_cpp='$CPP $CPPFLAGS'
6904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6906 cross_compiling=$ac_cv_prog_cc_cross
6912 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6914 if test x$glibcpp_cv_func_finite_use = x"yes"; then
6915 for ac_func in finite
6917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6918 echo "configure:6919: checking for $ac_func" >&5
6919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6920 echo $ac_n "(cached) $ac_c" 1>&6
6921 else
6922 cat > conftest.$ac_ext <<EOF
6923 #line 6924 "configure"
6924 #include "confdefs.h"
6925 /* System header to define __stub macros and hopefully few prototypes,
6926 which can conflict with char $ac_func(); below. */
6927 #include <assert.h>
6928 /* Override any gcc2 internal prototype to avoid an error. */
6929 /* We use char because int might match the return type of a gcc2
6930 builtin and then its argument prototype would still apply. */
6931 char $ac_func();
6933 int main() {
6935 /* The GNU C library defines this for functions which it implements
6936 to always fail with ENOSYS. Some functions are actually named
6937 something starting with __ and the normal name is an alias. */
6938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6939 choke me
6940 #else
6941 $ac_func();
6942 #endif
6944 ; return 0; }
6946 if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6947 rm -rf conftest*
6948 eval "ac_cv_func_$ac_func=yes"
6949 else
6950 echo "configure: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6952 rm -rf conftest*
6953 eval "ac_cv_func_$ac_func=no"
6955 rm -f conftest*
6958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6959 echo "$ac_t""yes" 1>&6
6960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6961 cat >> confdefs.h <<EOF
6962 #define $ac_tr_func 1
6965 else
6966 echo "$ac_t""no" 1>&6
6968 done
6970 else
6972 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6973 echo "configure:6974: checking for _finite declaration" >&5
6974 if test x${glibcpp_cv_func__finite_use+set} != xset; then
6975 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6976 echo $ac_n "(cached) $ac_c" 1>&6
6977 else
6980 ac_ext=C
6981 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6982 ac_cpp='$CXXCPP $CPPFLAGS'
6983 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6984 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6985 cross_compiling=$ac_cv_prog_cxx_cross
6987 cat > conftest.$ac_ext <<EOF
6988 #line 6989 "configure"
6989 #include "confdefs.h"
6990 #include <math.h>
6991 #ifdef HAVE_IEEEFP_H
6992 #include <ieeefp.h>
6993 #endif
6995 int main() {
6996 _finite(0);
6997 ; return 0; }
6999 if { (eval echo configure:7000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7000 rm -rf conftest*
7001 glibcpp_cv_func__finite_use=yes
7002 else
7003 echo "configure: failed program was:" >&5
7004 cat conftest.$ac_ext >&5
7005 rm -rf conftest*
7006 glibcpp_cv_func__finite_use=no
7008 rm -f conftest*
7009 ac_ext=c
7010 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7011 ac_cpp='$CPP $CPPFLAGS'
7012 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7013 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7014 cross_compiling=$ac_cv_prog_cc_cross
7020 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
7022 if test x$glibcpp_cv_func__finite_use = x"yes"; then
7023 for ac_func in _finite
7025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7026 echo "configure:7027: checking for $ac_func" >&5
7027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7029 else
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7033 /* System header to define __stub macros and hopefully few prototypes,
7034 which can conflict with char $ac_func(); below. */
7035 #include <assert.h>
7036 /* Override any gcc2 internal prototype to avoid an error. */
7037 /* We use char because int might match the return type of a gcc2
7038 builtin and then its argument prototype would still apply. */
7039 char $ac_func();
7041 int main() {
7043 /* The GNU C library defines this for functions which it implements
7044 to always fail with ENOSYS. Some functions are actually named
7045 something starting with __ and the normal name is an alias. */
7046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7047 choke me
7048 #else
7049 $ac_func();
7050 #endif
7052 ; return 0; }
7054 if { (eval echo configure:7055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7055 rm -rf conftest*
7056 eval "ac_cv_func_$ac_func=yes"
7057 else
7058 echo "configure: failed program was:" >&5
7059 cat conftest.$ac_ext >&5
7060 rm -rf conftest*
7061 eval "ac_cv_func_$ac_func=no"
7063 rm -f conftest*
7066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7067 echo "$ac_t""yes" 1>&6
7068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7069 cat >> confdefs.h <<EOF
7070 #define $ac_tr_func 1
7073 else
7074 echo "$ac_t""no" 1>&6
7076 done
7083 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7084 echo "configure:7085: checking for copysign declaration" >&5
7085 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7086 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7088 else
7091 ac_ext=C
7092 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7093 ac_cpp='$CXXCPP $CPPFLAGS'
7094 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7095 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7096 cross_compiling=$ac_cv_prog_cxx_cross
7098 cat > conftest.$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7101 #include <math.h>
7102 int main() {
7103 copysign(0, 0);
7104 ; return 0; }
7106 if { (eval echo configure:7107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7107 rm -rf conftest*
7108 glibcpp_cv_func_copysign_use=yes
7109 else
7110 echo "configure: failed program was:" >&5
7111 cat conftest.$ac_ext >&5
7112 rm -rf conftest*
7113 glibcpp_cv_func_copysign_use=no
7115 rm -f conftest*
7116 ac_ext=c
7117 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7118 ac_cpp='$CPP $CPPFLAGS'
7119 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7120 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7121 cross_compiling=$ac_cv_prog_cc_cross
7127 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7129 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7130 for ac_func in copysign
7132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7133 echo "configure:7134: checking for $ac_func" >&5
7134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7135 echo $ac_n "(cached) $ac_c" 1>&6
7136 else
7137 cat > conftest.$ac_ext <<EOF
7138 #line 7139 "configure"
7139 #include "confdefs.h"
7140 /* System header to define __stub macros and hopefully few prototypes,
7141 which can conflict with char $ac_func(); below. */
7142 #include <assert.h>
7143 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7146 char $ac_func();
7148 int main() {
7150 /* The GNU C library defines this for functions which it implements
7151 to always fail with ENOSYS. Some functions are actually named
7152 something starting with __ and the normal name is an alias. */
7153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7154 choke me
7155 #else
7156 $ac_func();
7157 #endif
7159 ; return 0; }
7161 if { (eval echo configure:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7162 rm -rf conftest*
7163 eval "ac_cv_func_$ac_func=yes"
7164 else
7165 echo "configure: failed program was:" >&5
7166 cat conftest.$ac_ext >&5
7167 rm -rf conftest*
7168 eval "ac_cv_func_$ac_func=no"
7170 rm -f conftest*
7173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7174 echo "$ac_t""yes" 1>&6
7175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7176 cat >> confdefs.h <<EOF
7177 #define $ac_tr_func 1
7180 else
7181 echo "$ac_t""no" 1>&6
7183 done
7185 else
7187 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7188 echo "configure:7189: checking for _copysign declaration" >&5
7189 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7190 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7191 echo $ac_n "(cached) $ac_c" 1>&6
7192 else
7195 ac_ext=C
7196 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7197 ac_cpp='$CXXCPP $CPPFLAGS'
7198 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7199 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7200 cross_compiling=$ac_cv_prog_cxx_cross
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7205 #include <math.h>
7206 int main() {
7207 _copysign(0, 0);
7208 ; return 0; }
7210 if { (eval echo configure:7211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7211 rm -rf conftest*
7212 glibcpp_cv_func__copysign_use=yes
7213 else
7214 echo "configure: failed program was:" >&5
7215 cat conftest.$ac_ext >&5
7216 rm -rf conftest*
7217 glibcpp_cv_func__copysign_use=no
7219 rm -f conftest*
7220 ac_ext=c
7221 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7222 ac_cpp='$CPP $CPPFLAGS'
7223 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7224 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7225 cross_compiling=$ac_cv_prog_cc_cross
7231 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7233 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7234 for ac_func in _copysign
7236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7237 echo "configure:7238: checking for $ac_func" >&5
7238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7239 echo $ac_n "(cached) $ac_c" 1>&6
7240 else
7241 cat > conftest.$ac_ext <<EOF
7242 #line 7243 "configure"
7243 #include "confdefs.h"
7244 /* System header to define __stub macros and hopefully few prototypes,
7245 which can conflict with char $ac_func(); below. */
7246 #include <assert.h>
7247 /* Override any gcc2 internal prototype to avoid an error. */
7248 /* We use char because int might match the return type of a gcc2
7249 builtin and then its argument prototype would still apply. */
7250 char $ac_func();
7252 int main() {
7254 /* The GNU C library defines this for functions which it implements
7255 to always fail with ENOSYS. Some functions are actually named
7256 something starting with __ and the normal name is an alias. */
7257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7258 choke me
7259 #else
7260 $ac_func();
7261 #endif
7263 ; return 0; }
7265 if { (eval echo configure:7266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7266 rm -rf conftest*
7267 eval "ac_cv_func_$ac_func=yes"
7268 else
7269 echo "configure: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7271 rm -rf conftest*
7272 eval "ac_cv_func_$ac_func=no"
7274 rm -f conftest*
7277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7278 echo "$ac_t""yes" 1>&6
7279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7280 cat >> confdefs.h <<EOF
7281 #define $ac_tr_func 1
7284 else
7285 echo "$ac_t""no" 1>&6
7287 done
7294 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7295 echo "configure:7296: checking for sincos declaration" >&5
7296 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7297 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7299 else
7302 ac_ext=C
7303 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7304 ac_cpp='$CXXCPP $CPPFLAGS'
7305 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7306 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7307 cross_compiling=$ac_cv_prog_cxx_cross
7309 cat > conftest.$ac_ext <<EOF
7310 #line 7311 "configure"
7311 #include "confdefs.h"
7312 #include <math.h>
7313 int main() {
7314 sincos(0, 0, 0);
7315 ; return 0; }
7317 if { (eval echo configure:7318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7318 rm -rf conftest*
7319 glibcpp_cv_func_sincos_use=yes
7320 else
7321 echo "configure: failed program was:" >&5
7322 cat conftest.$ac_ext >&5
7323 rm -rf conftest*
7324 glibcpp_cv_func_sincos_use=no
7326 rm -f conftest*
7327 ac_ext=c
7328 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7329 ac_cpp='$CPP $CPPFLAGS'
7330 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7331 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7332 cross_compiling=$ac_cv_prog_cc_cross
7338 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7340 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7341 for ac_func in sincos
7343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7344 echo "configure:7345: checking for $ac_func" >&5
7345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7347 else
7348 cat > conftest.$ac_ext <<EOF
7349 #line 7350 "configure"
7350 #include "confdefs.h"
7351 /* System header to define __stub macros and hopefully few prototypes,
7352 which can conflict with char $ac_func(); below. */
7353 #include <assert.h>
7354 /* Override any gcc2 internal prototype to avoid an error. */
7355 /* We use char because int might match the return type of a gcc2
7356 builtin and then its argument prototype would still apply. */
7357 char $ac_func();
7359 int main() {
7361 /* The GNU C library defines this for functions which it implements
7362 to always fail with ENOSYS. Some functions are actually named
7363 something starting with __ and the normal name is an alias. */
7364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7365 choke me
7366 #else
7367 $ac_func();
7368 #endif
7370 ; return 0; }
7372 if { (eval echo configure:7373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7373 rm -rf conftest*
7374 eval "ac_cv_func_$ac_func=yes"
7375 else
7376 echo "configure: failed program was:" >&5
7377 cat conftest.$ac_ext >&5
7378 rm -rf conftest*
7379 eval "ac_cv_func_$ac_func=no"
7381 rm -f conftest*
7384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7385 echo "$ac_t""yes" 1>&6
7386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7387 cat >> confdefs.h <<EOF
7388 #define $ac_tr_func 1
7391 else
7392 echo "$ac_t""no" 1>&6
7394 done
7396 else
7398 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7399 echo "configure:7400: checking for _sincos declaration" >&5
7400 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7401 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7403 else
7406 ac_ext=C
7407 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7408 ac_cpp='$CXXCPP $CPPFLAGS'
7409 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7410 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7411 cross_compiling=$ac_cv_prog_cxx_cross
7413 cat > conftest.$ac_ext <<EOF
7414 #line 7415 "configure"
7415 #include "confdefs.h"
7416 #include <math.h>
7417 int main() {
7418 _sincos(0, 0, 0);
7419 ; return 0; }
7421 if { (eval echo configure:7422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7422 rm -rf conftest*
7423 glibcpp_cv_func__sincos_use=yes
7424 else
7425 echo "configure: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7427 rm -rf conftest*
7428 glibcpp_cv_func__sincos_use=no
7430 rm -f conftest*
7431 ac_ext=c
7432 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7433 ac_cpp='$CPP $CPPFLAGS'
7434 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7435 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7436 cross_compiling=$ac_cv_prog_cc_cross
7442 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7444 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7445 for ac_func in _sincos
7447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7448 echo "configure:7449: checking for $ac_func" >&5
7449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7451 else
7452 cat > conftest.$ac_ext <<EOF
7453 #line 7454 "configure"
7454 #include "confdefs.h"
7455 /* System header to define __stub macros and hopefully few prototypes,
7456 which can conflict with char $ac_func(); below. */
7457 #include <assert.h>
7458 /* Override any gcc2 internal prototype to avoid an error. */
7459 /* We use char because int might match the return type of a gcc2
7460 builtin and then its argument prototype would still apply. */
7461 char $ac_func();
7463 int main() {
7465 /* The GNU C library defines this for functions which it implements
7466 to always fail with ENOSYS. Some functions are actually named
7467 something starting with __ and the normal name is an alias. */
7468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7469 choke me
7470 #else
7471 $ac_func();
7472 #endif
7474 ; return 0; }
7476 if { (eval echo configure:7477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7477 rm -rf conftest*
7478 eval "ac_cv_func_$ac_func=yes"
7479 else
7480 echo "configure: failed program was:" >&5
7481 cat conftest.$ac_ext >&5
7482 rm -rf conftest*
7483 eval "ac_cv_func_$ac_func=no"
7485 rm -f conftest*
7488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7489 echo "$ac_t""yes" 1>&6
7490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7491 cat >> confdefs.h <<EOF
7492 #define $ac_tr_func 1
7495 else
7496 echo "$ac_t""no" 1>&6
7498 done
7505 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7506 echo "configure:7507: checking for fpclass declaration" >&5
7507 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7508 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7509 echo $ac_n "(cached) $ac_c" 1>&6
7510 else
7513 ac_ext=C
7514 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7515 ac_cpp='$CXXCPP $CPPFLAGS'
7516 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7517 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7518 cross_compiling=$ac_cv_prog_cxx_cross
7520 cat > conftest.$ac_ext <<EOF
7521 #line 7522 "configure"
7522 #include "confdefs.h"
7523 #include <math.h>
7524 #ifdef HAVE_IEEEFP_H
7525 #include <ieeefp.h>
7526 #endif
7528 int main() {
7529 fpclass(0);
7530 ; return 0; }
7532 if { (eval echo configure:7533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7533 rm -rf conftest*
7534 glibcpp_cv_func_fpclass_use=yes
7535 else
7536 echo "configure: failed program was:" >&5
7537 cat conftest.$ac_ext >&5
7538 rm -rf conftest*
7539 glibcpp_cv_func_fpclass_use=no
7541 rm -f conftest*
7542 ac_ext=c
7543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7544 ac_cpp='$CPP $CPPFLAGS'
7545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7547 cross_compiling=$ac_cv_prog_cc_cross
7553 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7555 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7556 for ac_func in fpclass
7558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7559 echo "configure:7560: checking for $ac_func" >&5
7560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7561 echo $ac_n "(cached) $ac_c" 1>&6
7562 else
7563 cat > conftest.$ac_ext <<EOF
7564 #line 7565 "configure"
7565 #include "confdefs.h"
7566 /* System header to define __stub macros and hopefully few prototypes,
7567 which can conflict with char $ac_func(); below. */
7568 #include <assert.h>
7569 /* Override any gcc2 internal prototype to avoid an error. */
7570 /* We use char because int might match the return type of a gcc2
7571 builtin and then its argument prototype would still apply. */
7572 char $ac_func();
7574 int main() {
7576 /* The GNU C library defines this for functions which it implements
7577 to always fail with ENOSYS. Some functions are actually named
7578 something starting with __ and the normal name is an alias. */
7579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7580 choke me
7581 #else
7582 $ac_func();
7583 #endif
7585 ; return 0; }
7587 if { (eval echo configure:7588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7588 rm -rf conftest*
7589 eval "ac_cv_func_$ac_func=yes"
7590 else
7591 echo "configure: failed program was:" >&5
7592 cat conftest.$ac_ext >&5
7593 rm -rf conftest*
7594 eval "ac_cv_func_$ac_func=no"
7596 rm -f conftest*
7599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7600 echo "$ac_t""yes" 1>&6
7601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7602 cat >> confdefs.h <<EOF
7603 #define $ac_tr_func 1
7606 else
7607 echo "$ac_t""no" 1>&6
7609 done
7611 else
7613 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7614 echo "configure:7615: checking for _fpclass declaration" >&5
7615 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7616 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7618 else
7621 ac_ext=C
7622 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7623 ac_cpp='$CXXCPP $CPPFLAGS'
7624 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7625 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7626 cross_compiling=$ac_cv_prog_cxx_cross
7628 cat > conftest.$ac_ext <<EOF
7629 #line 7630 "configure"
7630 #include "confdefs.h"
7631 #include <math.h>
7632 #ifdef HAVE_IEEEFP_H
7633 #include <ieeefp.h>
7634 #endif
7636 int main() {
7637 _fpclass(0);
7638 ; return 0; }
7640 if { (eval echo configure:7641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7641 rm -rf conftest*
7642 glibcpp_cv_func__fpclass_use=yes
7643 else
7644 echo "configure: failed program was:" >&5
7645 cat conftest.$ac_ext >&5
7646 rm -rf conftest*
7647 glibcpp_cv_func__fpclass_use=no
7649 rm -f conftest*
7650 ac_ext=c
7651 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7652 ac_cpp='$CPP $CPPFLAGS'
7653 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7654 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7655 cross_compiling=$ac_cv_prog_cc_cross
7661 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7663 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7664 for ac_func in _fpclass
7666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7667 echo "configure:7668: checking for $ac_func" >&5
7668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7669 echo $ac_n "(cached) $ac_c" 1>&6
7670 else
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7674 /* System header to define __stub macros and hopefully few prototypes,
7675 which can conflict with char $ac_func(); below. */
7676 #include <assert.h>
7677 /* Override any gcc2 internal prototype to avoid an error. */
7678 /* We use char because int might match the return type of a gcc2
7679 builtin and then its argument prototype would still apply. */
7680 char $ac_func();
7682 int main() {
7684 /* The GNU C library defines this for functions which it implements
7685 to always fail with ENOSYS. Some functions are actually named
7686 something starting with __ and the normal name is an alias. */
7687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7688 choke me
7689 #else
7690 $ac_func();
7691 #endif
7693 ; return 0; }
7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7696 rm -rf conftest*
7697 eval "ac_cv_func_$ac_func=yes"
7698 else
7699 echo "configure: failed program was:" >&5
7700 cat conftest.$ac_ext >&5
7701 rm -rf conftest*
7702 eval "ac_cv_func_$ac_func=no"
7704 rm -f conftest*
7707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7708 echo "$ac_t""yes" 1>&6
7709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7710 cat >> confdefs.h <<EOF
7711 #define $ac_tr_func 1
7714 else
7715 echo "$ac_t""no" 1>&6
7717 done
7724 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7725 echo "configure:7726: checking for qfpclass declaration" >&5
7726 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7727 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7729 else
7732 ac_ext=C
7733 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7734 ac_cpp='$CXXCPP $CPPFLAGS'
7735 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7736 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7737 cross_compiling=$ac_cv_prog_cxx_cross
7739 cat > conftest.$ac_ext <<EOF
7740 #line 7741 "configure"
7741 #include "confdefs.h"
7742 #include <math.h>
7743 #ifdef HAVE_IEEEFP_H
7744 #include <ieeefp.h>
7745 #endif
7747 int main() {
7748 qfpclass(0);
7749 ; return 0; }
7751 if { (eval echo configure:7752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7752 rm -rf conftest*
7753 glibcpp_cv_func_qfpclass_use=yes
7754 else
7755 echo "configure: failed program was:" >&5
7756 cat conftest.$ac_ext >&5
7757 rm -rf conftest*
7758 glibcpp_cv_func_qfpclass_use=no
7760 rm -f conftest*
7761 ac_ext=c
7762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7763 ac_cpp='$CPP $CPPFLAGS'
7764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7766 cross_compiling=$ac_cv_prog_cc_cross
7772 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7774 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7775 for ac_func in qfpclass
7777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7778 echo "configure:7779: checking for $ac_func" >&5
7779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7780 echo $ac_n "(cached) $ac_c" 1>&6
7781 else
7782 cat > conftest.$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7785 /* System header to define __stub macros and hopefully few prototypes,
7786 which can conflict with char $ac_func(); below. */
7787 #include <assert.h>
7788 /* Override any gcc2 internal prototype to avoid an error. */
7789 /* We use char because int might match the return type of a gcc2
7790 builtin and then its argument prototype would still apply. */
7791 char $ac_func();
7793 int main() {
7795 /* The GNU C library defines this for functions which it implements
7796 to always fail with ENOSYS. Some functions are actually named
7797 something starting with __ and the normal name is an alias. */
7798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7799 choke me
7800 #else
7801 $ac_func();
7802 #endif
7804 ; return 0; }
7806 if { (eval echo configure:7807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7807 rm -rf conftest*
7808 eval "ac_cv_func_$ac_func=yes"
7809 else
7810 echo "configure: failed program was:" >&5
7811 cat conftest.$ac_ext >&5
7812 rm -rf conftest*
7813 eval "ac_cv_func_$ac_func=no"
7815 rm -f conftest*
7818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7819 echo "$ac_t""yes" 1>&6
7820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7821 cat >> confdefs.h <<EOF
7822 #define $ac_tr_func 1
7825 else
7826 echo "$ac_t""no" 1>&6
7828 done
7830 else
7832 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7833 echo "configure:7834: checking for _qfpclass declaration" >&5
7834 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7835 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7837 else
7840 ac_ext=C
7841 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7842 ac_cpp='$CXXCPP $CPPFLAGS'
7843 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7844 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7845 cross_compiling=$ac_cv_prog_cxx_cross
7847 cat > conftest.$ac_ext <<EOF
7848 #line 7849 "configure"
7849 #include "confdefs.h"
7850 #include <math.h>
7851 #ifdef HAVE_IEEEFP_H
7852 #include <ieeefp.h>
7853 #endif
7855 int main() {
7856 _qfpclass(0);
7857 ; return 0; }
7859 if { (eval echo configure:7860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7860 rm -rf conftest*
7861 glibcpp_cv_func__qfpclass_use=yes
7862 else
7863 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7865 rm -rf conftest*
7866 glibcpp_cv_func__qfpclass_use=no
7868 rm -f conftest*
7869 ac_ext=c
7870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7871 ac_cpp='$CPP $CPPFLAGS'
7872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7874 cross_compiling=$ac_cv_prog_cc_cross
7880 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7882 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7883 for ac_func in _qfpclass
7885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7886 echo "configure:7887: checking for $ac_func" >&5
7887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7888 echo $ac_n "(cached) $ac_c" 1>&6
7889 else
7890 cat > conftest.$ac_ext <<EOF
7891 #line 7892 "configure"
7892 #include "confdefs.h"
7893 /* System header to define __stub macros and hopefully few prototypes,
7894 which can conflict with char $ac_func(); below. */
7895 #include <assert.h>
7896 /* Override any gcc2 internal prototype to avoid an error. */
7897 /* We use char because int might match the return type of a gcc2
7898 builtin and then its argument prototype would still apply. */
7899 char $ac_func();
7901 int main() {
7903 /* The GNU C library defines this for functions which it implements
7904 to always fail with ENOSYS. Some functions are actually named
7905 something starting with __ and the normal name is an alias. */
7906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7907 choke me
7908 #else
7909 $ac_func();
7910 #endif
7912 ; return 0; }
7914 if { (eval echo configure:7915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7915 rm -rf conftest*
7916 eval "ac_cv_func_$ac_func=yes"
7917 else
7918 echo "configure: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7920 rm -rf conftest*
7921 eval "ac_cv_func_$ac_func=no"
7923 rm -f conftest*
7926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7927 echo "$ac_t""yes" 1>&6
7928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7929 cat >> confdefs.h <<EOF
7930 #define $ac_tr_func 1
7933 else
7934 echo "$ac_t""no" 1>&6
7936 done
7943 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
7944 echo "configure:7945: checking for hypot declaration" >&5
7945 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
7946 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
7947 echo $ac_n "(cached) $ac_c" 1>&6
7948 else
7951 ac_ext=C
7952 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7953 ac_cpp='$CXXCPP $CPPFLAGS'
7954 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7955 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7956 cross_compiling=$ac_cv_prog_cxx_cross
7958 cat > conftest.$ac_ext <<EOF
7959 #line 7960 "configure"
7960 #include "confdefs.h"
7961 #include <math.h>
7962 int main() {
7963 hypot(0, 0);
7964 ; return 0; }
7966 if { (eval echo configure:7967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7967 rm -rf conftest*
7968 glibcpp_cv_func_hypot_use=yes
7969 else
7970 echo "configure: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7972 rm -rf conftest*
7973 glibcpp_cv_func_hypot_use=no
7975 rm -f conftest*
7976 ac_ext=c
7977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7978 ac_cpp='$CPP $CPPFLAGS'
7979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7981 cross_compiling=$ac_cv_prog_cc_cross
7987 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
7989 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
7990 for ac_func in hypot
7992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7993 echo "configure:7994: checking for $ac_func" >&5
7994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7995 echo $ac_n "(cached) $ac_c" 1>&6
7996 else
7997 cat > conftest.$ac_ext <<EOF
7998 #line 7999 "configure"
7999 #include "confdefs.h"
8000 /* System header to define __stub macros and hopefully few prototypes,
8001 which can conflict with char $ac_func(); below. */
8002 #include <assert.h>
8003 /* Override any gcc2 internal prototype to avoid an error. */
8004 /* We use char because int might match the return type of a gcc2
8005 builtin and then its argument prototype would still apply. */
8006 char $ac_func();
8008 int main() {
8010 /* The GNU C library defines this for functions which it implements
8011 to always fail with ENOSYS. Some functions are actually named
8012 something starting with __ and the normal name is an alias. */
8013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8014 choke me
8015 #else
8016 $ac_func();
8017 #endif
8019 ; return 0; }
8021 if { (eval echo configure:8022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8022 rm -rf conftest*
8023 eval "ac_cv_func_$ac_func=yes"
8024 else
8025 echo "configure: failed program was:" >&5
8026 cat conftest.$ac_ext >&5
8027 rm -rf conftest*
8028 eval "ac_cv_func_$ac_func=no"
8030 rm -f conftest*
8033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8034 echo "$ac_t""yes" 1>&6
8035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8036 cat >> confdefs.h <<EOF
8037 #define $ac_tr_func 1
8040 else
8041 echo "$ac_t""no" 1>&6
8043 done
8045 else
8047 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
8048 echo "configure:8049: checking for _hypot declaration" >&5
8049 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
8050 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
8051 echo $ac_n "(cached) $ac_c" 1>&6
8052 else
8055 ac_ext=C
8056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8057 ac_cpp='$CXXCPP $CPPFLAGS'
8058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8060 cross_compiling=$ac_cv_prog_cxx_cross
8062 cat > conftest.$ac_ext <<EOF
8063 #line 8064 "configure"
8064 #include "confdefs.h"
8065 #include <math.h>
8066 int main() {
8067 _hypot(0, 0);
8068 ; return 0; }
8070 if { (eval echo configure:8071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8071 rm -rf conftest*
8072 glibcpp_cv_func__hypot_use=yes
8073 else
8074 echo "configure: failed program was:" >&5
8075 cat conftest.$ac_ext >&5
8076 rm -rf conftest*
8077 glibcpp_cv_func__hypot_use=no
8079 rm -f conftest*
8080 ac_ext=c
8081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8082 ac_cpp='$CPP $CPPFLAGS'
8083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8085 cross_compiling=$ac_cv_prog_cc_cross
8091 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
8093 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
8094 for ac_func in _hypot
8096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8097 echo "configure:8098: checking for $ac_func" >&5
8098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8099 echo $ac_n "(cached) $ac_c" 1>&6
8100 else
8101 cat > conftest.$ac_ext <<EOF
8102 #line 8103 "configure"
8103 #include "confdefs.h"
8104 /* System header to define __stub macros and hopefully few prototypes,
8105 which can conflict with char $ac_func(); below. */
8106 #include <assert.h>
8107 /* Override any gcc2 internal prototype to avoid an error. */
8108 /* We use char because int might match the return type of a gcc2
8109 builtin and then its argument prototype would still apply. */
8110 char $ac_func();
8112 int main() {
8114 /* The GNU C library defines this for functions which it implements
8115 to always fail with ENOSYS. Some functions are actually named
8116 something starting with __ and the normal name is an alias. */
8117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8118 choke me
8119 #else
8120 $ac_func();
8121 #endif
8123 ; return 0; }
8125 if { (eval echo configure:8126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8126 rm -rf conftest*
8127 eval "ac_cv_func_$ac_func=yes"
8128 else
8129 echo "configure: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8131 rm -rf conftest*
8132 eval "ac_cv_func_$ac_func=no"
8134 rm -f conftest*
8137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8138 echo "$ac_t""yes" 1>&6
8139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8140 cat >> confdefs.h <<EOF
8141 #define $ac_tr_func 1
8144 else
8145 echo "$ac_t""no" 1>&6
8147 done
8154 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
8155 echo "configure:8156: checking for float trig functions" >&5
8156 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
8158 else
8161 ac_ext=C
8162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8163 ac_cpp='$CXXCPP $CPPFLAGS'
8164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8166 cross_compiling=$ac_cv_prog_cxx_cross
8168 cat > conftest.$ac_ext <<EOF
8169 #line 8170 "configure"
8170 #include "confdefs.h"
8171 #include <math.h>
8172 int main() {
8173 `for x in acosf asinf atanf \
8174 cosf sinf tanf \
8175 coshf sinhf tanhf; do echo "$x (0);"; done`
8176 ; return 0; }
8178 if { (eval echo configure:8179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8179 rm -rf conftest*
8180 glibcpp_cv_func_float_trig_use=yes
8181 else
8182 echo "configure: failed program was:" >&5
8183 cat conftest.$ac_ext >&5
8184 rm -rf conftest*
8185 glibcpp_cv_func_float_trig_use=no
8187 rm -f conftest*
8188 ac_ext=c
8189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8190 ac_cpp='$CPP $CPPFLAGS'
8191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8193 cross_compiling=$ac_cv_prog_cc_cross
8197 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
8198 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
8199 for ac_func in acosf asinf atanf \
8200 cosf sinf tanf \
8201 coshf sinhf tanhf
8203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8204 echo "configure:8205: checking for $ac_func" >&5
8205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8206 echo $ac_n "(cached) $ac_c" 1>&6
8207 else
8208 cat > conftest.$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8211 /* System header to define __stub macros and hopefully few prototypes,
8212 which can conflict with char $ac_func(); below. */
8213 #include <assert.h>
8214 /* Override any gcc2 internal prototype to avoid an error. */
8215 /* We use char because int might match the return type of a gcc2
8216 builtin and then its argument prototype would still apply. */
8217 char $ac_func();
8219 int main() {
8221 /* The GNU C library defines this for functions which it implements
8222 to always fail with ENOSYS. Some functions are actually named
8223 something starting with __ and the normal name is an alias. */
8224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8225 choke me
8226 #else
8227 $ac_func();
8228 #endif
8230 ; return 0; }
8232 if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8233 rm -rf conftest*
8234 eval "ac_cv_func_$ac_func=yes"
8235 else
8236 echo "configure: failed program was:" >&5
8237 cat conftest.$ac_ext >&5
8238 rm -rf conftest*
8239 eval "ac_cv_func_$ac_func=no"
8241 rm -f conftest*
8244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8245 echo "$ac_t""yes" 1>&6
8246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8247 cat >> confdefs.h <<EOF
8248 #define $ac_tr_func 1
8251 else
8252 echo "$ac_t""no" 1>&6
8254 done
8259 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
8260 echo "configure:8261: checking for float round functions" >&5
8261 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
8262 echo $ac_n "(cached) $ac_c" 1>&6
8263 else
8266 ac_ext=C
8267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8268 ac_cpp='$CXXCPP $CPPFLAGS'
8269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8271 cross_compiling=$ac_cv_prog_cxx_cross
8273 cat > conftest.$ac_ext <<EOF
8274 #line 8275 "configure"
8275 #include "confdefs.h"
8276 #include <math.h>
8277 int main() {
8278 `for x in ceilf floorf; do echo "$x (0);"; done`
8279 ; return 0; }
8281 if { (eval echo configure:8282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8282 rm -rf conftest*
8283 glibcpp_cv_func_float_round_use=yes
8284 else
8285 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8287 rm -rf conftest*
8288 glibcpp_cv_func_float_round_use=no
8290 rm -f conftest*
8291 ac_ext=c
8292 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8293 ac_cpp='$CPP $CPPFLAGS'
8294 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8295 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8296 cross_compiling=$ac_cv_prog_cc_cross
8300 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8301 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8302 for ac_func in ceilf floorf
8304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8305 echo "configure:8306: checking for $ac_func" >&5
8306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8307 echo $ac_n "(cached) $ac_c" 1>&6
8308 else
8309 cat > conftest.$ac_ext <<EOF
8310 #line 8311 "configure"
8311 #include "confdefs.h"
8312 /* System header to define __stub macros and hopefully few prototypes,
8313 which can conflict with char $ac_func(); below. */
8314 #include <assert.h>
8315 /* Override any gcc2 internal prototype to avoid an error. */
8316 /* We use char because int might match the return type of a gcc2
8317 builtin and then its argument prototype would still apply. */
8318 char $ac_func();
8320 int main() {
8322 /* The GNU C library defines this for functions which it implements
8323 to always fail with ENOSYS. Some functions are actually named
8324 something starting with __ and the normal name is an alias. */
8325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8326 choke me
8327 #else
8328 $ac_func();
8329 #endif
8331 ; return 0; }
8333 if { (eval echo configure:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8334 rm -rf conftest*
8335 eval "ac_cv_func_$ac_func=yes"
8336 else
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8339 rm -rf conftest*
8340 eval "ac_cv_func_$ac_func=no"
8342 rm -f conftest*
8345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8346 echo "$ac_t""yes" 1>&6
8347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8348 cat >> confdefs.h <<EOF
8349 #define $ac_tr_func 1
8352 else
8353 echo "$ac_t""no" 1>&6
8355 done
8361 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8362 echo "configure:8363: checking for isnanf declaration" >&5
8363 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8364 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8365 echo $ac_n "(cached) $ac_c" 1>&6
8366 else
8369 ac_ext=C
8370 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8371 ac_cpp='$CXXCPP $CPPFLAGS'
8372 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8373 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8374 cross_compiling=$ac_cv_prog_cxx_cross
8376 cat > conftest.$ac_ext <<EOF
8377 #line 8378 "configure"
8378 #include "confdefs.h"
8379 #include <math.h>
8380 #ifdef HAVE_IEEEFP_H
8381 #include <ieeefp.h>
8382 #endif
8384 int main() {
8385 isnanf(0);
8386 ; return 0; }
8388 if { (eval echo configure:8389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8389 rm -rf conftest*
8390 glibcpp_cv_func_isnanf_use=yes
8391 else
8392 echo "configure: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8394 rm -rf conftest*
8395 glibcpp_cv_func_isnanf_use=no
8397 rm -f conftest*
8398 ac_ext=c
8399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8400 ac_cpp='$CPP $CPPFLAGS'
8401 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8402 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8403 cross_compiling=$ac_cv_prog_cc_cross
8409 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8411 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8412 for ac_func in isnanf
8414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8415 echo "configure:8416: checking for $ac_func" >&5
8416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8417 echo $ac_n "(cached) $ac_c" 1>&6
8418 else
8419 cat > conftest.$ac_ext <<EOF
8420 #line 8421 "configure"
8421 #include "confdefs.h"
8422 /* System header to define __stub macros and hopefully few prototypes,
8423 which can conflict with char $ac_func(); below. */
8424 #include <assert.h>
8425 /* Override any gcc2 internal prototype to avoid an error. */
8426 /* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8428 char $ac_func();
8430 int main() {
8432 /* The GNU C library defines this for functions which it implements
8433 to always fail with ENOSYS. Some functions are actually named
8434 something starting with __ and the normal name is an alias. */
8435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8436 choke me
8437 #else
8438 $ac_func();
8439 #endif
8441 ; return 0; }
8443 if { (eval echo configure:8444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8444 rm -rf conftest*
8445 eval "ac_cv_func_$ac_func=yes"
8446 else
8447 echo "configure: failed program was:" >&5
8448 cat conftest.$ac_ext >&5
8449 rm -rf conftest*
8450 eval "ac_cv_func_$ac_func=no"
8452 rm -f conftest*
8455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8456 echo "$ac_t""yes" 1>&6
8457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8458 cat >> confdefs.h <<EOF
8459 #define $ac_tr_func 1
8462 else
8463 echo "$ac_t""no" 1>&6
8465 done
8467 else
8469 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8470 echo "configure:8471: checking for _isnanf declaration" >&5
8471 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8472 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8474 else
8477 ac_ext=C
8478 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8479 ac_cpp='$CXXCPP $CPPFLAGS'
8480 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8481 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8482 cross_compiling=$ac_cv_prog_cxx_cross
8484 cat > conftest.$ac_ext <<EOF
8485 #line 8486 "configure"
8486 #include "confdefs.h"
8487 #include <math.h>
8488 #ifdef HAVE_IEEEFP_H
8489 #include <ieeefp.h>
8490 #endif
8492 int main() {
8493 _isnanf(0);
8494 ; return 0; }
8496 if { (eval echo configure:8497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8497 rm -rf conftest*
8498 glibcpp_cv_func__isnanf_use=yes
8499 else
8500 echo "configure: failed program was:" >&5
8501 cat conftest.$ac_ext >&5
8502 rm -rf conftest*
8503 glibcpp_cv_func__isnanf_use=no
8505 rm -f conftest*
8506 ac_ext=c
8507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8508 ac_cpp='$CPP $CPPFLAGS'
8509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8511 cross_compiling=$ac_cv_prog_cc_cross
8517 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8519 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8520 for ac_func in _isnanf
8522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8523 echo "configure:8524: checking for $ac_func" >&5
8524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8525 echo $ac_n "(cached) $ac_c" 1>&6
8526 else
8527 cat > conftest.$ac_ext <<EOF
8528 #line 8529 "configure"
8529 #include "confdefs.h"
8530 /* System header to define __stub macros and hopefully few prototypes,
8531 which can conflict with char $ac_func(); below. */
8532 #include <assert.h>
8533 /* Override any gcc2 internal prototype to avoid an error. */
8534 /* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8536 char $ac_func();
8538 int main() {
8540 /* The GNU C library defines this for functions which it implements
8541 to always fail with ENOSYS. Some functions are actually named
8542 something starting with __ and the normal name is an alias. */
8543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8544 choke me
8545 #else
8546 $ac_func();
8547 #endif
8549 ; return 0; }
8551 if { (eval echo configure:8552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8552 rm -rf conftest*
8553 eval "ac_cv_func_$ac_func=yes"
8554 else
8555 echo "configure: failed program was:" >&5
8556 cat conftest.$ac_ext >&5
8557 rm -rf conftest*
8558 eval "ac_cv_func_$ac_func=no"
8560 rm -f conftest*
8563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8564 echo "$ac_t""yes" 1>&6
8565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8566 cat >> confdefs.h <<EOF
8567 #define $ac_tr_func 1
8570 else
8571 echo "$ac_t""no" 1>&6
8573 done
8580 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8581 echo "configure:8582: checking for isinff declaration" >&5
8582 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8583 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8584 echo $ac_n "(cached) $ac_c" 1>&6
8585 else
8588 ac_ext=C
8589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8590 ac_cpp='$CXXCPP $CPPFLAGS'
8591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8593 cross_compiling=$ac_cv_prog_cxx_cross
8595 cat > conftest.$ac_ext <<EOF
8596 #line 8597 "configure"
8597 #include "confdefs.h"
8598 #include <math.h>
8599 #ifdef HAVE_IEEEFP_H
8600 #include <ieeefp.h>
8601 #endif
8603 int main() {
8604 isinff(0);
8605 ; return 0; }
8607 if { (eval echo configure:8608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8608 rm -rf conftest*
8609 glibcpp_cv_func_isinff_use=yes
8610 else
8611 echo "configure: failed program was:" >&5
8612 cat conftest.$ac_ext >&5
8613 rm -rf conftest*
8614 glibcpp_cv_func_isinff_use=no
8616 rm -f conftest*
8617 ac_ext=c
8618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8619 ac_cpp='$CPP $CPPFLAGS'
8620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8622 cross_compiling=$ac_cv_prog_cc_cross
8628 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8630 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8631 for ac_func in isinff
8633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8634 echo "configure:8635: checking for $ac_func" >&5
8635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8636 echo $ac_n "(cached) $ac_c" 1>&6
8637 else
8638 cat > conftest.$ac_ext <<EOF
8639 #line 8640 "configure"
8640 #include "confdefs.h"
8641 /* System header to define __stub macros and hopefully few prototypes,
8642 which can conflict with char $ac_func(); below. */
8643 #include <assert.h>
8644 /* Override any gcc2 internal prototype to avoid an error. */
8645 /* We use char because int might match the return type of a gcc2
8646 builtin and then its argument prototype would still apply. */
8647 char $ac_func();
8649 int main() {
8651 /* The GNU C library defines this for functions which it implements
8652 to always fail with ENOSYS. Some functions are actually named
8653 something starting with __ and the normal name is an alias. */
8654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8655 choke me
8656 #else
8657 $ac_func();
8658 #endif
8660 ; return 0; }
8662 if { (eval echo configure:8663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8663 rm -rf conftest*
8664 eval "ac_cv_func_$ac_func=yes"
8665 else
8666 echo "configure: failed program was:" >&5
8667 cat conftest.$ac_ext >&5
8668 rm -rf conftest*
8669 eval "ac_cv_func_$ac_func=no"
8671 rm -f conftest*
8674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8675 echo "$ac_t""yes" 1>&6
8676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8677 cat >> confdefs.h <<EOF
8678 #define $ac_tr_func 1
8681 else
8682 echo "$ac_t""no" 1>&6
8684 done
8686 else
8688 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8689 echo "configure:8690: checking for _isinff declaration" >&5
8690 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8691 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8692 echo $ac_n "(cached) $ac_c" 1>&6
8693 else
8696 ac_ext=C
8697 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8698 ac_cpp='$CXXCPP $CPPFLAGS'
8699 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8700 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8701 cross_compiling=$ac_cv_prog_cxx_cross
8703 cat > conftest.$ac_ext <<EOF
8704 #line 8705 "configure"
8705 #include "confdefs.h"
8706 #include <math.h>
8707 #ifdef HAVE_IEEEFP_H
8708 #include <ieeefp.h>
8709 #endif
8711 int main() {
8712 _isinff(0);
8713 ; return 0; }
8715 if { (eval echo configure:8716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8716 rm -rf conftest*
8717 glibcpp_cv_func__isinff_use=yes
8718 else
8719 echo "configure: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8721 rm -rf conftest*
8722 glibcpp_cv_func__isinff_use=no
8724 rm -f conftest*
8725 ac_ext=c
8726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8727 ac_cpp='$CPP $CPPFLAGS'
8728 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8729 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8730 cross_compiling=$ac_cv_prog_cc_cross
8736 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8738 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8739 for ac_func in _isinff
8741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8742 echo "configure:8743: checking for $ac_func" >&5
8743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8744 echo $ac_n "(cached) $ac_c" 1>&6
8745 else
8746 cat > conftest.$ac_ext <<EOF
8747 #line 8748 "configure"
8748 #include "confdefs.h"
8749 /* System header to define __stub macros and hopefully few prototypes,
8750 which can conflict with char $ac_func(); below. */
8751 #include <assert.h>
8752 /* Override any gcc2 internal prototype to avoid an error. */
8753 /* We use char because int might match the return type of a gcc2
8754 builtin and then its argument prototype would still apply. */
8755 char $ac_func();
8757 int main() {
8759 /* The GNU C library defines this for functions which it implements
8760 to always fail with ENOSYS. Some functions are actually named
8761 something starting with __ and the normal name is an alias. */
8762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8763 choke me
8764 #else
8765 $ac_func();
8766 #endif
8768 ; return 0; }
8770 if { (eval echo configure:8771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8771 rm -rf conftest*
8772 eval "ac_cv_func_$ac_func=yes"
8773 else
8774 echo "configure: failed program was:" >&5
8775 cat conftest.$ac_ext >&5
8776 rm -rf conftest*
8777 eval "ac_cv_func_$ac_func=no"
8779 rm -f conftest*
8782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8783 echo "$ac_t""yes" 1>&6
8784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8785 cat >> confdefs.h <<EOF
8786 #define $ac_tr_func 1
8789 else
8790 echo "$ac_t""no" 1>&6
8792 done
8799 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
8800 echo "configure:8801: checking for atan2f declaration" >&5
8801 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
8802 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
8803 echo $ac_n "(cached) $ac_c" 1>&6
8804 else
8807 ac_ext=C
8808 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8809 ac_cpp='$CXXCPP $CPPFLAGS'
8810 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8811 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8812 cross_compiling=$ac_cv_prog_cxx_cross
8814 cat > conftest.$ac_ext <<EOF
8815 #line 8816 "configure"
8816 #include "confdefs.h"
8817 #include <math.h>
8818 int main() {
8819 atan2f(0, 0);
8820 ; return 0; }
8822 if { (eval echo configure:8823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8823 rm -rf conftest*
8824 glibcpp_cv_func_atan2f_use=yes
8825 else
8826 echo "configure: failed program was:" >&5
8827 cat conftest.$ac_ext >&5
8828 rm -rf conftest*
8829 glibcpp_cv_func_atan2f_use=no
8831 rm -f conftest*
8832 ac_ext=c
8833 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8834 ac_cpp='$CPP $CPPFLAGS'
8835 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8836 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8837 cross_compiling=$ac_cv_prog_cc_cross
8843 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
8845 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
8846 for ac_func in atan2f
8848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8849 echo "configure:8850: checking for $ac_func" >&5
8850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8851 echo $ac_n "(cached) $ac_c" 1>&6
8852 else
8853 cat > conftest.$ac_ext <<EOF
8854 #line 8855 "configure"
8855 #include "confdefs.h"
8856 /* System header to define __stub macros and hopefully few prototypes,
8857 which can conflict with char $ac_func(); below. */
8858 #include <assert.h>
8859 /* Override any gcc2 internal prototype to avoid an error. */
8860 /* We use char because int might match the return type of a gcc2
8861 builtin and then its argument prototype would still apply. */
8862 char $ac_func();
8864 int main() {
8866 /* The GNU C library defines this for functions which it implements
8867 to always fail with ENOSYS. Some functions are actually named
8868 something starting with __ and the normal name is an alias. */
8869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8870 choke me
8871 #else
8872 $ac_func();
8873 #endif
8875 ; return 0; }
8877 if { (eval echo configure:8878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8878 rm -rf conftest*
8879 eval "ac_cv_func_$ac_func=yes"
8880 else
8881 echo "configure: failed program was:" >&5
8882 cat conftest.$ac_ext >&5
8883 rm -rf conftest*
8884 eval "ac_cv_func_$ac_func=no"
8886 rm -f conftest*
8889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8890 echo "$ac_t""yes" 1>&6
8891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8892 cat >> confdefs.h <<EOF
8893 #define $ac_tr_func 1
8896 else
8897 echo "$ac_t""no" 1>&6
8899 done
8901 else
8903 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
8904 echo "configure:8905: checking for _atan2f declaration" >&5
8905 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
8906 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
8907 echo $ac_n "(cached) $ac_c" 1>&6
8908 else
8911 ac_ext=C
8912 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8913 ac_cpp='$CXXCPP $CPPFLAGS'
8914 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8915 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8916 cross_compiling=$ac_cv_prog_cxx_cross
8918 cat > conftest.$ac_ext <<EOF
8919 #line 8920 "configure"
8920 #include "confdefs.h"
8921 #include <math.h>
8922 int main() {
8923 _atan2f(0, 0);
8924 ; return 0; }
8926 if { (eval echo configure:8927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8927 rm -rf conftest*
8928 glibcpp_cv_func__atan2f_use=yes
8929 else
8930 echo "configure: failed program was:" >&5
8931 cat conftest.$ac_ext >&5
8932 rm -rf conftest*
8933 glibcpp_cv_func__atan2f_use=no
8935 rm -f conftest*
8936 ac_ext=c
8937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8938 ac_cpp='$CPP $CPPFLAGS'
8939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8941 cross_compiling=$ac_cv_prog_cc_cross
8947 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
8949 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
8950 for ac_func in _atan2f
8952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8953 echo "configure:8954: checking for $ac_func" >&5
8954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8955 echo $ac_n "(cached) $ac_c" 1>&6
8956 else
8957 cat > conftest.$ac_ext <<EOF
8958 #line 8959 "configure"
8959 #include "confdefs.h"
8960 /* System header to define __stub macros and hopefully few prototypes,
8961 which can conflict with char $ac_func(); below. */
8962 #include <assert.h>
8963 /* Override any gcc2 internal prototype to avoid an error. */
8964 /* We use char because int might match the return type of a gcc2
8965 builtin and then its argument prototype would still apply. */
8966 char $ac_func();
8968 int main() {
8970 /* The GNU C library defines this for functions which it implements
8971 to always fail with ENOSYS. Some functions are actually named
8972 something starting with __ and the normal name is an alias. */
8973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8974 choke me
8975 #else
8976 $ac_func();
8977 #endif
8979 ; return 0; }
8981 if { (eval echo configure:8982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8982 rm -rf conftest*
8983 eval "ac_cv_func_$ac_func=yes"
8984 else
8985 echo "configure: failed program was:" >&5
8986 cat conftest.$ac_ext >&5
8987 rm -rf conftest*
8988 eval "ac_cv_func_$ac_func=no"
8990 rm -f conftest*
8993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8994 echo "$ac_t""yes" 1>&6
8995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8996 cat >> confdefs.h <<EOF
8997 #define $ac_tr_func 1
9000 else
9001 echo "$ac_t""no" 1>&6
9003 done
9010 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
9011 echo "configure:9012: checking for fabsf declaration" >&5
9012 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
9013 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
9014 echo $ac_n "(cached) $ac_c" 1>&6
9015 else
9018 ac_ext=C
9019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9020 ac_cpp='$CXXCPP $CPPFLAGS'
9021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9023 cross_compiling=$ac_cv_prog_cxx_cross
9025 cat > conftest.$ac_ext <<EOF
9026 #line 9027 "configure"
9027 #include "confdefs.h"
9028 #include <math.h>
9029 #ifdef HAVE_IEEEFP_H
9030 #include <ieeefp.h>
9031 #endif
9033 int main() {
9034 fabsf(0);
9035 ; return 0; }
9037 if { (eval echo configure:9038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9038 rm -rf conftest*
9039 glibcpp_cv_func_fabsf_use=yes
9040 else
9041 echo "configure: failed program was:" >&5
9042 cat conftest.$ac_ext >&5
9043 rm -rf conftest*
9044 glibcpp_cv_func_fabsf_use=no
9046 rm -f conftest*
9047 ac_ext=c
9048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9049 ac_cpp='$CPP $CPPFLAGS'
9050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9052 cross_compiling=$ac_cv_prog_cc_cross
9058 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
9060 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
9061 for ac_func in fabsf
9063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9064 echo "configure:9065: checking for $ac_func" >&5
9065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9066 echo $ac_n "(cached) $ac_c" 1>&6
9067 else
9068 cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure"
9070 #include "confdefs.h"
9071 /* System header to define __stub macros and hopefully few prototypes,
9072 which can conflict with char $ac_func(); below. */
9073 #include <assert.h>
9074 /* Override any gcc2 internal prototype to avoid an error. */
9075 /* We use char because int might match the return type of a gcc2
9076 builtin and then its argument prototype would still apply. */
9077 char $ac_func();
9079 int main() {
9081 /* The GNU C library defines this for functions which it implements
9082 to always fail with ENOSYS. Some functions are actually named
9083 something starting with __ and the normal name is an alias. */
9084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9085 choke me
9086 #else
9087 $ac_func();
9088 #endif
9090 ; return 0; }
9092 if { (eval echo configure:9093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9093 rm -rf conftest*
9094 eval "ac_cv_func_$ac_func=yes"
9095 else
9096 echo "configure: failed program was:" >&5
9097 cat conftest.$ac_ext >&5
9098 rm -rf conftest*
9099 eval "ac_cv_func_$ac_func=no"
9101 rm -f conftest*
9104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9105 echo "$ac_t""yes" 1>&6
9106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9107 cat >> confdefs.h <<EOF
9108 #define $ac_tr_func 1
9111 else
9112 echo "$ac_t""no" 1>&6
9114 done
9116 else
9118 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
9119 echo "configure:9120: checking for _fabsf declaration" >&5
9120 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
9121 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9123 else
9126 ac_ext=C
9127 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9128 ac_cpp='$CXXCPP $CPPFLAGS'
9129 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9130 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9131 cross_compiling=$ac_cv_prog_cxx_cross
9133 cat > conftest.$ac_ext <<EOF
9134 #line 9135 "configure"
9135 #include "confdefs.h"
9136 #include <math.h>
9137 #ifdef HAVE_IEEEFP_H
9138 #include <ieeefp.h>
9139 #endif
9141 int main() {
9142 _fabsf(0);
9143 ; return 0; }
9145 if { (eval echo configure:9146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9146 rm -rf conftest*
9147 glibcpp_cv_func__fabsf_use=yes
9148 else
9149 echo "configure: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9151 rm -rf conftest*
9152 glibcpp_cv_func__fabsf_use=no
9154 rm -f conftest*
9155 ac_ext=c
9156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9157 ac_cpp='$CPP $CPPFLAGS'
9158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9160 cross_compiling=$ac_cv_prog_cc_cross
9166 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
9168 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
9169 for ac_func in _fabsf
9171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9172 echo "configure:9173: checking for $ac_func" >&5
9173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9174 echo $ac_n "(cached) $ac_c" 1>&6
9175 else
9176 cat > conftest.$ac_ext <<EOF
9177 #line 9178 "configure"
9178 #include "confdefs.h"
9179 /* System header to define __stub macros and hopefully few prototypes,
9180 which can conflict with char $ac_func(); below. */
9181 #include <assert.h>
9182 /* Override any gcc2 internal prototype to avoid an error. */
9183 /* We use char because int might match the return type of a gcc2
9184 builtin and then its argument prototype would still apply. */
9185 char $ac_func();
9187 int main() {
9189 /* The GNU C library defines this for functions which it implements
9190 to always fail with ENOSYS. Some functions are actually named
9191 something starting with __ and the normal name is an alias. */
9192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9193 choke me
9194 #else
9195 $ac_func();
9196 #endif
9198 ; return 0; }
9200 if { (eval echo configure:9201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9201 rm -rf conftest*
9202 eval "ac_cv_func_$ac_func=yes"
9203 else
9204 echo "configure: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9206 rm -rf conftest*
9207 eval "ac_cv_func_$ac_func=no"
9209 rm -f conftest*
9212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9213 echo "$ac_t""yes" 1>&6
9214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9215 cat >> confdefs.h <<EOF
9216 #define $ac_tr_func 1
9219 else
9220 echo "$ac_t""no" 1>&6
9222 done
9229 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
9230 echo "configure:9231: checking for fmodf declaration" >&5
9231 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
9232 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
9233 echo $ac_n "(cached) $ac_c" 1>&6
9234 else
9237 ac_ext=C
9238 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9239 ac_cpp='$CXXCPP $CPPFLAGS'
9240 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9241 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9242 cross_compiling=$ac_cv_prog_cxx_cross
9244 cat > conftest.$ac_ext <<EOF
9245 #line 9246 "configure"
9246 #include "confdefs.h"
9247 #include <math.h>
9248 int main() {
9249 fmodf(0, 0);
9250 ; return 0; }
9252 if { (eval echo configure:9253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9253 rm -rf conftest*
9254 glibcpp_cv_func_fmodf_use=yes
9255 else
9256 echo "configure: failed program was:" >&5
9257 cat conftest.$ac_ext >&5
9258 rm -rf conftest*
9259 glibcpp_cv_func_fmodf_use=no
9261 rm -f conftest*
9262 ac_ext=c
9263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9264 ac_cpp='$CPP $CPPFLAGS'
9265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9267 cross_compiling=$ac_cv_prog_cc_cross
9273 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
9275 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
9276 for ac_func in fmodf
9278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9279 echo "configure:9280: checking for $ac_func" >&5
9280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9281 echo $ac_n "(cached) $ac_c" 1>&6
9282 else
9283 cat > conftest.$ac_ext <<EOF
9284 #line 9285 "configure"
9285 #include "confdefs.h"
9286 /* System header to define __stub macros and hopefully few prototypes,
9287 which can conflict with char $ac_func(); below. */
9288 #include <assert.h>
9289 /* Override any gcc2 internal prototype to avoid an error. */
9290 /* We use char because int might match the return type of a gcc2
9291 builtin and then its argument prototype would still apply. */
9292 char $ac_func();
9294 int main() {
9296 /* The GNU C library defines this for functions which it implements
9297 to always fail with ENOSYS. Some functions are actually named
9298 something starting with __ and the normal name is an alias. */
9299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9300 choke me
9301 #else
9302 $ac_func();
9303 #endif
9305 ; return 0; }
9307 if { (eval echo configure:9308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9308 rm -rf conftest*
9309 eval "ac_cv_func_$ac_func=yes"
9310 else
9311 echo "configure: failed program was:" >&5
9312 cat conftest.$ac_ext >&5
9313 rm -rf conftest*
9314 eval "ac_cv_func_$ac_func=no"
9316 rm -f conftest*
9319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9320 echo "$ac_t""yes" 1>&6
9321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9322 cat >> confdefs.h <<EOF
9323 #define $ac_tr_func 1
9326 else
9327 echo "$ac_t""no" 1>&6
9329 done
9331 else
9333 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
9334 echo "configure:9335: checking for _fmodf declaration" >&5
9335 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
9336 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
9337 echo $ac_n "(cached) $ac_c" 1>&6
9338 else
9341 ac_ext=C
9342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9343 ac_cpp='$CXXCPP $CPPFLAGS'
9344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9346 cross_compiling=$ac_cv_prog_cxx_cross
9348 cat > conftest.$ac_ext <<EOF
9349 #line 9350 "configure"
9350 #include "confdefs.h"
9351 #include <math.h>
9352 int main() {
9353 _fmodf(0, 0);
9354 ; return 0; }
9356 if { (eval echo configure:9357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9357 rm -rf conftest*
9358 glibcpp_cv_func__fmodf_use=yes
9359 else
9360 echo "configure: failed program was:" >&5
9361 cat conftest.$ac_ext >&5
9362 rm -rf conftest*
9363 glibcpp_cv_func__fmodf_use=no
9365 rm -f conftest*
9366 ac_ext=c
9367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9368 ac_cpp='$CPP $CPPFLAGS'
9369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9371 cross_compiling=$ac_cv_prog_cc_cross
9377 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
9379 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
9380 for ac_func in _fmodf
9382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9383 echo "configure:9384: checking for $ac_func" >&5
9384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9385 echo $ac_n "(cached) $ac_c" 1>&6
9386 else
9387 cat > conftest.$ac_ext <<EOF
9388 #line 9389 "configure"
9389 #include "confdefs.h"
9390 /* System header to define __stub macros and hopefully few prototypes,
9391 which can conflict with char $ac_func(); below. */
9392 #include <assert.h>
9393 /* Override any gcc2 internal prototype to avoid an error. */
9394 /* We use char because int might match the return type of a gcc2
9395 builtin and then its argument prototype would still apply. */
9396 char $ac_func();
9398 int main() {
9400 /* The GNU C library defines this for functions which it implements
9401 to always fail with ENOSYS. Some functions are actually named
9402 something starting with __ and the normal name is an alias. */
9403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9404 choke me
9405 #else
9406 $ac_func();
9407 #endif
9409 ; return 0; }
9411 if { (eval echo configure:9412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9412 rm -rf conftest*
9413 eval "ac_cv_func_$ac_func=yes"
9414 else
9415 echo "configure: failed program was:" >&5
9416 cat conftest.$ac_ext >&5
9417 rm -rf conftest*
9418 eval "ac_cv_func_$ac_func=no"
9420 rm -f conftest*
9423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9424 echo "$ac_t""yes" 1>&6
9425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9426 cat >> confdefs.h <<EOF
9427 #define $ac_tr_func 1
9430 else
9431 echo "$ac_t""no" 1>&6
9433 done
9440 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
9441 echo "configure:9442: checking for frexpf declaration" >&5
9442 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
9443 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
9444 echo $ac_n "(cached) $ac_c" 1>&6
9445 else
9448 ac_ext=C
9449 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9450 ac_cpp='$CXXCPP $CPPFLAGS'
9451 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9452 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9453 cross_compiling=$ac_cv_prog_cxx_cross
9455 cat > conftest.$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9458 #include <math.h>
9459 int main() {
9460 frexpf(0, 0);
9461 ; return 0; }
9463 if { (eval echo configure:9464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9464 rm -rf conftest*
9465 glibcpp_cv_func_frexpf_use=yes
9466 else
9467 echo "configure: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9469 rm -rf conftest*
9470 glibcpp_cv_func_frexpf_use=no
9472 rm -f conftest*
9473 ac_ext=c
9474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9475 ac_cpp='$CPP $CPPFLAGS'
9476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9478 cross_compiling=$ac_cv_prog_cc_cross
9484 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
9486 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
9487 for ac_func in frexpf
9489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9490 echo "configure:9491: checking for $ac_func" >&5
9491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9493 else
9494 cat > conftest.$ac_ext <<EOF
9495 #line 9496 "configure"
9496 #include "confdefs.h"
9497 /* System header to define __stub macros and hopefully few prototypes,
9498 which can conflict with char $ac_func(); below. */
9499 #include <assert.h>
9500 /* Override any gcc2 internal prototype to avoid an error. */
9501 /* We use char because int might match the return type of a gcc2
9502 builtin and then its argument prototype would still apply. */
9503 char $ac_func();
9505 int main() {
9507 /* The GNU C library defines this for functions which it implements
9508 to always fail with ENOSYS. Some functions are actually named
9509 something starting with __ and the normal name is an alias. */
9510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9511 choke me
9512 #else
9513 $ac_func();
9514 #endif
9516 ; return 0; }
9518 if { (eval echo configure:9519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9519 rm -rf conftest*
9520 eval "ac_cv_func_$ac_func=yes"
9521 else
9522 echo "configure: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9524 rm -rf conftest*
9525 eval "ac_cv_func_$ac_func=no"
9527 rm -f conftest*
9530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9531 echo "$ac_t""yes" 1>&6
9532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9533 cat >> confdefs.h <<EOF
9534 #define $ac_tr_func 1
9537 else
9538 echo "$ac_t""no" 1>&6
9540 done
9542 else
9544 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9545 echo "configure:9546: checking for _frexpf declaration" >&5
9546 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9547 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9548 echo $ac_n "(cached) $ac_c" 1>&6
9549 else
9552 ac_ext=C
9553 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9554 ac_cpp='$CXXCPP $CPPFLAGS'
9555 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9556 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9557 cross_compiling=$ac_cv_prog_cxx_cross
9559 cat > conftest.$ac_ext <<EOF
9560 #line 9561 "configure"
9561 #include "confdefs.h"
9562 #include <math.h>
9563 int main() {
9564 _frexpf(0, 0);
9565 ; return 0; }
9567 if { (eval echo configure:9568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9568 rm -rf conftest*
9569 glibcpp_cv_func__frexpf_use=yes
9570 else
9571 echo "configure: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9573 rm -rf conftest*
9574 glibcpp_cv_func__frexpf_use=no
9576 rm -f conftest*
9577 ac_ext=c
9578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9579 ac_cpp='$CPP $CPPFLAGS'
9580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9582 cross_compiling=$ac_cv_prog_cc_cross
9588 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9590 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9591 for ac_func in _frexpf
9593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9594 echo "configure:9595: checking for $ac_func" >&5
9595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9596 echo $ac_n "(cached) $ac_c" 1>&6
9597 else
9598 cat > conftest.$ac_ext <<EOF
9599 #line 9600 "configure"
9600 #include "confdefs.h"
9601 /* System header to define __stub macros and hopefully few prototypes,
9602 which can conflict with char $ac_func(); below. */
9603 #include <assert.h>
9604 /* Override any gcc2 internal prototype to avoid an error. */
9605 /* We use char because int might match the return type of a gcc2
9606 builtin and then its argument prototype would still apply. */
9607 char $ac_func();
9609 int main() {
9611 /* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9615 choke me
9616 #else
9617 $ac_func();
9618 #endif
9620 ; return 0; }
9622 if { (eval echo configure:9623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9623 rm -rf conftest*
9624 eval "ac_cv_func_$ac_func=yes"
9625 else
9626 echo "configure: failed program was:" >&5
9627 cat conftest.$ac_ext >&5
9628 rm -rf conftest*
9629 eval "ac_cv_func_$ac_func=no"
9631 rm -f conftest*
9634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9635 echo "$ac_t""yes" 1>&6
9636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9637 cat >> confdefs.h <<EOF
9638 #define $ac_tr_func 1
9641 else
9642 echo "$ac_t""no" 1>&6
9644 done
9651 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
9652 echo "configure:9653: checking for hypotf declaration" >&5
9653 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
9654 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
9655 echo $ac_n "(cached) $ac_c" 1>&6
9656 else
9659 ac_ext=C
9660 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9661 ac_cpp='$CXXCPP $CPPFLAGS'
9662 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9663 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9664 cross_compiling=$ac_cv_prog_cxx_cross
9666 cat > conftest.$ac_ext <<EOF
9667 #line 9668 "configure"
9668 #include "confdefs.h"
9669 #include <math.h>
9670 int main() {
9671 hypotf(0, 0);
9672 ; return 0; }
9674 if { (eval echo configure:9675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9675 rm -rf conftest*
9676 glibcpp_cv_func_hypotf_use=yes
9677 else
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9680 rm -rf conftest*
9681 glibcpp_cv_func_hypotf_use=no
9683 rm -f conftest*
9684 ac_ext=c
9685 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9686 ac_cpp='$CPP $CPPFLAGS'
9687 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9688 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9689 cross_compiling=$ac_cv_prog_cc_cross
9695 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
9697 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
9698 for ac_func in hypotf
9700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9701 echo "configure:9702: checking for $ac_func" >&5
9702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9703 echo $ac_n "(cached) $ac_c" 1>&6
9704 else
9705 cat > conftest.$ac_ext <<EOF
9706 #line 9707 "configure"
9707 #include "confdefs.h"
9708 /* System header to define __stub macros and hopefully few prototypes,
9709 which can conflict with char $ac_func(); below. */
9710 #include <assert.h>
9711 /* Override any gcc2 internal prototype to avoid an error. */
9712 /* We use char because int might match the return type of a gcc2
9713 builtin and then its argument prototype would still apply. */
9714 char $ac_func();
9716 int main() {
9718 /* The GNU C library defines this for functions which it implements
9719 to always fail with ENOSYS. Some functions are actually named
9720 something starting with __ and the normal name is an alias. */
9721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9722 choke me
9723 #else
9724 $ac_func();
9725 #endif
9727 ; return 0; }
9729 if { (eval echo configure:9730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9730 rm -rf conftest*
9731 eval "ac_cv_func_$ac_func=yes"
9732 else
9733 echo "configure: failed program was:" >&5
9734 cat conftest.$ac_ext >&5
9735 rm -rf conftest*
9736 eval "ac_cv_func_$ac_func=no"
9738 rm -f conftest*
9741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9742 echo "$ac_t""yes" 1>&6
9743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9744 cat >> confdefs.h <<EOF
9745 #define $ac_tr_func 1
9748 else
9749 echo "$ac_t""no" 1>&6
9751 done
9753 else
9755 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
9756 echo "configure:9757: checking for _hypotf declaration" >&5
9757 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
9758 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
9759 echo $ac_n "(cached) $ac_c" 1>&6
9760 else
9763 ac_ext=C
9764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9765 ac_cpp='$CXXCPP $CPPFLAGS'
9766 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9767 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9768 cross_compiling=$ac_cv_prog_cxx_cross
9770 cat > conftest.$ac_ext <<EOF
9771 #line 9772 "configure"
9772 #include "confdefs.h"
9773 #include <math.h>
9774 int main() {
9775 _hypotf(0, 0);
9776 ; return 0; }
9778 if { (eval echo configure:9779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9779 rm -rf conftest*
9780 glibcpp_cv_func__hypotf_use=yes
9781 else
9782 echo "configure: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9784 rm -rf conftest*
9785 glibcpp_cv_func__hypotf_use=no
9787 rm -f conftest*
9788 ac_ext=c
9789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9790 ac_cpp='$CPP $CPPFLAGS'
9791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9793 cross_compiling=$ac_cv_prog_cc_cross
9799 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
9801 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
9802 for ac_func in _hypotf
9804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9805 echo "configure:9806: checking for $ac_func" >&5
9806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9807 echo $ac_n "(cached) $ac_c" 1>&6
9808 else
9809 cat > conftest.$ac_ext <<EOF
9810 #line 9811 "configure"
9811 #include "confdefs.h"
9812 /* System header to define __stub macros and hopefully few prototypes,
9813 which can conflict with char $ac_func(); below. */
9814 #include <assert.h>
9815 /* Override any gcc2 internal prototype to avoid an error. */
9816 /* We use char because int might match the return type of a gcc2
9817 builtin and then its argument prototype would still apply. */
9818 char $ac_func();
9820 int main() {
9822 /* The GNU C library defines this for functions which it implements
9823 to always fail with ENOSYS. Some functions are actually named
9824 something starting with __ and the normal name is an alias. */
9825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9826 choke me
9827 #else
9828 $ac_func();
9829 #endif
9831 ; return 0; }
9833 if { (eval echo configure:9834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9834 rm -rf conftest*
9835 eval "ac_cv_func_$ac_func=yes"
9836 else
9837 echo "configure: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9839 rm -rf conftest*
9840 eval "ac_cv_func_$ac_func=no"
9842 rm -f conftest*
9845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9846 echo "$ac_t""yes" 1>&6
9847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9848 cat >> confdefs.h <<EOF
9849 #define $ac_tr_func 1
9852 else
9853 echo "$ac_t""no" 1>&6
9855 done
9862 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9863 echo "configure:9864: checking for ldexpf declaration" >&5
9864 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9865 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9867 else
9870 ac_ext=C
9871 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9872 ac_cpp='$CXXCPP $CPPFLAGS'
9873 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9874 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9875 cross_compiling=$ac_cv_prog_cxx_cross
9877 cat > conftest.$ac_ext <<EOF
9878 #line 9879 "configure"
9879 #include "confdefs.h"
9880 #include <math.h>
9881 int main() {
9882 ldexpf(0, 0);
9883 ; return 0; }
9885 if { (eval echo configure:9886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9886 rm -rf conftest*
9887 glibcpp_cv_func_ldexpf_use=yes
9888 else
9889 echo "configure: failed program was:" >&5
9890 cat conftest.$ac_ext >&5
9891 rm -rf conftest*
9892 glibcpp_cv_func_ldexpf_use=no
9894 rm -f conftest*
9895 ac_ext=c
9896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9897 ac_cpp='$CPP $CPPFLAGS'
9898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9900 cross_compiling=$ac_cv_prog_cc_cross
9906 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9908 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9909 for ac_func in ldexpf
9911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9912 echo "configure:9913: checking for $ac_func" >&5
9913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9914 echo $ac_n "(cached) $ac_c" 1>&6
9915 else
9916 cat > conftest.$ac_ext <<EOF
9917 #line 9918 "configure"
9918 #include "confdefs.h"
9919 /* System header to define __stub macros and hopefully few prototypes,
9920 which can conflict with char $ac_func(); below. */
9921 #include <assert.h>
9922 /* Override any gcc2 internal prototype to avoid an error. */
9923 /* We use char because int might match the return type of a gcc2
9924 builtin and then its argument prototype would still apply. */
9925 char $ac_func();
9927 int main() {
9929 /* The GNU C library defines this for functions which it implements
9930 to always fail with ENOSYS. Some functions are actually named
9931 something starting with __ and the normal name is an alias. */
9932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9933 choke me
9934 #else
9935 $ac_func();
9936 #endif
9938 ; return 0; }
9940 if { (eval echo configure:9941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9941 rm -rf conftest*
9942 eval "ac_cv_func_$ac_func=yes"
9943 else
9944 echo "configure: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9946 rm -rf conftest*
9947 eval "ac_cv_func_$ac_func=no"
9949 rm -f conftest*
9952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9953 echo "$ac_t""yes" 1>&6
9954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9955 cat >> confdefs.h <<EOF
9956 #define $ac_tr_func 1
9959 else
9960 echo "$ac_t""no" 1>&6
9962 done
9964 else
9966 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9967 echo "configure:9968: checking for _ldexpf declaration" >&5
9968 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9969 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9970 echo $ac_n "(cached) $ac_c" 1>&6
9971 else
9974 ac_ext=C
9975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9976 ac_cpp='$CXXCPP $CPPFLAGS'
9977 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9978 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9979 cross_compiling=$ac_cv_prog_cxx_cross
9981 cat > conftest.$ac_ext <<EOF
9982 #line 9983 "configure"
9983 #include "confdefs.h"
9984 #include <math.h>
9985 int main() {
9986 _ldexpf(0, 0);
9987 ; return 0; }
9989 if { (eval echo configure:9990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9990 rm -rf conftest*
9991 glibcpp_cv_func__ldexpf_use=yes
9992 else
9993 echo "configure: failed program was:" >&5
9994 cat conftest.$ac_ext >&5
9995 rm -rf conftest*
9996 glibcpp_cv_func__ldexpf_use=no
9998 rm -f conftest*
9999 ac_ext=c
10000 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10001 ac_cpp='$CPP $CPPFLAGS'
10002 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10003 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10004 cross_compiling=$ac_cv_prog_cc_cross
10010 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
10012 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
10013 for ac_func in _ldexpf
10015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10016 echo "configure:10017: checking for $ac_func" >&5
10017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10018 echo $ac_n "(cached) $ac_c" 1>&6
10019 else
10020 cat > conftest.$ac_ext <<EOF
10021 #line 10022 "configure"
10022 #include "confdefs.h"
10023 /* System header to define __stub macros and hopefully few prototypes,
10024 which can conflict with char $ac_func(); below. */
10025 #include <assert.h>
10026 /* Override any gcc2 internal prototype to avoid an error. */
10027 /* We use char because int might match the return type of a gcc2
10028 builtin and then its argument prototype would still apply. */
10029 char $ac_func();
10031 int main() {
10033 /* The GNU C library defines this for functions which it implements
10034 to always fail with ENOSYS. Some functions are actually named
10035 something starting with __ and the normal name is an alias. */
10036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10037 choke me
10038 #else
10039 $ac_func();
10040 #endif
10042 ; return 0; }
10044 if { (eval echo configure:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10045 rm -rf conftest*
10046 eval "ac_cv_func_$ac_func=yes"
10047 else
10048 echo "configure: failed program was:" >&5
10049 cat conftest.$ac_ext >&5
10050 rm -rf conftest*
10051 eval "ac_cv_func_$ac_func=no"
10053 rm -f conftest*
10056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10057 echo "$ac_t""yes" 1>&6
10058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10059 cat >> confdefs.h <<EOF
10060 #define $ac_tr_func 1
10063 else
10064 echo "$ac_t""no" 1>&6
10066 done
10073 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
10074 echo "configure:10075: checking for logf declaration" >&5
10075 if test x${glibcpp_cv_func_logf_use+set} != xset; then
10076 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
10077 echo $ac_n "(cached) $ac_c" 1>&6
10078 else
10081 ac_ext=C
10082 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10083 ac_cpp='$CXXCPP $CPPFLAGS'
10084 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10085 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10086 cross_compiling=$ac_cv_prog_cxx_cross
10088 cat > conftest.$ac_ext <<EOF
10089 #line 10090 "configure"
10090 #include "confdefs.h"
10091 #include <math.h>
10092 #ifdef HAVE_IEEEFP_H
10093 #include <ieeefp.h>
10094 #endif
10096 int main() {
10097 logf(0);
10098 ; return 0; }
10100 if { (eval echo configure:10101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10101 rm -rf conftest*
10102 glibcpp_cv_func_logf_use=yes
10103 else
10104 echo "configure: failed program was:" >&5
10105 cat conftest.$ac_ext >&5
10106 rm -rf conftest*
10107 glibcpp_cv_func_logf_use=no
10109 rm -f conftest*
10110 ac_ext=c
10111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10112 ac_cpp='$CPP $CPPFLAGS'
10113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10114 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10115 cross_compiling=$ac_cv_prog_cc_cross
10121 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
10123 if test x$glibcpp_cv_func_logf_use = x"yes"; then
10124 for ac_func in logf
10126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10127 echo "configure:10128: checking for $ac_func" >&5
10128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10129 echo $ac_n "(cached) $ac_c" 1>&6
10130 else
10131 cat > conftest.$ac_ext <<EOF
10132 #line 10133 "configure"
10133 #include "confdefs.h"
10134 /* System header to define __stub macros and hopefully few prototypes,
10135 which can conflict with char $ac_func(); below. */
10136 #include <assert.h>
10137 /* Override any gcc2 internal prototype to avoid an error. */
10138 /* We use char because int might match the return type of a gcc2
10139 builtin and then its argument prototype would still apply. */
10140 char $ac_func();
10142 int main() {
10144 /* The GNU C library defines this for functions which it implements
10145 to always fail with ENOSYS. Some functions are actually named
10146 something starting with __ and the normal name is an alias. */
10147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10148 choke me
10149 #else
10150 $ac_func();
10151 #endif
10153 ; return 0; }
10155 if { (eval echo configure:10156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10156 rm -rf conftest*
10157 eval "ac_cv_func_$ac_func=yes"
10158 else
10159 echo "configure: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10161 rm -rf conftest*
10162 eval "ac_cv_func_$ac_func=no"
10164 rm -f conftest*
10167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10168 echo "$ac_t""yes" 1>&6
10169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10170 cat >> confdefs.h <<EOF
10171 #define $ac_tr_func 1
10174 else
10175 echo "$ac_t""no" 1>&6
10177 done
10179 else
10181 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
10182 echo "configure:10183: checking for _logf declaration" >&5
10183 if test x${glibcpp_cv_func__logf_use+set} != xset; then
10184 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
10185 echo $ac_n "(cached) $ac_c" 1>&6
10186 else
10189 ac_ext=C
10190 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10191 ac_cpp='$CXXCPP $CPPFLAGS'
10192 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10193 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10194 cross_compiling=$ac_cv_prog_cxx_cross
10196 cat > conftest.$ac_ext <<EOF
10197 #line 10198 "configure"
10198 #include "confdefs.h"
10199 #include <math.h>
10200 #ifdef HAVE_IEEEFP_H
10201 #include <ieeefp.h>
10202 #endif
10204 int main() {
10205 _logf(0);
10206 ; return 0; }
10208 if { (eval echo configure:10209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10209 rm -rf conftest*
10210 glibcpp_cv_func__logf_use=yes
10211 else
10212 echo "configure: failed program was:" >&5
10213 cat conftest.$ac_ext >&5
10214 rm -rf conftest*
10215 glibcpp_cv_func__logf_use=no
10217 rm -f conftest*
10218 ac_ext=c
10219 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10220 ac_cpp='$CPP $CPPFLAGS'
10221 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10222 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10223 cross_compiling=$ac_cv_prog_cc_cross
10229 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
10231 if test x$glibcpp_cv_func__logf_use = x"yes"; then
10232 for ac_func in _logf
10234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10235 echo "configure:10236: checking for $ac_func" >&5
10236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10237 echo $ac_n "(cached) $ac_c" 1>&6
10238 else
10239 cat > conftest.$ac_ext <<EOF
10240 #line 10241 "configure"
10241 #include "confdefs.h"
10242 /* System header to define __stub macros and hopefully few prototypes,
10243 which can conflict with char $ac_func(); below. */
10244 #include <assert.h>
10245 /* Override any gcc2 internal prototype to avoid an error. */
10246 /* We use char because int might match the return type of a gcc2
10247 builtin and then its argument prototype would still apply. */
10248 char $ac_func();
10250 int main() {
10252 /* The GNU C library defines this for functions which it implements
10253 to always fail with ENOSYS. Some functions are actually named
10254 something starting with __ and the normal name is an alias. */
10255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10256 choke me
10257 #else
10258 $ac_func();
10259 #endif
10261 ; return 0; }
10263 if { (eval echo configure:10264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10264 rm -rf conftest*
10265 eval "ac_cv_func_$ac_func=yes"
10266 else
10267 echo "configure: failed program was:" >&5
10268 cat conftest.$ac_ext >&5
10269 rm -rf conftest*
10270 eval "ac_cv_func_$ac_func=no"
10272 rm -f conftest*
10275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10276 echo "$ac_t""yes" 1>&6
10277 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10278 cat >> confdefs.h <<EOF
10279 #define $ac_tr_func 1
10282 else
10283 echo "$ac_t""no" 1>&6
10285 done
10292 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
10293 echo "configure:10294: checking for log10f declaration" >&5
10294 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
10295 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
10296 echo $ac_n "(cached) $ac_c" 1>&6
10297 else
10300 ac_ext=C
10301 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10302 ac_cpp='$CXXCPP $CPPFLAGS'
10303 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10304 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10305 cross_compiling=$ac_cv_prog_cxx_cross
10307 cat > conftest.$ac_ext <<EOF
10308 #line 10309 "configure"
10309 #include "confdefs.h"
10310 #include <math.h>
10311 #ifdef HAVE_IEEEFP_H
10312 #include <ieeefp.h>
10313 #endif
10315 int main() {
10316 log10f(0);
10317 ; return 0; }
10319 if { (eval echo configure:10320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10320 rm -rf conftest*
10321 glibcpp_cv_func_log10f_use=yes
10322 else
10323 echo "configure: failed program was:" >&5
10324 cat conftest.$ac_ext >&5
10325 rm -rf conftest*
10326 glibcpp_cv_func_log10f_use=no
10328 rm -f conftest*
10329 ac_ext=c
10330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10331 ac_cpp='$CPP $CPPFLAGS'
10332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10334 cross_compiling=$ac_cv_prog_cc_cross
10340 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
10342 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
10343 for ac_func in log10f
10345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10346 echo "configure:10347: checking for $ac_func" >&5
10347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10348 echo $ac_n "(cached) $ac_c" 1>&6
10349 else
10350 cat > conftest.$ac_ext <<EOF
10351 #line 10352 "configure"
10352 #include "confdefs.h"
10353 /* System header to define __stub macros and hopefully few prototypes,
10354 which can conflict with char $ac_func(); below. */
10355 #include <assert.h>
10356 /* Override any gcc2 internal prototype to avoid an error. */
10357 /* We use char because int might match the return type of a gcc2
10358 builtin and then its argument prototype would still apply. */
10359 char $ac_func();
10361 int main() {
10363 /* The GNU C library defines this for functions which it implements
10364 to always fail with ENOSYS. Some functions are actually named
10365 something starting with __ and the normal name is an alias. */
10366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10367 choke me
10368 #else
10369 $ac_func();
10370 #endif
10372 ; return 0; }
10374 if { (eval echo configure:10375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10375 rm -rf conftest*
10376 eval "ac_cv_func_$ac_func=yes"
10377 else
10378 echo "configure: failed program was:" >&5
10379 cat conftest.$ac_ext >&5
10380 rm -rf conftest*
10381 eval "ac_cv_func_$ac_func=no"
10383 rm -f conftest*
10386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10387 echo "$ac_t""yes" 1>&6
10388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10389 cat >> confdefs.h <<EOF
10390 #define $ac_tr_func 1
10393 else
10394 echo "$ac_t""no" 1>&6
10396 done
10398 else
10400 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
10401 echo "configure:10402: checking for _log10f declaration" >&5
10402 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
10403 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
10404 echo $ac_n "(cached) $ac_c" 1>&6
10405 else
10408 ac_ext=C
10409 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10410 ac_cpp='$CXXCPP $CPPFLAGS'
10411 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10412 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10413 cross_compiling=$ac_cv_prog_cxx_cross
10415 cat > conftest.$ac_ext <<EOF
10416 #line 10417 "configure"
10417 #include "confdefs.h"
10418 #include <math.h>
10419 #ifdef HAVE_IEEEFP_H
10420 #include <ieeefp.h>
10421 #endif
10423 int main() {
10424 _log10f(0);
10425 ; return 0; }
10427 if { (eval echo configure:10428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10428 rm -rf conftest*
10429 glibcpp_cv_func__log10f_use=yes
10430 else
10431 echo "configure: failed program was:" >&5
10432 cat conftest.$ac_ext >&5
10433 rm -rf conftest*
10434 glibcpp_cv_func__log10f_use=no
10436 rm -f conftest*
10437 ac_ext=c
10438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10439 ac_cpp='$CPP $CPPFLAGS'
10440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10442 cross_compiling=$ac_cv_prog_cc_cross
10448 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
10450 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
10451 for ac_func in _log10f
10453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10454 echo "configure:10455: checking for $ac_func" >&5
10455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10456 echo $ac_n "(cached) $ac_c" 1>&6
10457 else
10458 cat > conftest.$ac_ext <<EOF
10459 #line 10460 "configure"
10460 #include "confdefs.h"
10461 /* System header to define __stub macros and hopefully few prototypes,
10462 which can conflict with char $ac_func(); below. */
10463 #include <assert.h>
10464 /* Override any gcc2 internal prototype to avoid an error. */
10465 /* We use char because int might match the return type of a gcc2
10466 builtin and then its argument prototype would still apply. */
10467 char $ac_func();
10469 int main() {
10471 /* The GNU C library defines this for functions which it implements
10472 to always fail with ENOSYS. Some functions are actually named
10473 something starting with __ and the normal name is an alias. */
10474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10475 choke me
10476 #else
10477 $ac_func();
10478 #endif
10480 ; return 0; }
10482 if { (eval echo configure:10483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10483 rm -rf conftest*
10484 eval "ac_cv_func_$ac_func=yes"
10485 else
10486 echo "configure: failed program was:" >&5
10487 cat conftest.$ac_ext >&5
10488 rm -rf conftest*
10489 eval "ac_cv_func_$ac_func=no"
10491 rm -f conftest*
10494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10495 echo "$ac_t""yes" 1>&6
10496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10497 cat >> confdefs.h <<EOF
10498 #define $ac_tr_func 1
10501 else
10502 echo "$ac_t""no" 1>&6
10504 done
10511 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
10512 echo "configure:10513: checking for modff declaration" >&5
10513 if test x${glibcpp_cv_func_modff_use+set} != xset; then
10514 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
10515 echo $ac_n "(cached) $ac_c" 1>&6
10516 else
10519 ac_ext=C
10520 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10521 ac_cpp='$CXXCPP $CPPFLAGS'
10522 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10523 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10524 cross_compiling=$ac_cv_prog_cxx_cross
10526 cat > conftest.$ac_ext <<EOF
10527 #line 10528 "configure"
10528 #include "confdefs.h"
10529 #include <math.h>
10530 int main() {
10531 modff(0, 0);
10532 ; return 0; }
10534 if { (eval echo configure:10535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10535 rm -rf conftest*
10536 glibcpp_cv_func_modff_use=yes
10537 else
10538 echo "configure: failed program was:" >&5
10539 cat conftest.$ac_ext >&5
10540 rm -rf conftest*
10541 glibcpp_cv_func_modff_use=no
10543 rm -f conftest*
10544 ac_ext=c
10545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10546 ac_cpp='$CPP $CPPFLAGS'
10547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10549 cross_compiling=$ac_cv_prog_cc_cross
10555 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
10557 if test x$glibcpp_cv_func_modff_use = x"yes"; then
10558 for ac_func in modff
10560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10561 echo "configure:10562: checking for $ac_func" >&5
10562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10563 echo $ac_n "(cached) $ac_c" 1>&6
10564 else
10565 cat > conftest.$ac_ext <<EOF
10566 #line 10567 "configure"
10567 #include "confdefs.h"
10568 /* System header to define __stub macros and hopefully few prototypes,
10569 which can conflict with char $ac_func(); below. */
10570 #include <assert.h>
10571 /* Override any gcc2 internal prototype to avoid an error. */
10572 /* We use char because int might match the return type of a gcc2
10573 builtin and then its argument prototype would still apply. */
10574 char $ac_func();
10576 int main() {
10578 /* The GNU C library defines this for functions which it implements
10579 to always fail with ENOSYS. Some functions are actually named
10580 something starting with __ and the normal name is an alias. */
10581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10582 choke me
10583 #else
10584 $ac_func();
10585 #endif
10587 ; return 0; }
10589 if { (eval echo configure:10590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10590 rm -rf conftest*
10591 eval "ac_cv_func_$ac_func=yes"
10592 else
10593 echo "configure: failed program was:" >&5
10594 cat conftest.$ac_ext >&5
10595 rm -rf conftest*
10596 eval "ac_cv_func_$ac_func=no"
10598 rm -f conftest*
10601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10602 echo "$ac_t""yes" 1>&6
10603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10604 cat >> confdefs.h <<EOF
10605 #define $ac_tr_func 1
10608 else
10609 echo "$ac_t""no" 1>&6
10611 done
10613 else
10615 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
10616 echo "configure:10617: checking for _modff declaration" >&5
10617 if test x${glibcpp_cv_func__modff_use+set} != xset; then
10618 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
10619 echo $ac_n "(cached) $ac_c" 1>&6
10620 else
10623 ac_ext=C
10624 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10625 ac_cpp='$CXXCPP $CPPFLAGS'
10626 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10627 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10628 cross_compiling=$ac_cv_prog_cxx_cross
10630 cat > conftest.$ac_ext <<EOF
10631 #line 10632 "configure"
10632 #include "confdefs.h"
10633 #include <math.h>
10634 int main() {
10635 _modff(0, 0);
10636 ; return 0; }
10638 if { (eval echo configure:10639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10639 rm -rf conftest*
10640 glibcpp_cv_func__modff_use=yes
10641 else
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10644 rm -rf conftest*
10645 glibcpp_cv_func__modff_use=no
10647 rm -f conftest*
10648 ac_ext=c
10649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10650 ac_cpp='$CPP $CPPFLAGS'
10651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10653 cross_compiling=$ac_cv_prog_cc_cross
10659 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
10661 if test x$glibcpp_cv_func__modff_use = x"yes"; then
10662 for ac_func in _modff
10664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10665 echo "configure:10666: checking for $ac_func" >&5
10666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10667 echo $ac_n "(cached) $ac_c" 1>&6
10668 else
10669 cat > conftest.$ac_ext <<EOF
10670 #line 10671 "configure"
10671 #include "confdefs.h"
10672 /* System header to define __stub macros and hopefully few prototypes,
10673 which can conflict with char $ac_func(); below. */
10674 #include <assert.h>
10675 /* Override any gcc2 internal prototype to avoid an error. */
10676 /* We use char because int might match the return type of a gcc2
10677 builtin and then its argument prototype would still apply. */
10678 char $ac_func();
10680 int main() {
10682 /* The GNU C library defines this for functions which it implements
10683 to always fail with ENOSYS. Some functions are actually named
10684 something starting with __ and the normal name is an alias. */
10685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10686 choke me
10687 #else
10688 $ac_func();
10689 #endif
10691 ; return 0; }
10693 if { (eval echo configure:10694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10694 rm -rf conftest*
10695 eval "ac_cv_func_$ac_func=yes"
10696 else
10697 echo "configure: failed program was:" >&5
10698 cat conftest.$ac_ext >&5
10699 rm -rf conftest*
10700 eval "ac_cv_func_$ac_func=no"
10702 rm -f conftest*
10705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10706 echo "$ac_t""yes" 1>&6
10707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10708 cat >> confdefs.h <<EOF
10709 #define $ac_tr_func 1
10712 else
10713 echo "$ac_t""no" 1>&6
10715 done
10722 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10723 echo "configure:10724: checking for powf declaration" >&5
10724 if test x${glibcpp_cv_func_powf_use+set} != xset; then
10725 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10726 echo $ac_n "(cached) $ac_c" 1>&6
10727 else
10730 ac_ext=C
10731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10732 ac_cpp='$CXXCPP $CPPFLAGS'
10733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10735 cross_compiling=$ac_cv_prog_cxx_cross
10737 cat > conftest.$ac_ext <<EOF
10738 #line 10739 "configure"
10739 #include "confdefs.h"
10740 #include <math.h>
10741 int main() {
10742 powf(0, 0);
10743 ; return 0; }
10745 if { (eval echo configure:10746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10746 rm -rf conftest*
10747 glibcpp_cv_func_powf_use=yes
10748 else
10749 echo "configure: failed program was:" >&5
10750 cat conftest.$ac_ext >&5
10751 rm -rf conftest*
10752 glibcpp_cv_func_powf_use=no
10754 rm -f conftest*
10755 ac_ext=c
10756 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10757 ac_cpp='$CPP $CPPFLAGS'
10758 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10759 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10760 cross_compiling=$ac_cv_prog_cc_cross
10766 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10768 if test x$glibcpp_cv_func_powf_use = x"yes"; then
10769 for ac_func in powf
10771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10772 echo "configure:10773: checking for $ac_func" >&5
10773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10774 echo $ac_n "(cached) $ac_c" 1>&6
10775 else
10776 cat > conftest.$ac_ext <<EOF
10777 #line 10778 "configure"
10778 #include "confdefs.h"
10779 /* System header to define __stub macros and hopefully few prototypes,
10780 which can conflict with char $ac_func(); below. */
10781 #include <assert.h>
10782 /* Override any gcc2 internal prototype to avoid an error. */
10783 /* We use char because int might match the return type of a gcc2
10784 builtin and then its argument prototype would still apply. */
10785 char $ac_func();
10787 int main() {
10789 /* The GNU C library defines this for functions which it implements
10790 to always fail with ENOSYS. Some functions are actually named
10791 something starting with __ and the normal name is an alias. */
10792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10793 choke me
10794 #else
10795 $ac_func();
10796 #endif
10798 ; return 0; }
10800 if { (eval echo configure:10801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10801 rm -rf conftest*
10802 eval "ac_cv_func_$ac_func=yes"
10803 else
10804 echo "configure: failed program was:" >&5
10805 cat conftest.$ac_ext >&5
10806 rm -rf conftest*
10807 eval "ac_cv_func_$ac_func=no"
10809 rm -f conftest*
10812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10813 echo "$ac_t""yes" 1>&6
10814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10815 cat >> confdefs.h <<EOF
10816 #define $ac_tr_func 1
10819 else
10820 echo "$ac_t""no" 1>&6
10822 done
10824 else
10826 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10827 echo "configure:10828: checking for _powf declaration" >&5
10828 if test x${glibcpp_cv_func__powf_use+set} != xset; then
10829 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10830 echo $ac_n "(cached) $ac_c" 1>&6
10831 else
10834 ac_ext=C
10835 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10836 ac_cpp='$CXXCPP $CPPFLAGS'
10837 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10838 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10839 cross_compiling=$ac_cv_prog_cxx_cross
10841 cat > conftest.$ac_ext <<EOF
10842 #line 10843 "configure"
10843 #include "confdefs.h"
10844 #include <math.h>
10845 int main() {
10846 _powf(0, 0);
10847 ; return 0; }
10849 if { (eval echo configure:10850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10850 rm -rf conftest*
10851 glibcpp_cv_func__powf_use=yes
10852 else
10853 echo "configure: failed program was:" >&5
10854 cat conftest.$ac_ext >&5
10855 rm -rf conftest*
10856 glibcpp_cv_func__powf_use=no
10858 rm -f conftest*
10859 ac_ext=c
10860 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10861 ac_cpp='$CPP $CPPFLAGS'
10862 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10863 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10864 cross_compiling=$ac_cv_prog_cc_cross
10870 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10872 if test x$glibcpp_cv_func__powf_use = x"yes"; then
10873 for ac_func in _powf
10875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10876 echo "configure:10877: checking for $ac_func" >&5
10877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10878 echo $ac_n "(cached) $ac_c" 1>&6
10879 else
10880 cat > conftest.$ac_ext <<EOF
10881 #line 10882 "configure"
10882 #include "confdefs.h"
10883 /* System header to define __stub macros and hopefully few prototypes,
10884 which can conflict with char $ac_func(); below. */
10885 #include <assert.h>
10886 /* Override any gcc2 internal prototype to avoid an error. */
10887 /* We use char because int might match the return type of a gcc2
10888 builtin and then its argument prototype would still apply. */
10889 char $ac_func();
10891 int main() {
10893 /* The GNU C library defines this for functions which it implements
10894 to always fail with ENOSYS. Some functions are actually named
10895 something starting with __ and the normal name is an alias. */
10896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10897 choke me
10898 #else
10899 $ac_func();
10900 #endif
10902 ; return 0; }
10904 if { (eval echo configure:10905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10905 rm -rf conftest*
10906 eval "ac_cv_func_$ac_func=yes"
10907 else
10908 echo "configure: failed program was:" >&5
10909 cat conftest.$ac_ext >&5
10910 rm -rf conftest*
10911 eval "ac_cv_func_$ac_func=no"
10913 rm -f conftest*
10916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10917 echo "$ac_t""yes" 1>&6
10918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10919 cat >> confdefs.h <<EOF
10920 #define $ac_tr_func 1
10923 else
10924 echo "$ac_t""no" 1>&6
10926 done
10933 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10934 echo "configure:10935: checking for sqrtf declaration" >&5
10935 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10936 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10937 echo $ac_n "(cached) $ac_c" 1>&6
10938 else
10941 ac_ext=C
10942 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10943 ac_cpp='$CXXCPP $CPPFLAGS'
10944 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10945 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10946 cross_compiling=$ac_cv_prog_cxx_cross
10948 cat > conftest.$ac_ext <<EOF
10949 #line 10950 "configure"
10950 #include "confdefs.h"
10951 #include <math.h>
10952 #ifdef HAVE_IEEEFP_H
10953 #include <ieeefp.h>
10954 #endif
10956 int main() {
10957 sqrtf(0);
10958 ; return 0; }
10960 if { (eval echo configure:10961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10961 rm -rf conftest*
10962 glibcpp_cv_func_sqrtf_use=yes
10963 else
10964 echo "configure: failed program was:" >&5
10965 cat conftest.$ac_ext >&5
10966 rm -rf conftest*
10967 glibcpp_cv_func_sqrtf_use=no
10969 rm -f conftest*
10970 ac_ext=c
10971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10972 ac_cpp='$CPP $CPPFLAGS'
10973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10975 cross_compiling=$ac_cv_prog_cc_cross
10981 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10983 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10984 for ac_func in sqrtf
10986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10987 echo "configure:10988: checking for $ac_func" >&5
10988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10989 echo $ac_n "(cached) $ac_c" 1>&6
10990 else
10991 cat > conftest.$ac_ext <<EOF
10992 #line 10993 "configure"
10993 #include "confdefs.h"
10994 /* System header to define __stub macros and hopefully few prototypes,
10995 which can conflict with char $ac_func(); below. */
10996 #include <assert.h>
10997 /* Override any gcc2 internal prototype to avoid an error. */
10998 /* We use char because int might match the return type of a gcc2
10999 builtin and then its argument prototype would still apply. */
11000 char $ac_func();
11002 int main() {
11004 /* The GNU C library defines this for functions which it implements
11005 to always fail with ENOSYS. Some functions are actually named
11006 something starting with __ and the normal name is an alias. */
11007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11008 choke me
11009 #else
11010 $ac_func();
11011 #endif
11013 ; return 0; }
11015 if { (eval echo configure:11016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11016 rm -rf conftest*
11017 eval "ac_cv_func_$ac_func=yes"
11018 else
11019 echo "configure: failed program was:" >&5
11020 cat conftest.$ac_ext >&5
11021 rm -rf conftest*
11022 eval "ac_cv_func_$ac_func=no"
11024 rm -f conftest*
11027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11028 echo "$ac_t""yes" 1>&6
11029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11030 cat >> confdefs.h <<EOF
11031 #define $ac_tr_func 1
11034 else
11035 echo "$ac_t""no" 1>&6
11037 done
11039 else
11041 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
11042 echo "configure:11043: checking for _sqrtf declaration" >&5
11043 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
11044 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
11045 echo $ac_n "(cached) $ac_c" 1>&6
11046 else
11049 ac_ext=C
11050 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11051 ac_cpp='$CXXCPP $CPPFLAGS'
11052 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11053 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11054 cross_compiling=$ac_cv_prog_cxx_cross
11056 cat > conftest.$ac_ext <<EOF
11057 #line 11058 "configure"
11058 #include "confdefs.h"
11059 #include <math.h>
11060 #ifdef HAVE_IEEEFP_H
11061 #include <ieeefp.h>
11062 #endif
11064 int main() {
11065 _sqrtf(0);
11066 ; return 0; }
11068 if { (eval echo configure:11069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11069 rm -rf conftest*
11070 glibcpp_cv_func__sqrtf_use=yes
11071 else
11072 echo "configure: failed program was:" >&5
11073 cat conftest.$ac_ext >&5
11074 rm -rf conftest*
11075 glibcpp_cv_func__sqrtf_use=no
11077 rm -f conftest*
11078 ac_ext=c
11079 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11080 ac_cpp='$CPP $CPPFLAGS'
11081 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11082 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11083 cross_compiling=$ac_cv_prog_cc_cross
11089 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
11091 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
11092 for ac_func in _sqrtf
11094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11095 echo "configure:11096: checking for $ac_func" >&5
11096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11097 echo $ac_n "(cached) $ac_c" 1>&6
11098 else
11099 cat > conftest.$ac_ext <<EOF
11100 #line 11101 "configure"
11101 #include "confdefs.h"
11102 /* System header to define __stub macros and hopefully few prototypes,
11103 which can conflict with char $ac_func(); below. */
11104 #include <assert.h>
11105 /* Override any gcc2 internal prototype to avoid an error. */
11106 /* We use char because int might match the return type of a gcc2
11107 builtin and then its argument prototype would still apply. */
11108 char $ac_func();
11110 int main() {
11112 /* The GNU C library defines this for functions which it implements
11113 to always fail with ENOSYS. Some functions are actually named
11114 something starting with __ and the normal name is an alias. */
11115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11116 choke me
11117 #else
11118 $ac_func();
11119 #endif
11121 ; return 0; }
11123 if { (eval echo configure:11124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11124 rm -rf conftest*
11125 eval "ac_cv_func_$ac_func=yes"
11126 else
11127 echo "configure: failed program was:" >&5
11128 cat conftest.$ac_ext >&5
11129 rm -rf conftest*
11130 eval "ac_cv_func_$ac_func=no"
11132 rm -f conftest*
11135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11136 echo "$ac_t""yes" 1>&6
11137 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11138 cat >> confdefs.h <<EOF
11139 #define $ac_tr_func 1
11142 else
11143 echo "$ac_t""no" 1>&6
11145 done
11152 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
11153 echo "configure:11154: checking for sincosf declaration" >&5
11154 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
11155 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
11156 echo $ac_n "(cached) $ac_c" 1>&6
11157 else
11160 ac_ext=C
11161 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11162 ac_cpp='$CXXCPP $CPPFLAGS'
11163 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11164 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11165 cross_compiling=$ac_cv_prog_cxx_cross
11167 cat > conftest.$ac_ext <<EOF
11168 #line 11169 "configure"
11169 #include "confdefs.h"
11170 #include <math.h>
11171 int main() {
11172 sincosf(0, 0, 0);
11173 ; return 0; }
11175 if { (eval echo configure:11176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11176 rm -rf conftest*
11177 glibcpp_cv_func_sincosf_use=yes
11178 else
11179 echo "configure: failed program was:" >&5
11180 cat conftest.$ac_ext >&5
11181 rm -rf conftest*
11182 glibcpp_cv_func_sincosf_use=no
11184 rm -f conftest*
11185 ac_ext=c
11186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11187 ac_cpp='$CPP $CPPFLAGS'
11188 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11189 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11190 cross_compiling=$ac_cv_prog_cc_cross
11196 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
11198 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
11199 for ac_func in sincosf
11201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11202 echo "configure:11203: checking for $ac_func" >&5
11203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11204 echo $ac_n "(cached) $ac_c" 1>&6
11205 else
11206 cat > conftest.$ac_ext <<EOF
11207 #line 11208 "configure"
11208 #include "confdefs.h"
11209 /* System header to define __stub macros and hopefully few prototypes,
11210 which can conflict with char $ac_func(); below. */
11211 #include <assert.h>
11212 /* Override any gcc2 internal prototype to avoid an error. */
11213 /* We use char because int might match the return type of a gcc2
11214 builtin and then its argument prototype would still apply. */
11215 char $ac_func();
11217 int main() {
11219 /* The GNU C library defines this for functions which it implements
11220 to always fail with ENOSYS. Some functions are actually named
11221 something starting with __ and the normal name is an alias. */
11222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11223 choke me
11224 #else
11225 $ac_func();
11226 #endif
11228 ; return 0; }
11230 if { (eval echo configure:11231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11231 rm -rf conftest*
11232 eval "ac_cv_func_$ac_func=yes"
11233 else
11234 echo "configure: failed program was:" >&5
11235 cat conftest.$ac_ext >&5
11236 rm -rf conftest*
11237 eval "ac_cv_func_$ac_func=no"
11239 rm -f conftest*
11242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11243 echo "$ac_t""yes" 1>&6
11244 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11245 cat >> confdefs.h <<EOF
11246 #define $ac_tr_func 1
11249 else
11250 echo "$ac_t""no" 1>&6
11252 done
11254 else
11256 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
11257 echo "configure:11258: checking for _sincosf declaration" >&5
11258 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
11259 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
11260 echo $ac_n "(cached) $ac_c" 1>&6
11261 else
11264 ac_ext=C
11265 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11266 ac_cpp='$CXXCPP $CPPFLAGS'
11267 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11268 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11269 cross_compiling=$ac_cv_prog_cxx_cross
11271 cat > conftest.$ac_ext <<EOF
11272 #line 11273 "configure"
11273 #include "confdefs.h"
11274 #include <math.h>
11275 int main() {
11276 _sincosf(0, 0, 0);
11277 ; return 0; }
11279 if { (eval echo configure:11280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11280 rm -rf conftest*
11281 glibcpp_cv_func__sincosf_use=yes
11282 else
11283 echo "configure: failed program was:" >&5
11284 cat conftest.$ac_ext >&5
11285 rm -rf conftest*
11286 glibcpp_cv_func__sincosf_use=no
11288 rm -f conftest*
11289 ac_ext=c
11290 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11291 ac_cpp='$CPP $CPPFLAGS'
11292 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11293 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11294 cross_compiling=$ac_cv_prog_cc_cross
11300 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
11302 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
11303 for ac_func in _sincosf
11305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11306 echo "configure:11307: checking for $ac_func" >&5
11307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11308 echo $ac_n "(cached) $ac_c" 1>&6
11309 else
11310 cat > conftest.$ac_ext <<EOF
11311 #line 11312 "configure"
11312 #include "confdefs.h"
11313 /* System header to define __stub macros and hopefully few prototypes,
11314 which can conflict with char $ac_func(); below. */
11315 #include <assert.h>
11316 /* Override any gcc2 internal prototype to avoid an error. */
11317 /* We use char because int might match the return type of a gcc2
11318 builtin and then its argument prototype would still apply. */
11319 char $ac_func();
11321 int main() {
11323 /* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11327 choke me
11328 #else
11329 $ac_func();
11330 #endif
11332 ; return 0; }
11334 if { (eval echo configure:11335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11335 rm -rf conftest*
11336 eval "ac_cv_func_$ac_func=yes"
11337 else
11338 echo "configure: failed program was:" >&5
11339 cat conftest.$ac_ext >&5
11340 rm -rf conftest*
11341 eval "ac_cv_func_$ac_func=no"
11343 rm -f conftest*
11346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11347 echo "$ac_t""yes" 1>&6
11348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11349 cat >> confdefs.h <<EOF
11350 #define $ac_tr_func 1
11353 else
11354 echo "$ac_t""no" 1>&6
11356 done
11363 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
11364 echo "configure:11365: checking for finitef declaration" >&5
11365 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
11366 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
11367 echo $ac_n "(cached) $ac_c" 1>&6
11368 else
11371 ac_ext=C
11372 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11373 ac_cpp='$CXXCPP $CPPFLAGS'
11374 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11375 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11376 cross_compiling=$ac_cv_prog_cxx_cross
11378 cat > conftest.$ac_ext <<EOF
11379 #line 11380 "configure"
11380 #include "confdefs.h"
11381 #include <math.h>
11382 #ifdef HAVE_IEEEFP_H
11383 #include <ieeefp.h>
11384 #endif
11386 int main() {
11387 finitef(0);
11388 ; return 0; }
11390 if { (eval echo configure:11391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11391 rm -rf conftest*
11392 glibcpp_cv_func_finitef_use=yes
11393 else
11394 echo "configure: failed program was:" >&5
11395 cat conftest.$ac_ext >&5
11396 rm -rf conftest*
11397 glibcpp_cv_func_finitef_use=no
11399 rm -f conftest*
11400 ac_ext=c
11401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11402 ac_cpp='$CPP $CPPFLAGS'
11403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11405 cross_compiling=$ac_cv_prog_cc_cross
11411 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
11413 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
11414 for ac_func in finitef
11416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11417 echo "configure:11418: checking for $ac_func" >&5
11418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11419 echo $ac_n "(cached) $ac_c" 1>&6
11420 else
11421 cat > conftest.$ac_ext <<EOF
11422 #line 11423 "configure"
11423 #include "confdefs.h"
11424 /* System header to define __stub macros and hopefully few prototypes,
11425 which can conflict with char $ac_func(); below. */
11426 #include <assert.h>
11427 /* Override any gcc2 internal prototype to avoid an error. */
11428 /* We use char because int might match the return type of a gcc2
11429 builtin and then its argument prototype would still apply. */
11430 char $ac_func();
11432 int main() {
11434 /* The GNU C library defines this for functions which it implements
11435 to always fail with ENOSYS. Some functions are actually named
11436 something starting with __ and the normal name is an alias. */
11437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11438 choke me
11439 #else
11440 $ac_func();
11441 #endif
11443 ; return 0; }
11445 if { (eval echo configure:11446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11446 rm -rf conftest*
11447 eval "ac_cv_func_$ac_func=yes"
11448 else
11449 echo "configure: failed program was:" >&5
11450 cat conftest.$ac_ext >&5
11451 rm -rf conftest*
11452 eval "ac_cv_func_$ac_func=no"
11454 rm -f conftest*
11457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11458 echo "$ac_t""yes" 1>&6
11459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11460 cat >> confdefs.h <<EOF
11461 #define $ac_tr_func 1
11464 else
11465 echo "$ac_t""no" 1>&6
11467 done
11469 else
11471 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
11472 echo "configure:11473: checking for _finitef declaration" >&5
11473 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
11474 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
11475 echo $ac_n "(cached) $ac_c" 1>&6
11476 else
11479 ac_ext=C
11480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11481 ac_cpp='$CXXCPP $CPPFLAGS'
11482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11484 cross_compiling=$ac_cv_prog_cxx_cross
11486 cat > conftest.$ac_ext <<EOF
11487 #line 11488 "configure"
11488 #include "confdefs.h"
11489 #include <math.h>
11490 #ifdef HAVE_IEEEFP_H
11491 #include <ieeefp.h>
11492 #endif
11494 int main() {
11495 _finitef(0);
11496 ; return 0; }
11498 if { (eval echo configure:11499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11499 rm -rf conftest*
11500 glibcpp_cv_func__finitef_use=yes
11501 else
11502 echo "configure: failed program was:" >&5
11503 cat conftest.$ac_ext >&5
11504 rm -rf conftest*
11505 glibcpp_cv_func__finitef_use=no
11507 rm -f conftest*
11508 ac_ext=c
11509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11510 ac_cpp='$CPP $CPPFLAGS'
11511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11513 cross_compiling=$ac_cv_prog_cc_cross
11519 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
11521 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
11522 for ac_func in _finitef
11524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11525 echo "configure:11526: checking for $ac_func" >&5
11526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11527 echo $ac_n "(cached) $ac_c" 1>&6
11528 else
11529 cat > conftest.$ac_ext <<EOF
11530 #line 11531 "configure"
11531 #include "confdefs.h"
11532 /* System header to define __stub macros and hopefully few prototypes,
11533 which can conflict with char $ac_func(); below. */
11534 #include <assert.h>
11535 /* Override any gcc2 internal prototype to avoid an error. */
11536 /* We use char because int might match the return type of a gcc2
11537 builtin and then its argument prototype would still apply. */
11538 char $ac_func();
11540 int main() {
11542 /* The GNU C library defines this for functions which it implements
11543 to always fail with ENOSYS. Some functions are actually named
11544 something starting with __ and the normal name is an alias. */
11545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11546 choke me
11547 #else
11548 $ac_func();
11549 #endif
11551 ; return 0; }
11553 if { (eval echo configure:11554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11554 rm -rf conftest*
11555 eval "ac_cv_func_$ac_func=yes"
11556 else
11557 echo "configure: failed program was:" >&5
11558 cat conftest.$ac_ext >&5
11559 rm -rf conftest*
11560 eval "ac_cv_func_$ac_func=no"
11562 rm -f conftest*
11565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11566 echo "$ac_t""yes" 1>&6
11567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11568 cat >> confdefs.h <<EOF
11569 #define $ac_tr_func 1
11572 else
11573 echo "$ac_t""no" 1>&6
11575 done
11582 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
11583 echo "configure:11584: checking for long double trig functions" >&5
11584 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
11585 echo $ac_n "(cached) $ac_c" 1>&6
11586 else
11589 ac_ext=C
11590 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11591 ac_cpp='$CXXCPP $CPPFLAGS'
11592 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11593 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11594 cross_compiling=$ac_cv_prog_cxx_cross
11596 cat > conftest.$ac_ext <<EOF
11597 #line 11598 "configure"
11598 #include "confdefs.h"
11599 #include <math.h>
11600 int main() {
11601 `for x in acosl asinl atanl \
11602 cosl sinl tanl \
11603 coshl sinhl tanhl; do echo "$x (0);"; done`
11604 ; return 0; }
11606 if { (eval echo configure:11607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11607 rm -rf conftest*
11608 glibcpp_cv_func_long_double_trig_use=yes
11609 else
11610 echo "configure: failed program was:" >&5
11611 cat conftest.$ac_ext >&5
11612 rm -rf conftest*
11613 glibcpp_cv_func_long_double_trig_use=no
11615 rm -f conftest*
11616 ac_ext=c
11617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11618 ac_cpp='$CPP $CPPFLAGS'
11619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11620 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11621 cross_compiling=$ac_cv_prog_cc_cross
11625 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
11626 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
11627 for ac_func in acosl asinl atanl \
11628 cosl sinl tanl \
11629 coshl sinhl tanhl
11631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11632 echo "configure:11633: checking for $ac_func" >&5
11633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11634 echo $ac_n "(cached) $ac_c" 1>&6
11635 else
11636 cat > conftest.$ac_ext <<EOF
11637 #line 11638 "configure"
11638 #include "confdefs.h"
11639 /* System header to define __stub macros and hopefully few prototypes,
11640 which can conflict with char $ac_func(); below. */
11641 #include <assert.h>
11642 /* Override any gcc2 internal prototype to avoid an error. */
11643 /* We use char because int might match the return type of a gcc2
11644 builtin and then its argument prototype would still apply. */
11645 char $ac_func();
11647 int main() {
11649 /* The GNU C library defines this for functions which it implements
11650 to always fail with ENOSYS. Some functions are actually named
11651 something starting with __ and the normal name is an alias. */
11652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11653 choke me
11654 #else
11655 $ac_func();
11656 #endif
11658 ; return 0; }
11660 if { (eval echo configure:11661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11661 rm -rf conftest*
11662 eval "ac_cv_func_$ac_func=yes"
11663 else
11664 echo "configure: failed program was:" >&5
11665 cat conftest.$ac_ext >&5
11666 rm -rf conftest*
11667 eval "ac_cv_func_$ac_func=no"
11669 rm -f conftest*
11672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11673 echo "$ac_t""yes" 1>&6
11674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11675 cat >> confdefs.h <<EOF
11676 #define $ac_tr_func 1
11679 else
11680 echo "$ac_t""no" 1>&6
11682 done
11687 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
11688 echo "configure:11689: checking for long double round functions" >&5
11689 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
11690 echo $ac_n "(cached) $ac_c" 1>&6
11691 else
11694 ac_ext=C
11695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11696 ac_cpp='$CXXCPP $CPPFLAGS'
11697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11699 cross_compiling=$ac_cv_prog_cxx_cross
11701 cat > conftest.$ac_ext <<EOF
11702 #line 11703 "configure"
11703 #include "confdefs.h"
11704 #include <math.h>
11705 int main() {
11706 `for x in ceill floorl; do echo "$x (0);"; done`
11707 ; return 0; }
11709 if { (eval echo configure:11710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11710 rm -rf conftest*
11711 glibcpp_cv_func_long_double_round_use=yes
11712 else
11713 echo "configure: failed program was:" >&5
11714 cat conftest.$ac_ext >&5
11715 rm -rf conftest*
11716 glibcpp_cv_func_long_double_round_use=no
11718 rm -f conftest*
11719 ac_ext=c
11720 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11721 ac_cpp='$CPP $CPPFLAGS'
11722 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11723 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11724 cross_compiling=$ac_cv_prog_cc_cross
11728 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11729 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11730 for ac_func in ceill floorl
11732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11733 echo "configure:11734: checking for $ac_func" >&5
11734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11735 echo $ac_n "(cached) $ac_c" 1>&6
11736 else
11737 cat > conftest.$ac_ext <<EOF
11738 #line 11739 "configure"
11739 #include "confdefs.h"
11740 /* System header to define __stub macros and hopefully few prototypes,
11741 which can conflict with char $ac_func(); below. */
11742 #include <assert.h>
11743 /* Override any gcc2 internal prototype to avoid an error. */
11744 /* We use char because int might match the return type of a gcc2
11745 builtin and then its argument prototype would still apply. */
11746 char $ac_func();
11748 int main() {
11750 /* The GNU C library defines this for functions which it implements
11751 to always fail with ENOSYS. Some functions are actually named
11752 something starting with __ and the normal name is an alias. */
11753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11754 choke me
11755 #else
11756 $ac_func();
11757 #endif
11759 ; return 0; }
11761 if { (eval echo configure:11762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11762 rm -rf conftest*
11763 eval "ac_cv_func_$ac_func=yes"
11764 else
11765 echo "configure: failed program was:" >&5
11766 cat conftest.$ac_ext >&5
11767 rm -rf conftest*
11768 eval "ac_cv_func_$ac_func=no"
11770 rm -f conftest*
11773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11774 echo "$ac_t""yes" 1>&6
11775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11776 cat >> confdefs.h <<EOF
11777 #define $ac_tr_func 1
11780 else
11781 echo "$ac_t""no" 1>&6
11783 done
11789 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11790 echo "configure:11791: checking for isnanl declaration" >&5
11791 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11792 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11793 echo $ac_n "(cached) $ac_c" 1>&6
11794 else
11797 ac_ext=C
11798 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11799 ac_cpp='$CXXCPP $CPPFLAGS'
11800 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11801 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11802 cross_compiling=$ac_cv_prog_cxx_cross
11804 cat > conftest.$ac_ext <<EOF
11805 #line 11806 "configure"
11806 #include "confdefs.h"
11807 #include <math.h>
11808 #ifdef HAVE_IEEEFP_H
11809 #include <ieeefp.h>
11810 #endif
11812 int main() {
11813 isnanl(0);
11814 ; return 0; }
11816 if { (eval echo configure:11817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11817 rm -rf conftest*
11818 glibcpp_cv_func_isnanl_use=yes
11819 else
11820 echo "configure: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11822 rm -rf conftest*
11823 glibcpp_cv_func_isnanl_use=no
11825 rm -f conftest*
11826 ac_ext=c
11827 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11828 ac_cpp='$CPP $CPPFLAGS'
11829 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11830 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11831 cross_compiling=$ac_cv_prog_cc_cross
11837 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11839 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11840 for ac_func in isnanl
11842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11843 echo "configure:11844: checking for $ac_func" >&5
11844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11845 echo $ac_n "(cached) $ac_c" 1>&6
11846 else
11847 cat > conftest.$ac_ext <<EOF
11848 #line 11849 "configure"
11849 #include "confdefs.h"
11850 /* System header to define __stub macros and hopefully few prototypes,
11851 which can conflict with char $ac_func(); below. */
11852 #include <assert.h>
11853 /* Override any gcc2 internal prototype to avoid an error. */
11854 /* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11856 char $ac_func();
11858 int main() {
11860 /* The GNU C library defines this for functions which it implements
11861 to always fail with ENOSYS. Some functions are actually named
11862 something starting with __ and the normal name is an alias. */
11863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11864 choke me
11865 #else
11866 $ac_func();
11867 #endif
11869 ; return 0; }
11871 if { (eval echo configure:11872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11872 rm -rf conftest*
11873 eval "ac_cv_func_$ac_func=yes"
11874 else
11875 echo "configure: failed program was:" >&5
11876 cat conftest.$ac_ext >&5
11877 rm -rf conftest*
11878 eval "ac_cv_func_$ac_func=no"
11880 rm -f conftest*
11883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11884 echo "$ac_t""yes" 1>&6
11885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11886 cat >> confdefs.h <<EOF
11887 #define $ac_tr_func 1
11890 else
11891 echo "$ac_t""no" 1>&6
11893 done
11895 else
11897 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11898 echo "configure:11899: checking for _isnanl declaration" >&5
11899 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11900 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11901 echo $ac_n "(cached) $ac_c" 1>&6
11902 else
11905 ac_ext=C
11906 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11907 ac_cpp='$CXXCPP $CPPFLAGS'
11908 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11909 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11910 cross_compiling=$ac_cv_prog_cxx_cross
11912 cat > conftest.$ac_ext <<EOF
11913 #line 11914 "configure"
11914 #include "confdefs.h"
11915 #include <math.h>
11916 #ifdef HAVE_IEEEFP_H
11917 #include <ieeefp.h>
11918 #endif
11920 int main() {
11921 _isnanl(0);
11922 ; return 0; }
11924 if { (eval echo configure:11925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11925 rm -rf conftest*
11926 glibcpp_cv_func__isnanl_use=yes
11927 else
11928 echo "configure: failed program was:" >&5
11929 cat conftest.$ac_ext >&5
11930 rm -rf conftest*
11931 glibcpp_cv_func__isnanl_use=no
11933 rm -f conftest*
11934 ac_ext=c
11935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11936 ac_cpp='$CPP $CPPFLAGS'
11937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11939 cross_compiling=$ac_cv_prog_cc_cross
11945 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11947 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11948 for ac_func in _isnanl
11950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11951 echo "configure:11952: checking for $ac_func" >&5
11952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11953 echo $ac_n "(cached) $ac_c" 1>&6
11954 else
11955 cat > conftest.$ac_ext <<EOF
11956 #line 11957 "configure"
11957 #include "confdefs.h"
11958 /* System header to define __stub macros and hopefully few prototypes,
11959 which can conflict with char $ac_func(); below. */
11960 #include <assert.h>
11961 /* Override any gcc2 internal prototype to avoid an error. */
11962 /* We use char because int might match the return type of a gcc2
11963 builtin and then its argument prototype would still apply. */
11964 char $ac_func();
11966 int main() {
11968 /* The GNU C library defines this for functions which it implements
11969 to always fail with ENOSYS. Some functions are actually named
11970 something starting with __ and the normal name is an alias. */
11971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11972 choke me
11973 #else
11974 $ac_func();
11975 #endif
11977 ; return 0; }
11979 if { (eval echo configure:11980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11980 rm -rf conftest*
11981 eval "ac_cv_func_$ac_func=yes"
11982 else
11983 echo "configure: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11985 rm -rf conftest*
11986 eval "ac_cv_func_$ac_func=no"
11988 rm -f conftest*
11991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11992 echo "$ac_t""yes" 1>&6
11993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11994 cat >> confdefs.h <<EOF
11995 #define $ac_tr_func 1
11998 else
11999 echo "$ac_t""no" 1>&6
12001 done
12008 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
12009 echo "configure:12010: checking for isinfl declaration" >&5
12010 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
12011 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
12012 echo $ac_n "(cached) $ac_c" 1>&6
12013 else
12016 ac_ext=C
12017 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12018 ac_cpp='$CXXCPP $CPPFLAGS'
12019 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12020 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12021 cross_compiling=$ac_cv_prog_cxx_cross
12023 cat > conftest.$ac_ext <<EOF
12024 #line 12025 "configure"
12025 #include "confdefs.h"
12026 #include <math.h>
12027 #ifdef HAVE_IEEEFP_H
12028 #include <ieeefp.h>
12029 #endif
12031 int main() {
12032 isinfl(0);
12033 ; return 0; }
12035 if { (eval echo configure:12036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12036 rm -rf conftest*
12037 glibcpp_cv_func_isinfl_use=yes
12038 else
12039 echo "configure: failed program was:" >&5
12040 cat conftest.$ac_ext >&5
12041 rm -rf conftest*
12042 glibcpp_cv_func_isinfl_use=no
12044 rm -f conftest*
12045 ac_ext=c
12046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12047 ac_cpp='$CPP $CPPFLAGS'
12048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12050 cross_compiling=$ac_cv_prog_cc_cross
12056 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
12058 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
12059 for ac_func in isinfl
12061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12062 echo "configure:12063: checking for $ac_func" >&5
12063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12064 echo $ac_n "(cached) $ac_c" 1>&6
12065 else
12066 cat > conftest.$ac_ext <<EOF
12067 #line 12068 "configure"
12068 #include "confdefs.h"
12069 /* System header to define __stub macros and hopefully few prototypes,
12070 which can conflict with char $ac_func(); below. */
12071 #include <assert.h>
12072 /* Override any gcc2 internal prototype to avoid an error. */
12073 /* We use char because int might match the return type of a gcc2
12074 builtin and then its argument prototype would still apply. */
12075 char $ac_func();
12077 int main() {
12079 /* The GNU C library defines this for functions which it implements
12080 to always fail with ENOSYS. Some functions are actually named
12081 something starting with __ and the normal name is an alias. */
12082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12083 choke me
12084 #else
12085 $ac_func();
12086 #endif
12088 ; return 0; }
12090 if { (eval echo configure:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12091 rm -rf conftest*
12092 eval "ac_cv_func_$ac_func=yes"
12093 else
12094 echo "configure: failed program was:" >&5
12095 cat conftest.$ac_ext >&5
12096 rm -rf conftest*
12097 eval "ac_cv_func_$ac_func=no"
12099 rm -f conftest*
12102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12103 echo "$ac_t""yes" 1>&6
12104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12105 cat >> confdefs.h <<EOF
12106 #define $ac_tr_func 1
12109 else
12110 echo "$ac_t""no" 1>&6
12112 done
12114 else
12116 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
12117 echo "configure:12118: checking for _isinfl declaration" >&5
12118 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
12119 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
12120 echo $ac_n "(cached) $ac_c" 1>&6
12121 else
12124 ac_ext=C
12125 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12126 ac_cpp='$CXXCPP $CPPFLAGS'
12127 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12128 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12129 cross_compiling=$ac_cv_prog_cxx_cross
12131 cat > conftest.$ac_ext <<EOF
12132 #line 12133 "configure"
12133 #include "confdefs.h"
12134 #include <math.h>
12135 #ifdef HAVE_IEEEFP_H
12136 #include <ieeefp.h>
12137 #endif
12139 int main() {
12140 _isinfl(0);
12141 ; return 0; }
12143 if { (eval echo configure:12144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12144 rm -rf conftest*
12145 glibcpp_cv_func__isinfl_use=yes
12146 else
12147 echo "configure: failed program was:" >&5
12148 cat conftest.$ac_ext >&5
12149 rm -rf conftest*
12150 glibcpp_cv_func__isinfl_use=no
12152 rm -f conftest*
12153 ac_ext=c
12154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12155 ac_cpp='$CPP $CPPFLAGS'
12156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12158 cross_compiling=$ac_cv_prog_cc_cross
12164 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
12166 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
12167 for ac_func in _isinfl
12169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12170 echo "configure:12171: checking for $ac_func" >&5
12171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12172 echo $ac_n "(cached) $ac_c" 1>&6
12173 else
12174 cat > conftest.$ac_ext <<EOF
12175 #line 12176 "configure"
12176 #include "confdefs.h"
12177 /* System header to define __stub macros and hopefully few prototypes,
12178 which can conflict with char $ac_func(); below. */
12179 #include <assert.h>
12180 /* Override any gcc2 internal prototype to avoid an error. */
12181 /* We use char because int might match the return type of a gcc2
12182 builtin and then its argument prototype would still apply. */
12183 char $ac_func();
12185 int main() {
12187 /* The GNU C library defines this for functions which it implements
12188 to always fail with ENOSYS. Some functions are actually named
12189 something starting with __ and the normal name is an alias. */
12190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12191 choke me
12192 #else
12193 $ac_func();
12194 #endif
12196 ; return 0; }
12198 if { (eval echo configure:12199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12199 rm -rf conftest*
12200 eval "ac_cv_func_$ac_func=yes"
12201 else
12202 echo "configure: failed program was:" >&5
12203 cat conftest.$ac_ext >&5
12204 rm -rf conftest*
12205 eval "ac_cv_func_$ac_func=no"
12207 rm -f conftest*
12210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12211 echo "$ac_t""yes" 1>&6
12212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12213 cat >> confdefs.h <<EOF
12214 #define $ac_tr_func 1
12217 else
12218 echo "$ac_t""no" 1>&6
12220 done
12227 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
12228 echo "configure:12229: checking for copysignl declaration" >&5
12229 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
12230 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
12231 echo $ac_n "(cached) $ac_c" 1>&6
12232 else
12235 ac_ext=C
12236 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12237 ac_cpp='$CXXCPP $CPPFLAGS'
12238 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12239 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12240 cross_compiling=$ac_cv_prog_cxx_cross
12242 cat > conftest.$ac_ext <<EOF
12243 #line 12244 "configure"
12244 #include "confdefs.h"
12245 #include <math.h>
12246 int main() {
12247 copysignl(0, 0);
12248 ; return 0; }
12250 if { (eval echo configure:12251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12251 rm -rf conftest*
12252 glibcpp_cv_func_copysignl_use=yes
12253 else
12254 echo "configure: failed program was:" >&5
12255 cat conftest.$ac_ext >&5
12256 rm -rf conftest*
12257 glibcpp_cv_func_copysignl_use=no
12259 rm -f conftest*
12260 ac_ext=c
12261 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12262 ac_cpp='$CPP $CPPFLAGS'
12263 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12264 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12265 cross_compiling=$ac_cv_prog_cc_cross
12271 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
12273 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
12274 for ac_func in copysignl
12276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12277 echo "configure:12278: checking for $ac_func" >&5
12278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12279 echo $ac_n "(cached) $ac_c" 1>&6
12280 else
12281 cat > conftest.$ac_ext <<EOF
12282 #line 12283 "configure"
12283 #include "confdefs.h"
12284 /* System header to define __stub macros and hopefully few prototypes,
12285 which can conflict with char $ac_func(); below. */
12286 #include <assert.h>
12287 /* Override any gcc2 internal prototype to avoid an error. */
12288 /* We use char because int might match the return type of a gcc2
12289 builtin and then its argument prototype would still apply. */
12290 char $ac_func();
12292 int main() {
12294 /* The GNU C library defines this for functions which it implements
12295 to always fail with ENOSYS. Some functions are actually named
12296 something starting with __ and the normal name is an alias. */
12297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12298 choke me
12299 #else
12300 $ac_func();
12301 #endif
12303 ; return 0; }
12305 if { (eval echo configure:12306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12306 rm -rf conftest*
12307 eval "ac_cv_func_$ac_func=yes"
12308 else
12309 echo "configure: failed program was:" >&5
12310 cat conftest.$ac_ext >&5
12311 rm -rf conftest*
12312 eval "ac_cv_func_$ac_func=no"
12314 rm -f conftest*
12317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12318 echo "$ac_t""yes" 1>&6
12319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12320 cat >> confdefs.h <<EOF
12321 #define $ac_tr_func 1
12324 else
12325 echo "$ac_t""no" 1>&6
12327 done
12329 else
12331 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
12332 echo "configure:12333: checking for _copysignl declaration" >&5
12333 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
12334 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
12335 echo $ac_n "(cached) $ac_c" 1>&6
12336 else
12339 ac_ext=C
12340 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12341 ac_cpp='$CXXCPP $CPPFLAGS'
12342 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12343 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12344 cross_compiling=$ac_cv_prog_cxx_cross
12346 cat > conftest.$ac_ext <<EOF
12347 #line 12348 "configure"
12348 #include "confdefs.h"
12349 #include <math.h>
12350 int main() {
12351 _copysignl(0, 0);
12352 ; return 0; }
12354 if { (eval echo configure:12355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12355 rm -rf conftest*
12356 glibcpp_cv_func__copysignl_use=yes
12357 else
12358 echo "configure: failed program was:" >&5
12359 cat conftest.$ac_ext >&5
12360 rm -rf conftest*
12361 glibcpp_cv_func__copysignl_use=no
12363 rm -f conftest*
12364 ac_ext=c
12365 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12366 ac_cpp='$CPP $CPPFLAGS'
12367 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12368 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12369 cross_compiling=$ac_cv_prog_cc_cross
12375 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
12377 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
12378 for ac_func in _copysignl
12380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12381 echo "configure:12382: checking for $ac_func" >&5
12382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12383 echo $ac_n "(cached) $ac_c" 1>&6
12384 else
12385 cat > conftest.$ac_ext <<EOF
12386 #line 12387 "configure"
12387 #include "confdefs.h"
12388 /* System header to define __stub macros and hopefully few prototypes,
12389 which can conflict with char $ac_func(); below. */
12390 #include <assert.h>
12391 /* Override any gcc2 internal prototype to avoid an error. */
12392 /* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12394 char $ac_func();
12396 int main() {
12398 /* The GNU C library defines this for functions which it implements
12399 to always fail with ENOSYS. Some functions are actually named
12400 something starting with __ and the normal name is an alias. */
12401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12402 choke me
12403 #else
12404 $ac_func();
12405 #endif
12407 ; return 0; }
12409 if { (eval echo configure:12410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12410 rm -rf conftest*
12411 eval "ac_cv_func_$ac_func=yes"
12412 else
12413 echo "configure: failed program was:" >&5
12414 cat conftest.$ac_ext >&5
12415 rm -rf conftest*
12416 eval "ac_cv_func_$ac_func=no"
12418 rm -f conftest*
12421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12422 echo "$ac_t""yes" 1>&6
12423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12424 cat >> confdefs.h <<EOF
12425 #define $ac_tr_func 1
12428 else
12429 echo "$ac_t""no" 1>&6
12431 done
12438 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
12439 echo "configure:12440: checking for atan2l declaration" >&5
12440 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
12441 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
12442 echo $ac_n "(cached) $ac_c" 1>&6
12443 else
12446 ac_ext=C
12447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12448 ac_cpp='$CXXCPP $CPPFLAGS'
12449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12451 cross_compiling=$ac_cv_prog_cxx_cross
12453 cat > conftest.$ac_ext <<EOF
12454 #line 12455 "configure"
12455 #include "confdefs.h"
12456 #include <math.h>
12457 int main() {
12458 atan2l(0, 0);
12459 ; return 0; }
12461 if { (eval echo configure:12462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12462 rm -rf conftest*
12463 glibcpp_cv_func_atan2l_use=yes
12464 else
12465 echo "configure: failed program was:" >&5
12466 cat conftest.$ac_ext >&5
12467 rm -rf conftest*
12468 glibcpp_cv_func_atan2l_use=no
12470 rm -f conftest*
12471 ac_ext=c
12472 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12473 ac_cpp='$CPP $CPPFLAGS'
12474 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12475 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12476 cross_compiling=$ac_cv_prog_cc_cross
12482 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
12484 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
12485 for ac_func in atan2l
12487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12488 echo "configure:12489: checking for $ac_func" >&5
12489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12490 echo $ac_n "(cached) $ac_c" 1>&6
12491 else
12492 cat > conftest.$ac_ext <<EOF
12493 #line 12494 "configure"
12494 #include "confdefs.h"
12495 /* System header to define __stub macros and hopefully few prototypes,
12496 which can conflict with char $ac_func(); below. */
12497 #include <assert.h>
12498 /* Override any gcc2 internal prototype to avoid an error. */
12499 /* We use char because int might match the return type of a gcc2
12500 builtin and then its argument prototype would still apply. */
12501 char $ac_func();
12503 int main() {
12505 /* The GNU C library defines this for functions which it implements
12506 to always fail with ENOSYS. Some functions are actually named
12507 something starting with __ and the normal name is an alias. */
12508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12509 choke me
12510 #else
12511 $ac_func();
12512 #endif
12514 ; return 0; }
12516 if { (eval echo configure:12517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12517 rm -rf conftest*
12518 eval "ac_cv_func_$ac_func=yes"
12519 else
12520 echo "configure: failed program was:" >&5
12521 cat conftest.$ac_ext >&5
12522 rm -rf conftest*
12523 eval "ac_cv_func_$ac_func=no"
12525 rm -f conftest*
12528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12529 echo "$ac_t""yes" 1>&6
12530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12531 cat >> confdefs.h <<EOF
12532 #define $ac_tr_func 1
12535 else
12536 echo "$ac_t""no" 1>&6
12538 done
12540 else
12542 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
12543 echo "configure:12544: checking for _atan2l declaration" >&5
12544 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
12545 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
12546 echo $ac_n "(cached) $ac_c" 1>&6
12547 else
12550 ac_ext=C
12551 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12552 ac_cpp='$CXXCPP $CPPFLAGS'
12553 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12554 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12555 cross_compiling=$ac_cv_prog_cxx_cross
12557 cat > conftest.$ac_ext <<EOF
12558 #line 12559 "configure"
12559 #include "confdefs.h"
12560 #include <math.h>
12561 int main() {
12562 _atan2l(0, 0);
12563 ; return 0; }
12565 if { (eval echo configure:12566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12566 rm -rf conftest*
12567 glibcpp_cv_func__atan2l_use=yes
12568 else
12569 echo "configure: failed program was:" >&5
12570 cat conftest.$ac_ext >&5
12571 rm -rf conftest*
12572 glibcpp_cv_func__atan2l_use=no
12574 rm -f conftest*
12575 ac_ext=c
12576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12577 ac_cpp='$CPP $CPPFLAGS'
12578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12580 cross_compiling=$ac_cv_prog_cc_cross
12586 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
12588 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
12589 for ac_func in _atan2l
12591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12592 echo "configure:12593: checking for $ac_func" >&5
12593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12594 echo $ac_n "(cached) $ac_c" 1>&6
12595 else
12596 cat > conftest.$ac_ext <<EOF
12597 #line 12598 "configure"
12598 #include "confdefs.h"
12599 /* System header to define __stub macros and hopefully few prototypes,
12600 which can conflict with char $ac_func(); below. */
12601 #include <assert.h>
12602 /* Override any gcc2 internal prototype to avoid an error. */
12603 /* We use char because int might match the return type of a gcc2
12604 builtin and then its argument prototype would still apply. */
12605 char $ac_func();
12607 int main() {
12609 /* The GNU C library defines this for functions which it implements
12610 to always fail with ENOSYS. Some functions are actually named
12611 something starting with __ and the normal name is an alias. */
12612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12613 choke me
12614 #else
12615 $ac_func();
12616 #endif
12618 ; return 0; }
12620 if { (eval echo configure:12621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12621 rm -rf conftest*
12622 eval "ac_cv_func_$ac_func=yes"
12623 else
12624 echo "configure: failed program was:" >&5
12625 cat conftest.$ac_ext >&5
12626 rm -rf conftest*
12627 eval "ac_cv_func_$ac_func=no"
12629 rm -f conftest*
12632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12633 echo "$ac_t""yes" 1>&6
12634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12635 cat >> confdefs.h <<EOF
12636 #define $ac_tr_func 1
12639 else
12640 echo "$ac_t""no" 1>&6
12642 done
12649 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
12650 echo "configure:12651: checking for expl declaration" >&5
12651 if test x${glibcpp_cv_func_expl_use+set} != xset; then
12652 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
12653 echo $ac_n "(cached) $ac_c" 1>&6
12654 else
12657 ac_ext=C
12658 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12659 ac_cpp='$CXXCPP $CPPFLAGS'
12660 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12661 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12662 cross_compiling=$ac_cv_prog_cxx_cross
12664 cat > conftest.$ac_ext <<EOF
12665 #line 12666 "configure"
12666 #include "confdefs.h"
12667 #include <math.h>
12668 #ifdef HAVE_IEEEFP_H
12669 #include <ieeefp.h>
12670 #endif
12672 int main() {
12673 expl(0);
12674 ; return 0; }
12676 if { (eval echo configure:12677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12677 rm -rf conftest*
12678 glibcpp_cv_func_expl_use=yes
12679 else
12680 echo "configure: failed program was:" >&5
12681 cat conftest.$ac_ext >&5
12682 rm -rf conftest*
12683 glibcpp_cv_func_expl_use=no
12685 rm -f conftest*
12686 ac_ext=c
12687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12688 ac_cpp='$CPP $CPPFLAGS'
12689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12691 cross_compiling=$ac_cv_prog_cc_cross
12697 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
12699 if test x$glibcpp_cv_func_expl_use = x"yes"; then
12700 for ac_func in expl
12702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12703 echo "configure:12704: checking for $ac_func" >&5
12704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12705 echo $ac_n "(cached) $ac_c" 1>&6
12706 else
12707 cat > conftest.$ac_ext <<EOF
12708 #line 12709 "configure"
12709 #include "confdefs.h"
12710 /* System header to define __stub macros and hopefully few prototypes,
12711 which can conflict with char $ac_func(); below. */
12712 #include <assert.h>
12713 /* Override any gcc2 internal prototype to avoid an error. */
12714 /* We use char because int might match the return type of a gcc2
12715 builtin and then its argument prototype would still apply. */
12716 char $ac_func();
12718 int main() {
12720 /* The GNU C library defines this for functions which it implements
12721 to always fail with ENOSYS. Some functions are actually named
12722 something starting with __ and the normal name is an alias. */
12723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12724 choke me
12725 #else
12726 $ac_func();
12727 #endif
12729 ; return 0; }
12731 if { (eval echo configure:12732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12732 rm -rf conftest*
12733 eval "ac_cv_func_$ac_func=yes"
12734 else
12735 echo "configure: failed program was:" >&5
12736 cat conftest.$ac_ext >&5
12737 rm -rf conftest*
12738 eval "ac_cv_func_$ac_func=no"
12740 rm -f conftest*
12743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12744 echo "$ac_t""yes" 1>&6
12745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12746 cat >> confdefs.h <<EOF
12747 #define $ac_tr_func 1
12750 else
12751 echo "$ac_t""no" 1>&6
12753 done
12755 else
12757 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12758 echo "configure:12759: checking for _expl declaration" >&5
12759 if test x${glibcpp_cv_func__expl_use+set} != xset; then
12760 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12761 echo $ac_n "(cached) $ac_c" 1>&6
12762 else
12765 ac_ext=C
12766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12767 ac_cpp='$CXXCPP $CPPFLAGS'
12768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12770 cross_compiling=$ac_cv_prog_cxx_cross
12772 cat > conftest.$ac_ext <<EOF
12773 #line 12774 "configure"
12774 #include "confdefs.h"
12775 #include <math.h>
12776 #ifdef HAVE_IEEEFP_H
12777 #include <ieeefp.h>
12778 #endif
12780 int main() {
12781 _expl(0);
12782 ; return 0; }
12784 if { (eval echo configure:12785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12785 rm -rf conftest*
12786 glibcpp_cv_func__expl_use=yes
12787 else
12788 echo "configure: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12790 rm -rf conftest*
12791 glibcpp_cv_func__expl_use=no
12793 rm -f conftest*
12794 ac_ext=c
12795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12796 ac_cpp='$CPP $CPPFLAGS'
12797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12799 cross_compiling=$ac_cv_prog_cc_cross
12805 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12807 if test x$glibcpp_cv_func__expl_use = x"yes"; then
12808 for ac_func in _expl
12810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12811 echo "configure:12812: checking for $ac_func" >&5
12812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12813 echo $ac_n "(cached) $ac_c" 1>&6
12814 else
12815 cat > conftest.$ac_ext <<EOF
12816 #line 12817 "configure"
12817 #include "confdefs.h"
12818 /* System header to define __stub macros and hopefully few prototypes,
12819 which can conflict with char $ac_func(); below. */
12820 #include <assert.h>
12821 /* Override any gcc2 internal prototype to avoid an error. */
12822 /* We use char because int might match the return type of a gcc2
12823 builtin and then its argument prototype would still apply. */
12824 char $ac_func();
12826 int main() {
12828 /* The GNU C library defines this for functions which it implements
12829 to always fail with ENOSYS. Some functions are actually named
12830 something starting with __ and the normal name is an alias. */
12831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12832 choke me
12833 #else
12834 $ac_func();
12835 #endif
12837 ; return 0; }
12839 if { (eval echo configure:12840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12840 rm -rf conftest*
12841 eval "ac_cv_func_$ac_func=yes"
12842 else
12843 echo "configure: failed program was:" >&5
12844 cat conftest.$ac_ext >&5
12845 rm -rf conftest*
12846 eval "ac_cv_func_$ac_func=no"
12848 rm -f conftest*
12851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12852 echo "$ac_t""yes" 1>&6
12853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12854 cat >> confdefs.h <<EOF
12855 #define $ac_tr_func 1
12858 else
12859 echo "$ac_t""no" 1>&6
12861 done
12868 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12869 echo "configure:12870: checking for fabsl declaration" >&5
12870 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12871 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12872 echo $ac_n "(cached) $ac_c" 1>&6
12873 else
12876 ac_ext=C
12877 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12878 ac_cpp='$CXXCPP $CPPFLAGS'
12879 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12880 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12881 cross_compiling=$ac_cv_prog_cxx_cross
12883 cat > conftest.$ac_ext <<EOF
12884 #line 12885 "configure"
12885 #include "confdefs.h"
12886 #include <math.h>
12887 #ifdef HAVE_IEEEFP_H
12888 #include <ieeefp.h>
12889 #endif
12891 int main() {
12892 fabsl(0);
12893 ; return 0; }
12895 if { (eval echo configure:12896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12896 rm -rf conftest*
12897 glibcpp_cv_func_fabsl_use=yes
12898 else
12899 echo "configure: failed program was:" >&5
12900 cat conftest.$ac_ext >&5
12901 rm -rf conftest*
12902 glibcpp_cv_func_fabsl_use=no
12904 rm -f conftest*
12905 ac_ext=c
12906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12907 ac_cpp='$CPP $CPPFLAGS'
12908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12910 cross_compiling=$ac_cv_prog_cc_cross
12916 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12918 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12919 for ac_func in fabsl
12921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12922 echo "configure:12923: checking for $ac_func" >&5
12923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12924 echo $ac_n "(cached) $ac_c" 1>&6
12925 else
12926 cat > conftest.$ac_ext <<EOF
12927 #line 12928 "configure"
12928 #include "confdefs.h"
12929 /* System header to define __stub macros and hopefully few prototypes,
12930 which can conflict with char $ac_func(); below. */
12931 #include <assert.h>
12932 /* Override any gcc2 internal prototype to avoid an error. */
12933 /* We use char because int might match the return type of a gcc2
12934 builtin and then its argument prototype would still apply. */
12935 char $ac_func();
12937 int main() {
12939 /* The GNU C library defines this for functions which it implements
12940 to always fail with ENOSYS. Some functions are actually named
12941 something starting with __ and the normal name is an alias. */
12942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12943 choke me
12944 #else
12945 $ac_func();
12946 #endif
12948 ; return 0; }
12950 if { (eval echo configure:12951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12951 rm -rf conftest*
12952 eval "ac_cv_func_$ac_func=yes"
12953 else
12954 echo "configure: failed program was:" >&5
12955 cat conftest.$ac_ext >&5
12956 rm -rf conftest*
12957 eval "ac_cv_func_$ac_func=no"
12959 rm -f conftest*
12962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12963 echo "$ac_t""yes" 1>&6
12964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12965 cat >> confdefs.h <<EOF
12966 #define $ac_tr_func 1
12969 else
12970 echo "$ac_t""no" 1>&6
12972 done
12974 else
12976 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12977 echo "configure:12978: checking for _fabsl declaration" >&5
12978 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12979 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12980 echo $ac_n "(cached) $ac_c" 1>&6
12981 else
12984 ac_ext=C
12985 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12986 ac_cpp='$CXXCPP $CPPFLAGS'
12987 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12988 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12989 cross_compiling=$ac_cv_prog_cxx_cross
12991 cat > conftest.$ac_ext <<EOF
12992 #line 12993 "configure"
12993 #include "confdefs.h"
12994 #include <math.h>
12995 #ifdef HAVE_IEEEFP_H
12996 #include <ieeefp.h>
12997 #endif
12999 int main() {
13000 _fabsl(0);
13001 ; return 0; }
13003 if { (eval echo configure:13004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13004 rm -rf conftest*
13005 glibcpp_cv_func__fabsl_use=yes
13006 else
13007 echo "configure: failed program was:" >&5
13008 cat conftest.$ac_ext >&5
13009 rm -rf conftest*
13010 glibcpp_cv_func__fabsl_use=no
13012 rm -f conftest*
13013 ac_ext=c
13014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13015 ac_cpp='$CPP $CPPFLAGS'
13016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13018 cross_compiling=$ac_cv_prog_cc_cross
13024 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
13026 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
13027 for ac_func in _fabsl
13029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13030 echo "configure:13031: checking for $ac_func" >&5
13031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13032 echo $ac_n "(cached) $ac_c" 1>&6
13033 else
13034 cat > conftest.$ac_ext <<EOF
13035 #line 13036 "configure"
13036 #include "confdefs.h"
13037 /* System header to define __stub macros and hopefully few prototypes,
13038 which can conflict with char $ac_func(); below. */
13039 #include <assert.h>
13040 /* Override any gcc2 internal prototype to avoid an error. */
13041 /* We use char because int might match the return type of a gcc2
13042 builtin and then its argument prototype would still apply. */
13043 char $ac_func();
13045 int main() {
13047 /* The GNU C library defines this for functions which it implements
13048 to always fail with ENOSYS. Some functions are actually named
13049 something starting with __ and the normal name is an alias. */
13050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13051 choke me
13052 #else
13053 $ac_func();
13054 #endif
13056 ; return 0; }
13058 if { (eval echo configure:13059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13059 rm -rf conftest*
13060 eval "ac_cv_func_$ac_func=yes"
13061 else
13062 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13064 rm -rf conftest*
13065 eval "ac_cv_func_$ac_func=no"
13067 rm -f conftest*
13070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13071 echo "$ac_t""yes" 1>&6
13072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13073 cat >> confdefs.h <<EOF
13074 #define $ac_tr_func 1
13077 else
13078 echo "$ac_t""no" 1>&6
13080 done
13087 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
13088 echo "configure:13089: checking for fmodl declaration" >&5
13089 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
13090 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
13091 echo $ac_n "(cached) $ac_c" 1>&6
13092 else
13095 ac_ext=C
13096 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13097 ac_cpp='$CXXCPP $CPPFLAGS'
13098 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13099 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13100 cross_compiling=$ac_cv_prog_cxx_cross
13102 cat > conftest.$ac_ext <<EOF
13103 #line 13104 "configure"
13104 #include "confdefs.h"
13105 #include <math.h>
13106 int main() {
13107 fmodl(0, 0);
13108 ; return 0; }
13110 if { (eval echo configure:13111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13111 rm -rf conftest*
13112 glibcpp_cv_func_fmodl_use=yes
13113 else
13114 echo "configure: failed program was:" >&5
13115 cat conftest.$ac_ext >&5
13116 rm -rf conftest*
13117 glibcpp_cv_func_fmodl_use=no
13119 rm -f conftest*
13120 ac_ext=c
13121 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13122 ac_cpp='$CPP $CPPFLAGS'
13123 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13124 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13125 cross_compiling=$ac_cv_prog_cc_cross
13131 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
13133 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
13134 for ac_func in fmodl
13136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13137 echo "configure:13138: checking for $ac_func" >&5
13138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13139 echo $ac_n "(cached) $ac_c" 1>&6
13140 else
13141 cat > conftest.$ac_ext <<EOF
13142 #line 13143 "configure"
13143 #include "confdefs.h"
13144 /* System header to define __stub macros and hopefully few prototypes,
13145 which can conflict with char $ac_func(); below. */
13146 #include <assert.h>
13147 /* Override any gcc2 internal prototype to avoid an error. */
13148 /* We use char because int might match the return type of a gcc2
13149 builtin and then its argument prototype would still apply. */
13150 char $ac_func();
13152 int main() {
13154 /* The GNU C library defines this for functions which it implements
13155 to always fail with ENOSYS. Some functions are actually named
13156 something starting with __ and the normal name is an alias. */
13157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13158 choke me
13159 #else
13160 $ac_func();
13161 #endif
13163 ; return 0; }
13165 if { (eval echo configure:13166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13166 rm -rf conftest*
13167 eval "ac_cv_func_$ac_func=yes"
13168 else
13169 echo "configure: failed program was:" >&5
13170 cat conftest.$ac_ext >&5
13171 rm -rf conftest*
13172 eval "ac_cv_func_$ac_func=no"
13174 rm -f conftest*
13177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13178 echo "$ac_t""yes" 1>&6
13179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13180 cat >> confdefs.h <<EOF
13181 #define $ac_tr_func 1
13184 else
13185 echo "$ac_t""no" 1>&6
13187 done
13189 else
13191 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
13192 echo "configure:13193: checking for _fmodl declaration" >&5
13193 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
13194 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
13195 echo $ac_n "(cached) $ac_c" 1>&6
13196 else
13199 ac_ext=C
13200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13201 ac_cpp='$CXXCPP $CPPFLAGS'
13202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13204 cross_compiling=$ac_cv_prog_cxx_cross
13206 cat > conftest.$ac_ext <<EOF
13207 #line 13208 "configure"
13208 #include "confdefs.h"
13209 #include <math.h>
13210 int main() {
13211 _fmodl(0, 0);
13212 ; return 0; }
13214 if { (eval echo configure:13215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13215 rm -rf conftest*
13216 glibcpp_cv_func__fmodl_use=yes
13217 else
13218 echo "configure: failed program was:" >&5
13219 cat conftest.$ac_ext >&5
13220 rm -rf conftest*
13221 glibcpp_cv_func__fmodl_use=no
13223 rm -f conftest*
13224 ac_ext=c
13225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13226 ac_cpp='$CPP $CPPFLAGS'
13227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13229 cross_compiling=$ac_cv_prog_cc_cross
13235 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
13237 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
13238 for ac_func in _fmodl
13240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13241 echo "configure:13242: checking for $ac_func" >&5
13242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13243 echo $ac_n "(cached) $ac_c" 1>&6
13244 else
13245 cat > conftest.$ac_ext <<EOF
13246 #line 13247 "configure"
13247 #include "confdefs.h"
13248 /* System header to define __stub macros and hopefully few prototypes,
13249 which can conflict with char $ac_func(); below. */
13250 #include <assert.h>
13251 /* Override any gcc2 internal prototype to avoid an error. */
13252 /* We use char because int might match the return type of a gcc2
13253 builtin and then its argument prototype would still apply. */
13254 char $ac_func();
13256 int main() {
13258 /* The GNU C library defines this for functions which it implements
13259 to always fail with ENOSYS. Some functions are actually named
13260 something starting with __ and the normal name is an alias. */
13261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13262 choke me
13263 #else
13264 $ac_func();
13265 #endif
13267 ; return 0; }
13269 if { (eval echo configure:13270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13270 rm -rf conftest*
13271 eval "ac_cv_func_$ac_func=yes"
13272 else
13273 echo "configure: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13275 rm -rf conftest*
13276 eval "ac_cv_func_$ac_func=no"
13278 rm -f conftest*
13281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13282 echo "$ac_t""yes" 1>&6
13283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13284 cat >> confdefs.h <<EOF
13285 #define $ac_tr_func 1
13288 else
13289 echo "$ac_t""no" 1>&6
13291 done
13298 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
13299 echo "configure:13300: checking for frexpl declaration" >&5
13300 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
13301 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
13302 echo $ac_n "(cached) $ac_c" 1>&6
13303 else
13306 ac_ext=C
13307 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13308 ac_cpp='$CXXCPP $CPPFLAGS'
13309 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13310 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13311 cross_compiling=$ac_cv_prog_cxx_cross
13313 cat > conftest.$ac_ext <<EOF
13314 #line 13315 "configure"
13315 #include "confdefs.h"
13316 #include <math.h>
13317 int main() {
13318 frexpl(0, 0);
13319 ; return 0; }
13321 if { (eval echo configure:13322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13322 rm -rf conftest*
13323 glibcpp_cv_func_frexpl_use=yes
13324 else
13325 echo "configure: failed program was:" >&5
13326 cat conftest.$ac_ext >&5
13327 rm -rf conftest*
13328 glibcpp_cv_func_frexpl_use=no
13330 rm -f conftest*
13331 ac_ext=c
13332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13333 ac_cpp='$CPP $CPPFLAGS'
13334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13336 cross_compiling=$ac_cv_prog_cc_cross
13342 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
13344 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
13345 for ac_func in frexpl
13347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13348 echo "configure:13349: checking for $ac_func" >&5
13349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13350 echo $ac_n "(cached) $ac_c" 1>&6
13351 else
13352 cat > conftest.$ac_ext <<EOF
13353 #line 13354 "configure"
13354 #include "confdefs.h"
13355 /* System header to define __stub macros and hopefully few prototypes,
13356 which can conflict with char $ac_func(); below. */
13357 #include <assert.h>
13358 /* Override any gcc2 internal prototype to avoid an error. */
13359 /* We use char because int might match the return type of a gcc2
13360 builtin and then its argument prototype would still apply. */
13361 char $ac_func();
13363 int main() {
13365 /* The GNU C library defines this for functions which it implements
13366 to always fail with ENOSYS. Some functions are actually named
13367 something starting with __ and the normal name is an alias. */
13368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13369 choke me
13370 #else
13371 $ac_func();
13372 #endif
13374 ; return 0; }
13376 if { (eval echo configure:13377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13377 rm -rf conftest*
13378 eval "ac_cv_func_$ac_func=yes"
13379 else
13380 echo "configure: failed program was:" >&5
13381 cat conftest.$ac_ext >&5
13382 rm -rf conftest*
13383 eval "ac_cv_func_$ac_func=no"
13385 rm -f conftest*
13388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13389 echo "$ac_t""yes" 1>&6
13390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13391 cat >> confdefs.h <<EOF
13392 #define $ac_tr_func 1
13395 else
13396 echo "$ac_t""no" 1>&6
13398 done
13400 else
13402 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
13403 echo "configure:13404: checking for _frexpl declaration" >&5
13404 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
13405 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
13406 echo $ac_n "(cached) $ac_c" 1>&6
13407 else
13410 ac_ext=C
13411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13412 ac_cpp='$CXXCPP $CPPFLAGS'
13413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13415 cross_compiling=$ac_cv_prog_cxx_cross
13417 cat > conftest.$ac_ext <<EOF
13418 #line 13419 "configure"
13419 #include "confdefs.h"
13420 #include <math.h>
13421 int main() {
13422 _frexpl(0, 0);
13423 ; return 0; }
13425 if { (eval echo configure:13426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13426 rm -rf conftest*
13427 glibcpp_cv_func__frexpl_use=yes
13428 else
13429 echo "configure: failed program was:" >&5
13430 cat conftest.$ac_ext >&5
13431 rm -rf conftest*
13432 glibcpp_cv_func__frexpl_use=no
13434 rm -f conftest*
13435 ac_ext=c
13436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13437 ac_cpp='$CPP $CPPFLAGS'
13438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13440 cross_compiling=$ac_cv_prog_cc_cross
13446 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
13448 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
13449 for ac_func in _frexpl
13451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13452 echo "configure:13453: checking for $ac_func" >&5
13453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13454 echo $ac_n "(cached) $ac_c" 1>&6
13455 else
13456 cat > conftest.$ac_ext <<EOF
13457 #line 13458 "configure"
13458 #include "confdefs.h"
13459 /* System header to define __stub macros and hopefully few prototypes,
13460 which can conflict with char $ac_func(); below. */
13461 #include <assert.h>
13462 /* Override any gcc2 internal prototype to avoid an error. */
13463 /* We use char because int might match the return type of a gcc2
13464 builtin and then its argument prototype would still apply. */
13465 char $ac_func();
13467 int main() {
13469 /* The GNU C library defines this for functions which it implements
13470 to always fail with ENOSYS. Some functions are actually named
13471 something starting with __ and the normal name is an alias. */
13472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13473 choke me
13474 #else
13475 $ac_func();
13476 #endif
13478 ; return 0; }
13480 if { (eval echo configure:13481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13481 rm -rf conftest*
13482 eval "ac_cv_func_$ac_func=yes"
13483 else
13484 echo "configure: failed program was:" >&5
13485 cat conftest.$ac_ext >&5
13486 rm -rf conftest*
13487 eval "ac_cv_func_$ac_func=no"
13489 rm -f conftest*
13492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13493 echo "$ac_t""yes" 1>&6
13494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13495 cat >> confdefs.h <<EOF
13496 #define $ac_tr_func 1
13499 else
13500 echo "$ac_t""no" 1>&6
13502 done
13509 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
13510 echo "configure:13511: checking for hypotl declaration" >&5
13511 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
13512 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
13513 echo $ac_n "(cached) $ac_c" 1>&6
13514 else
13517 ac_ext=C
13518 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13519 ac_cpp='$CXXCPP $CPPFLAGS'
13520 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13521 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13522 cross_compiling=$ac_cv_prog_cxx_cross
13524 cat > conftest.$ac_ext <<EOF
13525 #line 13526 "configure"
13526 #include "confdefs.h"
13527 #include <math.h>
13528 int main() {
13529 hypotl(0, 0);
13530 ; return 0; }
13532 if { (eval echo configure:13533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13533 rm -rf conftest*
13534 glibcpp_cv_func_hypotl_use=yes
13535 else
13536 echo "configure: failed program was:" >&5
13537 cat conftest.$ac_ext >&5
13538 rm -rf conftest*
13539 glibcpp_cv_func_hypotl_use=no
13541 rm -f conftest*
13542 ac_ext=c
13543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13544 ac_cpp='$CPP $CPPFLAGS'
13545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13547 cross_compiling=$ac_cv_prog_cc_cross
13553 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
13555 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
13556 for ac_func in hypotl
13558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13559 echo "configure:13560: checking for $ac_func" >&5
13560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13561 echo $ac_n "(cached) $ac_c" 1>&6
13562 else
13563 cat > conftest.$ac_ext <<EOF
13564 #line 13565 "configure"
13565 #include "confdefs.h"
13566 /* System header to define __stub macros and hopefully few prototypes,
13567 which can conflict with char $ac_func(); below. */
13568 #include <assert.h>
13569 /* Override any gcc2 internal prototype to avoid an error. */
13570 /* We use char because int might match the return type of a gcc2
13571 builtin and then its argument prototype would still apply. */
13572 char $ac_func();
13574 int main() {
13576 /* The GNU C library defines this for functions which it implements
13577 to always fail with ENOSYS. Some functions are actually named
13578 something starting with __ and the normal name is an alias. */
13579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13580 choke me
13581 #else
13582 $ac_func();
13583 #endif
13585 ; return 0; }
13587 if { (eval echo configure:13588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13588 rm -rf conftest*
13589 eval "ac_cv_func_$ac_func=yes"
13590 else
13591 echo "configure: failed program was:" >&5
13592 cat conftest.$ac_ext >&5
13593 rm -rf conftest*
13594 eval "ac_cv_func_$ac_func=no"
13596 rm -f conftest*
13599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13600 echo "$ac_t""yes" 1>&6
13601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13602 cat >> confdefs.h <<EOF
13603 #define $ac_tr_func 1
13606 else
13607 echo "$ac_t""no" 1>&6
13609 done
13611 else
13613 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
13614 echo "configure:13615: checking for _hypotl declaration" >&5
13615 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
13616 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
13617 echo $ac_n "(cached) $ac_c" 1>&6
13618 else
13621 ac_ext=C
13622 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13623 ac_cpp='$CXXCPP $CPPFLAGS'
13624 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13625 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13626 cross_compiling=$ac_cv_prog_cxx_cross
13628 cat > conftest.$ac_ext <<EOF
13629 #line 13630 "configure"
13630 #include "confdefs.h"
13631 #include <math.h>
13632 int main() {
13633 _hypotl(0, 0);
13634 ; return 0; }
13636 if { (eval echo configure:13637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13637 rm -rf conftest*
13638 glibcpp_cv_func__hypotl_use=yes
13639 else
13640 echo "configure: failed program was:" >&5
13641 cat conftest.$ac_ext >&5
13642 rm -rf conftest*
13643 glibcpp_cv_func__hypotl_use=no
13645 rm -f conftest*
13646 ac_ext=c
13647 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13648 ac_cpp='$CPP $CPPFLAGS'
13649 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13650 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13651 cross_compiling=$ac_cv_prog_cc_cross
13657 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
13659 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
13660 for ac_func in _hypotl
13662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13663 echo "configure:13664: checking for $ac_func" >&5
13664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13665 echo $ac_n "(cached) $ac_c" 1>&6
13666 else
13667 cat > conftest.$ac_ext <<EOF
13668 #line 13669 "configure"
13669 #include "confdefs.h"
13670 /* System header to define __stub macros and hopefully few prototypes,
13671 which can conflict with char $ac_func(); below. */
13672 #include <assert.h>
13673 /* Override any gcc2 internal prototype to avoid an error. */
13674 /* We use char because int might match the return type of a gcc2
13675 builtin and then its argument prototype would still apply. */
13676 char $ac_func();
13678 int main() {
13680 /* The GNU C library defines this for functions which it implements
13681 to always fail with ENOSYS. Some functions are actually named
13682 something starting with __ and the normal name is an alias. */
13683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13684 choke me
13685 #else
13686 $ac_func();
13687 #endif
13689 ; return 0; }
13691 if { (eval echo configure:13692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13692 rm -rf conftest*
13693 eval "ac_cv_func_$ac_func=yes"
13694 else
13695 echo "configure: failed program was:" >&5
13696 cat conftest.$ac_ext >&5
13697 rm -rf conftest*
13698 eval "ac_cv_func_$ac_func=no"
13700 rm -f conftest*
13703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13704 echo "$ac_t""yes" 1>&6
13705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13706 cat >> confdefs.h <<EOF
13707 #define $ac_tr_func 1
13710 else
13711 echo "$ac_t""no" 1>&6
13713 done
13720 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
13721 echo "configure:13722: checking for ldexpl declaration" >&5
13722 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
13723 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
13724 echo $ac_n "(cached) $ac_c" 1>&6
13725 else
13728 ac_ext=C
13729 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13730 ac_cpp='$CXXCPP $CPPFLAGS'
13731 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13732 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13733 cross_compiling=$ac_cv_prog_cxx_cross
13735 cat > conftest.$ac_ext <<EOF
13736 #line 13737 "configure"
13737 #include "confdefs.h"
13738 #include <math.h>
13739 int main() {
13740 ldexpl(0, 0);
13741 ; return 0; }
13743 if { (eval echo configure:13744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13744 rm -rf conftest*
13745 glibcpp_cv_func_ldexpl_use=yes
13746 else
13747 echo "configure: failed program was:" >&5
13748 cat conftest.$ac_ext >&5
13749 rm -rf conftest*
13750 glibcpp_cv_func_ldexpl_use=no
13752 rm -f conftest*
13753 ac_ext=c
13754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13755 ac_cpp='$CPP $CPPFLAGS'
13756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13758 cross_compiling=$ac_cv_prog_cc_cross
13764 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
13766 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
13767 for ac_func in ldexpl
13769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13770 echo "configure:13771: checking for $ac_func" >&5
13771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13772 echo $ac_n "(cached) $ac_c" 1>&6
13773 else
13774 cat > conftest.$ac_ext <<EOF
13775 #line 13776 "configure"
13776 #include "confdefs.h"
13777 /* System header to define __stub macros and hopefully few prototypes,
13778 which can conflict with char $ac_func(); below. */
13779 #include <assert.h>
13780 /* Override any gcc2 internal prototype to avoid an error. */
13781 /* We use char because int might match the return type of a gcc2
13782 builtin and then its argument prototype would still apply. */
13783 char $ac_func();
13785 int main() {
13787 /* The GNU C library defines this for functions which it implements
13788 to always fail with ENOSYS. Some functions are actually named
13789 something starting with __ and the normal name is an alias. */
13790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13791 choke me
13792 #else
13793 $ac_func();
13794 #endif
13796 ; return 0; }
13798 if { (eval echo configure:13799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13799 rm -rf conftest*
13800 eval "ac_cv_func_$ac_func=yes"
13801 else
13802 echo "configure: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13804 rm -rf conftest*
13805 eval "ac_cv_func_$ac_func=no"
13807 rm -f conftest*
13810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13811 echo "$ac_t""yes" 1>&6
13812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13813 cat >> confdefs.h <<EOF
13814 #define $ac_tr_func 1
13817 else
13818 echo "$ac_t""no" 1>&6
13820 done
13822 else
13824 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
13825 echo "configure:13826: checking for _ldexpl declaration" >&5
13826 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
13827 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
13828 echo $ac_n "(cached) $ac_c" 1>&6
13829 else
13832 ac_ext=C
13833 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13834 ac_cpp='$CXXCPP $CPPFLAGS'
13835 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13836 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13837 cross_compiling=$ac_cv_prog_cxx_cross
13839 cat > conftest.$ac_ext <<EOF
13840 #line 13841 "configure"
13841 #include "confdefs.h"
13842 #include <math.h>
13843 int main() {
13844 _ldexpl(0, 0);
13845 ; return 0; }
13847 if { (eval echo configure:13848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13848 rm -rf conftest*
13849 glibcpp_cv_func__ldexpl_use=yes
13850 else
13851 echo "configure: failed program was:" >&5
13852 cat conftest.$ac_ext >&5
13853 rm -rf conftest*
13854 glibcpp_cv_func__ldexpl_use=no
13856 rm -f conftest*
13857 ac_ext=c
13858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13859 ac_cpp='$CPP $CPPFLAGS'
13860 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13861 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13862 cross_compiling=$ac_cv_prog_cc_cross
13868 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
13870 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
13871 for ac_func in _ldexpl
13873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13874 echo "configure:13875: checking for $ac_func" >&5
13875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13876 echo $ac_n "(cached) $ac_c" 1>&6
13877 else
13878 cat > conftest.$ac_ext <<EOF
13879 #line 13880 "configure"
13880 #include "confdefs.h"
13881 /* System header to define __stub macros and hopefully few prototypes,
13882 which can conflict with char $ac_func(); below. */
13883 #include <assert.h>
13884 /* Override any gcc2 internal prototype to avoid an error. */
13885 /* We use char because int might match the return type of a gcc2
13886 builtin and then its argument prototype would still apply. */
13887 char $ac_func();
13889 int main() {
13891 /* The GNU C library defines this for functions which it implements
13892 to always fail with ENOSYS. Some functions are actually named
13893 something starting with __ and the normal name is an alias. */
13894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13895 choke me
13896 #else
13897 $ac_func();
13898 #endif
13900 ; return 0; }
13902 if { (eval echo configure:13903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13903 rm -rf conftest*
13904 eval "ac_cv_func_$ac_func=yes"
13905 else
13906 echo "configure: failed program was:" >&5
13907 cat conftest.$ac_ext >&5
13908 rm -rf conftest*
13909 eval "ac_cv_func_$ac_func=no"
13911 rm -f conftest*
13914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13915 echo "$ac_t""yes" 1>&6
13916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13917 cat >> confdefs.h <<EOF
13918 #define $ac_tr_func 1
13921 else
13922 echo "$ac_t""no" 1>&6
13924 done
13931 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13932 echo "configure:13933: checking for logl declaration" >&5
13933 if test x${glibcpp_cv_func_logl_use+set} != xset; then
13934 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13935 echo $ac_n "(cached) $ac_c" 1>&6
13936 else
13939 ac_ext=C
13940 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13941 ac_cpp='$CXXCPP $CPPFLAGS'
13942 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13943 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13944 cross_compiling=$ac_cv_prog_cxx_cross
13946 cat > conftest.$ac_ext <<EOF
13947 #line 13948 "configure"
13948 #include "confdefs.h"
13949 #include <math.h>
13950 #ifdef HAVE_IEEEFP_H
13951 #include <ieeefp.h>
13952 #endif
13954 int main() {
13955 logl(0);
13956 ; return 0; }
13958 if { (eval echo configure:13959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13959 rm -rf conftest*
13960 glibcpp_cv_func_logl_use=yes
13961 else
13962 echo "configure: failed program was:" >&5
13963 cat conftest.$ac_ext >&5
13964 rm -rf conftest*
13965 glibcpp_cv_func_logl_use=no
13967 rm -f conftest*
13968 ac_ext=c
13969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13970 ac_cpp='$CPP $CPPFLAGS'
13971 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13972 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13973 cross_compiling=$ac_cv_prog_cc_cross
13979 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13981 if test x$glibcpp_cv_func_logl_use = x"yes"; then
13982 for ac_func in logl
13984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13985 echo "configure:13986: checking for $ac_func" >&5
13986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13987 echo $ac_n "(cached) $ac_c" 1>&6
13988 else
13989 cat > conftest.$ac_ext <<EOF
13990 #line 13991 "configure"
13991 #include "confdefs.h"
13992 /* System header to define __stub macros and hopefully few prototypes,
13993 which can conflict with char $ac_func(); below. */
13994 #include <assert.h>
13995 /* Override any gcc2 internal prototype to avoid an error. */
13996 /* We use char because int might match the return type of a gcc2
13997 builtin and then its argument prototype would still apply. */
13998 char $ac_func();
14000 int main() {
14002 /* The GNU C library defines this for functions which it implements
14003 to always fail with ENOSYS. Some functions are actually named
14004 something starting with __ and the normal name is an alias. */
14005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14006 choke me
14007 #else
14008 $ac_func();
14009 #endif
14011 ; return 0; }
14013 if { (eval echo configure:14014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14014 rm -rf conftest*
14015 eval "ac_cv_func_$ac_func=yes"
14016 else
14017 echo "configure: failed program was:" >&5
14018 cat conftest.$ac_ext >&5
14019 rm -rf conftest*
14020 eval "ac_cv_func_$ac_func=no"
14022 rm -f conftest*
14025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14026 echo "$ac_t""yes" 1>&6
14027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14028 cat >> confdefs.h <<EOF
14029 #define $ac_tr_func 1
14032 else
14033 echo "$ac_t""no" 1>&6
14035 done
14037 else
14039 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
14040 echo "configure:14041: checking for _logl declaration" >&5
14041 if test x${glibcpp_cv_func__logl_use+set} != xset; then
14042 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
14043 echo $ac_n "(cached) $ac_c" 1>&6
14044 else
14047 ac_ext=C
14048 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14049 ac_cpp='$CXXCPP $CPPFLAGS'
14050 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14051 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14052 cross_compiling=$ac_cv_prog_cxx_cross
14054 cat > conftest.$ac_ext <<EOF
14055 #line 14056 "configure"
14056 #include "confdefs.h"
14057 #include <math.h>
14058 #ifdef HAVE_IEEEFP_H
14059 #include <ieeefp.h>
14060 #endif
14062 int main() {
14063 _logl(0);
14064 ; return 0; }
14066 if { (eval echo configure:14067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14067 rm -rf conftest*
14068 glibcpp_cv_func__logl_use=yes
14069 else
14070 echo "configure: failed program was:" >&5
14071 cat conftest.$ac_ext >&5
14072 rm -rf conftest*
14073 glibcpp_cv_func__logl_use=no
14075 rm -f conftest*
14076 ac_ext=c
14077 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14078 ac_cpp='$CPP $CPPFLAGS'
14079 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14080 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14081 cross_compiling=$ac_cv_prog_cc_cross
14087 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
14089 if test x$glibcpp_cv_func__logl_use = x"yes"; then
14090 for ac_func in _logl
14092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14093 echo "configure:14094: checking for $ac_func" >&5
14094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14095 echo $ac_n "(cached) $ac_c" 1>&6
14096 else
14097 cat > conftest.$ac_ext <<EOF
14098 #line 14099 "configure"
14099 #include "confdefs.h"
14100 /* System header to define __stub macros and hopefully few prototypes,
14101 which can conflict with char $ac_func(); below. */
14102 #include <assert.h>
14103 /* Override any gcc2 internal prototype to avoid an error. */
14104 /* We use char because int might match the return type of a gcc2
14105 builtin and then its argument prototype would still apply. */
14106 char $ac_func();
14108 int main() {
14110 /* The GNU C library defines this for functions which it implements
14111 to always fail with ENOSYS. Some functions are actually named
14112 something starting with __ and the normal name is an alias. */
14113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14114 choke me
14115 #else
14116 $ac_func();
14117 #endif
14119 ; return 0; }
14121 if { (eval echo configure:14122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14122 rm -rf conftest*
14123 eval "ac_cv_func_$ac_func=yes"
14124 else
14125 echo "configure: failed program was:" >&5
14126 cat conftest.$ac_ext >&5
14127 rm -rf conftest*
14128 eval "ac_cv_func_$ac_func=no"
14130 rm -f conftest*
14133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14134 echo "$ac_t""yes" 1>&6
14135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14136 cat >> confdefs.h <<EOF
14137 #define $ac_tr_func 1
14140 else
14141 echo "$ac_t""no" 1>&6
14143 done
14150 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
14151 echo "configure:14152: checking for log10l declaration" >&5
14152 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
14153 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
14154 echo $ac_n "(cached) $ac_c" 1>&6
14155 else
14158 ac_ext=C
14159 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14160 ac_cpp='$CXXCPP $CPPFLAGS'
14161 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14162 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14163 cross_compiling=$ac_cv_prog_cxx_cross
14165 cat > conftest.$ac_ext <<EOF
14166 #line 14167 "configure"
14167 #include "confdefs.h"
14168 #include <math.h>
14169 #ifdef HAVE_IEEEFP_H
14170 #include <ieeefp.h>
14171 #endif
14173 int main() {
14174 log10l(0);
14175 ; return 0; }
14177 if { (eval echo configure:14178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14178 rm -rf conftest*
14179 glibcpp_cv_func_log10l_use=yes
14180 else
14181 echo "configure: failed program was:" >&5
14182 cat conftest.$ac_ext >&5
14183 rm -rf conftest*
14184 glibcpp_cv_func_log10l_use=no
14186 rm -f conftest*
14187 ac_ext=c
14188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14189 ac_cpp='$CPP $CPPFLAGS'
14190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14192 cross_compiling=$ac_cv_prog_cc_cross
14198 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
14200 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
14201 for ac_func in log10l
14203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14204 echo "configure:14205: checking for $ac_func" >&5
14205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14206 echo $ac_n "(cached) $ac_c" 1>&6
14207 else
14208 cat > conftest.$ac_ext <<EOF
14209 #line 14210 "configure"
14210 #include "confdefs.h"
14211 /* System header to define __stub macros and hopefully few prototypes,
14212 which can conflict with char $ac_func(); below. */
14213 #include <assert.h>
14214 /* Override any gcc2 internal prototype to avoid an error. */
14215 /* We use char because int might match the return type of a gcc2
14216 builtin and then its argument prototype would still apply. */
14217 char $ac_func();
14219 int main() {
14221 /* The GNU C library defines this for functions which it implements
14222 to always fail with ENOSYS. Some functions are actually named
14223 something starting with __ and the normal name is an alias. */
14224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14225 choke me
14226 #else
14227 $ac_func();
14228 #endif
14230 ; return 0; }
14232 if { (eval echo configure:14233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14233 rm -rf conftest*
14234 eval "ac_cv_func_$ac_func=yes"
14235 else
14236 echo "configure: failed program was:" >&5
14237 cat conftest.$ac_ext >&5
14238 rm -rf conftest*
14239 eval "ac_cv_func_$ac_func=no"
14241 rm -f conftest*
14244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14245 echo "$ac_t""yes" 1>&6
14246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14247 cat >> confdefs.h <<EOF
14248 #define $ac_tr_func 1
14251 else
14252 echo "$ac_t""no" 1>&6
14254 done
14256 else
14258 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
14259 echo "configure:14260: checking for _log10l declaration" >&5
14260 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
14261 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
14262 echo $ac_n "(cached) $ac_c" 1>&6
14263 else
14266 ac_ext=C
14267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14268 ac_cpp='$CXXCPP $CPPFLAGS'
14269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14271 cross_compiling=$ac_cv_prog_cxx_cross
14273 cat > conftest.$ac_ext <<EOF
14274 #line 14275 "configure"
14275 #include "confdefs.h"
14276 #include <math.h>
14277 #ifdef HAVE_IEEEFP_H
14278 #include <ieeefp.h>
14279 #endif
14281 int main() {
14282 _log10l(0);
14283 ; return 0; }
14285 if { (eval echo configure:14286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14286 rm -rf conftest*
14287 glibcpp_cv_func__log10l_use=yes
14288 else
14289 echo "configure: failed program was:" >&5
14290 cat conftest.$ac_ext >&5
14291 rm -rf conftest*
14292 glibcpp_cv_func__log10l_use=no
14294 rm -f conftest*
14295 ac_ext=c
14296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14297 ac_cpp='$CPP $CPPFLAGS'
14298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14300 cross_compiling=$ac_cv_prog_cc_cross
14306 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
14308 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
14309 for ac_func in _log10l
14311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14312 echo "configure:14313: checking for $ac_func" >&5
14313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14314 echo $ac_n "(cached) $ac_c" 1>&6
14315 else
14316 cat > conftest.$ac_ext <<EOF
14317 #line 14318 "configure"
14318 #include "confdefs.h"
14319 /* System header to define __stub macros and hopefully few prototypes,
14320 which can conflict with char $ac_func(); below. */
14321 #include <assert.h>
14322 /* Override any gcc2 internal prototype to avoid an error. */
14323 /* We use char because int might match the return type of a gcc2
14324 builtin and then its argument prototype would still apply. */
14325 char $ac_func();
14327 int main() {
14329 /* The GNU C library defines this for functions which it implements
14330 to always fail with ENOSYS. Some functions are actually named
14331 something starting with __ and the normal name is an alias. */
14332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14333 choke me
14334 #else
14335 $ac_func();
14336 #endif
14338 ; return 0; }
14340 if { (eval echo configure:14341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14341 rm -rf conftest*
14342 eval "ac_cv_func_$ac_func=yes"
14343 else
14344 echo "configure: failed program was:" >&5
14345 cat conftest.$ac_ext >&5
14346 rm -rf conftest*
14347 eval "ac_cv_func_$ac_func=no"
14349 rm -f conftest*
14352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14353 echo "$ac_t""yes" 1>&6
14354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14355 cat >> confdefs.h <<EOF
14356 #define $ac_tr_func 1
14359 else
14360 echo "$ac_t""no" 1>&6
14362 done
14369 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
14370 echo "configure:14371: checking for modfl declaration" >&5
14371 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
14372 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
14373 echo $ac_n "(cached) $ac_c" 1>&6
14374 else
14377 ac_ext=C
14378 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14379 ac_cpp='$CXXCPP $CPPFLAGS'
14380 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14381 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14382 cross_compiling=$ac_cv_prog_cxx_cross
14384 cat > conftest.$ac_ext <<EOF
14385 #line 14386 "configure"
14386 #include "confdefs.h"
14387 #include <math.h>
14388 int main() {
14389 modfl(0, 0);
14390 ; return 0; }
14392 if { (eval echo configure:14393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14393 rm -rf conftest*
14394 glibcpp_cv_func_modfl_use=yes
14395 else
14396 echo "configure: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14398 rm -rf conftest*
14399 glibcpp_cv_func_modfl_use=no
14401 rm -f conftest*
14402 ac_ext=c
14403 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14404 ac_cpp='$CPP $CPPFLAGS'
14405 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14406 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14407 cross_compiling=$ac_cv_prog_cc_cross
14413 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
14415 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
14416 for ac_func in modfl
14418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14419 echo "configure:14420: checking for $ac_func" >&5
14420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14421 echo $ac_n "(cached) $ac_c" 1>&6
14422 else
14423 cat > conftest.$ac_ext <<EOF
14424 #line 14425 "configure"
14425 #include "confdefs.h"
14426 /* System header to define __stub macros and hopefully few prototypes,
14427 which can conflict with char $ac_func(); below. */
14428 #include <assert.h>
14429 /* Override any gcc2 internal prototype to avoid an error. */
14430 /* We use char because int might match the return type of a gcc2
14431 builtin and then its argument prototype would still apply. */
14432 char $ac_func();
14434 int main() {
14436 /* The GNU C library defines this for functions which it implements
14437 to always fail with ENOSYS. Some functions are actually named
14438 something starting with __ and the normal name is an alias. */
14439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14440 choke me
14441 #else
14442 $ac_func();
14443 #endif
14445 ; return 0; }
14447 if { (eval echo configure:14448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14448 rm -rf conftest*
14449 eval "ac_cv_func_$ac_func=yes"
14450 else
14451 echo "configure: failed program was:" >&5
14452 cat conftest.$ac_ext >&5
14453 rm -rf conftest*
14454 eval "ac_cv_func_$ac_func=no"
14456 rm -f conftest*
14459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14460 echo "$ac_t""yes" 1>&6
14461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14462 cat >> confdefs.h <<EOF
14463 #define $ac_tr_func 1
14466 else
14467 echo "$ac_t""no" 1>&6
14469 done
14471 else
14473 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
14474 echo "configure:14475: checking for _modfl declaration" >&5
14475 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
14476 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
14477 echo $ac_n "(cached) $ac_c" 1>&6
14478 else
14481 ac_ext=C
14482 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14483 ac_cpp='$CXXCPP $CPPFLAGS'
14484 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14485 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14486 cross_compiling=$ac_cv_prog_cxx_cross
14488 cat > conftest.$ac_ext <<EOF
14489 #line 14490 "configure"
14490 #include "confdefs.h"
14491 #include <math.h>
14492 int main() {
14493 _modfl(0, 0);
14494 ; return 0; }
14496 if { (eval echo configure:14497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14497 rm -rf conftest*
14498 glibcpp_cv_func__modfl_use=yes
14499 else
14500 echo "configure: failed program was:" >&5
14501 cat conftest.$ac_ext >&5
14502 rm -rf conftest*
14503 glibcpp_cv_func__modfl_use=no
14505 rm -f conftest*
14506 ac_ext=c
14507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14508 ac_cpp='$CPP $CPPFLAGS'
14509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14511 cross_compiling=$ac_cv_prog_cc_cross
14517 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
14519 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
14520 for ac_func in _modfl
14522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14523 echo "configure:14524: checking for $ac_func" >&5
14524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14525 echo $ac_n "(cached) $ac_c" 1>&6
14526 else
14527 cat > conftest.$ac_ext <<EOF
14528 #line 14529 "configure"
14529 #include "confdefs.h"
14530 /* System header to define __stub macros and hopefully few prototypes,
14531 which can conflict with char $ac_func(); below. */
14532 #include <assert.h>
14533 /* Override any gcc2 internal prototype to avoid an error. */
14534 /* We use char because int might match the return type of a gcc2
14535 builtin and then its argument prototype would still apply. */
14536 char $ac_func();
14538 int main() {
14540 /* The GNU C library defines this for functions which it implements
14541 to always fail with ENOSYS. Some functions are actually named
14542 something starting with __ and the normal name is an alias. */
14543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14544 choke me
14545 #else
14546 $ac_func();
14547 #endif
14549 ; return 0; }
14551 if { (eval echo configure:14552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14552 rm -rf conftest*
14553 eval "ac_cv_func_$ac_func=yes"
14554 else
14555 echo "configure: failed program was:" >&5
14556 cat conftest.$ac_ext >&5
14557 rm -rf conftest*
14558 eval "ac_cv_func_$ac_func=no"
14560 rm -f conftest*
14563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14564 echo "$ac_t""yes" 1>&6
14565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14566 cat >> confdefs.h <<EOF
14567 #define $ac_tr_func 1
14570 else
14571 echo "$ac_t""no" 1>&6
14573 done
14580 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
14581 echo "configure:14582: checking for powl declaration" >&5
14582 if test x${glibcpp_cv_func_powl_use+set} != xset; then
14583 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
14584 echo $ac_n "(cached) $ac_c" 1>&6
14585 else
14588 ac_ext=C
14589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14590 ac_cpp='$CXXCPP $CPPFLAGS'
14591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14593 cross_compiling=$ac_cv_prog_cxx_cross
14595 cat > conftest.$ac_ext <<EOF
14596 #line 14597 "configure"
14597 #include "confdefs.h"
14598 #include <math.h>
14599 int main() {
14600 powl(0, 0);
14601 ; return 0; }
14603 if { (eval echo configure:14604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14604 rm -rf conftest*
14605 glibcpp_cv_func_powl_use=yes
14606 else
14607 echo "configure: failed program was:" >&5
14608 cat conftest.$ac_ext >&5
14609 rm -rf conftest*
14610 glibcpp_cv_func_powl_use=no
14612 rm -f conftest*
14613 ac_ext=c
14614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14615 ac_cpp='$CPP $CPPFLAGS'
14616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14618 cross_compiling=$ac_cv_prog_cc_cross
14624 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
14626 if test x$glibcpp_cv_func_powl_use = x"yes"; then
14627 for ac_func in powl
14629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14630 echo "configure:14631: checking for $ac_func" >&5
14631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14632 echo $ac_n "(cached) $ac_c" 1>&6
14633 else
14634 cat > conftest.$ac_ext <<EOF
14635 #line 14636 "configure"
14636 #include "confdefs.h"
14637 /* System header to define __stub macros and hopefully few prototypes,
14638 which can conflict with char $ac_func(); below. */
14639 #include <assert.h>
14640 /* Override any gcc2 internal prototype to avoid an error. */
14641 /* We use char because int might match the return type of a gcc2
14642 builtin and then its argument prototype would still apply. */
14643 char $ac_func();
14645 int main() {
14647 /* The GNU C library defines this for functions which it implements
14648 to always fail with ENOSYS. Some functions are actually named
14649 something starting with __ and the normal name is an alias. */
14650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14651 choke me
14652 #else
14653 $ac_func();
14654 #endif
14656 ; return 0; }
14658 if { (eval echo configure:14659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14659 rm -rf conftest*
14660 eval "ac_cv_func_$ac_func=yes"
14661 else
14662 echo "configure: failed program was:" >&5
14663 cat conftest.$ac_ext >&5
14664 rm -rf conftest*
14665 eval "ac_cv_func_$ac_func=no"
14667 rm -f conftest*
14670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14671 echo "$ac_t""yes" 1>&6
14672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14673 cat >> confdefs.h <<EOF
14674 #define $ac_tr_func 1
14677 else
14678 echo "$ac_t""no" 1>&6
14680 done
14682 else
14684 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
14685 echo "configure:14686: checking for _powl declaration" >&5
14686 if test x${glibcpp_cv_func__powl_use+set} != xset; then
14687 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
14688 echo $ac_n "(cached) $ac_c" 1>&6
14689 else
14692 ac_ext=C
14693 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14694 ac_cpp='$CXXCPP $CPPFLAGS'
14695 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14696 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14697 cross_compiling=$ac_cv_prog_cxx_cross
14699 cat > conftest.$ac_ext <<EOF
14700 #line 14701 "configure"
14701 #include "confdefs.h"
14702 #include <math.h>
14703 int main() {
14704 _powl(0, 0);
14705 ; return 0; }
14707 if { (eval echo configure:14708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14708 rm -rf conftest*
14709 glibcpp_cv_func__powl_use=yes
14710 else
14711 echo "configure: failed program was:" >&5
14712 cat conftest.$ac_ext >&5
14713 rm -rf conftest*
14714 glibcpp_cv_func__powl_use=no
14716 rm -f conftest*
14717 ac_ext=c
14718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14719 ac_cpp='$CPP $CPPFLAGS'
14720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14722 cross_compiling=$ac_cv_prog_cc_cross
14728 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
14730 if test x$glibcpp_cv_func__powl_use = x"yes"; then
14731 for ac_func in _powl
14733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14734 echo "configure:14735: checking for $ac_func" >&5
14735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14736 echo $ac_n "(cached) $ac_c" 1>&6
14737 else
14738 cat > conftest.$ac_ext <<EOF
14739 #line 14740 "configure"
14740 #include "confdefs.h"
14741 /* System header to define __stub macros and hopefully few prototypes,
14742 which can conflict with char $ac_func(); below. */
14743 #include <assert.h>
14744 /* Override any gcc2 internal prototype to avoid an error. */
14745 /* We use char because int might match the return type of a gcc2
14746 builtin and then its argument prototype would still apply. */
14747 char $ac_func();
14749 int main() {
14751 /* The GNU C library defines this for functions which it implements
14752 to always fail with ENOSYS. Some functions are actually named
14753 something starting with __ and the normal name is an alias. */
14754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14755 choke me
14756 #else
14757 $ac_func();
14758 #endif
14760 ; return 0; }
14762 if { (eval echo configure:14763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14763 rm -rf conftest*
14764 eval "ac_cv_func_$ac_func=yes"
14765 else
14766 echo "configure: failed program was:" >&5
14767 cat conftest.$ac_ext >&5
14768 rm -rf conftest*
14769 eval "ac_cv_func_$ac_func=no"
14771 rm -f conftest*
14774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14775 echo "$ac_t""yes" 1>&6
14776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14777 cat >> confdefs.h <<EOF
14778 #define $ac_tr_func 1
14781 else
14782 echo "$ac_t""no" 1>&6
14784 done
14791 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
14792 echo "configure:14793: checking for sqrtl declaration" >&5
14793 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
14794 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
14795 echo $ac_n "(cached) $ac_c" 1>&6
14796 else
14799 ac_ext=C
14800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14801 ac_cpp='$CXXCPP $CPPFLAGS'
14802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14804 cross_compiling=$ac_cv_prog_cxx_cross
14806 cat > conftest.$ac_ext <<EOF
14807 #line 14808 "configure"
14808 #include "confdefs.h"
14809 #include <math.h>
14810 #ifdef HAVE_IEEEFP_H
14811 #include <ieeefp.h>
14812 #endif
14814 int main() {
14815 sqrtl(0);
14816 ; return 0; }
14818 if { (eval echo configure:14819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14819 rm -rf conftest*
14820 glibcpp_cv_func_sqrtl_use=yes
14821 else
14822 echo "configure: failed program was:" >&5
14823 cat conftest.$ac_ext >&5
14824 rm -rf conftest*
14825 glibcpp_cv_func_sqrtl_use=no
14827 rm -f conftest*
14828 ac_ext=c
14829 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14830 ac_cpp='$CPP $CPPFLAGS'
14831 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14832 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14833 cross_compiling=$ac_cv_prog_cc_cross
14839 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
14841 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
14842 for ac_func in sqrtl
14844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14845 echo "configure:14846: checking for $ac_func" >&5
14846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14847 echo $ac_n "(cached) $ac_c" 1>&6
14848 else
14849 cat > conftest.$ac_ext <<EOF
14850 #line 14851 "configure"
14851 #include "confdefs.h"
14852 /* System header to define __stub macros and hopefully few prototypes,
14853 which can conflict with char $ac_func(); below. */
14854 #include <assert.h>
14855 /* Override any gcc2 internal prototype to avoid an error. */
14856 /* We use char because int might match the return type of a gcc2
14857 builtin and then its argument prototype would still apply. */
14858 char $ac_func();
14860 int main() {
14862 /* The GNU C library defines this for functions which it implements
14863 to always fail with ENOSYS. Some functions are actually named
14864 something starting with __ and the normal name is an alias. */
14865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14866 choke me
14867 #else
14868 $ac_func();
14869 #endif
14871 ; return 0; }
14873 if { (eval echo configure:14874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14874 rm -rf conftest*
14875 eval "ac_cv_func_$ac_func=yes"
14876 else
14877 echo "configure: failed program was:" >&5
14878 cat conftest.$ac_ext >&5
14879 rm -rf conftest*
14880 eval "ac_cv_func_$ac_func=no"
14882 rm -f conftest*
14885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14886 echo "$ac_t""yes" 1>&6
14887 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14888 cat >> confdefs.h <<EOF
14889 #define $ac_tr_func 1
14892 else
14893 echo "$ac_t""no" 1>&6
14895 done
14897 else
14899 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
14900 echo "configure:14901: checking for _sqrtl declaration" >&5
14901 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
14902 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
14903 echo $ac_n "(cached) $ac_c" 1>&6
14904 else
14907 ac_ext=C
14908 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14909 ac_cpp='$CXXCPP $CPPFLAGS'
14910 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14911 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14912 cross_compiling=$ac_cv_prog_cxx_cross
14914 cat > conftest.$ac_ext <<EOF
14915 #line 14916 "configure"
14916 #include "confdefs.h"
14917 #include <math.h>
14918 #ifdef HAVE_IEEEFP_H
14919 #include <ieeefp.h>
14920 #endif
14922 int main() {
14923 _sqrtl(0);
14924 ; return 0; }
14926 if { (eval echo configure:14927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14927 rm -rf conftest*
14928 glibcpp_cv_func__sqrtl_use=yes
14929 else
14930 echo "configure: failed program was:" >&5
14931 cat conftest.$ac_ext >&5
14932 rm -rf conftest*
14933 glibcpp_cv_func__sqrtl_use=no
14935 rm -f conftest*
14936 ac_ext=c
14937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14938 ac_cpp='$CPP $CPPFLAGS'
14939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14941 cross_compiling=$ac_cv_prog_cc_cross
14947 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14949 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14950 for ac_func in _sqrtl
14952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14953 echo "configure:14954: checking for $ac_func" >&5
14954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14955 echo $ac_n "(cached) $ac_c" 1>&6
14956 else
14957 cat > conftest.$ac_ext <<EOF
14958 #line 14959 "configure"
14959 #include "confdefs.h"
14960 /* System header to define __stub macros and hopefully few prototypes,
14961 which can conflict with char $ac_func(); below. */
14962 #include <assert.h>
14963 /* Override any gcc2 internal prototype to avoid an error. */
14964 /* We use char because int might match the return type of a gcc2
14965 builtin and then its argument prototype would still apply. */
14966 char $ac_func();
14968 int main() {
14970 /* The GNU C library defines this for functions which it implements
14971 to always fail with ENOSYS. Some functions are actually named
14972 something starting with __ and the normal name is an alias. */
14973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14974 choke me
14975 #else
14976 $ac_func();
14977 #endif
14979 ; return 0; }
14981 if { (eval echo configure:14982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14982 rm -rf conftest*
14983 eval "ac_cv_func_$ac_func=yes"
14984 else
14985 echo "configure: failed program was:" >&5
14986 cat conftest.$ac_ext >&5
14987 rm -rf conftest*
14988 eval "ac_cv_func_$ac_func=no"
14990 rm -f conftest*
14993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14994 echo "$ac_t""yes" 1>&6
14995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14996 cat >> confdefs.h <<EOF
14997 #define $ac_tr_func 1
15000 else
15001 echo "$ac_t""no" 1>&6
15003 done
15010 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
15011 echo "configure:15012: checking for sincosl declaration" >&5
15012 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
15013 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
15014 echo $ac_n "(cached) $ac_c" 1>&6
15015 else
15018 ac_ext=C
15019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15020 ac_cpp='$CXXCPP $CPPFLAGS'
15021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15023 cross_compiling=$ac_cv_prog_cxx_cross
15025 cat > conftest.$ac_ext <<EOF
15026 #line 15027 "configure"
15027 #include "confdefs.h"
15028 #include <math.h>
15029 int main() {
15030 sincosl(0, 0, 0);
15031 ; return 0; }
15033 if { (eval echo configure:15034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15034 rm -rf conftest*
15035 glibcpp_cv_func_sincosl_use=yes
15036 else
15037 echo "configure: failed program was:" >&5
15038 cat conftest.$ac_ext >&5
15039 rm -rf conftest*
15040 glibcpp_cv_func_sincosl_use=no
15042 rm -f conftest*
15043 ac_ext=c
15044 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15045 ac_cpp='$CPP $CPPFLAGS'
15046 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15047 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15048 cross_compiling=$ac_cv_prog_cc_cross
15054 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
15056 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
15057 for ac_func in sincosl
15059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15060 echo "configure:15061: checking for $ac_func" >&5
15061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15062 echo $ac_n "(cached) $ac_c" 1>&6
15063 else
15064 cat > conftest.$ac_ext <<EOF
15065 #line 15066 "configure"
15066 #include "confdefs.h"
15067 /* System header to define __stub macros and hopefully few prototypes,
15068 which can conflict with char $ac_func(); below. */
15069 #include <assert.h>
15070 /* Override any gcc2 internal prototype to avoid an error. */
15071 /* We use char because int might match the return type of a gcc2
15072 builtin and then its argument prototype would still apply. */
15073 char $ac_func();
15075 int main() {
15077 /* The GNU C library defines this for functions which it implements
15078 to always fail with ENOSYS. Some functions are actually named
15079 something starting with __ and the normal name is an alias. */
15080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15081 choke me
15082 #else
15083 $ac_func();
15084 #endif
15086 ; return 0; }
15088 if { (eval echo configure:15089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15089 rm -rf conftest*
15090 eval "ac_cv_func_$ac_func=yes"
15091 else
15092 echo "configure: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15094 rm -rf conftest*
15095 eval "ac_cv_func_$ac_func=no"
15097 rm -f conftest*
15100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15101 echo "$ac_t""yes" 1>&6
15102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15103 cat >> confdefs.h <<EOF
15104 #define $ac_tr_func 1
15107 else
15108 echo "$ac_t""no" 1>&6
15110 done
15112 else
15114 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
15115 echo "configure:15116: checking for _sincosl declaration" >&5
15116 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
15117 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
15118 echo $ac_n "(cached) $ac_c" 1>&6
15119 else
15122 ac_ext=C
15123 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15124 ac_cpp='$CXXCPP $CPPFLAGS'
15125 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15126 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15127 cross_compiling=$ac_cv_prog_cxx_cross
15129 cat > conftest.$ac_ext <<EOF
15130 #line 15131 "configure"
15131 #include "confdefs.h"
15132 #include <math.h>
15133 int main() {
15134 _sincosl(0, 0, 0);
15135 ; return 0; }
15137 if { (eval echo configure:15138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15138 rm -rf conftest*
15139 glibcpp_cv_func__sincosl_use=yes
15140 else
15141 echo "configure: failed program was:" >&5
15142 cat conftest.$ac_ext >&5
15143 rm -rf conftest*
15144 glibcpp_cv_func__sincosl_use=no
15146 rm -f conftest*
15147 ac_ext=c
15148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15149 ac_cpp='$CPP $CPPFLAGS'
15150 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15151 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15152 cross_compiling=$ac_cv_prog_cc_cross
15158 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
15160 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
15161 for ac_func in _sincosl
15163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15164 echo "configure:15165: checking for $ac_func" >&5
15165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15166 echo $ac_n "(cached) $ac_c" 1>&6
15167 else
15168 cat > conftest.$ac_ext <<EOF
15169 #line 15170 "configure"
15170 #include "confdefs.h"
15171 /* System header to define __stub macros and hopefully few prototypes,
15172 which can conflict with char $ac_func(); below. */
15173 #include <assert.h>
15174 /* Override any gcc2 internal prototype to avoid an error. */
15175 /* We use char because int might match the return type of a gcc2
15176 builtin and then its argument prototype would still apply. */
15177 char $ac_func();
15179 int main() {
15181 /* The GNU C library defines this for functions which it implements
15182 to always fail with ENOSYS. Some functions are actually named
15183 something starting with __ and the normal name is an alias. */
15184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15185 choke me
15186 #else
15187 $ac_func();
15188 #endif
15190 ; return 0; }
15192 if { (eval echo configure:15193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15193 rm -rf conftest*
15194 eval "ac_cv_func_$ac_func=yes"
15195 else
15196 echo "configure: failed program was:" >&5
15197 cat conftest.$ac_ext >&5
15198 rm -rf conftest*
15199 eval "ac_cv_func_$ac_func=no"
15201 rm -f conftest*
15204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15205 echo "$ac_t""yes" 1>&6
15206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15207 cat >> confdefs.h <<EOF
15208 #define $ac_tr_func 1
15211 else
15212 echo "$ac_t""no" 1>&6
15214 done
15221 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
15222 echo "configure:15223: checking for finitel declaration" >&5
15223 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
15224 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
15225 echo $ac_n "(cached) $ac_c" 1>&6
15226 else
15229 ac_ext=C
15230 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15231 ac_cpp='$CXXCPP $CPPFLAGS'
15232 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15233 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15234 cross_compiling=$ac_cv_prog_cxx_cross
15236 cat > conftest.$ac_ext <<EOF
15237 #line 15238 "configure"
15238 #include "confdefs.h"
15239 #include <math.h>
15240 #ifdef HAVE_IEEEFP_H
15241 #include <ieeefp.h>
15242 #endif
15244 int main() {
15245 finitel(0);
15246 ; return 0; }
15248 if { (eval echo configure:15249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15249 rm -rf conftest*
15250 glibcpp_cv_func_finitel_use=yes
15251 else
15252 echo "configure: failed program was:" >&5
15253 cat conftest.$ac_ext >&5
15254 rm -rf conftest*
15255 glibcpp_cv_func_finitel_use=no
15257 rm -f conftest*
15258 ac_ext=c
15259 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15260 ac_cpp='$CPP $CPPFLAGS'
15261 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15262 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15263 cross_compiling=$ac_cv_prog_cc_cross
15269 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
15271 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
15272 for ac_func in finitel
15274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15275 echo "configure:15276: checking for $ac_func" >&5
15276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15277 echo $ac_n "(cached) $ac_c" 1>&6
15278 else
15279 cat > conftest.$ac_ext <<EOF
15280 #line 15281 "configure"
15281 #include "confdefs.h"
15282 /* System header to define __stub macros and hopefully few prototypes,
15283 which can conflict with char $ac_func(); below. */
15284 #include <assert.h>
15285 /* Override any gcc2 internal prototype to avoid an error. */
15286 /* We use char because int might match the return type of a gcc2
15287 builtin and then its argument prototype would still apply. */
15288 char $ac_func();
15290 int main() {
15292 /* The GNU C library defines this for functions which it implements
15293 to always fail with ENOSYS. Some functions are actually named
15294 something starting with __ and the normal name is an alias. */
15295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15296 choke me
15297 #else
15298 $ac_func();
15299 #endif
15301 ; return 0; }
15303 if { (eval echo configure:15304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15304 rm -rf conftest*
15305 eval "ac_cv_func_$ac_func=yes"
15306 else
15307 echo "configure: failed program was:" >&5
15308 cat conftest.$ac_ext >&5
15309 rm -rf conftest*
15310 eval "ac_cv_func_$ac_func=no"
15312 rm -f conftest*
15315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15316 echo "$ac_t""yes" 1>&6
15317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15318 cat >> confdefs.h <<EOF
15319 #define $ac_tr_func 1
15322 else
15323 echo "$ac_t""no" 1>&6
15325 done
15327 else
15329 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
15330 echo "configure:15331: checking for _finitel declaration" >&5
15331 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
15332 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
15333 echo $ac_n "(cached) $ac_c" 1>&6
15334 else
15337 ac_ext=C
15338 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15339 ac_cpp='$CXXCPP $CPPFLAGS'
15340 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15341 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15342 cross_compiling=$ac_cv_prog_cxx_cross
15344 cat > conftest.$ac_ext <<EOF
15345 #line 15346 "configure"
15346 #include "confdefs.h"
15347 #include <math.h>
15348 #ifdef HAVE_IEEEFP_H
15349 #include <ieeefp.h>
15350 #endif
15352 int main() {
15353 _finitel(0);
15354 ; return 0; }
15356 if { (eval echo configure:15357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15357 rm -rf conftest*
15358 glibcpp_cv_func__finitel_use=yes
15359 else
15360 echo "configure: failed program was:" >&5
15361 cat conftest.$ac_ext >&5
15362 rm -rf conftest*
15363 glibcpp_cv_func__finitel_use=no
15365 rm -f conftest*
15366 ac_ext=c
15367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15368 ac_cpp='$CPP $CPPFLAGS'
15369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15371 cross_compiling=$ac_cv_prog_cc_cross
15377 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
15379 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
15380 for ac_func in _finitel
15382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15383 echo "configure:15384: checking for $ac_func" >&5
15384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15385 echo $ac_n "(cached) $ac_c" 1>&6
15386 else
15387 cat > conftest.$ac_ext <<EOF
15388 #line 15389 "configure"
15389 #include "confdefs.h"
15390 /* System header to define __stub macros and hopefully few prototypes,
15391 which can conflict with char $ac_func(); below. */
15392 #include <assert.h>
15393 /* Override any gcc2 internal prototype to avoid an error. */
15394 /* We use char because int might match the return type of a gcc2
15395 builtin and then its argument prototype would still apply. */
15396 char $ac_func();
15398 int main() {
15400 /* The GNU C library defines this for functions which it implements
15401 to always fail with ENOSYS. Some functions are actually named
15402 something starting with __ and the normal name is an alias. */
15403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15404 choke me
15405 #else
15406 $ac_func();
15407 #endif
15409 ; return 0; }
15411 if { (eval echo configure:15412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15412 rm -rf conftest*
15413 eval "ac_cv_func_$ac_func=yes"
15414 else
15415 echo "configure: failed program was:" >&5
15416 cat conftest.$ac_ext >&5
15417 rm -rf conftest*
15418 eval "ac_cv_func_$ac_func=no"
15420 rm -f conftest*
15423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15424 echo "$ac_t""yes" 1>&6
15425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15426 cat >> confdefs.h <<EOF
15427 #define $ac_tr_func 1
15430 else
15431 echo "$ac_t""no" 1>&6
15433 done
15441 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
15442 echo "configure:15443: checking for _float trig functions" >&5
15443 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
15444 echo $ac_n "(cached) $ac_c" 1>&6
15445 else
15448 ac_ext=C
15449 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15450 ac_cpp='$CXXCPP $CPPFLAGS'
15451 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15452 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15453 cross_compiling=$ac_cv_prog_cxx_cross
15455 cat > conftest.$ac_ext <<EOF
15456 #line 15457 "configure"
15457 #include "confdefs.h"
15458 #include <math.h>
15459 int main() {
15460 `for x in _acosf _asinf _atanf \
15461 _cosf _sinf _tanf \
15462 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
15463 ; return 0; }
15465 if { (eval echo configure:15466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15466 rm -rf conftest*
15467 glibcpp_cv_func__float_trig_use=yes
15468 else
15469 echo "configure: failed program was:" >&5
15470 cat conftest.$ac_ext >&5
15471 rm -rf conftest*
15472 glibcpp_cv_func__float_trig_use=no
15474 rm -f conftest*
15475 ac_ext=c
15476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15477 ac_cpp='$CPP $CPPFLAGS'
15478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15480 cross_compiling=$ac_cv_prog_cc_cross
15484 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
15485 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
15486 for ac_func in _acosf _asinf _atanf \
15487 _cosf _sinf _tanf \
15488 _coshf _sinhf _tanhf
15490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15491 echo "configure:15492: checking for $ac_func" >&5
15492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15493 echo $ac_n "(cached) $ac_c" 1>&6
15494 else
15495 cat > conftest.$ac_ext <<EOF
15496 #line 15497 "configure"
15497 #include "confdefs.h"
15498 /* System header to define __stub macros and hopefully few prototypes,
15499 which can conflict with char $ac_func(); below. */
15500 #include <assert.h>
15501 /* Override any gcc2 internal prototype to avoid an error. */
15502 /* We use char because int might match the return type of a gcc2
15503 builtin and then its argument prototype would still apply. */
15504 char $ac_func();
15506 int main() {
15508 /* The GNU C library defines this for functions which it implements
15509 to always fail with ENOSYS. Some functions are actually named
15510 something starting with __ and the normal name is an alias. */
15511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15512 choke me
15513 #else
15514 $ac_func();
15515 #endif
15517 ; return 0; }
15519 if { (eval echo configure:15520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15520 rm -rf conftest*
15521 eval "ac_cv_func_$ac_func=yes"
15522 else
15523 echo "configure: failed program was:" >&5
15524 cat conftest.$ac_ext >&5
15525 rm -rf conftest*
15526 eval "ac_cv_func_$ac_func=no"
15528 rm -f conftest*
15531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15532 echo "$ac_t""yes" 1>&6
15533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15534 cat >> confdefs.h <<EOF
15535 #define $ac_tr_func 1
15538 else
15539 echo "$ac_t""no" 1>&6
15541 done
15546 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
15547 echo "configure:15548: checking for _float round functions" >&5
15548 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
15549 echo $ac_n "(cached) $ac_c" 1>&6
15550 else
15553 ac_ext=C
15554 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15555 ac_cpp='$CXXCPP $CPPFLAGS'
15556 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15557 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15558 cross_compiling=$ac_cv_prog_cxx_cross
15560 cat > conftest.$ac_ext <<EOF
15561 #line 15562 "configure"
15562 #include "confdefs.h"
15563 #include <math.h>
15564 int main() {
15565 `for x in _ceilf _floorf; do echo "$x (0);"; done`
15566 ; return 0; }
15568 if { (eval echo configure:15569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15569 rm -rf conftest*
15570 glibcpp_cv_func__float_round_use=yes
15571 else
15572 echo "configure: failed program was:" >&5
15573 cat conftest.$ac_ext >&5
15574 rm -rf conftest*
15575 glibcpp_cv_func__float_round_use=no
15577 rm -f conftest*
15578 ac_ext=c
15579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15580 ac_cpp='$CPP $CPPFLAGS'
15581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15583 cross_compiling=$ac_cv_prog_cc_cross
15587 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
15588 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
15589 for ac_func in _ceilf _floorf
15591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15592 echo "configure:15593: checking for $ac_func" >&5
15593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15594 echo $ac_n "(cached) $ac_c" 1>&6
15595 else
15596 cat > conftest.$ac_ext <<EOF
15597 #line 15598 "configure"
15598 #include "confdefs.h"
15599 /* System header to define __stub macros and hopefully few prototypes,
15600 which can conflict with char $ac_func(); below. */
15601 #include <assert.h>
15602 /* Override any gcc2 internal prototype to avoid an error. */
15603 /* We use char because int might match the return type of a gcc2
15604 builtin and then its argument prototype would still apply. */
15605 char $ac_func();
15607 int main() {
15609 /* The GNU C library defines this for functions which it implements
15610 to always fail with ENOSYS. Some functions are actually named
15611 something starting with __ and the normal name is an alias. */
15612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15613 choke me
15614 #else
15615 $ac_func();
15616 #endif
15618 ; return 0; }
15620 if { (eval echo configure:15621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15621 rm -rf conftest*
15622 eval "ac_cv_func_$ac_func=yes"
15623 else
15624 echo "configure: failed program was:" >&5
15625 cat conftest.$ac_ext >&5
15626 rm -rf conftest*
15627 eval "ac_cv_func_$ac_func=no"
15629 rm -f conftest*
15632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15633 echo "$ac_t""yes" 1>&6
15634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15635 cat >> confdefs.h <<EOF
15636 #define $ac_tr_func 1
15639 else
15640 echo "$ac_t""no" 1>&6
15642 done
15648 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
15649 echo "configure:15650: checking for _long double trig functions" >&5
15650 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
15651 echo $ac_n "(cached) $ac_c" 1>&6
15652 else
15655 ac_ext=C
15656 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15657 ac_cpp='$CXXCPP $CPPFLAGS'
15658 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15659 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15660 cross_compiling=$ac_cv_prog_cxx_cross
15662 cat > conftest.$ac_ext <<EOF
15663 #line 15664 "configure"
15664 #include "confdefs.h"
15665 #include <math.h>
15666 int main() {
15667 `for x in _acosl _asinl _atanl \
15668 _cosl _sinl _tanl \
15669 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
15670 ; return 0; }
15672 if { (eval echo configure:15673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15673 rm -rf conftest*
15674 glibcpp_cv_func__long_double_trig_use=yes
15675 else
15676 echo "configure: failed program was:" >&5
15677 cat conftest.$ac_ext >&5
15678 rm -rf conftest*
15679 glibcpp_cv_func__long_double_trig_use=no
15681 rm -f conftest*
15682 ac_ext=c
15683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15684 ac_cpp='$CPP $CPPFLAGS'
15685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15687 cross_compiling=$ac_cv_prog_cc_cross
15691 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
15692 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
15693 for ac_func in _acosl _asinl _atanl \
15694 _cosl _sinl _tanl \
15695 _coshl _sinhl _tanhl
15697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15698 echo "configure:15699: checking for $ac_func" >&5
15699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15700 echo $ac_n "(cached) $ac_c" 1>&6
15701 else
15702 cat > conftest.$ac_ext <<EOF
15703 #line 15704 "configure"
15704 #include "confdefs.h"
15705 /* System header to define __stub macros and hopefully few prototypes,
15706 which can conflict with char $ac_func(); below. */
15707 #include <assert.h>
15708 /* Override any gcc2 internal prototype to avoid an error. */
15709 /* We use char because int might match the return type of a gcc2
15710 builtin and then its argument prototype would still apply. */
15711 char $ac_func();
15713 int main() {
15715 /* The GNU C library defines this for functions which it implements
15716 to always fail with ENOSYS. Some functions are actually named
15717 something starting with __ and the normal name is an alias. */
15718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15719 choke me
15720 #else
15721 $ac_func();
15722 #endif
15724 ; return 0; }
15726 if { (eval echo configure:15727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15727 rm -rf conftest*
15728 eval "ac_cv_func_$ac_func=yes"
15729 else
15730 echo "configure: failed program was:" >&5
15731 cat conftest.$ac_ext >&5
15732 rm -rf conftest*
15733 eval "ac_cv_func_$ac_func=no"
15735 rm -f conftest*
15738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15739 echo "$ac_t""yes" 1>&6
15740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15741 cat >> confdefs.h <<EOF
15742 #define $ac_tr_func 1
15745 else
15746 echo "$ac_t""no" 1>&6
15748 done
15753 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
15754 echo "configure:15755: checking for _long double round functions" >&5
15755 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
15756 echo $ac_n "(cached) $ac_c" 1>&6
15757 else
15760 ac_ext=C
15761 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15762 ac_cpp='$CXXCPP $CPPFLAGS'
15763 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15764 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15765 cross_compiling=$ac_cv_prog_cxx_cross
15767 cat > conftest.$ac_ext <<EOF
15768 #line 15769 "configure"
15769 #include "confdefs.h"
15770 #include <math.h>
15771 int main() {
15772 `for x in _ceill _floorl; do echo "$x (0);"; done`
15773 ; return 0; }
15775 if { (eval echo configure:15776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15776 rm -rf conftest*
15777 glibcpp_cv_func__long_double_round_use=yes
15778 else
15779 echo "configure: failed program was:" >&5
15780 cat conftest.$ac_ext >&5
15781 rm -rf conftest*
15782 glibcpp_cv_func__long_double_round_use=no
15784 rm -f conftest*
15785 ac_ext=c
15786 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15787 ac_cpp='$CPP $CPPFLAGS'
15788 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15789 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15790 cross_compiling=$ac_cv_prog_cc_cross
15794 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
15795 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
15796 for ac_func in _ceill _floorl
15798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15799 echo "configure:15800: checking for $ac_func" >&5
15800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15801 echo $ac_n "(cached) $ac_c" 1>&6
15802 else
15803 cat > conftest.$ac_ext <<EOF
15804 #line 15805 "configure"
15805 #include "confdefs.h"
15806 /* System header to define __stub macros and hopefully few prototypes,
15807 which can conflict with char $ac_func(); below. */
15808 #include <assert.h>
15809 /* Override any gcc2 internal prototype to avoid an error. */
15810 /* We use char because int might match the return type of a gcc2
15811 builtin and then its argument prototype would still apply. */
15812 char $ac_func();
15814 int main() {
15816 /* The GNU C library defines this for functions which it implements
15817 to always fail with ENOSYS. Some functions are actually named
15818 something starting with __ and the normal name is an alias. */
15819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15820 choke me
15821 #else
15822 $ac_func();
15823 #endif
15825 ; return 0; }
15827 if { (eval echo configure:15828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15828 rm -rf conftest*
15829 eval "ac_cv_func_$ac_func=yes"
15830 else
15831 echo "configure: failed program was:" >&5
15832 cat conftest.$ac_ext >&5
15833 rm -rf conftest*
15834 eval "ac_cv_func_$ac_func=no"
15836 rm -f conftest*
15839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15840 echo "$ac_t""yes" 1>&6
15841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15842 cat >> confdefs.h <<EOF
15843 #define $ac_tr_func 1
15846 else
15847 echo "$ac_t""no" 1>&6
15849 done
15854 LIBS="$ac_save_LIBS"
15855 CXXFLAGS="$ac_save_CXXFLAGS"
15858 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
15859 echo "configure:15860: checking for main in -lm" >&5
15860 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
15861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15862 echo $ac_n "(cached) $ac_c" 1>&6
15863 else
15864 ac_save_LIBS="$LIBS"
15865 LIBS="-lm $LIBS"
15866 cat > conftest.$ac_ext <<EOF
15867 #line 15868 "configure"
15868 #include "confdefs.h"
15870 int main() {
15871 main()
15872 ; return 0; }
15874 if { (eval echo configure:15875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15875 rm -rf conftest*
15876 eval "ac_cv_lib_$ac_lib_var=yes"
15877 else
15878 echo "configure: failed program was:" >&5
15879 cat conftest.$ac_ext >&5
15880 rm -rf conftest*
15881 eval "ac_cv_lib_$ac_lib_var=no"
15883 rm -f conftest*
15884 LIBS="$ac_save_LIBS"
15887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15888 echo "$ac_t""yes" 1>&6
15889 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15890 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15891 cat >> confdefs.h <<EOF
15892 #define $ac_tr_lib 1
15895 LIBS="-lm $LIBS"
15897 else
15898 echo "$ac_t""no" 1>&6
15901 for ac_func in nan copysignf
15903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15904 echo "configure:15905: checking for $ac_func" >&5
15905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15906 echo $ac_n "(cached) $ac_c" 1>&6
15907 else
15908 cat > conftest.$ac_ext <<EOF
15909 #line 15910 "configure"
15910 #include "confdefs.h"
15911 /* System header to define __stub macros and hopefully few prototypes,
15912 which can conflict with char $ac_func(); below. */
15913 #include <assert.h>
15914 /* Override any gcc2 internal prototype to avoid an error. */
15915 /* We use char because int might match the return type of a gcc2
15916 builtin and then its argument prototype would still apply. */
15917 char $ac_func();
15919 int main() {
15921 /* The GNU C library defines this for functions which it implements
15922 to always fail with ENOSYS. Some functions are actually named
15923 something starting with __ and the normal name is an alias. */
15924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15925 choke me
15926 #else
15927 $ac_func();
15928 #endif
15930 ; return 0; }
15932 if { (eval echo configure:15933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15933 rm -rf conftest*
15934 eval "ac_cv_func_$ac_func=yes"
15935 else
15936 echo "configure: failed program was:" >&5
15937 cat conftest.$ac_ext >&5
15938 rm -rf conftest*
15939 eval "ac_cv_func_$ac_func=no"
15941 rm -f conftest*
15944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15945 echo "$ac_t""yes" 1>&6
15946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15947 cat >> confdefs.h <<EOF
15948 #define $ac_tr_func 1
15951 else
15952 echo "$ac_t""no" 1>&6
15953 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15955 done
15959 USE_COMPLEX_LONG_DOUBLE=no
15960 if test x$ac_cv_func_copysignl = x"yes"; then
15961 USE_COMPLEX_LONG_DOUBLE=yes
15962 for ac_func in signbitl
15964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15965 echo "configure:15966: checking for $ac_func" >&5
15966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15967 echo $ac_n "(cached) $ac_c" 1>&6
15968 else
15969 cat > conftest.$ac_ext <<EOF
15970 #line 15971 "configure"
15971 #include "confdefs.h"
15972 /* System header to define __stub macros and hopefully few prototypes,
15973 which can conflict with char $ac_func(); below. */
15974 #include <assert.h>
15975 /* Override any gcc2 internal prototype to avoid an error. */
15976 /* We use char because int might match the return type of a gcc2
15977 builtin and then its argument prototype would still apply. */
15978 char $ac_func();
15980 int main() {
15982 /* The GNU C library defines this for functions which it implements
15983 to always fail with ENOSYS. Some functions are actually named
15984 something starting with __ and the normal name is an alias. */
15985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15986 choke me
15987 #else
15988 $ac_func();
15989 #endif
15991 ; return 0; }
15993 if { (eval echo configure:15994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15994 rm -rf conftest*
15995 eval "ac_cv_func_$ac_func=yes"
15996 else
15997 echo "configure: failed program was:" >&5
15998 cat conftest.$ac_ext >&5
15999 rm -rf conftest*
16000 eval "ac_cv_func_$ac_func=no"
16002 rm -f conftest*
16005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16006 echo "$ac_t""yes" 1>&6
16007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16008 cat >> confdefs.h <<EOF
16009 #define $ac_tr_func 1
16012 else
16013 echo "$ac_t""no" 1>&6
16014 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
16016 done
16025 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
16026 echo "configure:16027: checking for mbstate_t" >&5
16027 cat > conftest.$ac_ext <<EOF
16028 #line 16029 "configure"
16029 #include "confdefs.h"
16030 #include <wchar.h>
16031 int main() {
16032 mbstate_t teststate;
16033 ; return 0; }
16035 if { (eval echo configure:16036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16036 rm -rf conftest*
16037 have_mbstate_t=yes
16038 else
16039 echo "configure: failed program was:" >&5
16040 cat conftest.$ac_ext >&5
16041 rm -rf conftest*
16042 have_mbstate_t=no
16044 rm -f conftest*
16045 echo "$ac_t""$have_mbstate_t" 1>&6
16046 if test x"$have_mbstate_t" = xyes; then
16047 cat >> confdefs.h <<\EOF
16048 #define HAVE_MBSTATE_T 1
16053 for ac_hdr in wchar.h
16055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16057 echo "configure:16058: checking for $ac_hdr" >&5
16058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16059 echo $ac_n "(cached) $ac_c" 1>&6
16060 else
16061 cat > conftest.$ac_ext <<EOF
16062 #line 16063 "configure"
16063 #include "confdefs.h"
16064 #include <$ac_hdr>
16066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16067 { (eval echo configure:16068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16069 if test -z "$ac_err"; then
16070 rm -rf conftest*
16071 eval "ac_cv_header_$ac_safe=yes"
16072 else
16073 echo "$ac_err" >&5
16074 echo "configure: failed program was:" >&5
16075 cat conftest.$ac_ext >&5
16076 rm -rf conftest*
16077 eval "ac_cv_header_$ac_safe=no"
16079 rm -f conftest*
16081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16082 echo "$ac_t""yes" 1>&6
16083 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16084 cat >> confdefs.h <<EOF
16085 #define $ac_tr_hdr 1
16087 ac_has_wchar_h=yes
16088 else
16089 echo "$ac_t""no" 1>&6
16090 ac_has_wchar_h=no
16092 done
16094 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
16095 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
16096 echo "configure:16097: checking for wctype.h" >&5
16097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16098 echo $ac_n "(cached) $ac_c" 1>&6
16099 else
16100 cat > conftest.$ac_ext <<EOF
16101 #line 16102 "configure"
16102 #include "confdefs.h"
16103 #include <wctype.h>
16105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16106 { (eval echo configure:16107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16108 if test -z "$ac_err"; then
16109 rm -rf conftest*
16110 eval "ac_cv_header_$ac_safe=yes"
16111 else
16112 echo "$ac_err" >&5
16113 echo "configure: failed program was:" >&5
16114 cat conftest.$ac_ext >&5
16115 rm -rf conftest*
16116 eval "ac_cv_header_$ac_safe=no"
16118 rm -f conftest*
16120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16121 echo "$ac_t""yes" 1>&6
16122 ac_has_wctype_h=yes
16123 else
16124 echo "$ac_t""no" 1>&6
16125 ac_has_wctype_h=no
16129 if test x"$ac_has_wchar_h" = xyes &&
16130 test x"$ac_has_wctype_h" = xyes &&
16131 test x"$enable_c_mbchar" != xno; then
16133 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
16134 echo "configure:16135: checking for WCHAR_MIN and WCHAR_MAX" >&5
16135 cat > conftest.$ac_ext <<EOF
16136 #line 16137 "configure"
16137 #include "confdefs.h"
16138 #include <wchar.h>
16139 int main() {
16140 int i = WCHAR_MIN; int j = WCHAR_MAX;
16141 ; return 0; }
16143 if { (eval echo configure:16144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16144 rm -rf conftest*
16145 has_wchar_minmax=yes
16146 else
16147 echo "configure: failed program was:" >&5
16148 cat conftest.$ac_ext >&5
16149 rm -rf conftest*
16150 has_wchar_minmax=no
16152 rm -f conftest*
16153 echo "$ac_t""$has_wchar_minmax" 1>&6
16155 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
16156 echo "configure:16157: checking for WEOF" >&5
16157 cat > conftest.$ac_ext <<EOF
16158 #line 16159 "configure"
16159 #include "confdefs.h"
16161 #include <wchar.h>
16162 #include <stddef.h>
16163 int main() {
16164 wint_t i = WEOF;
16165 ; return 0; }
16167 if { (eval echo configure:16168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16168 rm -rf conftest*
16169 has_weof=yes
16170 else
16171 echo "configure: failed program was:" >&5
16172 cat conftest.$ac_ext >&5
16173 rm -rf conftest*
16174 has_weof=no
16176 rm -f conftest*
16177 echo "$ac_t""$has_weof" 1>&6
16179 ac_wfuncs=yes
16180 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
16182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16183 echo "configure:16184: checking for $ac_func" >&5
16184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16185 echo $ac_n "(cached) $ac_c" 1>&6
16186 else
16187 cat > conftest.$ac_ext <<EOF
16188 #line 16189 "configure"
16189 #include "confdefs.h"
16190 /* System header to define __stub macros and hopefully few prototypes,
16191 which can conflict with char $ac_func(); below. */
16192 #include <assert.h>
16193 /* Override any gcc2 internal prototype to avoid an error. */
16194 /* We use char because int might match the return type of a gcc2
16195 builtin and then its argument prototype would still apply. */
16196 char $ac_func();
16198 int main() {
16200 /* The GNU C library defines this for functions which it implements
16201 to always fail with ENOSYS. Some functions are actually named
16202 something starting with __ and the normal name is an alias. */
16203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16204 choke me
16205 #else
16206 $ac_func();
16207 #endif
16209 ; return 0; }
16211 if { (eval echo configure:16212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16212 rm -rf conftest*
16213 eval "ac_cv_func_$ac_func=yes"
16214 else
16215 echo "configure: failed program was:" >&5
16216 cat conftest.$ac_ext >&5
16217 rm -rf conftest*
16218 eval "ac_cv_func_$ac_func=no"
16220 rm -f conftest*
16223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16224 echo "$ac_t""yes" 1>&6
16225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16226 cat >> confdefs.h <<EOF
16227 #define $ac_tr_func 1
16230 else
16231 echo "$ac_t""no" 1>&6
16233 ac_wfuncs=no
16235 done
16238 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
16239 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
16240 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
16241 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
16242 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
16243 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
16245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16246 echo "configure:16247: checking for $ac_func" >&5
16247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16248 echo $ac_n "(cached) $ac_c" 1>&6
16249 else
16250 cat > conftest.$ac_ext <<EOF
16251 #line 16252 "configure"
16252 #include "confdefs.h"
16253 /* System header to define __stub macros and hopefully few prototypes,
16254 which can conflict with char $ac_func(); below. */
16255 #include <assert.h>
16256 /* Override any gcc2 internal prototype to avoid an error. */
16257 /* We use char because int might match the return type of a gcc2
16258 builtin and then its argument prototype would still apply. */
16259 char $ac_func();
16261 int main() {
16263 /* The GNU C library defines this for functions which it implements
16264 to always fail with ENOSYS. Some functions are actually named
16265 something starting with __ and the normal name is an alias. */
16266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16267 choke me
16268 #else
16269 $ac_func();
16270 #endif
16272 ; return 0; }
16274 if { (eval echo configure:16275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16275 rm -rf conftest*
16276 eval "ac_cv_func_$ac_func=yes"
16277 else
16278 echo "configure: failed program was:" >&5
16279 cat conftest.$ac_ext >&5
16280 rm -rf conftest*
16281 eval "ac_cv_func_$ac_func=no"
16283 rm -f conftest*
16286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16287 echo "$ac_t""yes" 1>&6
16288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16289 cat >> confdefs.h <<EOF
16290 #define $ac_tr_func 1
16293 else
16294 echo "$ac_t""no" 1>&6
16296 ac_wfuncs=no
16298 done
16301 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
16302 echo "configure:16303: checking for ISO C99 wchar_t support" >&5
16303 if test x"$has_weof" = xyes &&
16304 test x"$has_wchar_minmax" = xyes &&
16305 test x"$ac_wfuncs" = xyes; then
16306 ac_isoC99_wchar_t=yes
16307 else
16308 ac_isoC99_wchar_t=no
16310 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
16312 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
16313 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
16314 echo "configure:16315: checking for iconv.h" >&5
16315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16316 echo $ac_n "(cached) $ac_c" 1>&6
16317 else
16318 cat > conftest.$ac_ext <<EOF
16319 #line 16320 "configure"
16320 #include "confdefs.h"
16321 #include <iconv.h>
16323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16324 { (eval echo configure:16325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16326 if test -z "$ac_err"; then
16327 rm -rf conftest*
16328 eval "ac_cv_header_$ac_safe=yes"
16329 else
16330 echo "$ac_err" >&5
16331 echo "configure: failed program was:" >&5
16332 cat conftest.$ac_ext >&5
16333 rm -rf conftest*
16334 eval "ac_cv_header_$ac_safe=no"
16336 rm -f conftest*
16338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16339 echo "$ac_t""yes" 1>&6
16340 ac_has_iconv_h=yes
16341 else
16342 echo "$ac_t""no" 1>&6
16343 ac_has_iconv_h=no
16346 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
16347 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
16348 echo "configure:16349: checking for langinfo.h" >&5
16349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16350 echo $ac_n "(cached) $ac_c" 1>&6
16351 else
16352 cat > conftest.$ac_ext <<EOF
16353 #line 16354 "configure"
16354 #include "confdefs.h"
16355 #include <langinfo.h>
16357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16358 { (eval echo configure:16359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16360 if test -z "$ac_err"; then
16361 rm -rf conftest*
16362 eval "ac_cv_header_$ac_safe=yes"
16363 else
16364 echo "$ac_err" >&5
16365 echo "configure: failed program was:" >&5
16366 cat conftest.$ac_ext >&5
16367 rm -rf conftest*
16368 eval "ac_cv_header_$ac_safe=no"
16370 rm -f conftest*
16372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16373 echo "$ac_t""yes" 1>&6
16374 ac_has_langinfo_h=yes
16375 else
16376 echo "$ac_t""no" 1>&6
16377 ac_has_langinfo_h=no
16381 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
16382 echo "configure:16383: checking for iconv in -liconv" >&5
16383 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
16384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16385 echo $ac_n "(cached) $ac_c" 1>&6
16386 else
16387 ac_save_LIBS="$LIBS"
16388 LIBS="-liconv $LIBS"
16389 cat > conftest.$ac_ext <<EOF
16390 #line 16391 "configure"
16391 #include "confdefs.h"
16392 /* Override any gcc2 internal prototype to avoid an error. */
16393 /* We use char because int might match the return type of a gcc2
16394 builtin and then its argument prototype would still apply. */
16395 char iconv();
16397 int main() {
16398 iconv()
16399 ; return 0; }
16401 if { (eval echo configure:16402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16402 rm -rf conftest*
16403 eval "ac_cv_lib_$ac_lib_var=yes"
16404 else
16405 echo "configure: failed program was:" >&5
16406 cat conftest.$ac_ext >&5
16407 rm -rf conftest*
16408 eval "ac_cv_lib_$ac_lib_var=no"
16410 rm -f conftest*
16411 LIBS="$ac_save_LIBS"
16414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16415 echo "$ac_t""yes" 1>&6
16416 libiconv="-liconv"
16417 else
16418 echo "$ac_t""no" 1>&6
16421 ac_save_LIBS="$LIBS"
16422 LIBS="$LIBS $libiconv"
16424 for ac_func in iconv_open iconv_close iconv nl_langinfo
16426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16427 echo "configure:16428: checking for $ac_func" >&5
16428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16429 echo $ac_n "(cached) $ac_c" 1>&6
16430 else
16431 cat > conftest.$ac_ext <<EOF
16432 #line 16433 "configure"
16433 #include "confdefs.h"
16434 /* System header to define __stub macros and hopefully few prototypes,
16435 which can conflict with char $ac_func(); below. */
16436 #include <assert.h>
16437 /* Override any gcc2 internal prototype to avoid an error. */
16438 /* We use char because int might match the return type of a gcc2
16439 builtin and then its argument prototype would still apply. */
16440 char $ac_func();
16442 int main() {
16444 /* The GNU C library defines this for functions which it implements
16445 to always fail with ENOSYS. Some functions are actually named
16446 something starting with __ and the normal name is an alias. */
16447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16448 choke me
16449 #else
16450 $ac_func();
16451 #endif
16453 ; return 0; }
16455 if { (eval echo configure:16456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16456 rm -rf conftest*
16457 eval "ac_cv_func_$ac_func=yes"
16458 else
16459 echo "configure: failed program was:" >&5
16460 cat conftest.$ac_ext >&5
16461 rm -rf conftest*
16462 eval "ac_cv_func_$ac_func=no"
16464 rm -f conftest*
16467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16468 echo "$ac_t""yes" 1>&6
16469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16470 cat >> confdefs.h <<EOF
16471 #define $ac_tr_func 1
16474 ac_XPG2funcs=yes
16475 else
16476 echo "$ac_t""no" 1>&6
16477 ac_XPG2funcs=no
16479 done
16482 LIBS="$ac_save_LIBS"
16484 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
16485 echo "configure:16486: checking for XPG2 wchar_t support" >&5
16486 if test x"$ac_has_iconv_h" = xyes &&
16487 test x"$ac_has_langinfo_h" = xyes &&
16488 test x"$ac_XPG2funcs" = xyes; then
16489 ac_XPG2_wchar_t=yes
16490 else
16491 ac_XPG2_wchar_t=no
16493 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
16495 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
16496 echo "configure:16497: checking for enabled wchar_t specializations" >&5
16497 if test x"$ac_isoC99_wchar_t" = xyes &&
16498 test x"$ac_XPG2_wchar_t" = xyes; then
16499 cat >> confdefs.h <<\EOF
16500 #define _GLIBCPP_USE_WCHAR_T 1
16503 echo "$ac_t"""yes"" 1>&6
16504 else
16505 echo "$ac_t"""no"" 1>&6
16507 else
16508 echo "configure: warning: wchar_t support disabled." 1>&2
16512 ac_test_CXXFLAGS="${CXXFLAGS+set}"
16513 ac_save_CXXFLAGS="$CXXFLAGS"
16514 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
16517 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
16518 echo "configure:16519: checking for strtold declaration" >&5
16519 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
16520 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
16521 echo $ac_n "(cached) $ac_c" 1>&6
16522 else
16525 ac_ext=C
16526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16527 ac_cpp='$CXXCPP $CPPFLAGS'
16528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16530 cross_compiling=$ac_cv_prog_cxx_cross
16532 cat > conftest.$ac_ext <<EOF
16533 #line 16534 "configure"
16534 #include "confdefs.h"
16535 #include <stdlib.h>
16536 int main() {
16537 strtold(0, 0);
16538 ; return 0; }
16540 if { (eval echo configure:16541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16541 rm -rf conftest*
16542 glibcpp_cv_func_strtold_use=yes
16543 else
16544 echo "configure: failed program was:" >&5
16545 cat conftest.$ac_ext >&5
16546 rm -rf conftest*
16547 glibcpp_cv_func_strtold_use=no
16549 rm -f conftest*
16550 ac_ext=c
16551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16552 ac_cpp='$CPP $CPPFLAGS'
16553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16555 cross_compiling=$ac_cv_prog_cc_cross
16561 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
16562 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
16563 for ac_func in strtold
16565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16566 echo "configure:16567: checking for $ac_func" >&5
16567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16568 echo $ac_n "(cached) $ac_c" 1>&6
16569 else
16570 cat > conftest.$ac_ext <<EOF
16571 #line 16572 "configure"
16572 #include "confdefs.h"
16573 /* System header to define __stub macros and hopefully few prototypes,
16574 which can conflict with char $ac_func(); below. */
16575 #include <assert.h>
16576 /* Override any gcc2 internal prototype to avoid an error. */
16577 /* We use char because int might match the return type of a gcc2
16578 builtin and then its argument prototype would still apply. */
16579 char $ac_func();
16581 int main() {
16583 /* The GNU C library defines this for functions which it implements
16584 to always fail with ENOSYS. Some functions are actually named
16585 something starting with __ and the normal name is an alias. */
16586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16587 choke me
16588 #else
16589 $ac_func();
16590 #endif
16592 ; return 0; }
16594 if { (eval echo configure:16595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16595 rm -rf conftest*
16596 eval "ac_cv_func_$ac_func=yes"
16597 else
16598 echo "configure: failed program was:" >&5
16599 cat conftest.$ac_ext >&5
16600 rm -rf conftest*
16601 eval "ac_cv_func_$ac_func=no"
16603 rm -f conftest*
16606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16607 echo "$ac_t""yes" 1>&6
16608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16609 cat >> confdefs.h <<EOF
16610 #define $ac_tr_func 1
16613 else
16614 echo "$ac_t""no" 1>&6
16616 done
16620 for ac_func in drand48
16622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16623 echo "configure:16624: checking for $ac_func" >&5
16624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16625 echo $ac_n "(cached) $ac_c" 1>&6
16626 else
16627 cat > conftest.$ac_ext <<EOF
16628 #line 16629 "configure"
16629 #include "confdefs.h"
16630 /* System header to define __stub macros and hopefully few prototypes,
16631 which can conflict with char $ac_func(); below. */
16632 #include <assert.h>
16633 /* Override any gcc2 internal prototype to avoid an error. */
16634 /* We use char because int might match the return type of a gcc2
16635 builtin and then its argument prototype would still apply. */
16636 char $ac_func();
16638 int main() {
16640 /* The GNU C library defines this for functions which it implements
16641 to always fail with ENOSYS. Some functions are actually named
16642 something starting with __ and the normal name is an alias. */
16643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16644 choke me
16645 #else
16646 $ac_func();
16647 #endif
16649 ; return 0; }
16651 if { (eval echo configure:16652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16652 rm -rf conftest*
16653 eval "ac_cv_func_$ac_func=yes"
16654 else
16655 echo "configure: failed program was:" >&5
16656 cat conftest.$ac_ext >&5
16657 rm -rf conftest*
16658 eval "ac_cv_func_$ac_func=no"
16660 rm -f conftest*
16663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16664 echo "$ac_t""yes" 1>&6
16665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16666 cat >> confdefs.h <<EOF
16667 #define $ac_tr_func 1
16670 else
16671 echo "$ac_t""no" 1>&6
16673 done
16676 CXXFLAGS="$ac_save_CXXFLAGS"
16679 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16680 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16681 echo "configure:16682: checking for locale.h" >&5
16682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16683 echo $ac_n "(cached) $ac_c" 1>&6
16684 else
16685 cat > conftest.$ac_ext <<EOF
16686 #line 16687 "configure"
16687 #include "confdefs.h"
16688 #include <locale.h>
16690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16691 { (eval echo configure:16692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16693 if test -z "$ac_err"; then
16694 rm -rf conftest*
16695 eval "ac_cv_header_$ac_safe=yes"
16696 else
16697 echo "$ac_err" >&5
16698 echo "configure: failed program was:" >&5
16699 cat conftest.$ac_ext >&5
16700 rm -rf conftest*
16701 eval "ac_cv_header_$ac_safe=no"
16703 rm -f conftest*
16705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16706 echo "$ac_t""yes" 1>&6
16708 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16709 echo "configure:16710: checking for LC_MESSAGES" >&5
16710 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16711 echo $ac_n "(cached) $ac_c" 1>&6
16712 else
16713 cat > conftest.$ac_ext <<EOF
16714 #line 16715 "configure"
16715 #include "confdefs.h"
16716 #include <locale.h>
16717 int main() {
16718 return LC_MESSAGES
16719 ; return 0; }
16721 if { (eval echo configure:16722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16722 rm -rf conftest*
16723 ac_cv_val_LC_MESSAGES=yes
16724 else
16725 echo "configure: failed program was:" >&5
16726 cat conftest.$ac_ext >&5
16727 rm -rf conftest*
16728 ac_cv_val_LC_MESSAGES=no
16730 rm -f conftest*
16733 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
16734 if test $ac_cv_val_LC_MESSAGES = yes; then
16735 cat >> confdefs.h <<\EOF
16736 #define HAVE_LC_MESSAGES 1
16741 else
16742 echo "$ac_t""no" 1>&6
16747 cat > conftest.$ac_ext <<EOF
16748 #line 16749 "configure"
16749 #include "confdefs.h"
16751 #include <setjmp.h>
16753 int main() {
16754 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16755 ; return 0; }
16757 if { (eval echo configure:16758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16758 rm -rf conftest*
16759 cat >> confdefs.h <<\EOF
16760 #define HAVE_SIGSETJMP 1
16763 else
16764 echo "configure: failed program was:" >&5
16765 cat conftest.$ac_ext >&5
16767 rm -f conftest*
16769 for ac_hdr in unistd.h
16771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16773 echo "configure:16774: checking for $ac_hdr" >&5
16774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16775 echo $ac_n "(cached) $ac_c" 1>&6
16776 else
16777 cat > conftest.$ac_ext <<EOF
16778 #line 16779 "configure"
16779 #include "confdefs.h"
16780 #include <$ac_hdr>
16782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16783 { (eval echo configure:16784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16785 if test -z "$ac_err"; then
16786 rm -rf conftest*
16787 eval "ac_cv_header_$ac_safe=yes"
16788 else
16789 echo "$ac_err" >&5
16790 echo "configure: failed program was:" >&5
16791 cat conftest.$ac_ext >&5
16792 rm -rf conftest*
16793 eval "ac_cv_header_$ac_safe=no"
16795 rm -f conftest*
16797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16798 echo "$ac_t""yes" 1>&6
16799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16800 cat >> confdefs.h <<EOF
16801 #define $ac_tr_hdr 1
16804 else
16805 echo "$ac_t""no" 1>&6
16807 done
16809 for ac_func in getpagesize
16811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16812 echo "configure:16813: checking for $ac_func" >&5
16813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16814 echo $ac_n "(cached) $ac_c" 1>&6
16815 else
16816 cat > conftest.$ac_ext <<EOF
16817 #line 16818 "configure"
16818 #include "confdefs.h"
16819 /* System header to define __stub macros and hopefully few prototypes,
16820 which can conflict with char $ac_func(); below. */
16821 #include <assert.h>
16822 /* Override any gcc2 internal prototype to avoid an error. */
16823 /* We use char because int might match the return type of a gcc2
16824 builtin and then its argument prototype would still apply. */
16825 char $ac_func();
16827 int main() {
16829 /* The GNU C library defines this for functions which it implements
16830 to always fail with ENOSYS. Some functions are actually named
16831 something starting with __ and the normal name is an alias. */
16832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16833 choke me
16834 #else
16835 $ac_func();
16836 #endif
16838 ; return 0; }
16840 if { (eval echo configure:16841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16841 rm -rf conftest*
16842 eval "ac_cv_func_$ac_func=yes"
16843 else
16844 echo "configure: failed program was:" >&5
16845 cat conftest.$ac_ext >&5
16846 rm -rf conftest*
16847 eval "ac_cv_func_$ac_func=no"
16849 rm -f conftest*
16852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16853 echo "$ac_t""yes" 1>&6
16854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16855 cat >> confdefs.h <<EOF
16856 #define $ac_tr_func 1
16859 else
16860 echo "$ac_t""no" 1>&6
16862 done
16864 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
16865 echo "configure:16866: checking for working mmap" >&5
16866 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
16867 echo $ac_n "(cached) $ac_c" 1>&6
16868 else
16869 if test "$cross_compiling" = yes; then
16870 ac_cv_func_mmap_fixed_mapped=no
16871 else
16872 cat > conftest.$ac_ext <<EOF
16873 #line 16874 "configure"
16874 #include "confdefs.h"
16876 /* Thanks to Mike Haertel and Jim Avera for this test.
16877 Here is a matrix of mmap possibilities:
16878 mmap private not fixed
16879 mmap private fixed at somewhere currently unmapped
16880 mmap private fixed at somewhere already mapped
16881 mmap shared not fixed
16882 mmap shared fixed at somewhere currently unmapped
16883 mmap shared fixed at somewhere already mapped
16884 For private mappings, we should verify that changes cannot be read()
16885 back from the file, nor mmap's back from the file at a different
16886 address. (There have been systems where private was not correctly
16887 implemented like the infamous i386 svr4.0, and systems where the
16888 VM page cache was not coherent with the filesystem buffer cache
16889 like early versions of FreeBSD and possibly contemporary NetBSD.)
16890 For shared mappings, we should conversely verify that changes get
16891 propogated back to all the places they're supposed to be.
16893 Grep wants private fixed already mapped.
16894 The main things grep needs to know about mmap are:
16895 * does it exist and is it safe to write into the mmap'd area
16896 * how to use it (BSD variants) */
16897 #include <sys/types.h>
16898 #include <fcntl.h>
16899 #include <sys/mman.h>
16901 /* This mess was copied from the GNU getpagesize.h. */
16902 #ifndef HAVE_GETPAGESIZE
16903 # ifdef HAVE_UNISTD_H
16904 # include <unistd.h>
16905 # endif
16907 /* Assume that all systems that can run configure have sys/param.h. */
16908 # ifndef HAVE_SYS_PARAM_H
16909 # define HAVE_SYS_PARAM_H 1
16910 # endif
16912 # ifdef _SC_PAGESIZE
16913 # define getpagesize() sysconf(_SC_PAGESIZE)
16914 # else /* no _SC_PAGESIZE */
16915 # ifdef HAVE_SYS_PARAM_H
16916 # include <sys/param.h>
16917 # ifdef EXEC_PAGESIZE
16918 # define getpagesize() EXEC_PAGESIZE
16919 # else /* no EXEC_PAGESIZE */
16920 # ifdef NBPG
16921 # define getpagesize() NBPG * CLSIZE
16922 # ifndef CLSIZE
16923 # define CLSIZE 1
16924 # endif /* no CLSIZE */
16925 # else /* no NBPG */
16926 # ifdef NBPC
16927 # define getpagesize() NBPC
16928 # else /* no NBPC */
16929 # ifdef PAGESIZE
16930 # define getpagesize() PAGESIZE
16931 # endif /* PAGESIZE */
16932 # endif /* no NBPC */
16933 # endif /* no NBPG */
16934 # endif /* no EXEC_PAGESIZE */
16935 # else /* no HAVE_SYS_PARAM_H */
16936 # define getpagesize() 8192 /* punt totally */
16937 # endif /* no HAVE_SYS_PARAM_H */
16938 # endif /* no _SC_PAGESIZE */
16940 #endif /* no HAVE_GETPAGESIZE */
16942 #ifdef __cplusplus
16943 extern "C" { void *malloc(unsigned); }
16944 #else
16945 char *malloc();
16946 #endif
16949 main()
16951 char *data, *data2, *data3;
16952 int i, pagesize;
16953 int fd;
16955 pagesize = getpagesize();
16958 * First, make a file with some known garbage in it.
16960 data = malloc(pagesize);
16961 if (!data)
16962 exit(1);
16963 for (i = 0; i < pagesize; ++i)
16964 *(data + i) = rand();
16965 umask(0);
16966 fd = creat("conftestmmap", 0600);
16967 if (fd < 0)
16968 exit(1);
16969 if (write(fd, data, pagesize) != pagesize)
16970 exit(1);
16971 close(fd);
16974 * Next, try to mmap the file at a fixed address which
16975 * already has something else allocated at it. If we can,
16976 * also make sure that we see the same garbage.
16978 fd = open("conftestmmap", O_RDWR);
16979 if (fd < 0)
16980 exit(1);
16981 data2 = malloc(2 * pagesize);
16982 if (!data2)
16983 exit(1);
16984 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16985 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16986 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16987 exit(1);
16988 for (i = 0; i < pagesize; ++i)
16989 if (*(data + i) != *(data2 + i))
16990 exit(1);
16993 * Finally, make sure that changes to the mapped area
16994 * do not percolate back to the file as seen by read().
16995 * (This is a bug on some variants of i386 svr4.0.)
16997 for (i = 0; i < pagesize; ++i)
16998 *(data2 + i) = *(data2 + i) + 1;
16999 data3 = malloc(pagesize);
17000 if (!data3)
17001 exit(1);
17002 if (read(fd, data3, pagesize) != pagesize)
17003 exit(1);
17004 for (i = 0; i < pagesize; ++i)
17005 if (*(data + i) != *(data3 + i))
17006 exit(1);
17007 close(fd);
17008 unlink("conftestmmap");
17009 exit(0);
17013 if { (eval echo configure:17014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17014 then
17015 ac_cv_func_mmap_fixed_mapped=yes
17016 else
17017 echo "configure: failed program was:" >&5
17018 cat conftest.$ac_ext >&5
17019 rm -fr conftest*
17020 ac_cv_func_mmap_fixed_mapped=no
17022 rm -fr conftest*
17027 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
17028 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17029 cat >> confdefs.h <<\EOF
17030 #define HAVE_MMAP 1
17036 # Establish limits on memory usage during 'make check'
17039 setrlimit_have_headers=yes
17040 for ac_hdr in sys/resource.h unistd.h
17042 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17044 echo "configure:17045: checking for $ac_hdr" >&5
17045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17046 echo $ac_n "(cached) $ac_c" 1>&6
17047 else
17048 cat > conftest.$ac_ext <<EOF
17049 #line 17050 "configure"
17050 #include "confdefs.h"
17051 #include <$ac_hdr>
17053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17054 { (eval echo configure:17055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17056 if test -z "$ac_err"; then
17057 rm -rf conftest*
17058 eval "ac_cv_header_$ac_safe=yes"
17059 else
17060 echo "$ac_err" >&5
17061 echo "configure: failed program was:" >&5
17062 cat conftest.$ac_ext >&5
17063 rm -rf conftest*
17064 eval "ac_cv_header_$ac_safe=no"
17066 rm -f conftest*
17068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17069 echo "$ac_t""yes" 1>&6
17070 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17071 cat >> confdefs.h <<EOF
17072 #define $ac_tr_hdr 1
17075 else
17076 echo "$ac_t""no" 1>&6
17077 setrlimit_have_headers=no
17079 done
17081 # If don't have the headers, then we can't run the tests now, and we
17082 # won't be seeing any of these during testsuite compilation.
17083 if test $setrlimit_have_headers = yes; then
17084 # Can't do these in a loop, else the resulting syntax is wrong.
17086 cat > conftest.$ac_ext <<EOF
17087 #line 17088 "configure"
17088 #include "confdefs.h"
17089 #include <sys/resource.h>
17090 #include <unistd.h>
17092 int main() {
17093 int f = RLIMIT_DATA ;
17094 ; return 0; }
17096 if { (eval echo configure:17097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17097 rm -rf conftest*
17098 glibcpp_mresult=1
17099 else
17100 echo "configure: failed program was:" >&5
17101 cat conftest.$ac_ext >&5
17102 rm -rf conftest*
17103 glibcpp_mresult=0
17105 rm -f conftest*
17106 cat >> confdefs.h <<EOF
17107 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
17112 cat > conftest.$ac_ext <<EOF
17113 #line 17114 "configure"
17114 #include "confdefs.h"
17115 #include <sys/resource.h>
17116 #include <unistd.h>
17118 int main() {
17119 int f = RLIMIT_RSS ;
17120 ; return 0; }
17122 if { (eval echo configure:17123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17123 rm -rf conftest*
17124 glibcpp_mresult=1
17125 else
17126 echo "configure: failed program was:" >&5
17127 cat conftest.$ac_ext >&5
17128 rm -rf conftest*
17129 glibcpp_mresult=0
17131 rm -f conftest*
17132 cat >> confdefs.h <<EOF
17133 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
17138 cat > conftest.$ac_ext <<EOF
17139 #line 17140 "configure"
17140 #include "confdefs.h"
17141 #include <sys/resource.h>
17142 #include <unistd.h>
17144 int main() {
17145 int f = RLIMIT_VMEM ;
17146 ; return 0; }
17148 if { (eval echo configure:17149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17149 rm -rf conftest*
17150 glibcpp_mresult=1
17151 else
17152 echo "configure: failed program was:" >&5
17153 cat conftest.$ac_ext >&5
17154 rm -rf conftest*
17155 glibcpp_mresult=0
17157 rm -f conftest*
17158 cat >> confdefs.h <<EOF
17159 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
17164 cat > conftest.$ac_ext <<EOF
17165 #line 17166 "configure"
17166 #include "confdefs.h"
17167 #include <sys/resource.h>
17168 #include <unistd.h>
17170 int main() {
17171 int f = RLIMIT_AS ;
17172 ; return 0; }
17174 if { (eval echo configure:17175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17175 rm -rf conftest*
17176 glibcpp_mresult=1
17177 else
17178 echo "configure: failed program was:" >&5
17179 cat conftest.$ac_ext >&5
17180 rm -rf conftest*
17181 glibcpp_mresult=0
17183 rm -f conftest*
17184 cat >> confdefs.h <<EOF
17185 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
17190 # Check for rlimit, setrlimit.
17191 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
17192 echo $ac_n "(cached) $ac_c" 1>&6
17193 else
17195 cat > conftest.$ac_ext <<EOF
17196 #line 17197 "configure"
17197 #include "confdefs.h"
17198 #include <sys/resource.h>
17199 #include <unistd.h>
17201 int main() {
17202 struct rlimit r; setrlimit(0, &r);
17203 ; return 0; }
17205 if { (eval echo configure:17206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17206 rm -rf conftest*
17207 ac_setrlimit=yes
17208 else
17209 echo "configure: failed program was:" >&5
17210 cat conftest.$ac_ext >&5
17211 rm -rf conftest*
17212 ac_setrlimit=no
17214 rm -f conftest*
17220 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
17221 echo "configure:17222: checking for testsuite memory limit support" >&5
17222 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
17223 ac_mem_limits=yes
17224 cat >> confdefs.h <<\EOF
17225 #define _GLIBCPP_MEM_LIMITS 1
17228 else
17229 ac_mem_limits=no
17231 echo "$ac_t""$ac_mem_limits" 1>&6
17237 # Propagate the target-specific source directories through the build chain.
17238 OS_INC_SRCDIR=$os_include_dir/bits
17239 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
17240 LIMITS_INC_SRCDIR=$LIMITSH/bits
17245 # Set up cross-compile flags
17249 if test "$CANADIAN" = yes; then
17250 CANADIAN_TRUE=
17251 CANADIAN_FALSE='#'
17252 else
17253 CANADIAN_TRUE='#'
17254 CANADIAN_FALSE=
17257 cat > confcache <<\EOF
17258 # This file is a shell script that caches the results of configure
17259 # tests run on this system so they can be shared between configure
17260 # scripts and configure runs. It is not useful on other systems.
17261 # If it contains results you don't want to keep, you may remove or edit it.
17263 # By default, configure uses ./config.cache as the cache file,
17264 # creating it if it does not exist already. You can give configure
17265 # the --cache-file=FILE option to use a different cache file; that is
17266 # what configure does when it calls configure scripts in
17267 # subdirectories, so they share the cache.
17268 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17269 # config.status only pays attention to the cache file if you give it the
17270 # --recheck option to rerun configure.
17273 # The following way of writing the cache mishandles newlines in values,
17274 # but we know of no workaround that is simple, portable, and efficient.
17275 # So, don't put newlines in cache variables' values.
17276 # Ultrix sh set writes to stderr and can't be redirected directly,
17277 # and sets the high bit in the cache file unless we assign to the vars.
17278 (set) 2>&1 |
17279 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17280 *ac_space=\ *)
17281 # `set' does not quote correctly, so add quotes (double-quote substitution
17282 # turns \\\\ into \\, and sed turns \\ into \).
17283 sed -n \
17284 -e "s/'/'\\\\''/g" \
17285 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17288 # `set' quotes correctly as required by POSIX, so do not add quotes.
17289 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17291 esac >> confcache
17292 if cmp -s $cache_file confcache; then
17294 else
17295 if test -w $cache_file; then
17296 echo "updating cache $cache_file"
17297 cat confcache > $cache_file
17298 else
17299 echo "not updating unwritable cache $cache_file"
17302 rm -f confcache
17305 if test "${multilib}" = "yes"; then
17306 multilib_arg="--enable-multilib"
17307 else
17308 multilib_arg=
17311 # Needed so that g++ can find the correct include subdir automatically.
17312 INTERFACE=v3
17314 # Export all the install information
17316 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
17317 # exported correctly in GLIBCPP_CONFIGURE.
17318 glibcpp_toolexecdir=no
17319 glibcpp_toolexeclibdir=no
17320 glibcpp_prefixdir=${prefix}
17322 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
17323 echo "configure:17324: checking for interface version number" >&5
17324 libstdcxx_interface=$INTERFACE
17325 echo "$ac_t""$libstdcxx_interface" 1>&6
17327 # Process the option --with-gxx-include-dir=<path to include-files directory>
17328 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
17329 echo "configure:17330: checking for --with-gxx-include-dir" >&5
17330 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
17331 if test "${with_gxx_include_dir+set}" = set; then
17332 withval="$with_gxx_include_dir"
17333 case "${withval}" in
17334 yes)
17335 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
17336 gxx_include_dir=no
17339 gxx_include_dir=no
17342 gxx_include_dir=${withval}
17344 esac
17345 else
17346 gxx_include_dir=no
17349 echo "$ac_t""$gxx_include_dir" 1>&6
17351 # Process the option "--enable-version-specific-runtime-libs"
17352 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
17353 echo "configure:17354: checking for --enable-version-specific-runtime-libs" >&5
17354 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17355 if test "${enable_version_specific_runtime_libs+set}" = set; then
17356 enableval="$enable_version_specific_runtime_libs"
17357 case "$enableval" in
17358 yes) version_specific_libs=yes ;;
17359 no) version_specific_libs=no ;;
17360 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
17361 esac
17362 else
17363 version_specific_libs=no
17365 # Option set, now we can test it.
17366 echo "$ac_t""$version_specific_libs" 1>&6
17368 if test $version_specific_libs = yes; then
17369 # Need the gcc compiler version to know where to install libraries
17370 # and header files if --enable-version-specific-runtime-libs option
17371 # is selected.
17372 gcc_version_trigger=${srcdir}/../gcc/version.c
17373 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
17374 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
17375 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
17376 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17377 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
17380 # Default case for install directory for include files.
17381 if test $version_specific_libs = no &&
17382 test $gxx_include_dir = no; then
17383 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
17386 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
17387 # Install a library built with a cross compiler in tooldir, not libdir.
17388 if test x"$glibcpp_toolexecdir" = x"no"; then
17389 if test -n "$with_cross_host" &&
17390 test x"$with_cross_host" != x"no"; then
17391 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
17392 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
17393 else
17394 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17395 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
17399 echo $ac_n "checking for install location""... $ac_c" 1>&6
17400 echo "configure:17401: checking for install location" >&5
17401 echo "$ac_t""$gxx_include_dir" 1>&6
17409 # Export all the include and flag information to makefiles.
17411 # Root level of the build directory include sources.
17412 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
17414 # Passed down for canadian crosses.
17415 if test x"$CANADIAN" = xyes; then
17416 TOPLEVEL_INCLUDES='-I$(includedir)'
17419 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
17421 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
17423 if test x"$need_libio" = xyes; then
17424 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
17428 # Now, export this to all the little Makefiles....
17435 # Optimization flags that are probably a good idea for thrill-seekers. Just
17436 # uncomment the lines below and make, everything else is ready to go...
17437 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
17438 OPTIMIZE_CXXFLAGS=
17441 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
17445 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
17446 grep "enable shared" > /dev/null; then
17447 LIBSUPCXX_PICFLAGS=-prefer-pic
17448 else
17449 LIBSUPCXX_PICFLAGS=
17453 # Generate the various Makefiles, include files, and scripts.
17454 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
17455 # and libsupc++/Makefile.am so that multilib installs will end up
17456 # installed in the correct place. To work around this not being passed
17457 # down from config-ml.in -> top_srcdir/Makefile.am ->
17458 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
17459 trap '' 1 2 15
17460 cat > confcache <<\EOF
17461 # This file is a shell script that caches the results of configure
17462 # tests run on this system so they can be shared between configure
17463 # scripts and configure runs. It is not useful on other systems.
17464 # If it contains results you don't want to keep, you may remove or edit it.
17466 # By default, configure uses ./config.cache as the cache file,
17467 # creating it if it does not exist already. You can give configure
17468 # the --cache-file=FILE option to use a different cache file; that is
17469 # what configure does when it calls configure scripts in
17470 # subdirectories, so they share the cache.
17471 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17472 # config.status only pays attention to the cache file if you give it the
17473 # --recheck option to rerun configure.
17476 # The following way of writing the cache mishandles newlines in values,
17477 # but we know of no workaround that is simple, portable, and efficient.
17478 # So, don't put newlines in cache variables' values.
17479 # Ultrix sh set writes to stderr and can't be redirected directly,
17480 # and sets the high bit in the cache file unless we assign to the vars.
17481 (set) 2>&1 |
17482 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17483 *ac_space=\ *)
17484 # `set' does not quote correctly, so add quotes (double-quote substitution
17485 # turns \\\\ into \\, and sed turns \\ into \).
17486 sed -n \
17487 -e "s/'/'\\\\''/g" \
17488 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17491 # `set' quotes correctly as required by POSIX, so do not add quotes.
17492 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17494 esac >> confcache
17495 if cmp -s $cache_file confcache; then
17497 else
17498 if test -w $cache_file; then
17499 echo "updating cache $cache_file"
17500 cat confcache > $cache_file
17501 else
17502 echo "not updating unwritable cache $cache_file"
17505 rm -f confcache
17507 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17509 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17510 # Let make expand exec_prefix.
17511 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17513 # Any assignment to VPATH causes Sun make to only execute
17514 # the first set of double-colon rules, so remove it if not needed.
17515 # If there is a colon in the path, we need to keep it.
17516 if test "x$srcdir" = x.; then
17517 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17520 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17522 DEFS=-DHAVE_CONFIG_H
17524 # Without the "./", some shells look in PATH for config.status.
17525 : ${CONFIG_STATUS=./config.status}
17527 echo creating $CONFIG_STATUS
17528 rm -f $CONFIG_STATUS
17529 cat > $CONFIG_STATUS <<EOF
17530 #! /bin/sh
17531 # Generated automatically by configure.
17532 # Run this file to recreate the current configuration.
17533 # This directory was configured as follows,
17534 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17536 # $0 $ac_configure_args
17538 # Compiler output produced by configure, useful for debugging
17539 # configure, is in ./config.log if it exists.
17541 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17542 for ac_option
17544 case "\$ac_option" in
17545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17546 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17547 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17548 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17549 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17550 exit 0 ;;
17551 -help | --help | --hel | --he | --h)
17552 echo "\$ac_cs_usage"; exit 0 ;;
17553 *) echo "\$ac_cs_usage"; exit 1 ;;
17554 esac
17555 done
17557 ac_given_srcdir=$srcdir
17558 ac_given_INSTALL="$INSTALL"
17560 trap 'rm -fr `echo "Makefile \
17561 include/Makefile src/Makefile \
17562 libmath/Makefile libio/Makefile libsupc++/Makefile \
17563 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17565 cat >> $CONFIG_STATUS <<EOF
17567 # Protect against being on the right side of a sed subst in config.status.
17568 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17569 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17570 $ac_vpsub
17571 $extrasub
17572 s%@SHELL@%$SHELL%g
17573 s%@CFLAGS@%$CFLAGS%g
17574 s%@CPPFLAGS@%$CPPFLAGS%g
17575 s%@CXXFLAGS@%$CXXFLAGS%g
17576 s%@FFLAGS@%$FFLAGS%g
17577 s%@DEFS@%$DEFS%g
17578 s%@LDFLAGS@%$LDFLAGS%g
17579 s%@LIBS@%$LIBS%g
17580 s%@exec_prefix@%$exec_prefix%g
17581 s%@prefix@%$prefix%g
17582 s%@program_transform_name@%$program_transform_name%g
17583 s%@bindir@%$bindir%g
17584 s%@sbindir@%$sbindir%g
17585 s%@libexecdir@%$libexecdir%g
17586 s%@datadir@%$datadir%g
17587 s%@sysconfdir@%$sysconfdir%g
17588 s%@sharedstatedir@%$sharedstatedir%g
17589 s%@localstatedir@%$localstatedir%g
17590 s%@libdir@%$libdir%g
17591 s%@includedir@%$includedir%g
17592 s%@oldincludedir@%$oldincludedir%g
17593 s%@infodir@%$infodir%g
17594 s%@mandir@%$mandir%g
17595 s%@PACKAGE@%$PACKAGE%g
17596 s%@release_VERSION@%$release_VERSION%g
17597 s%@libtool_VERSION@%$libtool_VERSION%g
17598 s%@host@%$host%g
17599 s%@host_alias@%$host_alias%g
17600 s%@host_cpu@%$host_cpu%g
17601 s%@host_vendor@%$host_vendor%g
17602 s%@host_os@%$host_os%g
17603 s%@target@%$target%g
17604 s%@target_alias@%$target_alias%g
17605 s%@target_cpu@%$target_cpu%g
17606 s%@target_vendor@%$target_vendor%g
17607 s%@target_os@%$target_os%g
17608 s%@build@%$build%g
17609 s%@build_alias@%$build_alias%g
17610 s%@build_cpu@%$build_cpu%g
17611 s%@build_vendor@%$build_vendor%g
17612 s%@build_os@%$build_os%g
17613 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17614 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17615 s%@INSTALL_DATA@%$INSTALL_DATA%g
17616 s%@VERSION@%$VERSION%g
17617 s%@ACLOCAL@%$ACLOCAL%g
17618 s%@AUTOCONF@%$AUTOCONF%g
17619 s%@AUTOMAKE@%$AUTOMAKE%g
17620 s%@AUTOHEADER@%$AUTOHEADER%g
17621 s%@MAKEINFO@%$MAKEINFO%g
17622 s%@SET_MAKE@%$SET_MAKE%g
17623 s%@toplevel_srcdir@%$toplevel_srcdir%g
17624 s%@glibcpp_builddir@%$glibcpp_builddir%g
17625 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
17626 s%@LN_S@%$LN_S%g
17627 s%@glibcpp_basedir@%$glibcpp_basedir%g
17628 s%@CC@%$CC%g
17629 s%@glibcpp_CXX@%$glibcpp_CXX%g
17630 s%@AS@%$AS%g
17631 s%@AR@%$AR%g
17632 s%@RANLIB@%$RANLIB%g
17633 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
17634 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
17635 s%@MAINT@%$MAINT%g
17636 s%@EXEEXT@%$EXEEXT%g
17637 s%@OBJEXT@%$OBJEXT%g
17638 s%@STRIP@%$STRIP%g
17639 s%@LIBTOOL@%$LIBTOOL%g
17640 s%@CXXCPP@%$CXXCPP%g
17641 s%@enable_shared@%$enable_shared%g
17642 s%@enable_static@%$enable_static%g
17643 s%@ifGNUmake@%$ifGNUmake%g
17644 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
17645 s%@CPP@%$CPP%g
17646 s%@CSTDIO_H@%$CSTDIO_H%g
17647 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
17648 s%@CCODECVT_C@%$CCODECVT_C%g
17649 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
17650 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
17651 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
17652 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
17653 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
17654 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
17655 s%@libio_la@%$libio_la%g
17656 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
17657 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
17658 s%@glibcpp_localedir@%$glibcpp_localedir%g
17659 s%@USE_NLS@%$USE_NLS%g
17660 s%@CLOCALE_H@%$CLOCALE_H%g
17661 s%@CCODECVT_H@%$CCODECVT_H%g
17662 s%@CMESSAGES_H@%$CMESSAGES_H%g
17663 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
17664 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
17665 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
17666 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
17667 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
17668 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
17669 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
17670 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
17671 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
17672 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
17673 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
17674 s%@WERROR@%$WERROR%g
17675 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
17676 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
17677 s%@LIMITS_INC_SRCDIR@%$LIMITS_INC_SRCDIR%g
17678 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
17679 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
17680 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
17681 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
17682 s%@gxx_include_dir@%$gxx_include_dir%g
17683 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
17684 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
17685 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
17686 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
17687 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
17688 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
17689 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
17690 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
17691 s%@WARN_FLAGS@%$WARN_FLAGS%g
17692 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
17694 CEOF
17697 cat >> $CONFIG_STATUS <<\EOF
17699 # Split the substitutions into bite-sized pieces for seds with
17700 # small command number limits, like on Digital OSF/1 and HP-UX.
17701 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17702 ac_file=1 # Number of current file.
17703 ac_beg=1 # First line for current file.
17704 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17705 ac_more_lines=:
17706 ac_sed_cmds=""
17707 while $ac_more_lines; do
17708 if test $ac_beg -gt 1; then
17709 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17710 else
17711 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17713 if test ! -s conftest.s$ac_file; then
17714 ac_more_lines=false
17715 rm -f conftest.s$ac_file
17716 else
17717 if test -z "$ac_sed_cmds"; then
17718 ac_sed_cmds="sed -f conftest.s$ac_file"
17719 else
17720 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17722 ac_file=`expr $ac_file + 1`
17723 ac_beg=$ac_end
17724 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17726 done
17727 if test -z "$ac_sed_cmds"; then
17728 ac_sed_cmds=cat
17732 cat >> $CONFIG_STATUS <<EOF
17734 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
17735 include/Makefile src/Makefile \
17736 libmath/Makefile libio/Makefile libsupc++/Makefile \
17737 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
17739 cat >> $CONFIG_STATUS <<\EOF
17740 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17741 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17742 case "$ac_file" in
17743 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17744 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17745 *) ac_file_in="${ac_file}.in" ;;
17746 esac
17748 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17750 # Remove last slash and all that follows it. Not all systems have dirname.
17751 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17752 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17753 # The file is in a subdirectory.
17754 test ! -d "$ac_dir" && mkdir "$ac_dir"
17755 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17756 # A "../" for each directory in $ac_dir_suffix.
17757 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17758 else
17759 ac_dir_suffix= ac_dots=
17762 case "$ac_given_srcdir" in
17763 .) srcdir=.
17764 if test -z "$ac_dots"; then top_srcdir=.
17765 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17766 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17767 *) # Relative path.
17768 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17769 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17770 esac
17772 case "$ac_given_INSTALL" in
17773 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17774 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17775 esac
17777 echo creating "$ac_file"
17778 rm -f "$ac_file"
17779 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17780 case "$ac_file" in
17781 *Makefile*) ac_comsub="1i\\
17782 # $configure_input" ;;
17783 *) ac_comsub= ;;
17784 esac
17786 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17787 sed -e "$ac_comsub
17788 s%@configure_input@%$configure_input%g
17789 s%@srcdir@%$srcdir%g
17790 s%@top_srcdir@%$top_srcdir%g
17791 s%@INSTALL@%$INSTALL%g
17792 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17793 fi; done
17794 rm -f conftest.s*
17796 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17797 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17799 # ac_d sets the value in "#define NAME VALUE" lines.
17800 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17801 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17802 ac_dC='\3'
17803 ac_dD='%g'
17804 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17805 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17806 ac_uB='\([ ]\)%\1#\2define\3'
17807 ac_uC=' '
17808 ac_uD='\4%g'
17809 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17810 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17811 ac_eB='$%\1#\2define\3'
17812 ac_eC=' '
17813 ac_eD='%g'
17815 if test "${CONFIG_HEADERS+set}" != set; then
17817 cat >> $CONFIG_STATUS <<EOF
17818 CONFIG_HEADERS="config.h"
17820 cat >> $CONFIG_STATUS <<\EOF
17822 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17823 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17824 case "$ac_file" in
17825 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17826 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17827 *) ac_file_in="${ac_file}.in" ;;
17828 esac
17830 echo creating $ac_file
17832 rm -f conftest.frag conftest.in conftest.out
17833 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17834 cat $ac_file_inputs > conftest.in
17838 # Transform confdefs.h into a sed script conftest.vals that substitutes
17839 # the proper values into config.h.in to produce config.h. And first:
17840 # Protect against being on the right side of a sed subst in config.status.
17841 # Protect against being in an unquoted here document in config.status.
17842 rm -f conftest.vals
17843 cat > conftest.hdr <<\EOF
17844 s/[\\&%]/\\&/g
17845 s%[\\$`]%\\&%g
17846 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17847 s%ac_d%ac_u%gp
17848 s%ac_u%ac_e%gp
17850 sed -n -f conftest.hdr confdefs.h > conftest.vals
17851 rm -f conftest.hdr
17853 # This sed command replaces #undef with comments. This is necessary, for
17854 # example, in the case of _POSIX_SOURCE, which is predefined and required
17855 # on some systems where configure will not decide to define it.
17856 cat >> conftest.vals <<\EOF
17857 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17860 # Break up conftest.vals because some shells have a limit on
17861 # the size of here documents, and old seds have small limits too.
17863 rm -f conftest.tail
17864 while :
17866 ac_lines=`grep -c . conftest.vals`
17867 # grep -c gives empty output for an empty file on some AIX systems.
17868 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17869 # Write a limited-size here document to conftest.frag.
17870 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17871 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17872 echo 'CEOF
17873 sed -f conftest.frag conftest.in > conftest.out
17874 rm -f conftest.in
17875 mv conftest.out conftest.in
17876 ' >> $CONFIG_STATUS
17877 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17878 rm -f conftest.vals
17879 mv conftest.tail conftest.vals
17880 done
17881 rm -f conftest.vals
17883 cat >> $CONFIG_STATUS <<\EOF
17884 rm -f conftest.frag conftest.h
17885 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17886 cat conftest.in >> conftest.h
17887 rm -f conftest.in
17888 if cmp -s $ac_file conftest.h 2>/dev/null; then
17889 echo "$ac_file is unchanged"
17890 rm -f conftest.h
17891 else
17892 # Remove last slash and all that follows it. Not all systems have dirname.
17893 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17894 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17895 # The file is in a subdirectory.
17896 test ! -d "$ac_dir" && mkdir "$ac_dir"
17898 rm -f $ac_file
17899 mv conftest.h $ac_file
17901 fi; done
17905 cat >> $CONFIG_STATUS <<EOF
17906 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC"
17907 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/messages.cc src/moneypunct.cc src/numpunct.cc"
17910 cat >> $CONFIG_STATUS <<\EOF
17911 srcdir=$ac_given_srcdir
17912 while test -n "$ac_sources"; do
17913 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17914 set $ac_sources; ac_source=$1; shift; ac_sources=$*
17916 echo "linking $srcdir/$ac_source to $ac_dest"
17918 if test ! -r $srcdir/$ac_source; then
17919 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
17921 rm -f $ac_dest
17923 # Make relative symlinks.
17924 # Remove last slash and all that follows it. Not all systems have dirname.
17925 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
17926 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
17927 # The dest file is in a subdirectory.
17928 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
17929 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
17930 # A "../" for each directory in $ac_dest_dir_suffix.
17931 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
17932 else
17933 ac_dest_dir_suffix= ac_dots=
17936 case "$srcdir" in
17937 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
17938 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
17939 esac
17941 # Make a symlink if possible; otherwise try a hard link.
17942 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17943 ln $srcdir/$ac_source $ac_dest; then :
17944 else
17945 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
17947 done
17949 cat >> $CONFIG_STATUS <<EOF
17951 srcdir=${srcdir}
17952 host=${host}
17953 target=${target}
17954 with_multisubdir=${with_multisubdir}
17955 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17956 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17957 glibcpp_basedir=${glibcpp_basedir}
17958 CC="${CC}"
17959 CXX="${CXX}"
17962 cat >> $CONFIG_STATUS <<\EOF
17963 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
17964 if test -n "$CONFIG_FILES"; then
17965 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
17966 grep '^MULTISUBDIR =' Makefile >> src/Makefile
17967 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
17969 chmod +x mkcheck
17970 chmod +x testsuite_flags
17972 exit 0
17974 chmod +x $CONFIG_STATUS
17975 rm -fr confdefs* $ac_clean_files
17976 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17980 # Sanity checking & User-visible messages.
17981 # Checks down here, otherwise they get scrolled off before
17982 # the user will notice.
17984 # Trying to get more people to read documentation. Possibly remove
17985 # check and warn all the time. There is no "informational" AC_MSG_
17986 # macro, so these are going to be printed even when --quiet/--silent
17987 # is given.
17988 if test ! -f stamp-sanity-warned; then
17989 touch stamp-sanity-warned
17990 echo ""
17991 echo "Please make certain that you read the installation information here:"
17992 echo " faster => ${srcdir}/docs/install.html"
17993 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
17994 echo ""
17995 echo "and the configuration information here:"
17996 echo " faster => ${srcdir}/docs/configopts.html"
17997 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
17998 echo ""
17999 echo "before proceeding with ${_cv_gnu_make_command}."
18000 echo ""