acinclude.m4: CHECK_MATH_DECL_AND_LINKAGE for hypot, hypotf, hypotl, atan2f, atan2l.
[gcc.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
17 ac_help="$ac_help
18 --with-cross-host=HOST configuring with a cross compiler"
19 ac_help="$ac_help
20 --enable-multilib build hella library versions (default)"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-debug extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39 --enable-cstdio enable stdio for target io package.
40 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
41 "
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]
45 "
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 "
63
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'
97
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
104
105 ac_prev=
106 for ac_option
107 do
108
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
114 fi
115
116 case "$ac_option" in
117 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 *) ac_optarg= ;;
119 esac
120
121 # Accept the important Cygnus configure options, so we can diagnose typos.
122
123 case "$ac_option" in
124
125 -bindir | --bindir | --bindi | --bind | --bin | --bi)
126 ac_prev=bindir ;;
127 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
128 bindir="$ac_optarg" ;;
129
130 -build | --build | --buil | --bui | --bu)
131 ac_prev=build ;;
132 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
133 build="$ac_optarg" ;;
134
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" ;;
141
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" ;;
147
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; }
153 fi
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}=no" ;;
156
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; }
162 fi
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'" ;;
169
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" ;;
178
179 -gas | --gas | --ga | --g)
180 # Obsolete; use --with-gas.
181 with_gas=yes ;;
182
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
219 EOF
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
232 EOF
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
235 fi
236 exit 0 ;;
237
238 -host | --host | --hos | --ho)
239 ac_prev=host ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host="$ac_optarg" ;;
242
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" ;;
249
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 ac_prev=infodir ;;
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir="$ac_optarg" ;;
254
255 -libdir | --libdir | --libdi | --libd)
256 ac_prev=libdir ;;
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
258 libdir="$ac_optarg" ;;
259
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" ;;
266
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" ;;
275
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 ac_prev=mandir ;;
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279 mandir="$ac_optarg" ;;
280
281 -nfp | --nfp | --nf)
282 # Obsolete; use --without-fp.
283 with_fp=no ;;
284
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 | --no-cr | --no-c)
287 no_create=yes ;;
288
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 ;;
292
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" ;;
301
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 ac_prev=prefix ;;
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305 prefix="$ac_optarg" ;;
306
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" ;;
313
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" ;;
320
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" ;;
337
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
340 silent=yes ;;
341
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" ;;
347
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" ;;
358
359 -site | --site | --sit)
360 ac_prev=site ;;
361 -site=* | --site=* | --sit=*)
362 site="$ac_optarg" ;;
363
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 ac_prev=srcdir ;;
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367 srcdir="$ac_optarg" ;;
368
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" ;;
375
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target="$ac_optarg" ;;
380
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
382 verbose=yes ;;
383
384 -version | --version | --versio | --versi | --vers)
385 echo "configure generated by autoconf version 2.13"
386 exit 0 ;;
387
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; }
393 fi
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'" ;;
400
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; }
406 fi
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}=no" ;;
409
410 --x)
411 # Obsolete; use --with-x.
412 with_x=yes ;;
413
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" ;;
420
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" ;;
427
428 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
429 ;;
430
431 *)
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
434 fi
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; }
437 fi
438 nonopt="$ac_option"
439 ;;
440
441 esac
442 done
443
444 if test -n "$ac_prev"; then
445 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
446 fi
447
448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
449
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
462 fi
463 exec 5>./config.log
464
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
469
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
474 do
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
485
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
495
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
500
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
504
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=..
515 fi
516 else
517 ac_srcdir_defaulted=no
518 fi
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; }
524 fi
525 fi
526 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
527
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"
534 fi
535 fi
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"
540 fi
541 done
542
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
549 fi
550
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
557
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=
567 fi
568 else
569 ac_n= ac_c='\c' ac_t=
570 fi
571
572
573
574 # When building with srcdir == objdir, links to the source files will
575 # be created in directories within the target_subdir. We have to
576 # adjust toplevel_srcdir accordingly, so that configure finds
577 # install-sh and other auxiliary files that live in the top-level
578 # source directory.
579 if test "${srcdir}" = "."; then
580 if test -z "${with_target_subdir}"; then
581 toprel=".."
582 else
583 if test "${with_target_subdir}" != "."; then
584 toprel="${with_multisrctop}../.."
585 else
586 toprel="${with_multisrctop}.."
587 fi
588 fi
589 else
590 toprel=".."
591 fi
592 ac_aux_dir=
593 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
594 if test -f $ac_dir/install-sh; then
595 ac_aux_dir=$ac_dir
596 ac_install_sh="$ac_aux_dir/install-sh -c"
597 break
598 elif test -f $ac_dir/install.sh; then
599 ac_aux_dir=$ac_dir
600 ac_install_sh="$ac_aux_dir/install.sh -c"
601 break
602 fi
603 done
604 if test -z "$ac_aux_dir"; then
605 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
606 fi
607 ac_config_guess=$ac_aux_dir/config.guess
608 ac_config_sub=$ac_aux_dir/config.sub
609 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
610
611 toplevel_srcdir=\${top_srcdir}/$toprel
612
613
614
615
616 # Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc.
617 # AC 2.50 sets target_alias iff the user specified --target, but we use it
618 # everywhere, so we set it here just to be sure.
619
620 # Do some error checking and defaulting for the host and target type.
621 # The inputs are:
622 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
623 #
624 # The rules are:
625 # 1. You are not allowed to specify --host, --target, and nonopt at the
626 # same time.
627 # 2. Host defaults to nonopt.
628 # 3. If nonopt is not specified, then host defaults to the current host,
629 # as determined by config.guess.
630 # 4. Target and build default to nonopt.
631 # 5. If nonopt is not specified, then target and build default to host.
632
633 # The aliases save the names the user supplied, while $host etc.
634 # will get canonicalized.
635 case $host---$target---$nonopt in
636 NONE---*---* | *---NONE---* | *---*---NONE) ;;
637 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
638 esac
639
640
641 # Make sure we can run config.sub.
642 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
643 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
644 fi
645
646 echo $ac_n "checking host system type""... $ac_c" 1>&6
647 echo "configure:648: checking host system type" >&5
648
649 host_alias=$host
650 case "$host_alias" in
651 NONE)
652 case $nonopt in
653 NONE)
654 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
655 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
656 fi ;;
657 *) host_alias=$nonopt ;;
658 esac ;;
659 esac
660
661 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
662 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
663 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
664 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
665 echo "$ac_t""$host" 1>&6
666
667 echo $ac_n "checking target system type""... $ac_c" 1>&6
668 echo "configure:669: checking target system type" >&5
669
670 target_alias=$target
671 case "$target_alias" in
672 NONE)
673 case $nonopt in
674 NONE) target_alias=$host_alias ;;
675 *) target_alias=$nonopt ;;
676 esac ;;
677 esac
678
679 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
680 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$target" 1>&6
684
685 echo $ac_n "checking build system type""... $ac_c" 1>&6
686 echo "configure:687: checking build system type" >&5
687
688 build_alias=$build
689 case "$build_alias" in
690 NONE)
691 case $nonopt in
692 NONE) build_alias=$host_alias ;;
693 *) build_alias=$nonopt ;;
694 esac ;;
695 esac
696
697 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
698 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
699 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
700 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
701 echo "$ac_t""$build" 1>&6
702
703 test "$host_alias" != "$target_alias" &&
704 test "$program_prefix$program_suffix$program_transform_name" = \
705 NONENONEs,x,x, &&
706 program_prefix=${target_alias}-
707
708 target_alias=${target_alias-$target}
709
710
711 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
712 # be 'cp -p' if linking isn't available.
713 #ac_cv_prog_LN_S='cp -p'
714 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
715 echo "configure:716: checking whether ln -s works" >&5
716 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
717 echo $ac_n "(cached) $ac_c" 1>&6
718 else
719 rm -f conftestdata
720 if ln -s X conftestdata 2>/dev/null
721 then
722 rm -f conftestdata
723 ac_cv_prog_LN_S="ln -s"
724 else
725 ac_cv_prog_LN_S=ln
726 fi
727 fi
728 LN_S="$ac_cv_prog_LN_S"
729 if test "$ac_cv_prog_LN_S" = "ln -s"; then
730 echo "$ac_t""yes" 1>&6
731 else
732 echo "$ac_t""no" 1>&6
733 fi
734
735
736 # We use these options to decide which functions to include.
737 # Check whether --with-target-subdir or --without-target-subdir was given.
738 if test "${with_target_subdir+set}" = set; then
739 withval="$with_target_subdir"
740 :
741 fi
742
743 # Check whether --with-cross-host or --without-cross-host was given.
744 if test "${with_cross_host+set}" = set; then
745 withval="$with_cross_host"
746 :
747 fi
748
749
750 # Runs configure.host and configure.target. Have to run this before
751 # the GLIBCPP_ENABLE_* macros below.
752 # Find a good install program. We prefer a C program (faster),
753 # so one script is as good as another. But avoid the broken or
754 # incompatible versions:
755 # SysV /etc/install, /usr/sbin/install
756 # SunOS /usr/etc/install
757 # IRIX /sbin/install
758 # AIX /bin/install
759 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
760 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
761 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
762 # ./install, which can be erroneously created by make from ./install.sh.
763 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
764 echo "configure:765: checking for a BSD compatible install" >&5
765 if test -z "$INSTALL"; then
766 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
768 else
769 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
770 for ac_dir in $PATH; do
771 # Account for people who put trailing slashes in PATH elements.
772 case "$ac_dir/" in
773 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
774 *)
775 # OSF1 and SCO ODT 3.0 have their own names for install.
776 # Don't use installbsd from OSF since it installs stuff as root
777 # by default.
778 for ac_prog in ginstall scoinst install; do
779 if test -f $ac_dir/$ac_prog; then
780 if test $ac_prog = install &&
781 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
782 # AIX install. It has an incompatible calling convention.
783 :
784 else
785 ac_cv_path_install="$ac_dir/$ac_prog -c"
786 break 2
787 fi
788 fi
789 done
790 ;;
791 esac
792 done
793 IFS="$ac_save_IFS"
794
795 fi
796 if test "${ac_cv_path_install+set}" = set; then
797 INSTALL="$ac_cv_path_install"
798 else
799 # As a last resort, use the slow shell script. We don't cache a
800 # path for INSTALL within a source directory, because that will
801 # break other packages using the cache if that directory is
802 # removed, or if the path is relative.
803 INSTALL="$ac_install_sh"
804 fi
805 fi
806 echo "$ac_t""$INSTALL" 1>&6
807
808 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
809 # It thinks the first close brace ends the variable substitution.
810 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
811
812 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
813
814 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
815
816 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
817 echo "configure:818: checking whether build environment is sane" >&5
818 # Just in case
819 sleep 1
820 echo timestamp > conftestfile
821 # Do `set' in a subshell so we don't clobber the current shell's
822 # arguments. Must try -L first in case configure is actually a
823 # symlink; some systems play weird games with the mod time of symlinks
824 # (eg FreeBSD returns the mod time of the symlink's containing
825 # directory).
826 if (
827 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
828 if test "$*" = "X"; then
829 # -L didn't work.
830 set X `ls -t $srcdir/configure conftestfile`
831 fi
832 if test "$*" != "X $srcdir/configure conftestfile" \
833 && test "$*" != "X conftestfile $srcdir/configure"; then
834
835 # If neither matched, then we have a broken ls. This can happen
836 # if, for instance, CONFIG_SHELL is bash and it inherits a
837 # broken ls alias from the environment. This has actually
838 # happened. Such a system could not be considered "sane".
839 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
840 alias in your environment" 1>&2; exit 1; }
841 fi
842
843 test "$2" = conftestfile
844 )
845 then
846 # Ok.
847 :
848 else
849 { echo "configure: error: newly created file is older than distributed files!
850 Check your system clock" 1>&2; exit 1; }
851 fi
852 rm -f conftest*
853 echo "$ac_t""yes" 1>&6
854 if test "$program_transform_name" = s,x,x,; then
855 program_transform_name=
856 else
857 # Double any \ or $. echo might interpret backslashes.
858 cat <<\EOF_SED > conftestsed
859 s,\\,\\\\,g; s,\$,$$,g
860 EOF_SED
861 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
862 rm -f conftestsed
863 fi
864 test "$program_prefix" != NONE &&
865 program_transform_name="s,^,${program_prefix},; $program_transform_name"
866 # Use a double $ so make ignores it.
867 test "$program_suffix" != NONE &&
868 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
869
870 # sed with no file args requires a program.
871 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
872
873 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
874 echo "configure:875: checking whether ${MAKE-make} sets \${MAKE}" >&5
875 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
876 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
878 else
879 cat > conftestmake <<\EOF
880 all:
881 @echo 'ac_maketemp="${MAKE}"'
882 EOF
883 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
884 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
885 if test -n "$ac_maketemp"; then
886 eval ac_cv_prog_make_${ac_make}_set=yes
887 else
888 eval ac_cv_prog_make_${ac_make}_set=no
889 fi
890 rm -f conftestmake
891 fi
892 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
893 echo "$ac_t""yes" 1>&6
894 SET_MAKE=
895 else
896 echo "$ac_t""no" 1>&6
897 SET_MAKE="MAKE=${MAKE-make}"
898 fi
899
900 if test $host != $build; then
901 ac_tool_prefix=${host_alias}-
902 else
903 ac_tool_prefix=
904 fi
905
906 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
907 echo "configure:908: checking for Cygwin environment" >&5
908 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
910 else
911 cat > conftest.$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
914
915 int main() {
916
917 #ifndef __CYGWIN__
918 #define __CYGWIN__ __CYGWIN32__
919 #endif
920 return __CYGWIN__;
921 ; return 0; }
922 EOF
923 if { (eval echo configure:924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
924 rm -rf conftest*
925 ac_cv_cygwin=yes
926 else
927 echo "configure: failed program was:" >&5
928 cat conftest.$ac_ext >&5
929 rm -rf conftest*
930 ac_cv_cygwin=no
931 fi
932 rm -f conftest*
933 rm -f conftest*
934 fi
935
936 echo "$ac_t""$ac_cv_cygwin" 1>&6
937 CYGWIN=
938 test "$ac_cv_cygwin" = yes && CYGWIN=yes
939 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
940 echo "configure:941: checking for mingw32 environment" >&5
941 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
942 echo $ac_n "(cached) $ac_c" 1>&6
943 else
944 cat > conftest.$ac_ext <<EOF
945 #line 946 "configure"
946 #include "confdefs.h"
947
948 int main() {
949 return __MINGW32__;
950 ; return 0; }
951 EOF
952 if { (eval echo configure:953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
953 rm -rf conftest*
954 ac_cv_mingw32=yes
955 else
956 echo "configure: failed program was:" >&5
957 cat conftest.$ac_ext >&5
958 rm -rf conftest*
959 ac_cv_mingw32=no
960 fi
961 rm -f conftest*
962 rm -f conftest*
963 fi
964
965 echo "$ac_t""$ac_cv_mingw32" 1>&6
966 MINGW32=
967 test "$ac_cv_mingw32" = yes && MINGW32=yes
968
969 # Check whether --enable-multilib or --disable-multilib was given.
970 if test "${enable_multilib+set}" = set; then
971 enableval="$enable_multilib"
972 case "${enableval}" in
973 yes) multilib=yes ;;
974 no) multilib=no ;;
975 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
976 esac
977 else
978 multilib=yes
979 fi
980
981 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
982
983
984
985 PACKAGE=libstdc++
986
987 VERSION=3.0.0
988
989 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
990 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
991 fi
992 cat >> confdefs.h <<EOF
993 #define PACKAGE "$PACKAGE"
994 EOF
995
996 cat >> confdefs.h <<EOF
997 #define VERSION "$VERSION"
998 EOF
999
1000
1001
1002 missing_dir=`cd $ac_aux_dir && pwd`
1003 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1004 echo "configure:1005: checking for working aclocal" >&5
1005 # Run test in a subshell; some versions of sh will print an error if
1006 # an executable is not found, even if stderr is redirected.
1007 # Redirect stdin to placate older versions of autoconf. Sigh.
1008 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1009 ACLOCAL=aclocal
1010 echo "$ac_t""found" 1>&6
1011 else
1012 ACLOCAL="$missing_dir/missing aclocal"
1013 echo "$ac_t""missing" 1>&6
1014 fi
1015
1016 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1017 echo "configure:1018: checking for working autoconf" >&5
1018 # Run test in a subshell; some versions of sh will print an error if
1019 # an executable is not found, even if stderr is redirected.
1020 # Redirect stdin to placate older versions of autoconf. Sigh.
1021 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1022 AUTOCONF=autoconf
1023 echo "$ac_t""found" 1>&6
1024 else
1025 AUTOCONF="$missing_dir/missing autoconf"
1026 echo "$ac_t""missing" 1>&6
1027 fi
1028
1029 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1030 echo "configure:1031: checking for working automake" >&5
1031 # Run test in a subshell; some versions of sh will print an error if
1032 # an executable is not found, even if stderr is redirected.
1033 # Redirect stdin to placate older versions of autoconf. Sigh.
1034 if (automake --version) < /dev/null > /dev/null 2>&1; then
1035 AUTOMAKE=automake
1036 echo "$ac_t""found" 1>&6
1037 else
1038 AUTOMAKE="$missing_dir/missing automake"
1039 echo "$ac_t""missing" 1>&6
1040 fi
1041
1042 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1043 echo "configure:1044: checking for working autoheader" >&5
1044 # Run test in a subshell; some versions of sh will print an error if
1045 # an executable is not found, even if stderr is redirected.
1046 # Redirect stdin to placate older versions of autoconf. Sigh.
1047 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1048 AUTOHEADER=autoheader
1049 echo "$ac_t""found" 1>&6
1050 else
1051 AUTOHEADER="$missing_dir/missing autoheader"
1052 echo "$ac_t""missing" 1>&6
1053 fi
1054
1055 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1056 echo "configure:1057: checking for working makeinfo" >&5
1057 # Run test in a subshell; some versions of sh will print an error if
1058 # an executable is not found, even if stderr is redirected.
1059 # Redirect stdin to placate older versions of autoconf. Sigh.
1060 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1061 MAKEINFO=makeinfo
1062 echo "$ac_t""found" 1>&6
1063 else
1064 MAKEINFO="$missing_dir/missing makeinfo"
1065 echo "$ac_t""missing" 1>&6
1066 fi
1067
1068
1069
1070 # Never versions of autoconf add an underscore to these functions.
1071 # Prevent future problems ...
1072
1073
1074
1075
1076
1077 # AC_PROG_CC
1078
1079 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1080 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1081 # are probably using a cross compiler, which will not be able to fully
1082 # link an executable. This should really be fixed in autoconf
1083 # itself.
1084
1085
1086
1087
1088 # Extract the first word of "gcc", so it can be a program name with args.
1089 set dummy gcc; ac_word=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1094 else
1095 if test -n "$CC"; then
1096 ac_cv_prog_CC="$CC" # Let the user override the test.
1097 else
1098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1099 ac_dummy="$PATH"
1100 for ac_dir in $ac_dummy; do
1101 test -z "$ac_dir" && ac_dir=.
1102 if test -f $ac_dir/$ac_word; then
1103 ac_cv_prog_CC="gcc"
1104 break
1105 fi
1106 done
1107 IFS="$ac_save_ifs"
1108 fi
1109 fi
1110 CC="$ac_cv_prog_CC"
1111 if test -n "$CC"; then
1112 echo "$ac_t""$CC" 1>&6
1113 else
1114 echo "$ac_t""no" 1>&6
1115 fi
1116
1117 if test -z "$CC"; then
1118 # Extract the first word of "cc", so it can be a program name with args.
1119 set dummy cc; ac_word=$2
1120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1121 echo "configure:1122: checking for $ac_word" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1124 else
1125 if test -n "$CC"; then
1126 ac_cv_prog_CC="$CC" # Let the user override the test.
1127 else
1128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1129 ac_prog_rejected=no
1130 ac_dummy="$PATH"
1131 for ac_dir in $ac_dummy; do
1132 test -z "$ac_dir" && ac_dir=.
1133 if test -f $ac_dir/$ac_word; then
1134 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1135 ac_prog_rejected=yes
1136 continue
1137 fi
1138 ac_cv_prog_CC="cc"
1139 break
1140 fi
1141 done
1142 IFS="$ac_save_ifs"
1143 if test $ac_prog_rejected = yes; then
1144 # We found a bogon in the path, so make sure we never use it.
1145 set dummy $ac_cv_prog_CC
1146 shift
1147 if test $# -gt 0; then
1148 # We chose a different compiler from the bogus one.
1149 # However, it has the same basename, so the bogon will be chosen
1150 # first if we set CC to just the basename; use the full file name.
1151 shift
1152 set dummy "$ac_dir/$ac_word" "$@"
1153 shift
1154 ac_cv_prog_CC="$@"
1155 fi
1156 fi
1157 fi
1158 fi
1159 CC="$ac_cv_prog_CC"
1160 if test -n "$CC"; then
1161 echo "$ac_t""$CC" 1>&6
1162 else
1163 echo "$ac_t""no" 1>&6
1164 fi
1165
1166 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1167 fi
1168
1169 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1170 echo "configure:1171: checking whether we are using GNU C" >&5
1171 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1173 else
1174 cat > conftest.c <<EOF
1175 #ifdef __GNUC__
1176 yes;
1177 #endif
1178 EOF
1179 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1180 ac_cv_prog_gcc=yes
1181 else
1182 ac_cv_prog_gcc=no
1183 fi
1184 fi
1185
1186 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1187
1188 if test $ac_cv_prog_gcc = yes; then
1189 GCC=yes
1190 ac_test_CFLAGS="${CFLAGS+set}"
1191 ac_save_CFLAGS="$CFLAGS"
1192 CFLAGS=
1193 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether ${CC-cc} accepts -g" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1197 else
1198 echo 'void f(){}' > conftest.c
1199 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1200 ac_cv_prog_cc_g=yes
1201 else
1202 ac_cv_prog_cc_g=no
1203 fi
1204 rm -f conftest*
1205
1206 fi
1207
1208 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1209 if test "$ac_test_CFLAGS" = set; then
1210 CFLAGS="$ac_save_CFLAGS"
1211 elif test $ac_cv_prog_cc_g = yes; then
1212 CFLAGS="-g -O2"
1213 else
1214 CFLAGS="-O2"
1215 fi
1216 else
1217 GCC=
1218 test "${CFLAGS+set}" = set || CFLAGS="-g"
1219 fi
1220
1221
1222 # Can't just call these here as g++ requires libstc++ to be built....
1223 # AC_PROG_CXX
1224
1225 # Likewise for AC_PROG_CXX.
1226
1227
1228
1229 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1230 # flags that come in CXX while configuring libstdc++. They're different
1231 # from those used for all other target libraries. If CXX is set in
1232 # the environment, respect that here.
1233 glibcpp_CXX=$CXX
1234 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1235 do
1236 # Extract the first word of "$ac_prog", so it can be a program name with args.
1237 set dummy $ac_prog; ac_word=$2
1238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1239 echo "configure:1240: checking for $ac_word" >&5
1240 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1242 else
1243 if test -n "$glibcpp_CXX"; then
1244 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1245 else
1246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1247 ac_dummy="$PATH"
1248 for ac_dir in $ac_dummy; do
1249 test -z "$ac_dir" && ac_dir=.
1250 if test -f $ac_dir/$ac_word; then
1251 ac_cv_prog_glibcpp_CXX="$ac_prog"
1252 break
1253 fi
1254 done
1255 IFS="$ac_save_ifs"
1256 fi
1257 fi
1258 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1259 if test -n "$glibcpp_CXX"; then
1260 echo "$ac_t""$glibcpp_CXX" 1>&6
1261 else
1262 echo "$ac_t""no" 1>&6
1263 fi
1264
1265 test -n "$glibcpp_CXX" && break
1266 done
1267 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1268
1269
1270 CXX=$glibcpp_CXX
1271 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1272
1273 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether we are using GNU C++" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1277 else
1278 cat > conftest.C <<EOF
1279 #ifdef __GNUC__
1280 yes;
1281 #endif
1282 EOF
1283 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1284 ac_cv_prog_gxx=yes
1285 else
1286 ac_cv_prog_gxx=no
1287 fi
1288 fi
1289
1290 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1291
1292 if test $ac_cv_prog_gxx = yes; then
1293 GXX=yes
1294 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1295 ac_save_CXXFLAGS="$CXXFLAGS"
1296 CXXFLAGS=
1297 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether ${CXX-g++} accepts -g" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301 else
1302 echo 'void f(){}' > conftest.cc
1303 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1304 ac_cv_prog_cxx_g=yes
1305 else
1306 ac_cv_prog_cxx_g=no
1307 fi
1308 rm -f conftest*
1309
1310 fi
1311
1312 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1313 if test "$ac_test_CXXFLAGS" = set; then
1314 CXXFLAGS="$ac_save_CXXFLAGS"
1315 elif test $ac_cv_prog_cxx_g = yes; then
1316 CXXFLAGS="-g -O2"
1317 else
1318 CXXFLAGS="-O2"
1319 fi
1320 else
1321 GXX=
1322 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1323 fi
1324
1325
1326 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1327 set dummy ${ac_tool_prefix}as; ac_word=$2
1328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_word" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1332 else
1333 if test -n "$AS"; then
1334 ac_cv_prog_AS="$AS" # Let the user override the test.
1335 else
1336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1337 ac_dummy="$PATH"
1338 for ac_dir in $ac_dummy; do
1339 test -z "$ac_dir" && ac_dir=.
1340 if test -f $ac_dir/$ac_word; then
1341 ac_cv_prog_AS="${ac_tool_prefix}as"
1342 break
1343 fi
1344 done
1345 IFS="$ac_save_ifs"
1346 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1347 fi
1348 fi
1349 AS="$ac_cv_prog_AS"
1350 if test -n "$AS"; then
1351 echo "$ac_t""$AS" 1>&6
1352 else
1353 echo "$ac_t""no" 1>&6
1354 fi
1355
1356
1357
1358 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1359 set dummy ${ac_tool_prefix}ar; ac_word=$2
1360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1361 echo "configure:1362: checking for $ac_word" >&5
1362 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1363 echo $ac_n "(cached) $ac_c" 1>&6
1364 else
1365 if test -n "$AR"; then
1366 ac_cv_prog_AR="$AR" # Let the user override the test.
1367 else
1368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1369 ac_dummy="$PATH"
1370 for ac_dir in $ac_dummy; do
1371 test -z "$ac_dir" && ac_dir=.
1372 if test -f $ac_dir/$ac_word; then
1373 ac_cv_prog_AR="${ac_tool_prefix}ar"
1374 break
1375 fi
1376 done
1377 IFS="$ac_save_ifs"
1378 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1379 fi
1380 fi
1381 AR="$ac_cv_prog_AR"
1382 if test -n "$AR"; then
1383 echo "$ac_t""$AR" 1>&6
1384 else
1385 echo "$ac_t""no" 1>&6
1386 fi
1387
1388
1389
1390 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1393 echo "configure:1394: checking for $ac_word" >&5
1394 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1396 else
1397 if test -n "$RANLIB"; then
1398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1399 else
1400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1401 ac_dummy="$PATH"
1402 for ac_dir in $ac_dummy; do
1403 test -z "$ac_dir" && ac_dir=.
1404 if test -f $ac_dir/$ac_word; then
1405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1406 break
1407 fi
1408 done
1409 IFS="$ac_save_ifs"
1410 fi
1411 fi
1412 RANLIB="$ac_cv_prog_RANLIB"
1413 if test -n "$RANLIB"; then
1414 echo "$ac_t""$RANLIB" 1>&6
1415 else
1416 echo "$ac_t""no" 1>&6
1417 fi
1418
1419
1420 if test -z "$ac_cv_prog_RANLIB"; then
1421 if test -n "$ac_tool_prefix"; then
1422 # Extract the first word of "ranlib", so it can be a program name with args.
1423 set dummy ranlib; ac_word=$2
1424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1425 echo "configure:1426: checking for $ac_word" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1428 else
1429 if test -n "$RANLIB"; then
1430 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1431 else
1432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1433 ac_dummy="$PATH"
1434 for ac_dir in $ac_dummy; do
1435 test -z "$ac_dir" && ac_dir=.
1436 if test -f $ac_dir/$ac_word; then
1437 ac_cv_prog_RANLIB="ranlib"
1438 break
1439 fi
1440 done
1441 IFS="$ac_save_ifs"
1442 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1443 fi
1444 fi
1445 RANLIB="$ac_cv_prog_RANLIB"
1446 if test -n "$RANLIB"; then
1447 echo "$ac_t""$RANLIB" 1>&6
1448 else
1449 echo "$ac_t""no" 1>&6
1450 fi
1451
1452 else
1453 RANLIB="ranlib-not-found-in-path-error"
1454 fi
1455 fi
1456
1457 # Find a good install program. We prefer a C program (faster),
1458 # so one script is as good as another. But avoid the broken or
1459 # incompatible versions:
1460 # SysV /etc/install, /usr/sbin/install
1461 # SunOS /usr/etc/install
1462 # IRIX /sbin/install
1463 # AIX /bin/install
1464 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1465 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1466 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1467 # ./install, which can be erroneously created by make from ./install.sh.
1468 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1469 echo "configure:1470: checking for a BSD compatible install" >&5
1470 if test -z "$INSTALL"; then
1471 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1473 else
1474 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1475 for ac_dir in $PATH; do
1476 # Account for people who put trailing slashes in PATH elements.
1477 case "$ac_dir/" in
1478 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1479 *)
1480 # OSF1 and SCO ODT 3.0 have their own names for install.
1481 # Don't use installbsd from OSF since it installs stuff as root
1482 # by default.
1483 for ac_prog in ginstall scoinst install; do
1484 if test -f $ac_dir/$ac_prog; then
1485 if test $ac_prog = install &&
1486 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1487 # AIX install. It has an incompatible calling convention.
1488 :
1489 else
1490 ac_cv_path_install="$ac_dir/$ac_prog -c"
1491 break 2
1492 fi
1493 fi
1494 done
1495 ;;
1496 esac
1497 done
1498 IFS="$ac_save_IFS"
1499
1500 fi
1501 if test "${ac_cv_path_install+set}" = set; then
1502 INSTALL="$ac_cv_path_install"
1503 else
1504 # As a last resort, use the slow shell script. We don't cache a
1505 # path for INSTALL within a source directory, because that will
1506 # break other packages using the cache if that directory is
1507 # removed, or if the path is relative.
1508 INSTALL="$ac_install_sh"
1509 fi
1510 fi
1511 echo "$ac_t""$INSTALL" 1>&6
1512
1513 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1514 # It thinks the first close brace ends the variable substitution.
1515 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1516
1517 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1518
1519 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1520
1521
1522 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1523 echo "configure:1524: checking whether to enable maintainer-specific portions of Makefiles" >&5
1524 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1525 if test "${enable_maintainer_mode+set}" = set; then
1526 enableval="$enable_maintainer_mode"
1527 USE_MAINTAINER_MODE=$enableval
1528 else
1529 USE_MAINTAINER_MODE=no
1530 fi
1531
1532 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1533
1534
1535 if test $USE_MAINTAINER_MODE = yes; then
1536 MAINTAINER_MODE_TRUE=
1537 MAINTAINER_MODE_FALSE='#'
1538 else
1539 MAINTAINER_MODE_TRUE='#'
1540 MAINTAINER_MODE_FALSE=
1541 fi
1542 MAINT=$MAINTAINER_MODE_TRUE
1543
1544
1545
1546 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1547 # at least currently, we never actually build a program, so we never
1548 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1549 # fails, because we are probably configuring with a cross compiler
1550 # which cant create executables. So we include AC_EXEEXT to keep
1551 # automake happy, but we dont execute it, since we dont care about
1552 # the result.
1553 if false; then
1554 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1555 # to nothing, so nothing would remain between `then' and `fi' if it
1556 # were not for the `:' below.
1557 :
1558
1559
1560 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1561 echo "configure:1562: checking for executable suffix" >&5
1562 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1566 ac_cv_exeext=.exe
1567 else
1568 rm -f conftest*
1569 echo 'int main () { return 0; }' > conftest.$ac_ext
1570 ac_cv_exeext=
1571 if { (eval echo configure:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1572 for file in conftest.*; do
1573 case $file in
1574 *.c | *.o | *.obj) ;;
1575 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1576 esac
1577 done
1578 else
1579 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1580 fi
1581 rm -f conftest*
1582 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1583 fi
1584 fi
1585
1586 EXEEXT=""
1587 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1588 echo "$ac_t""${ac_cv_exeext}" 1>&6
1589 ac_exeext=$EXEEXT
1590
1591 fi
1592
1593 . ${glibcpp_basedir}/configure.host
1594
1595 case ${glibcpp_basedir} in
1596 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1597 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1598 esac
1599
1600 # This does for the target what configure.host does for the host. In
1601 # addition to possibly modifying the same flags, it also sets up symlinks.
1602
1603 . ${glibcpp_basedir}/configure.target
1604 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1605 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1606
1607
1608
1609
1610 # Check whether --enable-shared or --disable-shared was given.
1611 if test "${enable_shared+set}" = set; then
1612 enableval="$enable_shared"
1613 p=${PACKAGE-default}
1614 case $enableval in
1615 yes) enable_shared=yes ;;
1616 no) enable_shared=no ;;
1617 *)
1618 enable_shared=no
1619 # Look at the argument we got. We use all the common list separators.
1620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1621 for pkg in $enableval; do
1622 if test "X$pkg" = "X$p"; then
1623 enable_shared=yes
1624 fi
1625 done
1626 IFS="$ac_save_ifs"
1627 ;;
1628 esac
1629 else
1630 enable_shared=yes
1631 fi
1632
1633 # Check whether --enable-static or --disable-static was given.
1634 if test "${enable_static+set}" = set; then
1635 enableval="$enable_static"
1636 p=${PACKAGE-default}
1637 case $enableval in
1638 yes) enable_static=yes ;;
1639 no) enable_static=no ;;
1640 *)
1641 enable_static=no
1642 # Look at the argument we got. We use all the common list separators.
1643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1644 for pkg in $enableval; do
1645 if test "X$pkg" = "X$p"; then
1646 enable_static=yes
1647 fi
1648 done
1649 IFS="$ac_save_ifs"
1650 ;;
1651 esac
1652 else
1653 enable_static=yes
1654 fi
1655
1656 # Check whether --enable-fast-install or --disable-fast-install was given.
1657 if test "${enable_fast_install+set}" = set; then
1658 enableval="$enable_fast_install"
1659 p=${PACKAGE-default}
1660 case $enableval in
1661 yes) enable_fast_install=yes ;;
1662 no) enable_fast_install=no ;;
1663 *)
1664 enable_fast_install=no
1665 # Look at the argument we got. We use all the common list separators.
1666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1667 for pkg in $enableval; do
1668 if test "X$pkg" = "X$p"; then
1669 enable_fast_install=yes
1670 fi
1671 done
1672 IFS="$ac_save_ifs"
1673 ;;
1674 esac
1675 else
1676 enable_fast_install=yes
1677 fi
1678
1679 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1680 if test "${with_gnu_ld+set}" = set; then
1681 withval="$with_gnu_ld"
1682 test "$withval" = no || with_gnu_ld=yes
1683 else
1684 with_gnu_ld=no
1685 fi
1686
1687 ac_prog=ld
1688 if test "$GCC" = yes; then
1689 # Check if gcc -print-prog-name=ld gives a path.
1690 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1691 echo "configure:1692: checking for ld used by GCC" >&5
1692 case $host in
1693 *-*-mingw*)
1694 # gcc leaves a trailing carriage return which upsets mingw
1695 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1696 *)
1697 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1698 esac
1699 case $ac_prog in
1700 # Accept absolute paths.
1701 [\\/]* | [A-Za-z]:[\\/]*)
1702 re_direlt='/[^/][^/]*/\.\./'
1703 # Canonicalize the path of ld
1704 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1705 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1706 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1707 done
1708 test -z "$LD" && LD="$ac_prog"
1709 ;;
1710 "")
1711 # If it fails, then pretend we aren't using GCC.
1712 ac_prog=ld
1713 ;;
1714 *)
1715 # If it is relative, then search for the first ld in PATH.
1716 with_gnu_ld=unknown
1717 ;;
1718 esac
1719 elif test "$with_gnu_ld" = yes; then
1720 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1721 echo "configure:1722: checking for GNU ld" >&5
1722 else
1723 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1724 echo "configure:1725: checking for non-GNU ld" >&5
1725 fi
1726 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1728 else
1729 if test -z "$LD"; then
1730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1731 for ac_dir in $PATH; do
1732 test -z "$ac_dir" && ac_dir=.
1733 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1734 lt_cv_path_LD="$ac_dir/$ac_prog"
1735 # Check to see if the program is GNU ld. I'd rather use --version,
1736 # but apparently some GNU ld's only accept -v.
1737 # Break only if it was the GNU/non-GNU ld that we prefer.
1738 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1739 test "$with_gnu_ld" != no && break
1740 else
1741 test "$with_gnu_ld" != yes && break
1742 fi
1743 fi
1744 done
1745 IFS="$ac_save_ifs"
1746 else
1747 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1748 fi
1749 fi
1750
1751 LD="$lt_cv_path_LD"
1752 if test -n "$LD"; then
1753 echo "$ac_t""$LD" 1>&6
1754 else
1755 echo "$ac_t""no" 1>&6
1756 fi
1757 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1758 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1759 echo "configure:1760: checking if the linker ($LD) is GNU ld" >&5
1760 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1762 else
1763 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1764 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1765 lt_cv_prog_gnu_ld=yes
1766 else
1767 lt_cv_prog_gnu_ld=no
1768 fi
1769 fi
1770
1771 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1772 with_gnu_ld=$lt_cv_prog_gnu_ld
1773
1774
1775 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1776 echo "configure:1777: checking for $LD option to reload object files" >&5
1777 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1779 else
1780 lt_cv_ld_reload_flag='-r'
1781 fi
1782
1783 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1784 reload_flag=$lt_cv_ld_reload_flag
1785 test -n "$reload_flag" && reload_flag=" $reload_flag"
1786
1787 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1788 echo "configure:1789: checking for BSD-compatible nm" >&5
1789 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1791 else
1792 if test -n "$NM"; then
1793 # Let the user override the test.
1794 lt_cv_path_NM="$NM"
1795 else
1796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1797 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1798 test -z "$ac_dir" && ac_dir=.
1799 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1800 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1801 # Check to see if the nm accepts a BSD-compat flag.
1802 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1803 # nm: unknown option "B" ignored
1804 # Tru64's nm complains that /dev/null is an invalid object file
1805 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1806 lt_cv_path_NM="$tmp_nm -B"
1807 break
1808 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1809 lt_cv_path_NM="$tmp_nm -p"
1810 break
1811 else
1812 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1813 continue # so that we can try to find one that supports BSD flags
1814 fi
1815 fi
1816 done
1817 IFS="$ac_save_ifs"
1818 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1819 fi
1820 fi
1821
1822 NM="$lt_cv_path_NM"
1823 echo "$ac_t""$NM" 1>&6
1824
1825 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1826 echo "configure:1827: checking how to recognise dependant libraries" >&5
1827 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1829 else
1830 lt_cv_file_magic_cmd='$MAGIC_CMD'
1831 lt_cv_file_magic_test_file=
1832 lt_cv_deplibs_check_method='unknown'
1833 # Need to set the preceding variable on all platforms that support
1834 # interlibrary dependencies.
1835 # 'none' -- dependencies not supported.
1836 # `unknown' -- same as none, but documents that we really don't know.
1837 # 'pass_all' -- all dependencies passed with no checks.
1838 # 'test_compile' -- check by making test program.
1839 # 'file_magic [regex]' -- check by looking for files in library path
1840 # which responds to the $file_magic_cmd with a given egrep regex.
1841 # If you have `file' or equivalent on your system and you're not sure
1842 # whether `pass_all' will *always* work, you probably want this one.
1843
1844 case $host_os in
1845 aix*)
1846 lt_cv_deplibs_check_method=pass_all
1847 ;;
1848
1849 beos*)
1850 lt_cv_deplibs_check_method=pass_all
1851 ;;
1852
1853 bsdi4*)
1854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1855 lt_cv_file_magic_cmd='/usr/bin/file -L'
1856 lt_cv_file_magic_test_file=/shlib/libc.so
1857 ;;
1858
1859 cygwin* | mingw* |pw32*)
1860 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1861 lt_cv_file_magic_cmd='$OBJDUMP -f'
1862 ;;
1863
1864 darwin* | rhapsody*)
1865 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1866 lt_cv_file_magic_cmd='/usr/bin/file -L'
1867 case "$host_os" in
1868 rhapsody* | darwin1.012)
1869 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1870 ;;
1871 *) # Darwin 1.3 on
1872 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1873 ;;
1874 esac
1875 ;;
1876
1877 freebsd* )
1878 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1879 case $host_cpu in
1880 i*86 )
1881 # Not sure whether the presence of OpenBSD here was a mistake.
1882 # Let's accept both of them until this is cleared up.
1883 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1884 lt_cv_file_magic_cmd=/usr/bin/file
1885 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1886 ;;
1887 esac
1888 else
1889 lt_cv_deplibs_check_method=pass_all
1890 fi
1891 ;;
1892
1893 gnu*)
1894 lt_cv_deplibs_check_method=pass_all
1895 ;;
1896
1897 hpux10.20*|hpux11*)
1898 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1899 lt_cv_file_magic_cmd=/usr/bin/file
1900 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1901 ;;
1902
1903 irix5* | irix6*)
1904 case $host_os in
1905 irix5*)
1906 # this will be overridden with pass_all, but let us keep it just in case
1907 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1908 ;;
1909 *)
1910 case $LD in
1911 *-32|*"-32 ") libmagic=32-bit;;
1912 *-n32|*"-n32 ") libmagic=N32;;
1913 *-64|*"-64 ") libmagic=64-bit;;
1914 *) libmagic=never-match;;
1915 esac
1916 # this will be overridden with pass_all, but let us keep it just in case
1917 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1918 ;;
1919 esac
1920 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1921 lt_cv_deplibs_check_method=pass_all
1922 ;;
1923
1924 # This must be Linux ELF.
1925 linux-gnu*)
1926 case $host_cpu in
1927 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1928 lt_cv_deplibs_check_method=pass_all ;;
1929 *)
1930 # glibc up to 2.1.1 does not perform some relocations on ARM
1931 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1932 esac
1933 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1934 ;;
1935
1936 netbsd*)
1937 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1938 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1939 else
1940 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1941 fi
1942 ;;
1943
1944 newsos6)
1945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1946 lt_cv_file_magic_cmd=/usr/bin/file
1947 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1948 ;;
1949
1950 osf3* | osf4* | osf5*)
1951 # this will be overridden with pass_all, but let us keep it just in case
1952 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1953 lt_cv_file_magic_test_file=/shlib/libc.so
1954 lt_cv_deplibs_check_method=pass_all
1955 ;;
1956
1957 sco3.2v5*)
1958 lt_cv_deplibs_check_method=pass_all
1959 ;;
1960
1961 solaris*)
1962 lt_cv_deplibs_check_method=pass_all
1963 lt_cv_file_magic_test_file=/lib/libc.so
1964 ;;
1965
1966 sysv5uw[78]* | sysv4*uw2*)
1967 lt_cv_deplibs_check_method=pass_all
1968 ;;
1969
1970 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1971 case $host_vendor in
1972 ncr)
1973 lt_cv_deplibs_check_method=pass_all
1974 ;;
1975 motorola)
1976 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]'
1977 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1978 ;;
1979 esac
1980 ;;
1981 esac
1982
1983 fi
1984
1985 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1986 file_magic_cmd=$lt_cv_file_magic_cmd
1987 deplibs_check_method=$lt_cv_deplibs_check_method
1988
1989 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1990 echo "configure:1991: checking for object suffix" >&5
1991 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1993 else
1994 rm -f conftest*
1995 echo 'int i = 1;' > conftest.$ac_ext
1996 if { (eval echo configure:1997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1997 for ac_file in conftest.*; do
1998 case $ac_file in
1999 *.c) ;;
2000 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2001 esac
2002 done
2003 else
2004 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2005 fi
2006 rm -f conftest*
2007 fi
2008
2009 echo "$ac_t""$ac_cv_objext" 1>&6
2010 OBJEXT=$ac_cv_objext
2011 ac_objext=$ac_cv_objext
2012
2013 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2014
2015 # Only perform the check for file, if the check method requires it
2016 case $deplibs_check_method in
2017 file_magic*)
2018 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2019 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2020 echo "configure:2021: checking for ${ac_tool_prefix}file" >&5
2021 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2023 else
2024 case $MAGIC_CMD in
2025 /*)
2026 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2027 ;;
2028 ?:/*)
2029 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2030 ;;
2031 *)
2032 ac_save_MAGIC_CMD="$MAGIC_CMD"
2033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2034 ac_dummy="/usr/bin:$PATH"
2035 for ac_dir in $ac_dummy; do
2036 test -z "$ac_dir" && ac_dir=.
2037 if test -f $ac_dir/${ac_tool_prefix}file; then
2038 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2039 if test -n "$file_magic_test_file"; then
2040 case $deplibs_check_method in
2041 "file_magic "*)
2042 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2043 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2044 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2045 egrep "$file_magic_regex" > /dev/null; then
2046 :
2047 else
2048 cat <<EOF 1>&2
2049
2050 *** Warning: the command libtool uses to detect shared libraries,
2051 *** $file_magic_cmd, produces output that libtool cannot recognize.
2052 *** The result is that libtool may fail to recognize shared libraries
2053 *** as such. This will affect the creation of libtool libraries that
2054 *** depend on shared libraries, but programs linked with such libtool
2055 *** libraries will work regardless of this problem. Nevertheless, you
2056 *** may want to report the problem to your system manager and/or to
2057 *** bug-libtool@gnu.org
2058
2059 EOF
2060 fi ;;
2061 esac
2062 fi
2063 break
2064 fi
2065 done
2066 IFS="$ac_save_ifs"
2067 MAGIC_CMD="$ac_save_MAGIC_CMD"
2068 ;;
2069 esac
2070 fi
2071
2072 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2073 if test -n "$MAGIC_CMD"; then
2074 echo "$ac_t""$MAGIC_CMD" 1>&6
2075 else
2076 echo "$ac_t""no" 1>&6
2077 fi
2078
2079 if test -z "$lt_cv_path_MAGIC_CMD"; then
2080 if test -n "$ac_tool_prefix"; then
2081 echo $ac_n "checking for file""... $ac_c" 1>&6
2082 echo "configure:2083: checking for file" >&5
2083 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2085 else
2086 case $MAGIC_CMD in
2087 /*)
2088 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2089 ;;
2090 ?:/*)
2091 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2092 ;;
2093 *)
2094 ac_save_MAGIC_CMD="$MAGIC_CMD"
2095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2096 ac_dummy="/usr/bin:$PATH"
2097 for ac_dir in $ac_dummy; do
2098 test -z "$ac_dir" && ac_dir=.
2099 if test -f $ac_dir/file; then
2100 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2101 if test -n "$file_magic_test_file"; then
2102 case $deplibs_check_method in
2103 "file_magic "*)
2104 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2106 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2107 egrep "$file_magic_regex" > /dev/null; then
2108 :
2109 else
2110 cat <<EOF 1>&2
2111
2112 *** Warning: the command libtool uses to detect shared libraries,
2113 *** $file_magic_cmd, produces output that libtool cannot recognize.
2114 *** The result is that libtool may fail to recognize shared libraries
2115 *** as such. This will affect the creation of libtool libraries that
2116 *** depend on shared libraries, but programs linked with such libtool
2117 *** libraries will work regardless of this problem. Nevertheless, you
2118 *** may want to report the problem to your system manager and/or to
2119 *** bug-libtool@gnu.org
2120
2121 EOF
2122 fi ;;
2123 esac
2124 fi
2125 break
2126 fi
2127 done
2128 IFS="$ac_save_ifs"
2129 MAGIC_CMD="$ac_save_MAGIC_CMD"
2130 ;;
2131 esac
2132 fi
2133
2134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2135 if test -n "$MAGIC_CMD"; then
2136 echo "$ac_t""$MAGIC_CMD" 1>&6
2137 else
2138 echo "$ac_t""no" 1>&6
2139 fi
2140
2141 else
2142 MAGIC_CMD=:
2143 fi
2144 fi
2145
2146 fi
2147 ;;
2148 esac
2149
2150 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2151 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2153 echo "configure:2154: checking for $ac_word" >&5
2154 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2156 else
2157 if test -n "$RANLIB"; then
2158 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2159 else
2160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2161 ac_dummy="$PATH"
2162 for ac_dir in $ac_dummy; do
2163 test -z "$ac_dir" && ac_dir=.
2164 if test -f $ac_dir/$ac_word; then
2165 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2166 break
2167 fi
2168 done
2169 IFS="$ac_save_ifs"
2170 fi
2171 fi
2172 RANLIB="$ac_cv_prog_RANLIB"
2173 if test -n "$RANLIB"; then
2174 echo "$ac_t""$RANLIB" 1>&6
2175 else
2176 echo "$ac_t""no" 1>&6
2177 fi
2178
2179
2180 if test -z "$ac_cv_prog_RANLIB"; then
2181 if test -n "$ac_tool_prefix"; then
2182 # Extract the first word of "ranlib", so it can be a program name with args.
2183 set dummy ranlib; ac_word=$2
2184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2185 echo "configure:2186: checking for $ac_word" >&5
2186 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2188 else
2189 if test -n "$RANLIB"; then
2190 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2191 else
2192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2193 ac_dummy="$PATH"
2194 for ac_dir in $ac_dummy; do
2195 test -z "$ac_dir" && ac_dir=.
2196 if test -f $ac_dir/$ac_word; then
2197 ac_cv_prog_RANLIB="ranlib"
2198 break
2199 fi
2200 done
2201 IFS="$ac_save_ifs"
2202 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2203 fi
2204 fi
2205 RANLIB="$ac_cv_prog_RANLIB"
2206 if test -n "$RANLIB"; then
2207 echo "$ac_t""$RANLIB" 1>&6
2208 else
2209 echo "$ac_t""no" 1>&6
2210 fi
2211
2212 else
2213 RANLIB=":"
2214 fi
2215 fi
2216
2217 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2218 set dummy ${ac_tool_prefix}strip; ac_word=$2
2219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2220 echo "configure:2221: checking for $ac_word" >&5
2221 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2223 else
2224 if test -n "$STRIP"; then
2225 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2226 else
2227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2228 ac_dummy="$PATH"
2229 for ac_dir in $ac_dummy; do
2230 test -z "$ac_dir" && ac_dir=.
2231 if test -f $ac_dir/$ac_word; then
2232 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2233 break
2234 fi
2235 done
2236 IFS="$ac_save_ifs"
2237 fi
2238 fi
2239 STRIP="$ac_cv_prog_STRIP"
2240 if test -n "$STRIP"; then
2241 echo "$ac_t""$STRIP" 1>&6
2242 else
2243 echo "$ac_t""no" 1>&6
2244 fi
2245
2246
2247 if test -z "$ac_cv_prog_STRIP"; then
2248 if test -n "$ac_tool_prefix"; then
2249 # Extract the first word of "strip", so it can be a program name with args.
2250 set dummy strip; ac_word=$2
2251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2252 echo "configure:2253: checking for $ac_word" >&5
2253 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2255 else
2256 if test -n "$STRIP"; then
2257 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2258 else
2259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2260 ac_dummy="$PATH"
2261 for ac_dir in $ac_dummy; do
2262 test -z "$ac_dir" && ac_dir=.
2263 if test -f $ac_dir/$ac_word; then
2264 ac_cv_prog_STRIP="strip"
2265 break
2266 fi
2267 done
2268 IFS="$ac_save_ifs"
2269 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2270 fi
2271 fi
2272 STRIP="$ac_cv_prog_STRIP"
2273 if test -n "$STRIP"; then
2274 echo "$ac_t""$STRIP" 1>&6
2275 else
2276 echo "$ac_t""no" 1>&6
2277 fi
2278
2279 else
2280 STRIP=":"
2281 fi
2282 fi
2283
2284
2285 # Check for any special flags to pass to ltconfig.
2286 libtool_flags="--cache-file=$cache_file"
2287 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2288 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2289 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2290 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2291 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2292 libtool_flags="$libtool_flags --enable-dlopen"
2293
2294 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2295 if test "${enable_libtool_lock+set}" = set; then
2296 enableval="$enable_libtool_lock"
2297 :
2298 fi
2299
2300 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2301 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2302
2303 # Check whether --with-pic or --without-pic was given.
2304 if test "${with_pic+set}" = set; then
2305 withval="$with_pic"
2306 pic_mode="$withval"
2307 else
2308 pic_mode=default
2309 fi
2310
2311 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2312 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2313
2314 # Some flags need to be propagated to the compiler or linker for good
2315 # libtool support.
2316 case $host in
2317 *-*-irix6*)
2318 # Find out which ABI we are using.
2319 echo '#line 2320 "configure"' > conftest.$ac_ext
2320 if { (eval echo configure:2321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2321 case `/usr/bin/file conftest.$ac_objext` in
2322 *32-bit*)
2323 LD="${LD-ld} -32"
2324 ;;
2325 *N32*)
2326 LD="${LD-ld} -n32"
2327 ;;
2328 *64-bit*)
2329 LD="${LD-ld} -64"
2330 ;;
2331 esac
2332 fi
2333 rm -rf conftest*
2334 ;;
2335
2336 *-*-sco3.2v5*)
2337 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2338 SAVE_CFLAGS="$CFLAGS"
2339 CFLAGS="$CFLAGS -belf"
2340 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2341 echo "configure:2342: checking whether the C compiler needs -belf" >&5
2342 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2344 else
2345
2346 ac_ext=c
2347 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2350 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2351 cross_compiling=$ac_cv_prog_cc_cross
2352
2353 cat > conftest.$ac_ext <<EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2356
2357 int main() {
2358
2359 ; return 0; }
2360 EOF
2361 if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2362 rm -rf conftest*
2363 lt_cv_cc_needs_belf=yes
2364 else
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2367 rm -rf conftest*
2368 lt_cv_cc_needs_belf=no
2369 fi
2370 rm -f conftest*
2371 ac_ext=c
2372 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2373 ac_cpp='$CPP $CPPFLAGS'
2374 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2375 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2376 cross_compiling=$ac_cv_prog_cc_cross
2377
2378 fi
2379
2380 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2381 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2382 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2383 CFLAGS="$SAVE_CFLAGS"
2384 fi
2385 ;;
2386
2387
2388 esac
2389
2390 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2391 echo "configure:2392: checking how to run the C++ preprocessor" >&5
2392 if test -z "$CXXCPP"; then
2393 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2395 else
2396 ac_ext=C
2397 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2398 ac_cpp='$CXXCPP $CPPFLAGS'
2399 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2400 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2401 cross_compiling=$ac_cv_prog_cxx_cross
2402 CXXCPP="${CXX-g++} -E"
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 #include <stdlib.h>
2407 EOF
2408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2409 { (eval echo configure:2410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2411 if test -z "$ac_err"; then
2412 :
2413 else
2414 echo "$ac_err" >&5
2415 echo "configure: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2417 rm -rf conftest*
2418 CXXCPP=/lib/cpp
2419 fi
2420 rm -f conftest*
2421 ac_cv_prog_CXXCPP="$CXXCPP"
2422 ac_ext=c
2423 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2424 ac_cpp='$CPP $CPPFLAGS'
2425 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2426 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2427 cross_compiling=$ac_cv_prog_cc_cross
2428 fi
2429 fi
2430 CXXCPP="$ac_cv_prog_CXXCPP"
2431 echo "$ac_t""$CXXCPP" 1>&6
2432
2433
2434 # Save cache, so that ltconfig can load it
2435 cat > confcache <<\EOF
2436 # This file is a shell script that caches the results of configure
2437 # tests run on this system so they can be shared between configure
2438 # scripts and configure runs. It is not useful on other systems.
2439 # If it contains results you don't want to keep, you may remove or edit it.
2440 #
2441 # By default, configure uses ./config.cache as the cache file,
2442 # creating it if it does not exist already. You can give configure
2443 # the --cache-file=FILE option to use a different cache file; that is
2444 # what configure does when it calls configure scripts in
2445 # subdirectories, so they share the cache.
2446 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2447 # config.status only pays attention to the cache file if you give it the
2448 # --recheck option to rerun configure.
2449 #
2450 EOF
2451 # The following way of writing the cache mishandles newlines in values,
2452 # but we know of no workaround that is simple, portable, and efficient.
2453 # So, don't put newlines in cache variables' values.
2454 # Ultrix sh set writes to stderr and can't be redirected directly,
2455 # and sets the high bit in the cache file unless we assign to the vars.
2456 (set) 2>&1 |
2457 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2458 *ac_space=\ *)
2459 # `set' does not quote correctly, so add quotes (double-quote substitution
2460 # turns \\\\ into \\, and sed turns \\ into \).
2461 sed -n \
2462 -e "s/'/'\\\\''/g" \
2463 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2464 ;;
2465 *)
2466 # `set' quotes correctly as required by POSIX, so do not add quotes.
2467 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2468 ;;
2469 esac >> confcache
2470 if cmp -s $cache_file confcache; then
2471 :
2472 else
2473 if test -w $cache_file; then
2474 echo "updating cache $cache_file"
2475 cat confcache > $cache_file
2476 else
2477 echo "not updating unwritable cache $cache_file"
2478 fi
2479 fi
2480 rm -f confcache
2481
2482
2483 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2484 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2485 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2486 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2487 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2488 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2489 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2490 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2491 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2492 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2493
2494 # Reload cache, that may have been modified by ltconfig
2495 if test -r "$cache_file"; then
2496 echo "loading cache $cache_file"
2497 . $cache_file
2498 else
2499 echo "creating cache $cache_file"
2500 > $cache_file
2501 fi
2502
2503
2504 # This can be used to rebuild libtool when needed
2505 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2506
2507 # Always use our own libtool.
2508 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2509
2510 # Redirect the config.log output again, so that the ltconfig log is not
2511 # clobbered by the next message.
2512 exec 5>>./config.log
2513
2514
2515
2516 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2517 lt_save_CC="$CC"
2518 lt_save_CFLAGS="$CFLAGS"
2519 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2520 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2521 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2522 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2523 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2524 deplibs_check_method="$deplibs_check_method" \
2525 file_magic_cmd="$file_magic_cmd" \
2526 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2527 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2528 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2529 CC="$lt_save_CC"
2530 CFLAGS="$lt_save_CFLAGS"
2531
2532 # Redirect the config.log output again, so that the ltconfig log is not
2533 # clobbered by the next message.
2534 exec 5>>./config.log
2535
2536
2537
2538
2539
2540
2541
2542
2543 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2544 echo "configure:2545: checking for GNU make" >&5
2545 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2547 else
2548 _cv_gnu_make_command='' ;
2549 for a in "${MAKE-make}" make gmake gnumake ; do
2550 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2551 then
2552 _cv_gnu_make_command=$a ;
2553 break;
2554 fi
2555 done ;
2556
2557 fi
2558
2559 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2560 if test "x$_cv_gnu_make_command" != "x" ; then
2561 ifGNUmake='' ;
2562 else
2563 ifGNUmake='#' ;
2564 fi
2565
2566
2567
2568
2569
2570
2571
2572 # Check for c++ or library specific bits that don't require linking.
2573
2574 if test ! -f stamp-sanity-compiler; then
2575 echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6
2576 echo "configure:2577: checking for g++ that will successfully compile libstdc++-v3" >&5
2577
2578 ac_ext=C
2579 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2580 ac_cpp='$CXXCPP $CPPFLAGS'
2581 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2582 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2583 cross_compiling=$ac_cv_prog_cxx_cross
2584
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588
2589 int main() {
2590
2591 #if __GNUC__ < 3
2592 not_ok
2593 #endif
2594
2595 ; return 0; }
2596 EOF
2597 if { (eval echo configure:2598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2598 rm -rf conftest*
2599 gpp_satisfactory=yes
2600 else
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2603 rm -rf conftest*
2604 { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; }
2605 fi
2606 rm -f conftest*
2607 ac_ext=c
2608 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2609 ac_cpp='$CPP $CPPFLAGS'
2610 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2611 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2612 cross_compiling=$ac_cv_prog_cc_cross
2613
2614 echo "$ac_t""$gpp_satisfactory" 1>&6
2615 touch stamp-sanity-compiler
2616 fi
2617
2618
2619 # Enable all the crazy c++ stuff. C_MBCHAR must come early.
2620 # Check whether --enable-debug or --disable-debug was given.
2621 if test "${enable_debug+set}" = set; then
2622 enableval="$enable_debug"
2623 case "${enableval}" in
2624 yes) enable_debug=yes ;;
2625 no) enable_debug=no ;;
2626 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2627 esac
2628 else
2629 enable_debug=no
2630 fi
2631
2632 case "${enable_debug}" in
2633 yes)
2634 DEBUG_FLAGS='-O0 -ggdb3'
2635 ;;
2636 no)
2637 DEBUG_FLAGS='-g'
2638 ;;
2639 esac
2640
2641
2642 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2643 echo "configure:2644: checking how to run the C preprocessor" >&5
2644 # On Suns, sometimes $CPP names a directory.
2645 if test -n "$CPP" && test -d "$CPP"; then
2646 CPP=
2647 fi
2648 if test -z "$CPP"; then
2649 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2651 else
2652 # This must be in double quotes, not single quotes, because CPP may get
2653 # substituted into the Makefile and "${CC-cc}" will confuse make.
2654 CPP="${CC-cc} -E"
2655 # On the NeXT, cc -E runs the code through the compiler's parser,
2656 # not just through cpp.
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2660 #include <assert.h>
2661 Syntax Error
2662 EOF
2663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2664 { (eval echo configure:2665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2666 if test -z "$ac_err"; then
2667 :
2668 else
2669 echo "$ac_err" >&5
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2672 rm -rf conftest*
2673 CPP="${CC-cc} -E -traditional-cpp"
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2677 #include <assert.h>
2678 Syntax Error
2679 EOF
2680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2681 { (eval echo configure:2682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2683 if test -z "$ac_err"; then
2684 :
2685 else
2686 echo "$ac_err" >&5
2687 echo "configure: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2689 rm -rf conftest*
2690 CPP="${CC-cc} -nologo -E"
2691 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 #include <assert.h>
2695 Syntax Error
2696 EOF
2697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2698 { (eval echo configure:2699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2700 if test -z "$ac_err"; then
2701 :
2702 else
2703 echo "$ac_err" >&5
2704 echo "configure: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2706 rm -rf conftest*
2707 CPP=/lib/cpp
2708 fi
2709 rm -f conftest*
2710 fi
2711 rm -f conftest*
2712 fi
2713 rm -f conftest*
2714 ac_cv_prog_CPP="$CPP"
2715 fi
2716 CPP="$ac_cv_prog_CPP"
2717 else
2718 ac_cv_prog_CPP="$CPP"
2719 fi
2720 echo "$ac_t""$CPP" 1>&6
2721
2722
2723 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2724 echo "configure:2725: checking for cstdio to use" >&5
2725 # Check whether --enable-cstdio or --disable-cstdio was given.
2726 if test "${enable_cstdio+set}" = set; then
2727 enableval="$enable_cstdio"
2728 if test x$enable_cstdio = xno; then
2729 enable_cstdio=stdio
2730 fi
2731 else
2732 enable_cstdio=stdio
2733 fi
2734
2735
2736 enable_cstdio_flag=$enable_cstdio
2737
2738 case x${enable_cstdio_flag} in
2739 xlibio)
2740 CSTDIO_H=config/c_io_libio.h
2741 BASIC_FILE_H=config/basic_file_libio.h
2742 BASIC_FILE_CC=config/basic_file_libio.cc
2743 echo "$ac_t""libio" 1>&6
2744
2745 # see if we are on a system with libio native (ie, linux)
2746 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2747 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2748 echo "configure:2749: checking for libio.h" >&5
2749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2751 else
2752 cat > conftest.$ac_ext <<EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2755 #include <libio.h>
2756 EOF
2757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2758 { (eval echo configure:2759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2760 if test -z "$ac_err"; then
2761 rm -rf conftest*
2762 eval "ac_cv_header_$ac_safe=yes"
2763 else
2764 echo "$ac_err" >&5
2765 echo "configure: failed program was:" >&5
2766 cat conftest.$ac_ext >&5
2767 rm -rf conftest*
2768 eval "ac_cv_header_$ac_safe=no"
2769 fi
2770 rm -f conftest*
2771 fi
2772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2773 echo "$ac_t""yes" 1>&6
2774 has_libio=yes
2775 else
2776 echo "$ac_t""no" 1>&6
2777 has_libio=no
2778 fi
2779
2780
2781 # Need to check and see what version of glibc is being used. If
2782 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2783 # compile most of libio for linux systems.
2784 if test x$has_libio = x"yes"; then
2785 case "$target" in
2786 *-*-linux*)
2787 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2788 echo "configure:2789: checking for glibc version >= 2.2" >&5
2789 cat > conftest.$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2792
2793 #include <features.h>
2794 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2795 ok
2796 #endif
2797
2798 EOF
2799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2800 egrep "ok" >/dev/null 2>&1; then
2801 rm -rf conftest*
2802 glibc_satisfactory=yes
2803 else
2804 rm -rf conftest*
2805 glibc_satisfactory=no
2806 fi
2807 rm -f conftest*
2808
2809 echo "$ac_t""$glibc_satisfactory" 1>&6
2810 ;;
2811 esac
2812
2813 # XXX at the moment, admit defeat and force the recompilation
2814 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2815 glibc_satisfactory=no
2816
2817 if test x$glibc_satisfactory = x"yes"; then
2818 need_libio=no
2819 need_wlibio=no
2820 else
2821 need_libio=yes
2822 # bkoz XXX need to add checks to enable this
2823 # pme XXX here's a first pass at such a check
2824 if test x$enable_c_mbchar != xno; then
2825 need_wlibio=yes
2826 else
2827 need_wlibio=no
2828 fi
2829 fi
2830
2831 else
2832 # Using libio, but <libio.h> doesn't exist on the target system. . .
2833 need_libio=yes
2834 # bkoz XXX need to add checks to enable this
2835 # pme XXX here's a first pass at such a check
2836 if test x$enable_c_mbchar != xno; then
2837 need_wlibio=yes
2838 else
2839 need_wlibio=no
2840 fi
2841 fi
2842 ;;
2843 xstdio | x | xno | xnone | xyes)
2844 # default
2845 CSTDIO_H=config/c_io_stdio.h
2846 BASIC_FILE_H=config/basic_file_stdio.h
2847 BASIC_FILE_CC=config/basic_file_stdio.cc
2848 echo "$ac_t""stdio" 1>&6
2849
2850 # We're not using stdio.
2851 need_libio=no
2852 need_wlibio=no
2853 ;;
2854 *)
2855 echo "$enable_cstdio is an unknown io package" 1>&2
2856 exit 1
2857 ;;
2858 esac
2859
2860
2861
2862
2863 # 2000-08-04 bkoz hack
2864 CCODECVT_C=config/c_io_libio_codecvt.c
2865
2866 # 2000-08-04 bkoz hack
2867
2868
2869
2870 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2871 GLIBCPP_BUILD_LIBIO_TRUE=
2872 GLIBCPP_BUILD_LIBIO_FALSE='#'
2873 else
2874 GLIBCPP_BUILD_LIBIO_TRUE='#'
2875 GLIBCPP_BUILD_LIBIO_FALSE=
2876 fi
2877
2878
2879 if test "$need_libio" = yes; then
2880 GLIBCPP_NEED_LIBIO_TRUE=
2881 GLIBCPP_NEED_LIBIO_FALSE='#'
2882 else
2883 GLIBCPP_NEED_LIBIO_TRUE='#'
2884 GLIBCPP_NEED_LIBIO_FALSE=
2885 fi
2886
2887
2888 if test "$need_wlibio" = yes; then
2889 GLIBCPP_NEED_WLIBIO_TRUE=
2890 GLIBCPP_NEED_WLIBIO_FALSE='#'
2891 else
2892 GLIBCPP_NEED_WLIBIO_TRUE='#'
2893 GLIBCPP_NEED_WLIBIO_FALSE=
2894 fi
2895 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2896 libio_la=../libio/libio.la
2897 else
2898 libio_la=
2899 fi
2900
2901
2902
2903 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2904 echo "configure:2905: checking for clocale to use" >&5
2905 # Check whether --enable-clocale or --disable-clocale was given.
2906 if test "${enable_clocale+set}" = set; then
2907 enableval="$enable_clocale"
2908 if test x$enable_clocale = xno; then
2909 enable_clocale=generic
2910 fi
2911 else
2912 enable_clocale=generic
2913 fi
2914
2915
2916 enable_clocale_flag=$enable_clocale
2917
2918 case x${enable_clocale_flag} in
2919 xgnu)
2920 CLOCALE_H=config/c_locale_gnu.h
2921 CLOCALE_CC=config/c_locale_gnu.cc
2922 echo "$ac_t""gnu" 1>&6
2923 ;;
2924 xgeneric)
2925 CLOCALE_H=config/c_locale_generic.h
2926 CLOCALE_CC=config/c_locale_generic.cc
2927 echo "$ac_t""generic" 1>&6
2928 ;;
2929 *)
2930 echo "$enable_clocale is an unknown locale package" 1>&2
2931 exit 1
2932 ;;
2933 esac
2934
2935
2936
2937
2938 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2939 if test "${enable_c_mbchar+set}" = set; then
2940 enableval="$enable_c_mbchar"
2941 case "$enableval" in
2942 yes) enable_c_mbchar=yes ;;
2943 no) enable_c_mbchar=no ;;
2944 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
2945 esac
2946 else
2947 enable_c_mbchar=yes
2948 fi
2949
2950
2951 # Check whether --enable-c99 or --disable-c99 was given.
2952 if test "${enable_c99+set}" = set; then
2953 enableval="$enable_c99"
2954 case "$enableval" in
2955 yes) enable_c99=yes ;;
2956 no) enable_c99=no ;;
2957 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
2958 esac
2959 else
2960 enable_c99=yes
2961 fi
2962
2963
2964 ac_ext=C
2965 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2966 ac_cpp='$CXXCPP $CPPFLAGS'
2967 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2968 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2969 cross_compiling=$ac_cv_prog_cxx_cross
2970
2971
2972 # Check for the existence of <math.h> functions used if C99 is enabled.
2973 ac_c99_math=yes;
2974 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
2975 echo "configure:2976: checking for ISO C99 support in <math.h>" >&5
2976 cat > conftest.$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2979 #include <math.h>
2980 int main() {
2981 fpclassify(0.0);
2982 ; return 0; }
2983 EOF
2984 if { (eval echo configure:2985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2985 :
2986 else
2987 echo "configure: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2989 rm -rf conftest*
2990 ac_c99_math=no
2991 fi
2992 rm -f conftest*
2993 cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
2996 #include <math.h>
2997 int main() {
2998 isfinite(0.0);
2999 ; return 0; }
3000 EOF
3001 if { (eval echo configure:3002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3002 :
3003 else
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3006 rm -rf conftest*
3007 ac_c99_math=no
3008 fi
3009 rm -f conftest*
3010 cat > conftest.$ac_ext <<EOF
3011 #line 3012 "configure"
3012 #include "confdefs.h"
3013 #include <math.h>
3014 int main() {
3015 isinf(0.0);
3016 ; return 0; }
3017 EOF
3018 if { (eval echo configure:3019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3019 :
3020 else
3021 echo "configure: failed program was:" >&5
3022 cat conftest.$ac_ext >&5
3023 rm -rf conftest*
3024 ac_c99_math=no
3025 fi
3026 rm -f conftest*
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3030 #include <math.h>
3031 int main() {
3032 isnan(0.0);
3033 ; return 0; }
3034 EOF
3035 if { (eval echo configure:3036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3036 :
3037 else
3038 echo "configure: failed program was:" >&5
3039 cat conftest.$ac_ext >&5
3040 rm -rf conftest*
3041 ac_c99_math=no
3042 fi
3043 rm -f conftest*
3044 cat > conftest.$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3047 #include <math.h>
3048 int main() {
3049 isnormal(0.0);
3050 ; return 0; }
3051 EOF
3052 if { (eval echo configure:3053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3053 :
3054 else
3055 echo "configure: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3057 rm -rf conftest*
3058 ac_c99_math=no
3059 fi
3060 rm -f conftest*
3061 cat > conftest.$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3064 #include <math.h>
3065 int main() {
3066 signbit(0.0);
3067 ; return 0; }
3068 EOF
3069 if { (eval echo configure:3070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3070 :
3071 else
3072 echo "configure: failed program was:" >&5
3073 cat conftest.$ac_ext >&5
3074 rm -rf conftest*
3075 ac_c99_math=no
3076 fi
3077 rm -f conftest*
3078 cat > conftest.$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3081 #include <math.h>
3082 int main() {
3083 isgreater(0.0,0.0);
3084 ; return 0; }
3085 EOF
3086 if { (eval echo configure:3087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3087 :
3088 else
3089 echo "configure: failed program was:" >&5
3090 cat conftest.$ac_ext >&5
3091 rm -rf conftest*
3092 ac_c99_math=no
3093 fi
3094 rm -f conftest*
3095 cat > conftest.$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3098 #include <math.h>
3099 int main() {
3100 isgreaterequal(0.0,0.0);
3101 ; return 0; }
3102 EOF
3103 if { (eval echo configure:3104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3104 :
3105 else
3106 echo "configure: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3108 rm -rf conftest*
3109 ac_c99_math=no
3110 fi
3111 rm -f conftest*
3112 cat > conftest.$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3115 #include <math.h>
3116 int main() {
3117 isless(0.0,0.0);
3118 ; return 0; }
3119 EOF
3120 if { (eval echo configure:3121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3121 :
3122 else
3123 echo "configure: failed program was:" >&5
3124 cat conftest.$ac_ext >&5
3125 rm -rf conftest*
3126 ac_c99_math=no
3127 fi
3128 rm -f conftest*
3129 cat > conftest.$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3132 #include <math.h>
3133 int main() {
3134 islessequal(0.0,0.0);
3135 ; return 0; }
3136 EOF
3137 if { (eval echo configure:3138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3138 :
3139 else
3140 echo "configure: failed program was:" >&5
3141 cat conftest.$ac_ext >&5
3142 rm -rf conftest*
3143 ac_c99_math=no
3144 fi
3145 rm -f conftest*
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 #include <math.h>
3150 int main() {
3151 islessgreater(0.0,0.0);
3152 ; return 0; }
3153 EOF
3154 if { (eval echo configure:3155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3155 :
3156 else
3157 echo "configure: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3159 rm -rf conftest*
3160 ac_c99_math=no
3161 fi
3162 rm -f conftest*
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3166 #include <math.h>
3167 int main() {
3168 isunordered(0.0,0.0);
3169 ; return 0; }
3170 EOF
3171 if { (eval echo configure:3172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3172 :
3173 else
3174 echo "configure: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3176 rm -rf conftest*
3177 ac_c99_math=no
3178 fi
3179 rm -f conftest*
3180 echo "$ac_t""$ac_c99_math" 1>&6
3181
3182 # Check for the existence in <stdio.h> of vscanf, et. al.
3183 ac_c99_stdio=yes;
3184 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3185 echo "configure:3186: checking for ISO C99 support in <stdio.h>" >&5
3186 cat > conftest.$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 #include <stdio.h>
3190 int main() {
3191 snprintf("12", 0, "%i");
3192 ; return 0; }
3193 EOF
3194 if { (eval echo configure:3195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3195 :
3196 else
3197 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3199 rm -rf conftest*
3200 ac_c99_stdio=no
3201 fi
3202 rm -f conftest*
3203 cat > conftest.$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3206 #include <stdio.h>
3207 #include <stdarg.h>
3208 void foo(char* fmt, ...)
3209 {va_list args; va_start(args, fmt);
3210 vfscanf(stderr, "%i", args);}
3211 int main() {
3212
3213 ; return 0; }
3214 EOF
3215 if { (eval echo configure:3216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3216 :
3217 else
3218 echo "configure: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3220 rm -rf conftest*
3221 ac_c99_stdio=no
3222 fi
3223 rm -f conftest*
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 #include <stdio.h>
3228 #include <stdarg.h>
3229 void foo(char* fmt, ...)
3230 {va_list args; va_start(args, fmt);
3231 vscanf("%i", args);}
3232 int main() {
3233
3234 ; return 0; }
3235 EOF
3236 if { (eval echo configure:3237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3237 :
3238 else
3239 echo "configure: failed program was:" >&5
3240 cat conftest.$ac_ext >&5
3241 rm -rf conftest*
3242 ac_c99_stdio=no
3243 fi
3244 rm -f conftest*
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 #include <stdio.h>
3249 #include <stdarg.h>
3250 void foo(char* fmt, ...)
3251 {va_list args; va_start(args, fmt);
3252 vsnprintf(fmt, 0, "%i", args);}
3253 int main() {
3254
3255 ; return 0; }
3256 EOF
3257 if { (eval echo configure:3258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3258 :
3259 else
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3262 rm -rf conftest*
3263 ac_c99_stdio=no
3264 fi
3265 rm -f conftest*
3266 cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 #include <stdio.h>
3270 #include <stdarg.h>
3271 void foo(char* fmt, ...)
3272 {va_list args; va_start(args, fmt);
3273 vsscanf(fmt, "%i", args);}
3274 int main() {
3275
3276 ; return 0; }
3277 EOF
3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3279 :
3280 else
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3283 rm -rf conftest*
3284 ac_c99_stdio=no
3285 fi
3286 rm -f conftest*
3287 echo "$ac_t""$ac_c99_stdio" 1>&6
3288
3289 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3290 ac_c99_stdlib=yes;
3291 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3292 echo "configure:3293: checking for lldiv_t declaration" >&5
3293 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3295 else
3296
3297 cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 #include <stdlib.h>
3301 int main() {
3302 lldiv_t mydivt;
3303 ; return 0; }
3304 EOF
3305 if { (eval echo configure:3306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3306 rm -rf conftest*
3307 ac_c99_lldiv_t=yes
3308 else
3309 echo "configure: failed program was:" >&5
3310 cat conftest.$ac_ext >&5
3311 rm -rf conftest*
3312 ac_c99_lldiv_t=no
3313 fi
3314 rm -f conftest*
3315
3316 fi
3317
3318 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3319
3320 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3321 echo "configure:3322: checking for ISO C99 support in <stdlib.h>" >&5
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 #include <stdlib.h>
3326 int main() {
3327 char* tmp; strtof("gnu", &tmp);
3328 ; return 0; }
3329 EOF
3330 if { (eval echo configure:3331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3331 :
3332 else
3333 echo "configure: failed program was:" >&5
3334 cat conftest.$ac_ext >&5
3335 rm -rf conftest*
3336 ac_c99_stdlib=no
3337 fi
3338 rm -f conftest*
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 #include <stdlib.h>
3343 int main() {
3344 char* tmp; strtold("gnu", &tmp);
3345 ; return 0; }
3346 EOF
3347 if { (eval echo configure:3348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3348 :
3349 else
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3352 rm -rf conftest*
3353 ac_c99_stdlib=no
3354 fi
3355 rm -f conftest*
3356 cat > conftest.$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3359 #include <stdlib.h>
3360 int main() {
3361 char* tmp; strtoll("gnu", &tmp, 10);
3362 ; return 0; }
3363 EOF
3364 if { (eval echo configure:3365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3365 :
3366 else
3367 echo "configure: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3369 rm -rf conftest*
3370 ac_c99_stdlib=no
3371 fi
3372 rm -f conftest*
3373 cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 #include <stdlib.h>
3377 int main() {
3378 char* tmp; strtoull("gnu", &tmp, 10);
3379 ; return 0; }
3380 EOF
3381 if { (eval echo configure:3382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3382 :
3383 else
3384 echo "configure: failed program was:" >&5
3385 cat conftest.$ac_ext >&5
3386 rm -rf conftest*
3387 ac_c99_stdlib=no
3388 fi
3389 rm -f conftest*
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 #include <stdlib.h>
3394 int main() {
3395 llabs(10);
3396 ; return 0; }
3397 EOF
3398 if { (eval echo configure:3399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3399 :
3400 else
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3403 rm -rf conftest*
3404 ac_c99_stdlib=no
3405 fi
3406 rm -f conftest*
3407 cat > conftest.$ac_ext <<EOF
3408 #line 3409 "configure"
3409 #include "confdefs.h"
3410 #include <stdlib.h>
3411 int main() {
3412 lldiv(10,1);
3413 ; return 0; }
3414 EOF
3415 if { (eval echo configure:3416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3416 :
3417 else
3418 echo "configure: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3420 rm -rf conftest*
3421 ac_c99_stdlib=no
3422 fi
3423 rm -f conftest*
3424 cat > conftest.$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3427 #include <stdlib.h>
3428 int main() {
3429 atoll("10");
3430 ; return 0; }
3431 EOF
3432 if { (eval echo configure:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3433 :
3434 else
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3437 rm -rf conftest*
3438 ac_c99_stdlib=no
3439 fi
3440 rm -f conftest*
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 #include <stdlib.h>
3445 int main() {
3446 _Exit(0);
3447 ; return 0; }
3448 EOF
3449 if { (eval echo configure:3450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3450 :
3451 else
3452 echo "configure: failed program was:" >&5
3453 cat conftest.$ac_ext >&5
3454 rm -rf conftest*
3455 ac_c99_stdlib=no
3456 fi
3457 rm -f conftest*
3458 if test x"$ac_c99_lldiv_t" = x"no"; then
3459 ac_c99_stdlib=no;
3460 fi;
3461 echo "$ac_t""$ac_c99_stdlib" 1>&6
3462
3463 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3464 # XXX the wchar.h checks should be rolled into the general C99 bits.
3465 ac_c99_wchar=yes;
3466 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3467 echo "configure:3468: checking for additional ISO C99 support in <wchar.h>" >&5
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3471 #include <wchar.h>
3472 int main() {
3473 wcstold(L"10.0", NULL);
3474 ; return 0; }
3475 EOF
3476 if { (eval echo configure:3477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477 :
3478 else
3479 echo "configure: failed program was:" >&5
3480 cat conftest.$ac_ext >&5
3481 rm -rf conftest*
3482 ac_c99_wchar=no
3483 fi
3484 rm -f conftest*
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 #include <wchar.h>
3489 int main() {
3490 wcstoll(L"10", NULL, 10);
3491 ; return 0; }
3492 EOF
3493 if { (eval echo configure:3494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3494 :
3495 else
3496 echo "configure: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3498 rm -rf conftest*
3499 ac_c99_wchar=no
3500 fi
3501 rm -f conftest*
3502 cat > conftest.$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 #include <wchar.h>
3506 int main() {
3507 wcstoull(L"10", NULL, 10);
3508 ; return 0; }
3509 EOF
3510 if { (eval echo configure:3511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3511 :
3512 else
3513 echo "configure: failed program was:" >&5
3514 cat conftest.$ac_ext >&5
3515 rm -rf conftest*
3516 ac_c99_wchar=no
3517 fi
3518 rm -f conftest*
3519 echo "$ac_t""$ac_c99_wchar" 1>&6
3520
3521 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3522 echo "configure:3523: checking for enabled ISO C99 support" >&5
3523 if test x"$ac_c99_math" = x"no" ||
3524 test x"$ac_c99_stdio" = x"no" ||
3525 test x"$ac_c99_stdlib" = x"no" ||
3526 test x"$ac_c99_wchar" = x"no"; then
3527 enable_c99=no;
3528 fi;
3529 echo "$ac_t""$enable_c99" 1>&6
3530
3531 # Option parsed, now set things appropriately
3532 if test x"$enable_c99" = x"yes"; then
3533 cat >> confdefs.h <<\EOF
3534 #define _GLIBCPP_USE_C99 1
3535 EOF
3536
3537 fi
3538
3539 ac_ext=c
3540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3544 cross_compiling=$ac_cv_prog_cc_cross
3545
3546
3547
3548 # Check whether --enable-long-long or --disable-long-long was given.
3549 if test "${enable_long_long+set}" = set; then
3550 enableval="$enable_long_long"
3551 case "$enableval" in
3552 yes) enable_long_long=yes ;;
3553 no) enable_long_long=no ;;
3554 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3555 esac
3556 else
3557 enable_long_long=yes
3558 fi
3559
3560 # iostreams require strtoll, strtoull to compile. If the
3561 # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
3562 # go ahead and allow long long to be used.
3563 if test x"$enable_c99" = x"no"; then
3564 enable_long_long=no;
3565 fi
3566
3567 # Option parsed, now set things appropriately
3568 echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6
3569 echo "configure:3570: checking for enabled long long support" >&5
3570 if test x"$enable_long_long" = xyes; then
3571 cat >> confdefs.h <<\EOF
3572 #define _GLIBCPP_USE_LONG_LONG 1
3573 EOF
3574
3575 fi
3576 echo "$ac_t""$enable_long_long" 1>&6
3577
3578 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3579 echo "configure:3580: checking for c header strategy to use" >&5
3580 # Check whether --enable-cheaders or --disable-cheaders was given.
3581 if test "${enable_cheaders+set}" = set; then
3582 enableval="$enable_cheaders"
3583
3584 case "$enableval" in
3585 c)
3586 enable_cheaders=c
3587 ;;
3588 c_std)
3589 enable_cheaders=c_std
3590 ;;
3591 c_shadow)
3592 enable_cheaders=c_shadow
3593 ;;
3594 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3595 ;;
3596 esac
3597 else
3598 enable_cheaders=c_std
3599 fi
3600
3601 echo "$ac_t""$enable_cheaders" 1>&6
3602
3603 case "$enable_cheaders" in
3604 c_shadow)
3605 CSHADOW_FLAGS="-fno-builtin"
3606 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3607 cat >> confdefs.h <<\EOF
3608 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3609 EOF
3610
3611 ;;
3612 c_std)
3613 CSHADOW_FLAGS=""
3614 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3615 ;;
3616 c)
3617 CSHADOW_FLAGS=""
3618 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3619 ;;
3620 esac
3621
3622
3623
3624
3625
3626 if test "$enable_cheaders" = c_shadow; then
3627 GLIBCPP_USE_CSHADOW_TRUE=
3628 GLIBCPP_USE_CSHADOW_FALSE='#'
3629 else
3630 GLIBCPP_USE_CSHADOW_TRUE='#'
3631 GLIBCPP_USE_CSHADOW_FALSE=
3632 fi
3633
3634
3635 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3636 echo "configure:3637: checking for thread model used by GCC" >&5
3637 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3638 echo "$ac_t""$target_thread_file" 1>&6
3639
3640 if test $target_thread_file != single; then
3641 cat >> confdefs.h <<\EOF
3642 #define HAVE_GTHR_DEFAULT 1
3643 EOF
3644
3645 cat >> confdefs.h <<\EOF
3646 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3647 EOF
3648
3649 fi
3650
3651 glibcpp_thread_h=gthr-$target_thread_file.h
3652
3653
3654 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3655 if test "${enable_cxx_flags+set}" = set; then
3656 enableval="$enable_cxx_flags"
3657 case "x$enableval" in
3658 xyes)
3659 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3660 xno|x)
3661 enable_cxx_flags='' ;;
3662 *)
3663 enable_cxx_flags="$enableval" ;;
3664 esac
3665 else
3666 enable_cxx_flags='none'
3667 fi
3668
3669
3670 if test "$enable_cxx_flags" = "none"; then
3671 enable_cxx_flags='';
3672 fi
3673
3674 if test -n "$enable_cxx_flags"; then
3675 for f in $enable_cxx_flags; do
3676 case "$f" in
3677 -fhonor-std) ;;
3678 -*) ;;
3679 *) # and we're trying to pass /what/ exactly?
3680 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3681 esac
3682 done
3683 fi
3684 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3685
3686
3687
3688 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3689 echo "configure:3690: checking for exception model to use" >&5
3690
3691 ac_ext=C
3692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3693 ac_cpp='$CXXCPP $CPPFLAGS'
3694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3696 cross_compiling=$ac_cv_prog_cxx_cross
3697
3698 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3699 if test "${enable_sjlj_exceptions+set}" = set; then
3700 enableval="$enable_sjlj_exceptions"
3701 :
3702 else
3703 cat > conftest.$ac_ext << EOF
3704 #line 3705 "configure"
3705 struct S { ~S(); };
3706 void bar();
3707 void foo()
3708 {
3709 S s;
3710 bar();
3711 }
3712 EOF
3713 old_CXXFLAGS="$CXXFLAGS"
3714 CXXFLAGS=-S
3715 if { (eval echo configure:3716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3716 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3717 enable_sjlj_exceptions=yes
3718 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3719 enable_sjlj_exceptions=no
3720 fi
3721 fi
3722 CXXFLAGS="$old_CXXFLAGS"
3723 rm -f conftest*
3724 fi
3725
3726 if test x$enable_sjlj_exceptions = xyes; then
3727 cat >> confdefs.h <<\EOF
3728 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3729 EOF
3730
3731 ac_exception_model_name=sjlj
3732 elif test x$enable_sjlj_exceptions = xno; then
3733 ac_exception_model_name="call frame"
3734 else
3735 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3736 fi
3737 ac_ext=c
3738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3742 cross_compiling=$ac_cv_prog_cc_cross
3743
3744 echo "$ac_t""$ac_exception_model_name" 1>&6
3745
3746
3747 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3748
3749 # We are being configured with some form of cross compiler.
3750 # mknumeric_limits may not work correctly, either because the
3751 # compiler may not run on this machine, may not be able to link
3752 # executables, or may produce executables we can't run on this
3753 # machine.
3754 GLIBCPP_IS_CROSS_COMPILING=1
3755
3756 # If Canadian cross, then don't pick up tools from the build
3757 # directory.
3758 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3759 CANADIAN=yes
3760 else
3761 CANADIAN=no
3762 fi
3763
3764 case "$target_alias" in
3765 *-linux*)
3766 # Construct linux crosses by hand, eliminating bits that need ld...
3767 # Check for available headers.
3768 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3769 machine/endian.h machine/param.h sys/machine.h fp.h locale.h \
3770 float.h inttypes.h
3771 do
3772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3774 echo "configure:3775: checking for $ac_hdr" >&5
3775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3777 else
3778 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3781 #include <$ac_hdr>
3782 EOF
3783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3784 { (eval echo configure:3785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3786 if test -z "$ac_err"; then
3787 rm -rf conftest*
3788 eval "ac_cv_header_$ac_safe=yes"
3789 else
3790 echo "$ac_err" >&5
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3793 rm -rf conftest*
3794 eval "ac_cv_header_$ac_safe=no"
3795 fi
3796 rm -f conftest*
3797 fi
3798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3799 echo "$ac_t""yes" 1>&6
3800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3801 cat >> confdefs.h <<EOF
3802 #define $ac_tr_hdr 1
3803 EOF
3804
3805 else
3806 echo "$ac_t""no" 1>&6
3807 fi
3808 done
3809
3810
3811 # GLIBCPP_CHECK_COMPILER_FEATURES
3812 SECTION_FLAGS='-ffunction-sections -fdata-sections'
3813
3814
3815 # If we're not using GNU ld, then there's no point in even trying these
3816 # tests. Check for that first. We should have already tested for gld
3817 # by now (in libtool), but require it now just to be safe...
3818 SECTION_LDFLAGS=''
3819 OPT_LDFLAGS=''
3820
3821
3822 # Set --gc-sections.
3823 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
3824 # GNU ld it is! Joy and bunny rabbits!
3825
3826 # All these tests are for C++; save the language and the compiler flags.
3827 # Need to do this so that g++ won't try to link in libstdc++
3828 ac_test_CFLAGS="${CFLAGS+set}"
3829 ac_save_CFLAGS="$CFLAGS"
3830 CFLAGS='-x c++ -Wl,--gc-sections'
3831
3832 # Check for -Wl,--gc-sections
3833 # XXX This test is broken at the moment, as symbols required for
3834 # linking are now in libsupc++ (not built yet.....). In addition,
3835 # this test has cored on solaris in the past. In addition,
3836 # --gc-sections doesn't really work at the moment (keeps on discarding
3837 # used sections, first .eh_frame and now some of the glibc sections for
3838 # iconv). Bzzzzt. Thanks for playing, maybe next time.
3839 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
3840 echo "configure:3841: checking for ld that supports -Wl,--gc-sections" >&5
3841 if test "$cross_compiling" = yes; then
3842 ac_sectionLDflags=yes
3843 else
3844 cat > conftest.$ac_ext <<EOF
3845 #line 3846 "configure"
3846 #include "confdefs.h"
3847
3848 int main(void)
3849 {
3850 try { throw 1; }
3851 catch (...) { };
3852 return 0;
3853 }
3854
3855 EOF
3856 if { (eval echo configure:3857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3857 then
3858 ac_sectionLDflags=yes
3859 else
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3862 rm -fr conftest*
3863 ac_sectionLFflags=no
3864 fi
3865 rm -fr conftest*
3866 fi
3867
3868 if test "$ac_test_CFLAGS" = set; then
3869 CFLAGS="$ac_save_CFLAGS"
3870 else
3871 # this is the suspicious part
3872 CFLAGS=''
3873 fi
3874 if test "$ac_sectionLDflags" = "yes"; then
3875 SECTION_LDFLAGS='-Wl,--gc-sections'
3876 fi
3877 echo "$ac_t""$ac_sectionLDflags" 1>&6
3878 fi
3879
3880 # Set linker optimization flags.
3881 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
3882 test x"$enable_debug" = x"no"; then
3883 OPT_LDFLAGS='-Wl,-O1'
3884 fi
3885
3886
3887
3888
3889 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3890 # GLIBCPP_CHECK_MATH_SUPPORT
3891 cat >> confdefs.h <<\EOF
3892 #define HAVE_ACOSF 1
3893 EOF
3894
3895 cat >> confdefs.h <<\EOF
3896 #define HAVE_ASINF 1
3897 EOF
3898
3899 cat >> confdefs.h <<\EOF
3900 #define HAVE_ATAN2F 1
3901 EOF
3902
3903 cat >> confdefs.h <<\EOF
3904 #define HAVE_ATANF 1
3905 EOF
3906
3907 cat >> confdefs.h <<\EOF
3908 #define HAVE_CEILF 1
3909 EOF
3910
3911 cat >> confdefs.h <<\EOF
3912 #define HAVE_COPYSIGN 1
3913 EOF
3914
3915 cat >> confdefs.h <<\EOF
3916 #define HAVE_COPYSIGNF 1
3917 EOF
3918
3919 cat >> confdefs.h <<\EOF
3920 #define HAVE_COSF 1
3921 EOF
3922
3923 cat >> confdefs.h <<\EOF
3924 #define HAVE_COSHF 1
3925 EOF
3926
3927 cat >> confdefs.h <<\EOF
3928 #define HAVE_EXPF 1
3929 EOF
3930
3931 cat >> confdefs.h <<\EOF
3932 #define HAVE_FABSF 1
3933 EOF
3934
3935 cat >> confdefs.h <<\EOF
3936 #define HAVE_FINITE 1
3937 EOF
3938
3939 cat >> confdefs.h <<\EOF
3940 #define HAVE_FINITEF 1
3941 EOF
3942
3943 cat >> confdefs.h <<\EOF
3944 #define HAVE_FLOORF 1
3945 EOF
3946
3947 cat >> confdefs.h <<\EOF
3948 #define HAVE_FMODF 1
3949 EOF
3950
3951 cat >> confdefs.h <<\EOF
3952 #define HAVE_FREXPF 1
3953 EOF
3954
3955 cat >> confdefs.h <<\EOF
3956 #define HAVE_ISINF 1
3957 EOF
3958
3959 cat >> confdefs.h <<\EOF
3960 #define HAVE_ISINFF 1
3961 EOF
3962
3963 cat >> confdefs.h <<\EOF
3964 #define HAVE_ISNAN 1
3965 EOF
3966
3967 cat >> confdefs.h <<\EOF
3968 #define HAVE_ISNANF 1
3969 EOF
3970
3971 cat >> confdefs.h <<\EOF
3972 #define HAVE_LDEXPF 1
3973 EOF
3974
3975 cat >> confdefs.h <<\EOF
3976 #define HAVE_LOG10F 1
3977 EOF
3978
3979 cat >> confdefs.h <<\EOF
3980 #define HAVE_LOGF 1
3981 EOF
3982
3983 cat >> confdefs.h <<\EOF
3984 #define HAVE_MODFF 1
3985 EOF
3986
3987 cat >> confdefs.h <<\EOF
3988 #define HAVE_POWF 1
3989 EOF
3990
3991 cat >> confdefs.h <<\EOF
3992 #define HAVE_SINCOS 1
3993 EOF
3994
3995 cat >> confdefs.h <<\EOF
3996 #define HAVE_SINCOSF 1
3997 EOF
3998
3999 cat >> confdefs.h <<\EOF
4000 #define HAVE_SINF 1
4001 EOF
4002
4003 cat >> confdefs.h <<\EOF
4004 #define HAVE_SINHF 1
4005 EOF
4006
4007 cat >> confdefs.h <<\EOF
4008 #define HAVE_SQRTF 1
4009 EOF
4010
4011 cat >> confdefs.h <<\EOF
4012 #define HAVE_TANF 1
4013 EOF
4014
4015 cat >> confdefs.h <<\EOF
4016 #define HAVE_TANHF 1
4017 EOF
4018
4019
4020 # At some point, we should differentiate between architectures
4021 # like x86, which have long double versions, and alpha/powerpc/etc.,
4022 # which don't. For the time being, punt.
4023 if test x"long_double_math_on_this_cpu" = x"yes"; then
4024 cat >> confdefs.h <<\EOF
4025 #define HAVE_ACOSL 1
4026 EOF
4027
4028 cat >> confdefs.h <<\EOF
4029 #define HAVE_ASINL 1
4030 EOF
4031
4032 cat >> confdefs.h <<\EOF
4033 #define HAVE_ATAN2L 1
4034 EOF
4035
4036 cat >> confdefs.h <<\EOF
4037 #define HAVE_ATANL 1
4038 EOF
4039
4040 cat >> confdefs.h <<\EOF
4041 #define HAVE_CEILL 1
4042 EOF
4043
4044 cat >> confdefs.h <<\EOF
4045 #define HAVE_COPYSIGNL 1
4046 EOF
4047
4048 cat >> confdefs.h <<\EOF
4049 #define HAVE_COSL 1
4050 EOF
4051
4052 cat >> confdefs.h <<\EOF
4053 #define HAVE_COSHL 1
4054 EOF
4055
4056 cat >> confdefs.h <<\EOF
4057 #define HAVE_EXPL 1
4058 EOF
4059
4060 cat >> confdefs.h <<\EOF
4061 #define HAVE_FABSL 1
4062 EOF
4063
4064 cat >> confdefs.h <<\EOF
4065 #define HAVE_FINITEL 1
4066 EOF
4067
4068 cat >> confdefs.h <<\EOF
4069 #define HAVE_FLOORL 1
4070 EOF
4071
4072 cat >> confdefs.h <<\EOF
4073 #define HAVE_FMODL 1
4074 EOF
4075
4076 cat >> confdefs.h <<\EOF
4077 #define HAVE_FREXPL 1
4078 EOF
4079
4080 cat >> confdefs.h <<\EOF
4081 #define HAVE_ISINFL 1
4082 EOF
4083
4084 cat >> confdefs.h <<\EOF
4085 #define HAVE_ISNANL 1
4086 EOF
4087
4088 cat >> confdefs.h <<\EOF
4089 #define HAVE_LDEXPL 1
4090 EOF
4091
4092 cat >> confdefs.h <<\EOF
4093 #define HAVE_LOG10L 1
4094 EOF
4095
4096 cat >> confdefs.h <<\EOF
4097 #define HAVE_LOGL 1
4098 EOF
4099
4100 cat >> confdefs.h <<\EOF
4101 #define HAVE_MODFL 1
4102 EOF
4103
4104 cat >> confdefs.h <<\EOF
4105 #define HAVE_POWL 1
4106 EOF
4107
4108 cat >> confdefs.h <<\EOF
4109 #define HAVE_SINCOSL 1
4110 EOF
4111
4112 cat >> confdefs.h <<\EOF
4113 #define HAVE_SINL 1
4114 EOF
4115
4116 cat >> confdefs.h <<\EOF
4117 #define HAVE_SINHL 1
4118 EOF
4119
4120 cat >> confdefs.h <<\EOF
4121 #define HAVE_SQRTL 1
4122 EOF
4123
4124 cat >> confdefs.h <<\EOF
4125 #define HAVE_TANL 1
4126 EOF
4127
4128 cat >> confdefs.h <<\EOF
4129 #define HAVE_TANHL 1
4130 EOF
4131
4132 fi
4133
4134 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4135 echo "configure:4136: checking for main in -lm" >&5
4136 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4139 else
4140 ac_save_LIBS="$LIBS"
4141 LIBS="-lm $LIBS"
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145
4146 int main() {
4147 main()
4148 ; return 0; }
4149 EOF
4150 if { (eval echo configure:4151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4151 rm -rf conftest*
4152 eval "ac_cv_lib_$ac_lib_var=yes"
4153 else
4154 echo "configure: failed program was:" >&5
4155 cat conftest.$ac_ext >&5
4156 rm -rf conftest*
4157 eval "ac_cv_lib_$ac_lib_var=no"
4158 fi
4159 rm -f conftest*
4160 LIBS="$ac_save_LIBS"
4161
4162 fi
4163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4164 echo "$ac_t""yes" 1>&6
4165 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4166 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4167 cat >> confdefs.h <<EOF
4168 #define $ac_tr_lib 1
4169 EOF
4170
4171 LIBS="-lm $LIBS"
4172
4173 else
4174 echo "$ac_t""no" 1>&6
4175 fi
4176
4177 for ac_func in nan copysignf
4178 do
4179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4180 echo "configure:4181: checking for $ac_func" >&5
4181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4183 else
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 /* System header to define __stub macros and hopefully few prototypes,
4188 which can conflict with char $ac_func(); below. */
4189 #include <assert.h>
4190 /* Override any gcc2 internal prototype to avoid an error. */
4191 /* We use char because int might match the return type of a gcc2
4192 builtin and then its argument prototype would still apply. */
4193 char $ac_func();
4194
4195 int main() {
4196
4197 /* The GNU C library defines this for functions which it implements
4198 to always fail with ENOSYS. Some functions are actually named
4199 something starting with __ and the normal name is an alias. */
4200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4201 choke me
4202 #else
4203 $ac_func();
4204 #endif
4205
4206 ; return 0; }
4207 EOF
4208 if { (eval echo configure:4209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4209 rm -rf conftest*
4210 eval "ac_cv_func_$ac_func=yes"
4211 else
4212 echo "configure: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4214 rm -rf conftest*
4215 eval "ac_cv_func_$ac_func=no"
4216 fi
4217 rm -f conftest*
4218 fi
4219
4220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4221 echo "$ac_t""yes" 1>&6
4222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4223 cat >> confdefs.h <<EOF
4224 #define $ac_tr_func 1
4225 EOF
4226
4227 else
4228 echo "$ac_t""no" 1>&6
4229 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4230 fi
4231 done
4232
4233
4234
4235 USE_COMPLEX_LONG_DOUBLE=no
4236 if test x$ac_cv_func_copysignl = x"yes"; then
4237 USE_COMPLEX_LONG_DOUBLE=yes
4238 for ac_func in signbitl
4239 do
4240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4241 echo "configure:4242: checking for $ac_func" >&5
4242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4244 else
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4248 /* System header to define __stub macros and hopefully few prototypes,
4249 which can conflict with char $ac_func(); below. */
4250 #include <assert.h>
4251 /* Override any gcc2 internal prototype to avoid an error. */
4252 /* We use char because int might match the return type of a gcc2
4253 builtin and then its argument prototype would still apply. */
4254 char $ac_func();
4255
4256 int main() {
4257
4258 /* The GNU C library defines this for functions which it implements
4259 to always fail with ENOSYS. Some functions are actually named
4260 something starting with __ and the normal name is an alias. */
4261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4262 choke me
4263 #else
4264 $ac_func();
4265 #endif
4266
4267 ; return 0; }
4268 EOF
4269 if { (eval echo configure:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4270 rm -rf conftest*
4271 eval "ac_cv_func_$ac_func=yes"
4272 else
4273 echo "configure: failed program was:" >&5
4274 cat conftest.$ac_ext >&5
4275 rm -rf conftest*
4276 eval "ac_cv_func_$ac_func=no"
4277 fi
4278 rm -f conftest*
4279 fi
4280
4281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4282 echo "$ac_t""yes" 1>&6
4283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4284 cat >> confdefs.h <<EOF
4285 #define $ac_tr_func 1
4286 EOF
4287
4288 else
4289 echo "$ac_t""no" 1>&6
4290 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4291 fi
4292 done
4293
4294
4295 fi
4296
4297
4298
4299
4300
4301 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4302 echo "configure:4303: checking for mbstate_t" >&5
4303 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4306 #include <wchar.h>
4307 int main() {
4308 mbstate_t teststate;
4309 ; return 0; }
4310 EOF
4311 if { (eval echo configure:4312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4312 rm -rf conftest*
4313 have_mbstate_t=yes
4314 else
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4317 rm -rf conftest*
4318 have_mbstate_t=no
4319 fi
4320 rm -f conftest*
4321 echo "$ac_t""$have_mbstate_t" 1>&6
4322 if test x"$have_mbstate_t" = xyes; then
4323 cat >> confdefs.h <<\EOF
4324 #define HAVE_MBSTATE_T 1
4325 EOF
4326
4327 fi
4328
4329 for ac_hdr in wchar.h
4330 do
4331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4333 echo "configure:4334: checking for $ac_hdr" >&5
4334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4336 else
4337 cat > conftest.$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4340 #include <$ac_hdr>
4341 EOF
4342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4343 { (eval echo configure:4344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4345 if test -z "$ac_err"; then
4346 rm -rf conftest*
4347 eval "ac_cv_header_$ac_safe=yes"
4348 else
4349 echo "$ac_err" >&5
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4352 rm -rf conftest*
4353 eval "ac_cv_header_$ac_safe=no"
4354 fi
4355 rm -f conftest*
4356 fi
4357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4358 echo "$ac_t""yes" 1>&6
4359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4360 cat >> confdefs.h <<EOF
4361 #define $ac_tr_hdr 1
4362 EOF
4363 ac_has_wchar_h=yes
4364 else
4365 echo "$ac_t""no" 1>&6
4366 ac_has_wchar_h=no
4367 fi
4368 done
4369
4370 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4371 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4372 echo "configure:4373: checking for wctype.h" >&5
4373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4375 else
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4379 #include <wctype.h>
4380 EOF
4381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4382 { (eval echo configure:4383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4384 if test -z "$ac_err"; then
4385 rm -rf conftest*
4386 eval "ac_cv_header_$ac_safe=yes"
4387 else
4388 echo "$ac_err" >&5
4389 echo "configure: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4391 rm -rf conftest*
4392 eval "ac_cv_header_$ac_safe=no"
4393 fi
4394 rm -f conftest*
4395 fi
4396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4397 echo "$ac_t""yes" 1>&6
4398 ac_has_wctype_h=yes
4399 else
4400 echo "$ac_t""no" 1>&6
4401 ac_has_wctype_h=no
4402 fi
4403
4404
4405 if test x"$ac_has_wchar_h" = xyes &&
4406 test x"$ac_has_wctype_h" = xyes &&
4407 test x"$enable_c_mbchar" != xno; then
4408
4409 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4410 echo "configure:4411: checking for WCHAR_MIN and WCHAR_MAX" >&5
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 #include <wchar.h>
4415 int main() {
4416 int i = WCHAR_MIN; int j = WCHAR_MAX;
4417 ; return 0; }
4418 EOF
4419 if { (eval echo configure:4420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4420 rm -rf conftest*
4421 has_wchar_minmax=yes
4422 else
4423 echo "configure: failed program was:" >&5
4424 cat conftest.$ac_ext >&5
4425 rm -rf conftest*
4426 has_wchar_minmax=no
4427 fi
4428 rm -f conftest*
4429 echo "$ac_t""$has_wchar_minmax" 1>&6
4430
4431 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4432 echo "configure:4433: checking for WEOF" >&5
4433 cat > conftest.$ac_ext <<EOF
4434 #line 4435 "configure"
4435 #include "confdefs.h"
4436
4437 #include <wchar.h>
4438 #include <stddef.h>
4439 int main() {
4440 wint_t i = WEOF;
4441 ; return 0; }
4442 EOF
4443 if { (eval echo configure:4444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4444 rm -rf conftest*
4445 has_weof=yes
4446 else
4447 echo "configure: failed program was:" >&5
4448 cat conftest.$ac_ext >&5
4449 rm -rf conftest*
4450 has_weof=no
4451 fi
4452 rm -f conftest*
4453 echo "$ac_t""$has_weof" 1>&6
4454
4455 ac_wfuncs=yes
4456 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4457 do
4458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4459 echo "configure:4460: checking for $ac_func" >&5
4460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4462 else
4463 cat > conftest.$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4466 /* System header to define __stub macros and hopefully few prototypes,
4467 which can conflict with char $ac_func(); below. */
4468 #include <assert.h>
4469 /* Override any gcc2 internal prototype to avoid an error. */
4470 /* We use char because int might match the return type of a gcc2
4471 builtin and then its argument prototype would still apply. */
4472 char $ac_func();
4473
4474 int main() {
4475
4476 /* The GNU C library defines this for functions which it implements
4477 to always fail with ENOSYS. Some functions are actually named
4478 something starting with __ and the normal name is an alias. */
4479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4480 choke me
4481 #else
4482 $ac_func();
4483 #endif
4484
4485 ; return 0; }
4486 EOF
4487 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4488 rm -rf conftest*
4489 eval "ac_cv_func_$ac_func=yes"
4490 else
4491 echo "configure: failed program was:" >&5
4492 cat conftest.$ac_ext >&5
4493 rm -rf conftest*
4494 eval "ac_cv_func_$ac_func=no"
4495 fi
4496 rm -f conftest*
4497 fi
4498
4499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4500 echo "$ac_t""yes" 1>&6
4501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4502 cat >> confdefs.h <<EOF
4503 #define $ac_tr_func 1
4504 EOF
4505
4506 else
4507 echo "$ac_t""no" 1>&6
4508 \
4509 ac_wfuncs=no
4510 fi
4511 done
4512
4513
4514 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4515 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4516 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4517 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4518 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4519 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4520 do
4521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4522 echo "configure:4523: checking for $ac_func" >&5
4523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4524 echo $ac_n "(cached) $ac_c" 1>&6
4525 else
4526 cat > conftest.$ac_ext <<EOF
4527 #line 4528 "configure"
4528 #include "confdefs.h"
4529 /* System header to define __stub macros and hopefully few prototypes,
4530 which can conflict with char $ac_func(); below. */
4531 #include <assert.h>
4532 /* Override any gcc2 internal prototype to avoid an error. */
4533 /* We use char because int might match the return type of a gcc2
4534 builtin and then its argument prototype would still apply. */
4535 char $ac_func();
4536
4537 int main() {
4538
4539 /* The GNU C library defines this for functions which it implements
4540 to always fail with ENOSYS. Some functions are actually named
4541 something starting with __ and the normal name is an alias. */
4542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4543 choke me
4544 #else
4545 $ac_func();
4546 #endif
4547
4548 ; return 0; }
4549 EOF
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4551 rm -rf conftest*
4552 eval "ac_cv_func_$ac_func=yes"
4553 else
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4556 rm -rf conftest*
4557 eval "ac_cv_func_$ac_func=no"
4558 fi
4559 rm -f conftest*
4560 fi
4561
4562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4563 echo "$ac_t""yes" 1>&6
4564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4565 cat >> confdefs.h <<EOF
4566 #define $ac_tr_func 1
4567 EOF
4568
4569 else
4570 echo "$ac_t""no" 1>&6
4571 \
4572 ac_wfuncs=no
4573 fi
4574 done
4575
4576
4577 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4578 echo "configure:4579: checking for ISO C99 wchar_t support" >&5
4579 if test x"$has_weof" = xyes &&
4580 test x"$has_wchar_minmax" = xyes &&
4581 test x"$ac_wfuncs" = xyes; then
4582 ac_isoC99_wchar_t=yes
4583 else
4584 ac_isoC99_wchar_t=no
4585 fi
4586 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4587
4588 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4589 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4590 echo "configure:4591: checking for iconv.h" >&5
4591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4593 else
4594 cat > conftest.$ac_ext <<EOF
4595 #line 4596 "configure"
4596 #include "confdefs.h"
4597 #include <iconv.h>
4598 EOF
4599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4600 { (eval echo configure:4601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4602 if test -z "$ac_err"; then
4603 rm -rf conftest*
4604 eval "ac_cv_header_$ac_safe=yes"
4605 else
4606 echo "$ac_err" >&5
4607 echo "configure: failed program was:" >&5
4608 cat conftest.$ac_ext >&5
4609 rm -rf conftest*
4610 eval "ac_cv_header_$ac_safe=no"
4611 fi
4612 rm -f conftest*
4613 fi
4614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4615 echo "$ac_t""yes" 1>&6
4616 ac_has_iconv_h=yes
4617 else
4618 echo "$ac_t""no" 1>&6
4619 ac_has_iconv_h=no
4620 fi
4621
4622 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4623 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4624 echo "configure:4625: checking for langinfo.h" >&5
4625 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4626 echo $ac_n "(cached) $ac_c" 1>&6
4627 else
4628 cat > conftest.$ac_ext <<EOF
4629 #line 4630 "configure"
4630 #include "confdefs.h"
4631 #include <langinfo.h>
4632 EOF
4633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4634 { (eval echo configure:4635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4636 if test -z "$ac_err"; then
4637 rm -rf conftest*
4638 eval "ac_cv_header_$ac_safe=yes"
4639 else
4640 echo "$ac_err" >&5
4641 echo "configure: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4643 rm -rf conftest*
4644 eval "ac_cv_header_$ac_safe=no"
4645 fi
4646 rm -f conftest*
4647 fi
4648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4649 echo "$ac_t""yes" 1>&6
4650 ac_has_langinfo_h=yes
4651 else
4652 echo "$ac_t""no" 1>&6
4653 ac_has_langinfo_h=no
4654 fi
4655
4656
4657 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4658 echo "configure:4659: checking for iconv in -liconv" >&5
4659 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6
4662 else
4663 ac_save_LIBS="$LIBS"
4664 LIBS="-liconv $LIBS"
4665 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4668 /* Override any gcc2 internal prototype to avoid an error. */
4669 /* We use char because int might match the return type of a gcc2
4670 builtin and then its argument prototype would still apply. */
4671 char iconv();
4672
4673 int main() {
4674 iconv()
4675 ; return 0; }
4676 EOF
4677 if { (eval echo configure:4678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4678 rm -rf conftest*
4679 eval "ac_cv_lib_$ac_lib_var=yes"
4680 else
4681 echo "configure: failed program was:" >&5
4682 cat conftest.$ac_ext >&5
4683 rm -rf conftest*
4684 eval "ac_cv_lib_$ac_lib_var=no"
4685 fi
4686 rm -f conftest*
4687 LIBS="$ac_save_LIBS"
4688
4689 fi
4690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4691 echo "$ac_t""yes" 1>&6
4692 libiconv="-liconv"
4693 else
4694 echo "$ac_t""no" 1>&6
4695 fi
4696
4697 ac_save_LIBS="$LIBS"
4698 LIBS="$LIBS $libiconv"
4699
4700 for ac_func in iconv_open iconv_close iconv nl_langinfo
4701 do
4702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4703 echo "configure:4704: checking for $ac_func" >&5
4704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4706 else
4707 cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4710 /* System header to define __stub macros and hopefully few prototypes,
4711 which can conflict with char $ac_func(); below. */
4712 #include <assert.h>
4713 /* Override any gcc2 internal prototype to avoid an error. */
4714 /* We use char because int might match the return type of a gcc2
4715 builtin and then its argument prototype would still apply. */
4716 char $ac_func();
4717
4718 int main() {
4719
4720 /* The GNU C library defines this for functions which it implements
4721 to always fail with ENOSYS. Some functions are actually named
4722 something starting with __ and the normal name is an alias. */
4723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4724 choke me
4725 #else
4726 $ac_func();
4727 #endif
4728
4729 ; return 0; }
4730 EOF
4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4732 rm -rf conftest*
4733 eval "ac_cv_func_$ac_func=yes"
4734 else
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4737 rm -rf conftest*
4738 eval "ac_cv_func_$ac_func=no"
4739 fi
4740 rm -f conftest*
4741 fi
4742
4743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4744 echo "$ac_t""yes" 1>&6
4745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4746 cat >> confdefs.h <<EOF
4747 #define $ac_tr_func 1
4748 EOF
4749 \
4750 ac_XPG2funcs=yes
4751 else
4752 echo "$ac_t""no" 1>&6
4753 ac_XPG2funcs=no
4754 fi
4755 done
4756
4757
4758 LIBS="$ac_save_LIBS"
4759
4760 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4761 echo "configure:4762: checking for XPG2 wchar_t support" >&5
4762 if test x"$ac_has_iconv_h" = xyes &&
4763 test x"$ac_has_langinfo_h" = xyes &&
4764 test x"$ac_XPG2funcs" = xyes; then
4765 ac_XPG2_wchar_t=yes
4766 else
4767 ac_XPG2_wchar_t=no
4768 fi
4769 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4770
4771 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4772 echo "configure:4773: checking for enabled wchar_t specializations" >&5
4773 if test x"$ac_isoC99_wchar_t" = xyes &&
4774 test x"$ac_XPG2_wchar_t" = xyes; then
4775 cat >> confdefs.h <<\EOF
4776 #define _GLIBCPP_USE_WCHAR_T 1
4777 EOF
4778
4779 echo "$ac_t"""yes"" 1>&6
4780 else
4781 echo "$ac_t"""no"" 1>&6
4782 fi
4783 else
4784 echo "configure: warning: wchar_t support disabled." 1>&2
4785 fi
4786
4787 os_include_dir="config/os/gnu-linux"
4788 # GLIBCPP_CHECK_STDLIB_SUPPORT
4789 cat >> confdefs.h <<\EOF
4790 #define HAVE_STRTOF 1
4791 EOF
4792
4793 cat >> confdefs.h <<\EOF
4794 #define HAVE_STRTOLD 1
4795 EOF
4796
4797 # AC_FUNC_MMAP
4798 cat >> confdefs.h <<\EOF
4799 #define HAVE_MMAP 1
4800 EOF
4801
4802 ;;
4803 *)
4804 # We assume newlib. This lets us hard-code the functions we know
4805 # we'll have.
4806 cat >> confdefs.h <<\EOF
4807 #define HAVE_FINITE 1
4808 EOF
4809
4810 cat >> confdefs.h <<\EOF
4811 #define HAVE_ISNAN 1
4812 EOF
4813
4814 cat >> confdefs.h <<\EOF
4815 #define HAVE_ISNANF 1
4816 EOF
4817
4818 cat >> confdefs.h <<\EOF
4819 #define HAVE_ISINF 1
4820 EOF
4821
4822 cat >> confdefs.h <<\EOF
4823 #define HAVE_ISINFF 1
4824 EOF
4825
4826
4827 os_include_dir="config/os/newlib"
4828
4829 # need to check for faster f versions of math functions, ie sinf?
4830 ;;
4831 esac
4832 else
4833
4834 # We are being configured natively. We can do more elaborate tests
4835 # that include AC_TRY_COMPILE now, as the linker is assumed to be
4836 # working.
4837 GLIBCPP_IS_CROSS_COMPILING=0
4838 CANADIAN=no
4839
4840 # Check for available headers.
4841 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
4842 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
4843 do
4844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4846 echo "configure:4847: checking for $ac_hdr" >&5
4847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4848 echo $ac_n "(cached) $ac_c" 1>&6
4849 else
4850 cat > conftest.$ac_ext <<EOF
4851 #line 4852 "configure"
4852 #include "confdefs.h"
4853 #include <$ac_hdr>
4854 EOF
4855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4856 { (eval echo configure:4857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4858 if test -z "$ac_err"; then
4859 rm -rf conftest*
4860 eval "ac_cv_header_$ac_safe=yes"
4861 else
4862 echo "$ac_err" >&5
4863 echo "configure: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4865 rm -rf conftest*
4866 eval "ac_cv_header_$ac_safe=no"
4867 fi
4868 rm -f conftest*
4869 fi
4870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4871 echo "$ac_t""yes" 1>&6
4872 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4873 cat >> confdefs.h <<EOF
4874 #define $ac_tr_hdr 1
4875 EOF
4876
4877 else
4878 echo "$ac_t""no" 1>&6
4879 fi
4880 done
4881
4882
4883
4884 # All these tests are for C++; save the language and the compiler flags.
4885 # The CXXFLAGS thing is suspicious, but based on similar bits previously
4886 # found in GLIBCPP_CONFIGURE.
4887
4888 ac_ext=C
4889 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4890 ac_cpp='$CXXCPP $CPPFLAGS'
4891 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4892 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4893 cross_compiling=$ac_cv_prog_cxx_cross
4894
4895 ac_test_CXXFLAGS="${CXXFLAGS+set}"
4896 ac_save_CXXFLAGS="$CXXFLAGS"
4897
4898 # Check for maintainer-mode bits.
4899 if test x"$USE_MAINTAINER_MODE" = xno; then
4900 WERROR=''
4901 else
4902 WERROR='-Werror'
4903 fi
4904
4905 # Check for -ffunction-sections -fdata-sections
4906 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
4907 echo "configure:4908: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
4908 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
4909 cat > conftest.$ac_ext <<EOF
4910 #line 4911 "configure"
4911 #include "confdefs.h"
4912
4913 int main() {
4914 int foo;
4915
4916 ; return 0; }
4917 EOF
4918 if { (eval echo configure:4919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4919 rm -rf conftest*
4920 ac_fdsections=yes
4921 else
4922 echo "configure: failed program was:" >&5
4923 cat conftest.$ac_ext >&5
4924 rm -rf conftest*
4925 ac_fdsections=no
4926 fi
4927 rm -f conftest*
4928 if test "$ac_test_CXXFLAGS" = set; then
4929 CXXFLAGS="$ac_save_CXXFLAGS"
4930 else
4931 # this is the suspicious part
4932 CXXFLAGS=''
4933 fi
4934 if test x"$ac_fdsections" = x"yes" &&
4935 test x"$enable_debug" = x"no"; then
4936 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4937 fi
4938 echo "$ac_t""$ac_fdsections" 1>&6
4939
4940 ac_ext=c
4941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4942 ac_cpp='$CPP $CPPFLAGS'
4943 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4944 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4945 cross_compiling=$ac_cv_prog_cc_cross
4946
4947
4948
4949
4950
4951 # If we're not using GNU ld, then there's no point in even trying these
4952 # tests. Check for that first. We should have already tested for gld
4953 # by now (in libtool), but require it now just to be safe...
4954 SECTION_LDFLAGS=''
4955 OPT_LDFLAGS=''
4956
4957
4958 # Set --gc-sections.
4959 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4960 # GNU ld it is! Joy and bunny rabbits!
4961
4962 # All these tests are for C++; save the language and the compiler flags.
4963 # Need to do this so that g++ won't try to link in libstdc++
4964 ac_test_CFLAGS="${CFLAGS+set}"
4965 ac_save_CFLAGS="$CFLAGS"
4966 CFLAGS='-x c++ -Wl,--gc-sections'
4967
4968 # Check for -Wl,--gc-sections
4969 # XXX This test is broken at the moment, as symbols required for
4970 # linking are now in libsupc++ (not built yet.....). In addition,
4971 # this test has cored on solaris in the past. In addition,
4972 # --gc-sections doesn't really work at the moment (keeps on discarding
4973 # used sections, first .eh_frame and now some of the glibc sections for
4974 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4975 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4976 echo "configure:4977: checking for ld that supports -Wl,--gc-sections" >&5
4977 if test "$cross_compiling" = yes; then
4978 ac_sectionLDflags=yes
4979 else
4980 cat > conftest.$ac_ext <<EOF
4981 #line 4982 "configure"
4982 #include "confdefs.h"
4983
4984 int main(void)
4985 {
4986 try { throw 1; }
4987 catch (...) { };
4988 return 0;
4989 }
4990
4991 EOF
4992 if { (eval echo configure:4993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4993 then
4994 ac_sectionLDflags=yes
4995 else
4996 echo "configure: failed program was:" >&5
4997 cat conftest.$ac_ext >&5
4998 rm -fr conftest*
4999 ac_sectionLFflags=no
5000 fi
5001 rm -fr conftest*
5002 fi
5003
5004 if test "$ac_test_CFLAGS" = set; then
5005 CFLAGS="$ac_save_CFLAGS"
5006 else
5007 # this is the suspicious part
5008 CFLAGS=''
5009 fi
5010 if test "$ac_sectionLDflags" = "yes"; then
5011 SECTION_LDFLAGS='-Wl,--gc-sections'
5012 fi
5013 echo "$ac_t""$ac_sectionLDflags" 1>&6
5014 fi
5015
5016 # Set linker optimization flags.
5017 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5018 test x"$enable_debug" = x"no"; then
5019 OPT_LDFLAGS='-Wl,-O1'
5020 fi
5021
5022
5023
5024
5025
5026
5027 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
5028 echo "configure:5029: checking for __builtin_abs declaration" >&5
5029 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
5030 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
5031 echo $ac_n "(cached) $ac_c" 1>&6
5032 else
5033
5034
5035 ac_ext=C
5036 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5037 ac_cpp='$CXXCPP $CPPFLAGS'
5038 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5039 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5040 cross_compiling=$ac_cv_prog_cxx_cross
5041
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 #include <math.h>
5046 int main() {
5047 __builtin_abs(0);
5048 ; return 0; }
5049 EOF
5050 if { (eval echo configure:5051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5051 rm -rf conftest*
5052 glibcpp_cv_func___builtin_abs_use=yes
5053 else
5054 echo "configure: failed program was:" >&5
5055 cat conftest.$ac_ext >&5
5056 rm -rf conftest*
5057 glibcpp_cv_func___builtin_abs_use=no
5058 fi
5059 rm -f conftest*
5060 ac_ext=c
5061 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5062 ac_cpp='$CPP $CPPFLAGS'
5063 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5064 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5065 cross_compiling=$ac_cv_prog_cc_cross
5066
5067
5068 fi
5069
5070 fi
5071 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
5072 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
5073 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
5074 echo "configure:5075: checking for __builtin_abs linkage" >&5
5075 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
5076 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6
5078 else
5079
5080 cat > conftest.$ac_ext <<EOF
5081 #line 5082 "configure"
5082 #include "confdefs.h"
5083 #include <math.h>
5084 int main() {
5085 __builtin_abs(0);
5086 ; return 0; }
5087 EOF
5088 if { (eval echo configure:5089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5089 rm -rf conftest*
5090 glibcpp_cv_func___builtin_abs_link=yes
5091 else
5092 echo "configure: failed program was:" >&5
5093 cat conftest.$ac_ext >&5
5094 rm -rf conftest*
5095 glibcpp_cv_func___builtin_abs_link=no
5096 fi
5097 rm -f conftest*
5098
5099 fi
5100
5101 fi
5102 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
5103 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
5104 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5105 cat >> confdefs.h <<EOF
5106 #define ${ac_tr_func} 1
5107 EOF
5108
5109 fi
5110 fi
5111
5112
5113 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
5114 echo "configure:5115: checking for __builtin_fabsf declaration" >&5
5115 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
5116 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5118 else
5119
5120
5121 ac_ext=C
5122 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5123 ac_cpp='$CXXCPP $CPPFLAGS'
5124 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5125 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5126 cross_compiling=$ac_cv_prog_cxx_cross
5127
5128 cat > conftest.$ac_ext <<EOF
5129 #line 5130 "configure"
5130 #include "confdefs.h"
5131 #include <math.h>
5132 int main() {
5133 __builtin_fabsf(0);
5134 ; return 0; }
5135 EOF
5136 if { (eval echo configure:5137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5137 rm -rf conftest*
5138 glibcpp_cv_func___builtin_fabsf_use=yes
5139 else
5140 echo "configure: failed program was:" >&5
5141 cat conftest.$ac_ext >&5
5142 rm -rf conftest*
5143 glibcpp_cv_func___builtin_fabsf_use=no
5144 fi
5145 rm -f conftest*
5146 ac_ext=c
5147 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5148 ac_cpp='$CPP $CPPFLAGS'
5149 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5150 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5151 cross_compiling=$ac_cv_prog_cc_cross
5152
5153
5154 fi
5155
5156 fi
5157 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
5158 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
5159 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
5160 echo "configure:5161: checking for __builtin_fabsf linkage" >&5
5161 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
5162 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5164 else
5165
5166 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure"
5168 #include "confdefs.h"
5169 #include <math.h>
5170 int main() {
5171 __builtin_fabsf(0);
5172 ; return 0; }
5173 EOF
5174 if { (eval echo configure:5175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5175 rm -rf conftest*
5176 glibcpp_cv_func___builtin_fabsf_link=yes
5177 else
5178 echo "configure: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5180 rm -rf conftest*
5181 glibcpp_cv_func___builtin_fabsf_link=no
5182 fi
5183 rm -f conftest*
5184
5185 fi
5186
5187 fi
5188 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
5189 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
5190 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5191 cat >> confdefs.h <<EOF
5192 #define ${ac_tr_func} 1
5193 EOF
5194
5195 fi
5196 fi
5197
5198
5199 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
5200 echo "configure:5201: checking for __builtin_fabs declaration" >&5
5201 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
5202 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5204 else
5205
5206
5207 ac_ext=C
5208 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5209 ac_cpp='$CXXCPP $CPPFLAGS'
5210 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5211 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5212 cross_compiling=$ac_cv_prog_cxx_cross
5213
5214 cat > conftest.$ac_ext <<EOF
5215 #line 5216 "configure"
5216 #include "confdefs.h"
5217 #include <math.h>
5218 int main() {
5219 __builtin_fabs(0);
5220 ; return 0; }
5221 EOF
5222 if { (eval echo configure:5223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5223 rm -rf conftest*
5224 glibcpp_cv_func___builtin_fabs_use=yes
5225 else
5226 echo "configure: failed program was:" >&5
5227 cat conftest.$ac_ext >&5
5228 rm -rf conftest*
5229 glibcpp_cv_func___builtin_fabs_use=no
5230 fi
5231 rm -f conftest*
5232 ac_ext=c
5233 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5234 ac_cpp='$CPP $CPPFLAGS'
5235 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5236 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5237 cross_compiling=$ac_cv_prog_cc_cross
5238
5239
5240 fi
5241
5242 fi
5243 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
5244 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
5245 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
5246 echo "configure:5247: checking for __builtin_fabs linkage" >&5
5247 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
5248 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
5249 echo $ac_n "(cached) $ac_c" 1>&6
5250 else
5251
5252 cat > conftest.$ac_ext <<EOF
5253 #line 5254 "configure"
5254 #include "confdefs.h"
5255 #include <math.h>
5256 int main() {
5257 __builtin_fabs(0);
5258 ; return 0; }
5259 EOF
5260 if { (eval echo configure:5261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5261 rm -rf conftest*
5262 glibcpp_cv_func___builtin_fabs_link=yes
5263 else
5264 echo "configure: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5266 rm -rf conftest*
5267 glibcpp_cv_func___builtin_fabs_link=no
5268 fi
5269 rm -f conftest*
5270
5271 fi
5272
5273 fi
5274 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
5275 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
5276 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5277 cat >> confdefs.h <<EOF
5278 #define ${ac_tr_func} 1
5279 EOF
5280
5281 fi
5282 fi
5283
5284
5285 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
5286 echo "configure:5287: checking for __builtin_fabsl declaration" >&5
5287 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
5288 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
5289 echo $ac_n "(cached) $ac_c" 1>&6
5290 else
5291
5292
5293 ac_ext=C
5294 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5295 ac_cpp='$CXXCPP $CPPFLAGS'
5296 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5297 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5298 cross_compiling=$ac_cv_prog_cxx_cross
5299
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5303 #include <math.h>
5304 int main() {
5305 __builtin_fabsl(0);
5306 ; return 0; }
5307 EOF
5308 if { (eval echo configure:5309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5309 rm -rf conftest*
5310 glibcpp_cv_func___builtin_fabsl_use=yes
5311 else
5312 echo "configure: failed program was:" >&5
5313 cat conftest.$ac_ext >&5
5314 rm -rf conftest*
5315 glibcpp_cv_func___builtin_fabsl_use=no
5316 fi
5317 rm -f conftest*
5318 ac_ext=c
5319 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5320 ac_cpp='$CPP $CPPFLAGS'
5321 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5322 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5323 cross_compiling=$ac_cv_prog_cc_cross
5324
5325
5326 fi
5327
5328 fi
5329 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
5330 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
5331 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
5332 echo "configure:5333: checking for __builtin_fabsl linkage" >&5
5333 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
5334 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
5335 echo $ac_n "(cached) $ac_c" 1>&6
5336 else
5337
5338 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure"
5340 #include "confdefs.h"
5341 #include <math.h>
5342 int main() {
5343 __builtin_fabsl(0);
5344 ; return 0; }
5345 EOF
5346 if { (eval echo configure:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5347 rm -rf conftest*
5348 glibcpp_cv_func___builtin_fabsl_link=yes
5349 else
5350 echo "configure: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5352 rm -rf conftest*
5353 glibcpp_cv_func___builtin_fabsl_link=no
5354 fi
5355 rm -f conftest*
5356
5357 fi
5358
5359 fi
5360 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
5361 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
5362 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5363 cat >> confdefs.h <<EOF
5364 #define ${ac_tr_func} 1
5365 EOF
5366
5367 fi
5368 fi
5369
5370
5371 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
5372 echo "configure:5373: checking for __builtin_labs declaration" >&5
5373 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
5374 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
5375 echo $ac_n "(cached) $ac_c" 1>&6
5376 else
5377
5378
5379 ac_ext=C
5380 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5381 ac_cpp='$CXXCPP $CPPFLAGS'
5382 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5383 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5384 cross_compiling=$ac_cv_prog_cxx_cross
5385
5386 cat > conftest.$ac_ext <<EOF
5387 #line 5388 "configure"
5388 #include "confdefs.h"
5389 #include <math.h>
5390 int main() {
5391 __builtin_labs(0);
5392 ; return 0; }
5393 EOF
5394 if { (eval echo configure:5395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5395 rm -rf conftest*
5396 glibcpp_cv_func___builtin_labs_use=yes
5397 else
5398 echo "configure: failed program was:" >&5
5399 cat conftest.$ac_ext >&5
5400 rm -rf conftest*
5401 glibcpp_cv_func___builtin_labs_use=no
5402 fi
5403 rm -f conftest*
5404 ac_ext=c
5405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5406 ac_cpp='$CPP $CPPFLAGS'
5407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5409 cross_compiling=$ac_cv_prog_cc_cross
5410
5411
5412 fi
5413
5414 fi
5415 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
5416 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
5417 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
5418 echo "configure:5419: checking for __builtin_labs linkage" >&5
5419 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
5420 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
5421 echo $ac_n "(cached) $ac_c" 1>&6
5422 else
5423
5424 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5427 #include <math.h>
5428 int main() {
5429 __builtin_labs(0);
5430 ; return 0; }
5431 EOF
5432 if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5433 rm -rf conftest*
5434 glibcpp_cv_func___builtin_labs_link=yes
5435 else
5436 echo "configure: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5438 rm -rf conftest*
5439 glibcpp_cv_func___builtin_labs_link=no
5440 fi
5441 rm -f conftest*
5442
5443 fi
5444
5445 fi
5446 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
5447 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
5448 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5449 cat >> confdefs.h <<EOF
5450 #define ${ac_tr_func} 1
5451 EOF
5452
5453 fi
5454 fi
5455
5456
5457
5458 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
5459 echo "configure:5460: checking for __builtin_sqrtf declaration" >&5
5460 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
5461 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
5462 echo $ac_n "(cached) $ac_c" 1>&6
5463 else
5464
5465
5466 ac_ext=C
5467 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5468 ac_cpp='$CXXCPP $CPPFLAGS'
5469 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5470 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5471 cross_compiling=$ac_cv_prog_cxx_cross
5472
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5476 #include <math.h>
5477 int main() {
5478 __builtin_sqrtf(0);
5479 ; return 0; }
5480 EOF
5481 if { (eval echo configure:5482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5482 rm -rf conftest*
5483 glibcpp_cv_func___builtin_sqrtf_use=yes
5484 else
5485 echo "configure: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5487 rm -rf conftest*
5488 glibcpp_cv_func___builtin_sqrtf_use=no
5489 fi
5490 rm -f conftest*
5491 ac_ext=c
5492 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5493 ac_cpp='$CPP $CPPFLAGS'
5494 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5495 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5496 cross_compiling=$ac_cv_prog_cc_cross
5497
5498
5499 fi
5500
5501 fi
5502 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
5503 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
5504 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
5505 echo "configure:5506: checking for __builtin_sqrtf linkage" >&5
5506 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
5507 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
5508 echo $ac_n "(cached) $ac_c" 1>&6
5509 else
5510
5511 cat > conftest.$ac_ext <<EOF
5512 #line 5513 "configure"
5513 #include "confdefs.h"
5514 #include <math.h>
5515 int main() {
5516 __builtin_sqrtf(0);
5517 ; return 0; }
5518 EOF
5519 if { (eval echo configure:5520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5520 rm -rf conftest*
5521 glibcpp_cv_func___builtin_sqrtf_link=yes
5522 else
5523 echo "configure: failed program was:" >&5
5524 cat conftest.$ac_ext >&5
5525 rm -rf conftest*
5526 glibcpp_cv_func___builtin_sqrtf_link=no
5527 fi
5528 rm -f conftest*
5529
5530 fi
5531
5532 fi
5533 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
5534 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
5535 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5536 cat >> confdefs.h <<EOF
5537 #define ${ac_tr_func} 1
5538 EOF
5539
5540 fi
5541 fi
5542
5543
5544 echo $ac_n "checking for __builtin_fsqrt declaration""... $ac_c" 1>&6
5545 echo "configure:5546: checking for __builtin_fsqrt declaration" >&5
5546 if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then
5547 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then
5548 echo $ac_n "(cached) $ac_c" 1>&6
5549 else
5550
5551
5552 ac_ext=C
5553 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5554 ac_cpp='$CXXCPP $CPPFLAGS'
5555 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5556 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5557 cross_compiling=$ac_cv_prog_cxx_cross
5558
5559 cat > conftest.$ac_ext <<EOF
5560 #line 5561 "configure"
5561 #include "confdefs.h"
5562 #include <math.h>
5563 int main() {
5564 __builtin_fsqrt(0);
5565 ; return 0; }
5566 EOF
5567 if { (eval echo configure:5568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5568 rm -rf conftest*
5569 glibcpp_cv_func___builtin_fsqrt_use=yes
5570 else
5571 echo "configure: failed program was:" >&5
5572 cat conftest.$ac_ext >&5
5573 rm -rf conftest*
5574 glibcpp_cv_func___builtin_fsqrt_use=no
5575 fi
5576 rm -f conftest*
5577 ac_ext=c
5578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5579 ac_cpp='$CPP $CPPFLAGS'
5580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5582 cross_compiling=$ac_cv_prog_cc_cross
5583
5584
5585 fi
5586
5587 fi
5588 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6
5589 if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then
5590 echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6
5591 echo "configure:5592: checking for __builtin_fsqrt linkage" >&5
5592 if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then
5593 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then
5594 echo $ac_n "(cached) $ac_c" 1>&6
5595 else
5596
5597 cat > conftest.$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5600 #include <math.h>
5601 int main() {
5602 __builtin_fsqrt(0);
5603 ; return 0; }
5604 EOF
5605 if { (eval echo configure:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5606 rm -rf conftest*
5607 glibcpp_cv_func___builtin_fsqrt_link=yes
5608 else
5609 echo "configure: failed program was:" >&5
5610 cat conftest.$ac_ext >&5
5611 rm -rf conftest*
5612 glibcpp_cv_func___builtin_fsqrt_link=no
5613 fi
5614 rm -f conftest*
5615
5616 fi
5617
5618 fi
5619 echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6
5620 if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then
5621 ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5622 cat >> confdefs.h <<EOF
5623 #define ${ac_tr_func} 1
5624 EOF
5625
5626 fi
5627 fi
5628
5629
5630 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
5631 echo "configure:5632: checking for __builtin_sqrtl declaration" >&5
5632 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
5633 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
5634 echo $ac_n "(cached) $ac_c" 1>&6
5635 else
5636
5637
5638 ac_ext=C
5639 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5640 ac_cpp='$CXXCPP $CPPFLAGS'
5641 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5642 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5643 cross_compiling=$ac_cv_prog_cxx_cross
5644
5645 cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5648 #include <math.h>
5649 int main() {
5650 __builtin_sqrtl(0);
5651 ; return 0; }
5652 EOF
5653 if { (eval echo configure:5654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5654 rm -rf conftest*
5655 glibcpp_cv_func___builtin_sqrtl_use=yes
5656 else
5657 echo "configure: failed program was:" >&5
5658 cat conftest.$ac_ext >&5
5659 rm -rf conftest*
5660 glibcpp_cv_func___builtin_sqrtl_use=no
5661 fi
5662 rm -f conftest*
5663 ac_ext=c
5664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5665 ac_cpp='$CPP $CPPFLAGS'
5666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5668 cross_compiling=$ac_cv_prog_cc_cross
5669
5670
5671 fi
5672
5673 fi
5674 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
5675 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
5676 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
5677 echo "configure:5678: checking for __builtin_sqrtl linkage" >&5
5678 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
5679 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
5680 echo $ac_n "(cached) $ac_c" 1>&6
5681 else
5682
5683 cat > conftest.$ac_ext <<EOF
5684 #line 5685 "configure"
5685 #include "confdefs.h"
5686 #include <math.h>
5687 int main() {
5688 __builtin_sqrtl(0);
5689 ; return 0; }
5690 EOF
5691 if { (eval echo configure:5692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5692 rm -rf conftest*
5693 glibcpp_cv_func___builtin_sqrtl_link=yes
5694 else
5695 echo "configure: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5697 rm -rf conftest*
5698 glibcpp_cv_func___builtin_sqrtl_link=no
5699 fi
5700 rm -f conftest*
5701
5702 fi
5703
5704 fi
5705 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
5706 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
5707 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5708 cat >> confdefs.h <<EOF
5709 #define ${ac_tr_func} 1
5710 EOF
5711
5712 fi
5713 fi
5714
5715
5716
5717 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
5718 echo "configure:5719: checking for __builtin_sinf declaration" >&5
5719 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
5720 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
5721 echo $ac_n "(cached) $ac_c" 1>&6
5722 else
5723
5724
5725 ac_ext=C
5726 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5727 ac_cpp='$CXXCPP $CPPFLAGS'
5728 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5729 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5730 cross_compiling=$ac_cv_prog_cxx_cross
5731
5732 cat > conftest.$ac_ext <<EOF
5733 #line 5734 "configure"
5734 #include "confdefs.h"
5735 #include <math.h>
5736 int main() {
5737 __builtin_sinf(0);
5738 ; return 0; }
5739 EOF
5740 if { (eval echo configure:5741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5741 rm -rf conftest*
5742 glibcpp_cv_func___builtin_sinf_use=yes
5743 else
5744 echo "configure: failed program was:" >&5
5745 cat conftest.$ac_ext >&5
5746 rm -rf conftest*
5747 glibcpp_cv_func___builtin_sinf_use=no
5748 fi
5749 rm -f conftest*
5750 ac_ext=c
5751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5752 ac_cpp='$CPP $CPPFLAGS'
5753 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5754 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5755 cross_compiling=$ac_cv_prog_cc_cross
5756
5757
5758 fi
5759
5760 fi
5761 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
5762 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
5763 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
5764 echo "configure:5765: checking for __builtin_sinf linkage" >&5
5765 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
5766 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
5767 echo $ac_n "(cached) $ac_c" 1>&6
5768 else
5769
5770 cat > conftest.$ac_ext <<EOF
5771 #line 5772 "configure"
5772 #include "confdefs.h"
5773 #include <math.h>
5774 int main() {
5775 __builtin_sinf(0);
5776 ; return 0; }
5777 EOF
5778 if { (eval echo configure:5779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5779 rm -rf conftest*
5780 glibcpp_cv_func___builtin_sinf_link=yes
5781 else
5782 echo "configure: failed program was:" >&5
5783 cat conftest.$ac_ext >&5
5784 rm -rf conftest*
5785 glibcpp_cv_func___builtin_sinf_link=no
5786 fi
5787 rm -f conftest*
5788
5789 fi
5790
5791 fi
5792 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
5793 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
5794 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5795 cat >> confdefs.h <<EOF
5796 #define ${ac_tr_func} 1
5797 EOF
5798
5799 fi
5800 fi
5801
5802
5803 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
5804 echo "configure:5805: checking for __builtin_sin declaration" >&5
5805 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
5806 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5808 else
5809
5810
5811 ac_ext=C
5812 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5813 ac_cpp='$CXXCPP $CPPFLAGS'
5814 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5815 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5816 cross_compiling=$ac_cv_prog_cxx_cross
5817
5818 cat > conftest.$ac_ext <<EOF
5819 #line 5820 "configure"
5820 #include "confdefs.h"
5821 #include <math.h>
5822 int main() {
5823 __builtin_sin(0);
5824 ; return 0; }
5825 EOF
5826 if { (eval echo configure:5827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5827 rm -rf conftest*
5828 glibcpp_cv_func___builtin_sin_use=yes
5829 else
5830 echo "configure: failed program was:" >&5
5831 cat conftest.$ac_ext >&5
5832 rm -rf conftest*
5833 glibcpp_cv_func___builtin_sin_use=no
5834 fi
5835 rm -f conftest*
5836 ac_ext=c
5837 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5838 ac_cpp='$CPP $CPPFLAGS'
5839 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5840 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5841 cross_compiling=$ac_cv_prog_cc_cross
5842
5843
5844 fi
5845
5846 fi
5847 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
5848 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
5849 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
5850 echo "configure:5851: checking for __builtin_sin linkage" >&5
5851 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
5852 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
5853 echo $ac_n "(cached) $ac_c" 1>&6
5854 else
5855
5856 cat > conftest.$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5859 #include <math.h>
5860 int main() {
5861 __builtin_sin(0);
5862 ; return 0; }
5863 EOF
5864 if { (eval echo configure:5865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5865 rm -rf conftest*
5866 glibcpp_cv_func___builtin_sin_link=yes
5867 else
5868 echo "configure: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5870 rm -rf conftest*
5871 glibcpp_cv_func___builtin_sin_link=no
5872 fi
5873 rm -f conftest*
5874
5875 fi
5876
5877 fi
5878 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
5879 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
5880 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5881 cat >> confdefs.h <<EOF
5882 #define ${ac_tr_func} 1
5883 EOF
5884
5885 fi
5886 fi
5887
5888
5889 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
5890 echo "configure:5891: checking for __builtin_sinl declaration" >&5
5891 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
5892 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
5893 echo $ac_n "(cached) $ac_c" 1>&6
5894 else
5895
5896
5897 ac_ext=C
5898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5899 ac_cpp='$CXXCPP $CPPFLAGS'
5900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5902 cross_compiling=$ac_cv_prog_cxx_cross
5903
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5907 #include <math.h>
5908 int main() {
5909 __builtin_sinl(0);
5910 ; return 0; }
5911 EOF
5912 if { (eval echo configure:5913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5913 rm -rf conftest*
5914 glibcpp_cv_func___builtin_sinl_use=yes
5915 else
5916 echo "configure: failed program was:" >&5
5917 cat conftest.$ac_ext >&5
5918 rm -rf conftest*
5919 glibcpp_cv_func___builtin_sinl_use=no
5920 fi
5921 rm -f conftest*
5922 ac_ext=c
5923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5924 ac_cpp='$CPP $CPPFLAGS'
5925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5927 cross_compiling=$ac_cv_prog_cc_cross
5928
5929
5930 fi
5931
5932 fi
5933 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
5934 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
5935 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
5936 echo "configure:5937: checking for __builtin_sinl linkage" >&5
5937 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
5938 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
5939 echo $ac_n "(cached) $ac_c" 1>&6
5940 else
5941
5942 cat > conftest.$ac_ext <<EOF
5943 #line 5944 "configure"
5944 #include "confdefs.h"
5945 #include <math.h>
5946 int main() {
5947 __builtin_sinl(0);
5948 ; return 0; }
5949 EOF
5950 if { (eval echo configure:5951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5951 rm -rf conftest*
5952 glibcpp_cv_func___builtin_sinl_link=yes
5953 else
5954 echo "configure: failed program was:" >&5
5955 cat conftest.$ac_ext >&5
5956 rm -rf conftest*
5957 glibcpp_cv_func___builtin_sinl_link=no
5958 fi
5959 rm -f conftest*
5960
5961 fi
5962
5963 fi
5964 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
5965 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
5966 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5967 cat >> confdefs.h <<EOF
5968 #define ${ac_tr_func} 1
5969 EOF
5970
5971 fi
5972 fi
5973
5974
5975
5976 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
5977 echo "configure:5978: checking for __builtin_cosf declaration" >&5
5978 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
5979 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
5980 echo $ac_n "(cached) $ac_c" 1>&6
5981 else
5982
5983
5984 ac_ext=C
5985 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5986 ac_cpp='$CXXCPP $CPPFLAGS'
5987 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5988 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5989 cross_compiling=$ac_cv_prog_cxx_cross
5990
5991 cat > conftest.$ac_ext <<EOF
5992 #line 5993 "configure"
5993 #include "confdefs.h"
5994 #include <math.h>
5995 int main() {
5996 __builtin_cosf(0);
5997 ; return 0; }
5998 EOF
5999 if { (eval echo configure:6000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6000 rm -rf conftest*
6001 glibcpp_cv_func___builtin_cosf_use=yes
6002 else
6003 echo "configure: failed program was:" >&5
6004 cat conftest.$ac_ext >&5
6005 rm -rf conftest*
6006 glibcpp_cv_func___builtin_cosf_use=no
6007 fi
6008 rm -f conftest*
6009 ac_ext=c
6010 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6011 ac_cpp='$CPP $CPPFLAGS'
6012 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6013 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6014 cross_compiling=$ac_cv_prog_cc_cross
6015
6016
6017 fi
6018
6019 fi
6020 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
6021 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
6022 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
6023 echo "configure:6024: checking for __builtin_cosf linkage" >&5
6024 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
6025 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
6026 echo $ac_n "(cached) $ac_c" 1>&6
6027 else
6028
6029 cat > conftest.$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6032 #include <math.h>
6033 int main() {
6034 __builtin_cosf(0);
6035 ; return 0; }
6036 EOF
6037 if { (eval echo configure:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6038 rm -rf conftest*
6039 glibcpp_cv_func___builtin_cosf_link=yes
6040 else
6041 echo "configure: failed program was:" >&5
6042 cat conftest.$ac_ext >&5
6043 rm -rf conftest*
6044 glibcpp_cv_func___builtin_cosf_link=no
6045 fi
6046 rm -f conftest*
6047
6048 fi
6049
6050 fi
6051 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
6052 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
6053 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6054 cat >> confdefs.h <<EOF
6055 #define ${ac_tr_func} 1
6056 EOF
6057
6058 fi
6059 fi
6060
6061
6062 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
6063 echo "configure:6064: checking for __builtin_cos declaration" >&5
6064 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
6065 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
6066 echo $ac_n "(cached) $ac_c" 1>&6
6067 else
6068
6069
6070 ac_ext=C
6071 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6072 ac_cpp='$CXXCPP $CPPFLAGS'
6073 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6074 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6075 cross_compiling=$ac_cv_prog_cxx_cross
6076
6077 cat > conftest.$ac_ext <<EOF
6078 #line 6079 "configure"
6079 #include "confdefs.h"
6080 #include <math.h>
6081 int main() {
6082 __builtin_cos(0);
6083 ; return 0; }
6084 EOF
6085 if { (eval echo configure:6086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6086 rm -rf conftest*
6087 glibcpp_cv_func___builtin_cos_use=yes
6088 else
6089 echo "configure: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6091 rm -rf conftest*
6092 glibcpp_cv_func___builtin_cos_use=no
6093 fi
6094 rm -f conftest*
6095 ac_ext=c
6096 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6097 ac_cpp='$CPP $CPPFLAGS'
6098 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6099 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6100 cross_compiling=$ac_cv_prog_cc_cross
6101
6102
6103 fi
6104
6105 fi
6106 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
6107 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
6108 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
6109 echo "configure:6110: checking for __builtin_cos linkage" >&5
6110 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
6111 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6113 else
6114
6115 cat > conftest.$ac_ext <<EOF
6116 #line 6117 "configure"
6117 #include "confdefs.h"
6118 #include <math.h>
6119 int main() {
6120 __builtin_cos(0);
6121 ; return 0; }
6122 EOF
6123 if { (eval echo configure:6124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6124 rm -rf conftest*
6125 glibcpp_cv_func___builtin_cos_link=yes
6126 else
6127 echo "configure: failed program was:" >&5
6128 cat conftest.$ac_ext >&5
6129 rm -rf conftest*
6130 glibcpp_cv_func___builtin_cos_link=no
6131 fi
6132 rm -f conftest*
6133
6134 fi
6135
6136 fi
6137 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
6138 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
6139 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6140 cat >> confdefs.h <<EOF
6141 #define ${ac_tr_func} 1
6142 EOF
6143
6144 fi
6145 fi
6146
6147
6148 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
6149 echo "configure:6150: checking for __builtin_cosl declaration" >&5
6150 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
6151 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
6152 echo $ac_n "(cached) $ac_c" 1>&6
6153 else
6154
6155
6156 ac_ext=C
6157 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6158 ac_cpp='$CXXCPP $CPPFLAGS'
6159 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6160 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6161 cross_compiling=$ac_cv_prog_cxx_cross
6162
6163 cat > conftest.$ac_ext <<EOF
6164 #line 6165 "configure"
6165 #include "confdefs.h"
6166 #include <math.h>
6167 int main() {
6168 __builtin_cosl(0);
6169 ; return 0; }
6170 EOF
6171 if { (eval echo configure:6172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6172 rm -rf conftest*
6173 glibcpp_cv_func___builtin_cosl_use=yes
6174 else
6175 echo "configure: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6177 rm -rf conftest*
6178 glibcpp_cv_func___builtin_cosl_use=no
6179 fi
6180 rm -f conftest*
6181 ac_ext=c
6182 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6183 ac_cpp='$CPP $CPPFLAGS'
6184 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6185 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6186 cross_compiling=$ac_cv_prog_cc_cross
6187
6188
6189 fi
6190
6191 fi
6192 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
6193 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
6194 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
6195 echo "configure:6196: checking for __builtin_cosl linkage" >&5
6196 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
6197 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6199 else
6200
6201 cat > conftest.$ac_ext <<EOF
6202 #line 6203 "configure"
6203 #include "confdefs.h"
6204 #include <math.h>
6205 int main() {
6206 __builtin_cosl(0);
6207 ; return 0; }
6208 EOF
6209 if { (eval echo configure:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6210 rm -rf conftest*
6211 glibcpp_cv_func___builtin_cosl_link=yes
6212 else
6213 echo "configure: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6215 rm -rf conftest*
6216 glibcpp_cv_func___builtin_cosl_link=no
6217 fi
6218 rm -f conftest*
6219
6220 fi
6221
6222 fi
6223 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
6224 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
6225 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6226 cat >> confdefs.h <<EOF
6227 #define ${ac_tr_func} 1
6228 EOF
6229
6230 fi
6231 fi
6232
6233
6234 dummyvar=no
6235 if test x$dummyvar = x"yes"; then
6236 cat >> confdefs.h <<\EOF
6237 #define HAVE___BUILTIN_ABS 1
6238 EOF
6239
6240 cat >> confdefs.h <<\EOF
6241 #define HAVE___BUILTIN_LABS 1
6242 EOF
6243
6244 cat >> confdefs.h <<\EOF
6245 #define HAVE___BUILTIN_COS 1
6246 EOF
6247
6248 cat >> confdefs.h <<\EOF
6249 #define HAVE___BUILTIN_COSF 1
6250 EOF
6251
6252 cat >> confdefs.h <<\EOF
6253 #define HAVE___BUILTIN_COSL 1
6254 EOF
6255
6256 cat >> confdefs.h <<\EOF
6257 #define HAVE___BUILTIN_FABS 1
6258 EOF
6259
6260 cat >> confdefs.h <<\EOF
6261 #define HAVE___BUILTIN_FABSF 1
6262 EOF
6263
6264 cat >> confdefs.h <<\EOF
6265 #define HAVE___BUILTIN_FABSL 1
6266 EOF
6267
6268 cat >> confdefs.h <<\EOF
6269 #define HAVE___BUILTIN_SIN 1
6270 EOF
6271
6272 cat >> confdefs.h <<\EOF
6273 #define HAVE___BUILTIN_SINF 1
6274 EOF
6275
6276 cat >> confdefs.h <<\EOF
6277 #define HAVE___BUILTIN_SINL 1
6278 EOF
6279
6280 cat >> confdefs.h <<\EOF
6281 #define HAVE___BUILTIN_FSQRT 1
6282 EOF
6283
6284 cat >> confdefs.h <<\EOF
6285 #define HAVE___BUILTIN_SQRTF 1
6286 EOF
6287
6288 cat >> confdefs.h <<\EOF
6289 #define HAVE___BUILTIN_SQRTL 1
6290 EOF
6291
6292 fi
6293
6294
6295 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6296 ac_save_CXXFLAGS="$CXXFLAGS"
6297 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
6298
6299 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
6300 echo "configure:6301: checking for sin in -lm" >&5
6301 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
6302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6303 echo $ac_n "(cached) $ac_c" 1>&6
6304 else
6305 ac_save_LIBS="$LIBS"
6306 LIBS="-lm $LIBS"
6307 cat > conftest.$ac_ext <<EOF
6308 #line 6309 "configure"
6309 #include "confdefs.h"
6310 /* Override any gcc2 internal prototype to avoid an error. */
6311 /* We use char because int might match the return type of a gcc2
6312 builtin and then its argument prototype would still apply. */
6313 char sin();
6314
6315 int main() {
6316 sin()
6317 ; return 0; }
6318 EOF
6319 if { (eval echo configure:6320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6320 rm -rf conftest*
6321 eval "ac_cv_lib_$ac_lib_var=yes"
6322 else
6323 echo "configure: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6325 rm -rf conftest*
6326 eval "ac_cv_lib_$ac_lib_var=no"
6327 fi
6328 rm -f conftest*
6329 LIBS="$ac_save_LIBS"
6330
6331 fi
6332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6333 echo "$ac_t""yes" 1>&6
6334 libm="-lm"
6335 else
6336 echo "$ac_t""no" 1>&6
6337 fi
6338
6339 ac_save_LIBS="$LIBS"
6340 LIBS="$LIBS $libm"
6341
6342
6343
6344 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
6345 echo "configure:6346: checking for isinf declaration" >&5
6346 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
6347 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
6348 echo $ac_n "(cached) $ac_c" 1>&6
6349 else
6350
6351
6352 ac_ext=C
6353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6354 ac_cpp='$CXXCPP $CPPFLAGS'
6355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6357 cross_compiling=$ac_cv_prog_cxx_cross
6358
6359 cat > conftest.$ac_ext <<EOF
6360 #line 6361 "configure"
6361 #include "confdefs.h"
6362 #include <math.h>
6363 #ifdef HAVE_IEEEFP_H
6364 #include <ieeefp.h>
6365 #endif
6366
6367 int main() {
6368 isinf(0);
6369 ; return 0; }
6370 EOF
6371 if { (eval echo configure:6372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6372 rm -rf conftest*
6373 glibcpp_cv_func_isinf_use=yes
6374 else
6375 echo "configure: failed program was:" >&5
6376 cat conftest.$ac_ext >&5
6377 rm -rf conftest*
6378 glibcpp_cv_func_isinf_use=no
6379 fi
6380 rm -f conftest*
6381 ac_ext=c
6382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6383 ac_cpp='$CPP $CPPFLAGS'
6384 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6385 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6386 cross_compiling=$ac_cv_prog_cc_cross
6387
6388
6389 fi
6390
6391 fi
6392 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
6393
6394 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
6395 for ac_func in isinf
6396 do
6397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6398 echo "configure:6399: checking for $ac_func" >&5
6399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6400 echo $ac_n "(cached) $ac_c" 1>&6
6401 else
6402 cat > conftest.$ac_ext <<EOF
6403 #line 6404 "configure"
6404 #include "confdefs.h"
6405 /* System header to define __stub macros and hopefully few prototypes,
6406 which can conflict with char $ac_func(); below. */
6407 #include <assert.h>
6408 /* Override any gcc2 internal prototype to avoid an error. */
6409 /* We use char because int might match the return type of a gcc2
6410 builtin and then its argument prototype would still apply. */
6411 char $ac_func();
6412
6413 int main() {
6414
6415 /* The GNU C library defines this for functions which it implements
6416 to always fail with ENOSYS. Some functions are actually named
6417 something starting with __ and the normal name is an alias. */
6418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6419 choke me
6420 #else
6421 $ac_func();
6422 #endif
6423
6424 ; return 0; }
6425 EOF
6426 if { (eval echo configure:6427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6427 rm -rf conftest*
6428 eval "ac_cv_func_$ac_func=yes"
6429 else
6430 echo "configure: failed program was:" >&5
6431 cat conftest.$ac_ext >&5
6432 rm -rf conftest*
6433 eval "ac_cv_func_$ac_func=no"
6434 fi
6435 rm -f conftest*
6436 fi
6437
6438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6439 echo "$ac_t""yes" 1>&6
6440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6441 cat >> confdefs.h <<EOF
6442 #define $ac_tr_func 1
6443 EOF
6444
6445 else
6446 echo "$ac_t""no" 1>&6
6447 fi
6448 done
6449
6450 else
6451
6452 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
6453 echo "configure:6454: checking for _isinf declaration" >&5
6454 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
6455 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
6456 echo $ac_n "(cached) $ac_c" 1>&6
6457 else
6458
6459
6460 ac_ext=C
6461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6462 ac_cpp='$CXXCPP $CPPFLAGS'
6463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6465 cross_compiling=$ac_cv_prog_cxx_cross
6466
6467 cat > conftest.$ac_ext <<EOF
6468 #line 6469 "configure"
6469 #include "confdefs.h"
6470 #include <math.h>
6471 #ifdef HAVE_IEEEFP_H
6472 #include <ieeefp.h>
6473 #endif
6474
6475 int main() {
6476 _isinf(0);
6477 ; return 0; }
6478 EOF
6479 if { (eval echo configure:6480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6480 rm -rf conftest*
6481 glibcpp_cv_func__isinf_use=yes
6482 else
6483 echo "configure: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6485 rm -rf conftest*
6486 glibcpp_cv_func__isinf_use=no
6487 fi
6488 rm -f conftest*
6489 ac_ext=c
6490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6491 ac_cpp='$CPP $CPPFLAGS'
6492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6494 cross_compiling=$ac_cv_prog_cc_cross
6495
6496
6497 fi
6498
6499 fi
6500 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
6501
6502 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
6503 for ac_func in _isinf
6504 do
6505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6506 echo "configure:6507: checking for $ac_func" >&5
6507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6508 echo $ac_n "(cached) $ac_c" 1>&6
6509 else
6510 cat > conftest.$ac_ext <<EOF
6511 #line 6512 "configure"
6512 #include "confdefs.h"
6513 /* System header to define __stub macros and hopefully few prototypes,
6514 which can conflict with char $ac_func(); below. */
6515 #include <assert.h>
6516 /* Override any gcc2 internal prototype to avoid an error. */
6517 /* We use char because int might match the return type of a gcc2
6518 builtin and then its argument prototype would still apply. */
6519 char $ac_func();
6520
6521 int main() {
6522
6523 /* The GNU C library defines this for functions which it implements
6524 to always fail with ENOSYS. Some functions are actually named
6525 something starting with __ and the normal name is an alias. */
6526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6527 choke me
6528 #else
6529 $ac_func();
6530 #endif
6531
6532 ; return 0; }
6533 EOF
6534 if { (eval echo configure:6535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6535 rm -rf conftest*
6536 eval "ac_cv_func_$ac_func=yes"
6537 else
6538 echo "configure: failed program was:" >&5
6539 cat conftest.$ac_ext >&5
6540 rm -rf conftest*
6541 eval "ac_cv_func_$ac_func=no"
6542 fi
6543 rm -f conftest*
6544 fi
6545
6546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6547 echo "$ac_t""yes" 1>&6
6548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6549 cat >> confdefs.h <<EOF
6550 #define $ac_tr_func 1
6551 EOF
6552
6553 else
6554 echo "$ac_t""no" 1>&6
6555 fi
6556 done
6557
6558 fi
6559 fi
6560
6561
6562
6563 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
6564 echo "configure:6565: checking for isnan declaration" >&5
6565 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
6566 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
6567 echo $ac_n "(cached) $ac_c" 1>&6
6568 else
6569
6570
6571 ac_ext=C
6572 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6573 ac_cpp='$CXXCPP $CPPFLAGS'
6574 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6575 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6576 cross_compiling=$ac_cv_prog_cxx_cross
6577
6578 cat > conftest.$ac_ext <<EOF
6579 #line 6580 "configure"
6580 #include "confdefs.h"
6581 #include <math.h>
6582 #ifdef HAVE_IEEEFP_H
6583 #include <ieeefp.h>
6584 #endif
6585
6586 int main() {
6587 isnan(0);
6588 ; return 0; }
6589 EOF
6590 if { (eval echo configure:6591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6591 rm -rf conftest*
6592 glibcpp_cv_func_isnan_use=yes
6593 else
6594 echo "configure: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6596 rm -rf conftest*
6597 glibcpp_cv_func_isnan_use=no
6598 fi
6599 rm -f conftest*
6600 ac_ext=c
6601 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6602 ac_cpp='$CPP $CPPFLAGS'
6603 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6604 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6605 cross_compiling=$ac_cv_prog_cc_cross
6606
6607
6608 fi
6609
6610 fi
6611 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
6612
6613 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
6614 for ac_func in isnan
6615 do
6616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6617 echo "configure:6618: checking for $ac_func" >&5
6618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6619 echo $ac_n "(cached) $ac_c" 1>&6
6620 else
6621 cat > conftest.$ac_ext <<EOF
6622 #line 6623 "configure"
6623 #include "confdefs.h"
6624 /* System header to define __stub macros and hopefully few prototypes,
6625 which can conflict with char $ac_func(); below. */
6626 #include <assert.h>
6627 /* Override any gcc2 internal prototype to avoid an error. */
6628 /* We use char because int might match the return type of a gcc2
6629 builtin and then its argument prototype would still apply. */
6630 char $ac_func();
6631
6632 int main() {
6633
6634 /* The GNU C library defines this for functions which it implements
6635 to always fail with ENOSYS. Some functions are actually named
6636 something starting with __ and the normal name is an alias. */
6637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6638 choke me
6639 #else
6640 $ac_func();
6641 #endif
6642
6643 ; return 0; }
6644 EOF
6645 if { (eval echo configure:6646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6646 rm -rf conftest*
6647 eval "ac_cv_func_$ac_func=yes"
6648 else
6649 echo "configure: failed program was:" >&5
6650 cat conftest.$ac_ext >&5
6651 rm -rf conftest*
6652 eval "ac_cv_func_$ac_func=no"
6653 fi
6654 rm -f conftest*
6655 fi
6656
6657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6658 echo "$ac_t""yes" 1>&6
6659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6660 cat >> confdefs.h <<EOF
6661 #define $ac_tr_func 1
6662 EOF
6663
6664 else
6665 echo "$ac_t""no" 1>&6
6666 fi
6667 done
6668
6669 else
6670
6671 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
6672 echo "configure:6673: checking for _isnan declaration" >&5
6673 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
6674 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
6675 echo $ac_n "(cached) $ac_c" 1>&6
6676 else
6677
6678
6679 ac_ext=C
6680 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6681 ac_cpp='$CXXCPP $CPPFLAGS'
6682 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6683 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6684 cross_compiling=$ac_cv_prog_cxx_cross
6685
6686 cat > conftest.$ac_ext <<EOF
6687 #line 6688 "configure"
6688 #include "confdefs.h"
6689 #include <math.h>
6690 #ifdef HAVE_IEEEFP_H
6691 #include <ieeefp.h>
6692 #endif
6693
6694 int main() {
6695 _isnan(0);
6696 ; return 0; }
6697 EOF
6698 if { (eval echo configure:6699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6699 rm -rf conftest*
6700 glibcpp_cv_func__isnan_use=yes
6701 else
6702 echo "configure: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6704 rm -rf conftest*
6705 glibcpp_cv_func__isnan_use=no
6706 fi
6707 rm -f conftest*
6708 ac_ext=c
6709 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6710 ac_cpp='$CPP $CPPFLAGS'
6711 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6712 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6713 cross_compiling=$ac_cv_prog_cc_cross
6714
6715
6716 fi
6717
6718 fi
6719 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
6720
6721 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
6722 for ac_func in _isnan
6723 do
6724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6725 echo "configure:6726: checking for $ac_func" >&5
6726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6727 echo $ac_n "(cached) $ac_c" 1>&6
6728 else
6729 cat > conftest.$ac_ext <<EOF
6730 #line 6731 "configure"
6731 #include "confdefs.h"
6732 /* System header to define __stub macros and hopefully few prototypes,
6733 which can conflict with char $ac_func(); below. */
6734 #include <assert.h>
6735 /* Override any gcc2 internal prototype to avoid an error. */
6736 /* We use char because int might match the return type of a gcc2
6737 builtin and then its argument prototype would still apply. */
6738 char $ac_func();
6739
6740 int main() {
6741
6742 /* The GNU C library defines this for functions which it implements
6743 to always fail with ENOSYS. Some functions are actually named
6744 something starting with __ and the normal name is an alias. */
6745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6746 choke me
6747 #else
6748 $ac_func();
6749 #endif
6750
6751 ; return 0; }
6752 EOF
6753 if { (eval echo configure:6754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6754 rm -rf conftest*
6755 eval "ac_cv_func_$ac_func=yes"
6756 else
6757 echo "configure: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6759 rm -rf conftest*
6760 eval "ac_cv_func_$ac_func=no"
6761 fi
6762 rm -f conftest*
6763 fi
6764
6765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6766 echo "$ac_t""yes" 1>&6
6767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6768 cat >> confdefs.h <<EOF
6769 #define $ac_tr_func 1
6770 EOF
6771
6772 else
6773 echo "$ac_t""no" 1>&6
6774 fi
6775 done
6776
6777 fi
6778 fi
6779
6780
6781
6782 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
6783 echo "configure:6784: checking for finite declaration" >&5
6784 if test x${glibcpp_cv_func_finite_use+set} != xset; then
6785 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
6786 echo $ac_n "(cached) $ac_c" 1>&6
6787 else
6788
6789
6790 ac_ext=C
6791 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6792 ac_cpp='$CXXCPP $CPPFLAGS'
6793 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6794 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6795 cross_compiling=$ac_cv_prog_cxx_cross
6796
6797 cat > conftest.$ac_ext <<EOF
6798 #line 6799 "configure"
6799 #include "confdefs.h"
6800 #include <math.h>
6801 #ifdef HAVE_IEEEFP_H
6802 #include <ieeefp.h>
6803 #endif
6804
6805 int main() {
6806 finite(0);
6807 ; return 0; }
6808 EOF
6809 if { (eval echo configure:6810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6810 rm -rf conftest*
6811 glibcpp_cv_func_finite_use=yes
6812 else
6813 echo "configure: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6815 rm -rf conftest*
6816 glibcpp_cv_func_finite_use=no
6817 fi
6818 rm -f conftest*
6819 ac_ext=c
6820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6821 ac_cpp='$CPP $CPPFLAGS'
6822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6824 cross_compiling=$ac_cv_prog_cc_cross
6825
6826
6827 fi
6828
6829 fi
6830 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
6831
6832 if test x$glibcpp_cv_func_finite_use = x"yes"; then
6833 for ac_func in finite
6834 do
6835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6836 echo "configure:6837: checking for $ac_func" >&5
6837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6838 echo $ac_n "(cached) $ac_c" 1>&6
6839 else
6840 cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure"
6842 #include "confdefs.h"
6843 /* System header to define __stub macros and hopefully few prototypes,
6844 which can conflict with char $ac_func(); below. */
6845 #include <assert.h>
6846 /* Override any gcc2 internal prototype to avoid an error. */
6847 /* We use char because int might match the return type of a gcc2
6848 builtin and then its argument prototype would still apply. */
6849 char $ac_func();
6850
6851 int main() {
6852
6853 /* The GNU C library defines this for functions which it implements
6854 to always fail with ENOSYS. Some functions are actually named
6855 something starting with __ and the normal name is an alias. */
6856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6857 choke me
6858 #else
6859 $ac_func();
6860 #endif
6861
6862 ; return 0; }
6863 EOF
6864 if { (eval echo configure:6865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6865 rm -rf conftest*
6866 eval "ac_cv_func_$ac_func=yes"
6867 else
6868 echo "configure: failed program was:" >&5
6869 cat conftest.$ac_ext >&5
6870 rm -rf conftest*
6871 eval "ac_cv_func_$ac_func=no"
6872 fi
6873 rm -f conftest*
6874 fi
6875
6876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6877 echo "$ac_t""yes" 1>&6
6878 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6879 cat >> confdefs.h <<EOF
6880 #define $ac_tr_func 1
6881 EOF
6882
6883 else
6884 echo "$ac_t""no" 1>&6
6885 fi
6886 done
6887
6888 else
6889
6890 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
6891 echo "configure:6892: checking for _finite declaration" >&5
6892 if test x${glibcpp_cv_func__finite_use+set} != xset; then
6893 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
6894 echo $ac_n "(cached) $ac_c" 1>&6
6895 else
6896
6897
6898 ac_ext=C
6899 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6900 ac_cpp='$CXXCPP $CPPFLAGS'
6901 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6902 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6903 cross_compiling=$ac_cv_prog_cxx_cross
6904
6905 cat > conftest.$ac_ext <<EOF
6906 #line 6907 "configure"
6907 #include "confdefs.h"
6908 #include <math.h>
6909 #ifdef HAVE_IEEEFP_H
6910 #include <ieeefp.h>
6911 #endif
6912
6913 int main() {
6914 _finite(0);
6915 ; return 0; }
6916 EOF
6917 if { (eval echo configure:6918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6918 rm -rf conftest*
6919 glibcpp_cv_func__finite_use=yes
6920 else
6921 echo "configure: failed program was:" >&5
6922 cat conftest.$ac_ext >&5
6923 rm -rf conftest*
6924 glibcpp_cv_func__finite_use=no
6925 fi
6926 rm -f conftest*
6927 ac_ext=c
6928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6929 ac_cpp='$CPP $CPPFLAGS'
6930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6932 cross_compiling=$ac_cv_prog_cc_cross
6933
6934
6935 fi
6936
6937 fi
6938 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
6939
6940 if test x$glibcpp_cv_func__finite_use = x"yes"; then
6941 for ac_func in _finite
6942 do
6943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6944 echo "configure:6945: checking for $ac_func" >&5
6945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6946 echo $ac_n "(cached) $ac_c" 1>&6
6947 else
6948 cat > conftest.$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6951 /* System header to define __stub macros and hopefully few prototypes,
6952 which can conflict with char $ac_func(); below. */
6953 #include <assert.h>
6954 /* Override any gcc2 internal prototype to avoid an error. */
6955 /* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6957 char $ac_func();
6958
6959 int main() {
6960
6961 /* The GNU C library defines this for functions which it implements
6962 to always fail with ENOSYS. Some functions are actually named
6963 something starting with __ and the normal name is an alias. */
6964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6965 choke me
6966 #else
6967 $ac_func();
6968 #endif
6969
6970 ; return 0; }
6971 EOF
6972 if { (eval echo configure:6973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6973 rm -rf conftest*
6974 eval "ac_cv_func_$ac_func=yes"
6975 else
6976 echo "configure: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6978 rm -rf conftest*
6979 eval "ac_cv_func_$ac_func=no"
6980 fi
6981 rm -f conftest*
6982 fi
6983
6984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6985 echo "$ac_t""yes" 1>&6
6986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6987 cat >> confdefs.h <<EOF
6988 #define $ac_tr_func 1
6989 EOF
6990
6991 else
6992 echo "$ac_t""no" 1>&6
6993 fi
6994 done
6995
6996 fi
6997 fi
6998
6999
7000
7001 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
7002 echo "configure:7003: checking for copysign declaration" >&5
7003 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
7004 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
7005 echo $ac_n "(cached) $ac_c" 1>&6
7006 else
7007
7008
7009 ac_ext=C
7010 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7011 ac_cpp='$CXXCPP $CPPFLAGS'
7012 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7013 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7014 cross_compiling=$ac_cv_prog_cxx_cross
7015
7016 cat > conftest.$ac_ext <<EOF
7017 #line 7018 "configure"
7018 #include "confdefs.h"
7019 #include <math.h>
7020 int main() {
7021 copysign(0, 0);
7022 ; return 0; }
7023 EOF
7024 if { (eval echo configure:7025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7025 rm -rf conftest*
7026 glibcpp_cv_func_copysign_use=yes
7027 else
7028 echo "configure: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7030 rm -rf conftest*
7031 glibcpp_cv_func_copysign_use=no
7032 fi
7033 rm -f conftest*
7034 ac_ext=c
7035 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7036 ac_cpp='$CPP $CPPFLAGS'
7037 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7038 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7039 cross_compiling=$ac_cv_prog_cc_cross
7040
7041
7042 fi
7043
7044 fi
7045 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
7046
7047 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
7048 for ac_func in copysign
7049 do
7050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7051 echo "configure:7052: checking for $ac_func" >&5
7052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7053 echo $ac_n "(cached) $ac_c" 1>&6
7054 else
7055 cat > conftest.$ac_ext <<EOF
7056 #line 7057 "configure"
7057 #include "confdefs.h"
7058 /* System header to define __stub macros and hopefully few prototypes,
7059 which can conflict with char $ac_func(); below. */
7060 #include <assert.h>
7061 /* Override any gcc2 internal prototype to avoid an error. */
7062 /* We use char because int might match the return type of a gcc2
7063 builtin and then its argument prototype would still apply. */
7064 char $ac_func();
7065
7066 int main() {
7067
7068 /* The GNU C library defines this for functions which it implements
7069 to always fail with ENOSYS. Some functions are actually named
7070 something starting with __ and the normal name is an alias. */
7071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7072 choke me
7073 #else
7074 $ac_func();
7075 #endif
7076
7077 ; return 0; }
7078 EOF
7079 if { (eval echo configure:7080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7080 rm -rf conftest*
7081 eval "ac_cv_func_$ac_func=yes"
7082 else
7083 echo "configure: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7085 rm -rf conftest*
7086 eval "ac_cv_func_$ac_func=no"
7087 fi
7088 rm -f conftest*
7089 fi
7090
7091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7092 echo "$ac_t""yes" 1>&6
7093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7094 cat >> confdefs.h <<EOF
7095 #define $ac_tr_func 1
7096 EOF
7097
7098 else
7099 echo "$ac_t""no" 1>&6
7100 fi
7101 done
7102
7103 else
7104
7105 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
7106 echo "configure:7107: checking for _copysign declaration" >&5
7107 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
7108 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
7109 echo $ac_n "(cached) $ac_c" 1>&6
7110 else
7111
7112
7113 ac_ext=C
7114 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7115 ac_cpp='$CXXCPP $CPPFLAGS'
7116 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7117 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7118 cross_compiling=$ac_cv_prog_cxx_cross
7119
7120 cat > conftest.$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7123 #include <math.h>
7124 int main() {
7125 _copysign(0, 0);
7126 ; return 0; }
7127 EOF
7128 if { (eval echo configure:7129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7129 rm -rf conftest*
7130 glibcpp_cv_func__copysign_use=yes
7131 else
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7134 rm -rf conftest*
7135 glibcpp_cv_func__copysign_use=no
7136 fi
7137 rm -f conftest*
7138 ac_ext=c
7139 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7140 ac_cpp='$CPP $CPPFLAGS'
7141 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7142 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7143 cross_compiling=$ac_cv_prog_cc_cross
7144
7145
7146 fi
7147
7148 fi
7149 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
7150
7151 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
7152 for ac_func in _copysign
7153 do
7154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7155 echo "configure:7156: checking for $ac_func" >&5
7156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7157 echo $ac_n "(cached) $ac_c" 1>&6
7158 else
7159 cat > conftest.$ac_ext <<EOF
7160 #line 7161 "configure"
7161 #include "confdefs.h"
7162 /* System header to define __stub macros and hopefully few prototypes,
7163 which can conflict with char $ac_func(); below. */
7164 #include <assert.h>
7165 /* Override any gcc2 internal prototype to avoid an error. */
7166 /* We use char because int might match the return type of a gcc2
7167 builtin and then its argument prototype would still apply. */
7168 char $ac_func();
7169
7170 int main() {
7171
7172 /* The GNU C library defines this for functions which it implements
7173 to always fail with ENOSYS. Some functions are actually named
7174 something starting with __ and the normal name is an alias. */
7175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7176 choke me
7177 #else
7178 $ac_func();
7179 #endif
7180
7181 ; return 0; }
7182 EOF
7183 if { (eval echo configure:7184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7184 rm -rf conftest*
7185 eval "ac_cv_func_$ac_func=yes"
7186 else
7187 echo "configure: failed program was:" >&5
7188 cat conftest.$ac_ext >&5
7189 rm -rf conftest*
7190 eval "ac_cv_func_$ac_func=no"
7191 fi
7192 rm -f conftest*
7193 fi
7194
7195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7196 echo "$ac_t""yes" 1>&6
7197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7198 cat >> confdefs.h <<EOF
7199 #define $ac_tr_func 1
7200 EOF
7201
7202 else
7203 echo "$ac_t""no" 1>&6
7204 fi
7205 done
7206
7207 fi
7208 fi
7209
7210
7211
7212 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
7213 echo "configure:7214: checking for sincos declaration" >&5
7214 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
7215 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
7216 echo $ac_n "(cached) $ac_c" 1>&6
7217 else
7218
7219
7220 ac_ext=C
7221 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7222 ac_cpp='$CXXCPP $CPPFLAGS'
7223 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7224 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7225 cross_compiling=$ac_cv_prog_cxx_cross
7226
7227 cat > conftest.$ac_ext <<EOF
7228 #line 7229 "configure"
7229 #include "confdefs.h"
7230 #include <math.h>
7231 int main() {
7232 sincos(0, 0, 0);
7233 ; return 0; }
7234 EOF
7235 if { (eval echo configure:7236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7236 rm -rf conftest*
7237 glibcpp_cv_func_sincos_use=yes
7238 else
7239 echo "configure: failed program was:" >&5
7240 cat conftest.$ac_ext >&5
7241 rm -rf conftest*
7242 glibcpp_cv_func_sincos_use=no
7243 fi
7244 rm -f conftest*
7245 ac_ext=c
7246 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7247 ac_cpp='$CPP $CPPFLAGS'
7248 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7249 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7250 cross_compiling=$ac_cv_prog_cc_cross
7251
7252
7253 fi
7254
7255 fi
7256 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
7257
7258 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
7259 for ac_func in sincos
7260 do
7261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7262 echo "configure:7263: checking for $ac_func" >&5
7263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7264 echo $ac_n "(cached) $ac_c" 1>&6
7265 else
7266 cat > conftest.$ac_ext <<EOF
7267 #line 7268 "configure"
7268 #include "confdefs.h"
7269 /* System header to define __stub macros and hopefully few prototypes,
7270 which can conflict with char $ac_func(); below. */
7271 #include <assert.h>
7272 /* Override any gcc2 internal prototype to avoid an error. */
7273 /* We use char because int might match the return type of a gcc2
7274 builtin and then its argument prototype would still apply. */
7275 char $ac_func();
7276
7277 int main() {
7278
7279 /* The GNU C library defines this for functions which it implements
7280 to always fail with ENOSYS. Some functions are actually named
7281 something starting with __ and the normal name is an alias. */
7282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7283 choke me
7284 #else
7285 $ac_func();
7286 #endif
7287
7288 ; return 0; }
7289 EOF
7290 if { (eval echo configure:7291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7291 rm -rf conftest*
7292 eval "ac_cv_func_$ac_func=yes"
7293 else
7294 echo "configure: failed program was:" >&5
7295 cat conftest.$ac_ext >&5
7296 rm -rf conftest*
7297 eval "ac_cv_func_$ac_func=no"
7298 fi
7299 rm -f conftest*
7300 fi
7301
7302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7303 echo "$ac_t""yes" 1>&6
7304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7305 cat >> confdefs.h <<EOF
7306 #define $ac_tr_func 1
7307 EOF
7308
7309 else
7310 echo "$ac_t""no" 1>&6
7311 fi
7312 done
7313
7314 else
7315
7316 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
7317 echo "configure:7318: checking for _sincos declaration" >&5
7318 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
7319 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
7320 echo $ac_n "(cached) $ac_c" 1>&6
7321 else
7322
7323
7324 ac_ext=C
7325 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7326 ac_cpp='$CXXCPP $CPPFLAGS'
7327 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7328 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7329 cross_compiling=$ac_cv_prog_cxx_cross
7330
7331 cat > conftest.$ac_ext <<EOF
7332 #line 7333 "configure"
7333 #include "confdefs.h"
7334 #include <math.h>
7335 int main() {
7336 _sincos(0, 0, 0);
7337 ; return 0; }
7338 EOF
7339 if { (eval echo configure:7340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7340 rm -rf conftest*
7341 glibcpp_cv_func__sincos_use=yes
7342 else
7343 echo "configure: failed program was:" >&5
7344 cat conftest.$ac_ext >&5
7345 rm -rf conftest*
7346 glibcpp_cv_func__sincos_use=no
7347 fi
7348 rm -f conftest*
7349 ac_ext=c
7350 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7351 ac_cpp='$CPP $CPPFLAGS'
7352 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7353 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7354 cross_compiling=$ac_cv_prog_cc_cross
7355
7356
7357 fi
7358
7359 fi
7360 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
7361
7362 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
7363 for ac_func in _sincos
7364 do
7365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7366 echo "configure:7367: checking for $ac_func" >&5
7367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7368 echo $ac_n "(cached) $ac_c" 1>&6
7369 else
7370 cat > conftest.$ac_ext <<EOF
7371 #line 7372 "configure"
7372 #include "confdefs.h"
7373 /* System header to define __stub macros and hopefully few prototypes,
7374 which can conflict with char $ac_func(); below. */
7375 #include <assert.h>
7376 /* Override any gcc2 internal prototype to avoid an error. */
7377 /* We use char because int might match the return type of a gcc2
7378 builtin and then its argument prototype would still apply. */
7379 char $ac_func();
7380
7381 int main() {
7382
7383 /* The GNU C library defines this for functions which it implements
7384 to always fail with ENOSYS. Some functions are actually named
7385 something starting with __ and the normal name is an alias. */
7386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7387 choke me
7388 #else
7389 $ac_func();
7390 #endif
7391
7392 ; return 0; }
7393 EOF
7394 if { (eval echo configure:7395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7395 rm -rf conftest*
7396 eval "ac_cv_func_$ac_func=yes"
7397 else
7398 echo "configure: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7400 rm -rf conftest*
7401 eval "ac_cv_func_$ac_func=no"
7402 fi
7403 rm -f conftest*
7404 fi
7405
7406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7407 echo "$ac_t""yes" 1>&6
7408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7409 cat >> confdefs.h <<EOF
7410 #define $ac_tr_func 1
7411 EOF
7412
7413 else
7414 echo "$ac_t""no" 1>&6
7415 fi
7416 done
7417
7418 fi
7419 fi
7420
7421
7422
7423 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
7424 echo "configure:7425: checking for fpclass declaration" >&5
7425 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
7426 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
7427 echo $ac_n "(cached) $ac_c" 1>&6
7428 else
7429
7430
7431 ac_ext=C
7432 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7433 ac_cpp='$CXXCPP $CPPFLAGS'
7434 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7435 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7436 cross_compiling=$ac_cv_prog_cxx_cross
7437
7438 cat > conftest.$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7441 #include <math.h>
7442 #ifdef HAVE_IEEEFP_H
7443 #include <ieeefp.h>
7444 #endif
7445
7446 int main() {
7447 fpclass(0);
7448 ; return 0; }
7449 EOF
7450 if { (eval echo configure:7451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7451 rm -rf conftest*
7452 glibcpp_cv_func_fpclass_use=yes
7453 else
7454 echo "configure: failed program was:" >&5
7455 cat conftest.$ac_ext >&5
7456 rm -rf conftest*
7457 glibcpp_cv_func_fpclass_use=no
7458 fi
7459 rm -f conftest*
7460 ac_ext=c
7461 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7462 ac_cpp='$CPP $CPPFLAGS'
7463 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7464 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7465 cross_compiling=$ac_cv_prog_cc_cross
7466
7467
7468 fi
7469
7470 fi
7471 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
7472
7473 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
7474 for ac_func in fpclass
7475 do
7476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7477 echo "configure:7478: checking for $ac_func" >&5
7478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7479 echo $ac_n "(cached) $ac_c" 1>&6
7480 else
7481 cat > conftest.$ac_ext <<EOF
7482 #line 7483 "configure"
7483 #include "confdefs.h"
7484 /* System header to define __stub macros and hopefully few prototypes,
7485 which can conflict with char $ac_func(); below. */
7486 #include <assert.h>
7487 /* Override any gcc2 internal prototype to avoid an error. */
7488 /* We use char because int might match the return type of a gcc2
7489 builtin and then its argument prototype would still apply. */
7490 char $ac_func();
7491
7492 int main() {
7493
7494 /* The GNU C library defines this for functions which it implements
7495 to always fail with ENOSYS. Some functions are actually named
7496 something starting with __ and the normal name is an alias. */
7497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7498 choke me
7499 #else
7500 $ac_func();
7501 #endif
7502
7503 ; return 0; }
7504 EOF
7505 if { (eval echo configure:7506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7506 rm -rf conftest*
7507 eval "ac_cv_func_$ac_func=yes"
7508 else
7509 echo "configure: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7511 rm -rf conftest*
7512 eval "ac_cv_func_$ac_func=no"
7513 fi
7514 rm -f conftest*
7515 fi
7516
7517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7518 echo "$ac_t""yes" 1>&6
7519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7520 cat >> confdefs.h <<EOF
7521 #define $ac_tr_func 1
7522 EOF
7523
7524 else
7525 echo "$ac_t""no" 1>&6
7526 fi
7527 done
7528
7529 else
7530
7531 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
7532 echo "configure:7533: checking for _fpclass declaration" >&5
7533 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
7534 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
7535 echo $ac_n "(cached) $ac_c" 1>&6
7536 else
7537
7538
7539 ac_ext=C
7540 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7541 ac_cpp='$CXXCPP $CPPFLAGS'
7542 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7543 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7544 cross_compiling=$ac_cv_prog_cxx_cross
7545
7546 cat > conftest.$ac_ext <<EOF
7547 #line 7548 "configure"
7548 #include "confdefs.h"
7549 #include <math.h>
7550 #ifdef HAVE_IEEEFP_H
7551 #include <ieeefp.h>
7552 #endif
7553
7554 int main() {
7555 _fpclass(0);
7556 ; return 0; }
7557 EOF
7558 if { (eval echo configure:7559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7559 rm -rf conftest*
7560 glibcpp_cv_func__fpclass_use=yes
7561 else
7562 echo "configure: failed program was:" >&5
7563 cat conftest.$ac_ext >&5
7564 rm -rf conftest*
7565 glibcpp_cv_func__fpclass_use=no
7566 fi
7567 rm -f conftest*
7568 ac_ext=c
7569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7570 ac_cpp='$CPP $CPPFLAGS'
7571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7573 cross_compiling=$ac_cv_prog_cc_cross
7574
7575
7576 fi
7577
7578 fi
7579 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
7580
7581 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
7582 for ac_func in _fpclass
7583 do
7584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7585 echo "configure:7586: checking for $ac_func" >&5
7586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7587 echo $ac_n "(cached) $ac_c" 1>&6
7588 else
7589 cat > conftest.$ac_ext <<EOF
7590 #line 7591 "configure"
7591 #include "confdefs.h"
7592 /* System header to define __stub macros and hopefully few prototypes,
7593 which can conflict with char $ac_func(); below. */
7594 #include <assert.h>
7595 /* Override any gcc2 internal prototype to avoid an error. */
7596 /* We use char because int might match the return type of a gcc2
7597 builtin and then its argument prototype would still apply. */
7598 char $ac_func();
7599
7600 int main() {
7601
7602 /* The GNU C library defines this for functions which it implements
7603 to always fail with ENOSYS. Some functions are actually named
7604 something starting with __ and the normal name is an alias. */
7605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7606 choke me
7607 #else
7608 $ac_func();
7609 #endif
7610
7611 ; return 0; }
7612 EOF
7613 if { (eval echo configure:7614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7614 rm -rf conftest*
7615 eval "ac_cv_func_$ac_func=yes"
7616 else
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7619 rm -rf conftest*
7620 eval "ac_cv_func_$ac_func=no"
7621 fi
7622 rm -f conftest*
7623 fi
7624
7625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7626 echo "$ac_t""yes" 1>&6
7627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7628 cat >> confdefs.h <<EOF
7629 #define $ac_tr_func 1
7630 EOF
7631
7632 else
7633 echo "$ac_t""no" 1>&6
7634 fi
7635 done
7636
7637 fi
7638 fi
7639
7640
7641
7642 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
7643 echo "configure:7644: checking for qfpclass declaration" >&5
7644 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
7645 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
7646 echo $ac_n "(cached) $ac_c" 1>&6
7647 else
7648
7649
7650 ac_ext=C
7651 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7652 ac_cpp='$CXXCPP $CPPFLAGS'
7653 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7654 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7655 cross_compiling=$ac_cv_prog_cxx_cross
7656
7657 cat > conftest.$ac_ext <<EOF
7658 #line 7659 "configure"
7659 #include "confdefs.h"
7660 #include <math.h>
7661 #ifdef HAVE_IEEEFP_H
7662 #include <ieeefp.h>
7663 #endif
7664
7665 int main() {
7666 qfpclass(0);
7667 ; return 0; }
7668 EOF
7669 if { (eval echo configure:7670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7670 rm -rf conftest*
7671 glibcpp_cv_func_qfpclass_use=yes
7672 else
7673 echo "configure: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7675 rm -rf conftest*
7676 glibcpp_cv_func_qfpclass_use=no
7677 fi
7678 rm -f conftest*
7679 ac_ext=c
7680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7681 ac_cpp='$CPP $CPPFLAGS'
7682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7684 cross_compiling=$ac_cv_prog_cc_cross
7685
7686
7687 fi
7688
7689 fi
7690 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
7691
7692 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
7693 for ac_func in qfpclass
7694 do
7695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7696 echo "configure:7697: checking for $ac_func" >&5
7697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7698 echo $ac_n "(cached) $ac_c" 1>&6
7699 else
7700 cat > conftest.$ac_ext <<EOF
7701 #line 7702 "configure"
7702 #include "confdefs.h"
7703 /* System header to define __stub macros and hopefully few prototypes,
7704 which can conflict with char $ac_func(); below. */
7705 #include <assert.h>
7706 /* Override any gcc2 internal prototype to avoid an error. */
7707 /* We use char because int might match the return type of a gcc2
7708 builtin and then its argument prototype would still apply. */
7709 char $ac_func();
7710
7711 int main() {
7712
7713 /* The GNU C library defines this for functions which it implements
7714 to always fail with ENOSYS. Some functions are actually named
7715 something starting with __ and the normal name is an alias. */
7716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7717 choke me
7718 #else
7719 $ac_func();
7720 #endif
7721
7722 ; return 0; }
7723 EOF
7724 if { (eval echo configure:7725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7725 rm -rf conftest*
7726 eval "ac_cv_func_$ac_func=yes"
7727 else
7728 echo "configure: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 rm -rf conftest*
7731 eval "ac_cv_func_$ac_func=no"
7732 fi
7733 rm -f conftest*
7734 fi
7735
7736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7737 echo "$ac_t""yes" 1>&6
7738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7739 cat >> confdefs.h <<EOF
7740 #define $ac_tr_func 1
7741 EOF
7742
7743 else
7744 echo "$ac_t""no" 1>&6
7745 fi
7746 done
7747
7748 else
7749
7750 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
7751 echo "configure:7752: checking for _qfpclass declaration" >&5
7752 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
7753 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
7754 echo $ac_n "(cached) $ac_c" 1>&6
7755 else
7756
7757
7758 ac_ext=C
7759 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7760 ac_cpp='$CXXCPP $CPPFLAGS'
7761 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7762 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7763 cross_compiling=$ac_cv_prog_cxx_cross
7764
7765 cat > conftest.$ac_ext <<EOF
7766 #line 7767 "configure"
7767 #include "confdefs.h"
7768 #include <math.h>
7769 #ifdef HAVE_IEEEFP_H
7770 #include <ieeefp.h>
7771 #endif
7772
7773 int main() {
7774 _qfpclass(0);
7775 ; return 0; }
7776 EOF
7777 if { (eval echo configure:7778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7778 rm -rf conftest*
7779 glibcpp_cv_func__qfpclass_use=yes
7780 else
7781 echo "configure: failed program was:" >&5
7782 cat conftest.$ac_ext >&5
7783 rm -rf conftest*
7784 glibcpp_cv_func__qfpclass_use=no
7785 fi
7786 rm -f conftest*
7787 ac_ext=c
7788 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7789 ac_cpp='$CPP $CPPFLAGS'
7790 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7791 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7792 cross_compiling=$ac_cv_prog_cc_cross
7793
7794
7795 fi
7796
7797 fi
7798 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
7799
7800 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
7801 for ac_func in _qfpclass
7802 do
7803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7804 echo "configure:7805: checking for $ac_func" >&5
7805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7807 else
7808 cat > conftest.$ac_ext <<EOF
7809 #line 7810 "configure"
7810 #include "confdefs.h"
7811 /* System header to define __stub macros and hopefully few prototypes,
7812 which can conflict with char $ac_func(); below. */
7813 #include <assert.h>
7814 /* Override any gcc2 internal prototype to avoid an error. */
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7817 char $ac_func();
7818
7819 int main() {
7820
7821 /* The GNU C library defines this for functions which it implements
7822 to always fail with ENOSYS. Some functions are actually named
7823 something starting with __ and the normal name is an alias. */
7824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7825 choke me
7826 #else
7827 $ac_func();
7828 #endif
7829
7830 ; return 0; }
7831 EOF
7832 if { (eval echo configure:7833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7833 rm -rf conftest*
7834 eval "ac_cv_func_$ac_func=yes"
7835 else
7836 echo "configure: failed program was:" >&5
7837 cat conftest.$ac_ext >&5
7838 rm -rf conftest*
7839 eval "ac_cv_func_$ac_func=no"
7840 fi
7841 rm -f conftest*
7842 fi
7843
7844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7845 echo "$ac_t""yes" 1>&6
7846 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7847 cat >> confdefs.h <<EOF
7848 #define $ac_tr_func 1
7849 EOF
7850
7851 else
7852 echo "$ac_t""no" 1>&6
7853 fi
7854 done
7855
7856 fi
7857 fi
7858
7859
7860
7861 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
7862 echo "configure:7863: checking for hypot declaration" >&5
7863 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
7864 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
7865 echo $ac_n "(cached) $ac_c" 1>&6
7866 else
7867
7868
7869 ac_ext=C
7870 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7871 ac_cpp='$CXXCPP $CPPFLAGS'
7872 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7873 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7874 cross_compiling=$ac_cv_prog_cxx_cross
7875
7876 cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 #include <math.h>
7880 int main() {
7881 hypot(0, 0);
7882 ; return 0; }
7883 EOF
7884 if { (eval echo configure:7885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7885 rm -rf conftest*
7886 glibcpp_cv_func_hypot_use=yes
7887 else
7888 echo "configure: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7890 rm -rf conftest*
7891 glibcpp_cv_func_hypot_use=no
7892 fi
7893 rm -f conftest*
7894 ac_ext=c
7895 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7898 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7899 cross_compiling=$ac_cv_prog_cc_cross
7900
7901
7902 fi
7903
7904 fi
7905 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
7906
7907 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
7908 for ac_func in hypot
7909 do
7910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7911 echo "configure:7912: checking for $ac_func" >&5
7912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7913 echo $ac_n "(cached) $ac_c" 1>&6
7914 else
7915 cat > conftest.$ac_ext <<EOF
7916 #line 7917 "configure"
7917 #include "confdefs.h"
7918 /* System header to define __stub macros and hopefully few prototypes,
7919 which can conflict with char $ac_func(); below. */
7920 #include <assert.h>
7921 /* Override any gcc2 internal prototype to avoid an error. */
7922 /* We use char because int might match the return type of a gcc2
7923 builtin and then its argument prototype would still apply. */
7924 char $ac_func();
7925
7926 int main() {
7927
7928 /* The GNU C library defines this for functions which it implements
7929 to always fail with ENOSYS. Some functions are actually named
7930 something starting with __ and the normal name is an alias. */
7931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7932 choke me
7933 #else
7934 $ac_func();
7935 #endif
7936
7937 ; return 0; }
7938 EOF
7939 if { (eval echo configure:7940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7940 rm -rf conftest*
7941 eval "ac_cv_func_$ac_func=yes"
7942 else
7943 echo "configure: failed program was:" >&5
7944 cat conftest.$ac_ext >&5
7945 rm -rf conftest*
7946 eval "ac_cv_func_$ac_func=no"
7947 fi
7948 rm -f conftest*
7949 fi
7950
7951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7952 echo "$ac_t""yes" 1>&6
7953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7954 cat >> confdefs.h <<EOF
7955 #define $ac_tr_func 1
7956 EOF
7957
7958 else
7959 echo "$ac_t""no" 1>&6
7960 fi
7961 done
7962
7963 else
7964
7965 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
7966 echo "configure:7967: checking for _hypot declaration" >&5
7967 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
7968 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
7969 echo $ac_n "(cached) $ac_c" 1>&6
7970 else
7971
7972
7973 ac_ext=C
7974 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7975 ac_cpp='$CXXCPP $CPPFLAGS'
7976 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7977 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7978 cross_compiling=$ac_cv_prog_cxx_cross
7979
7980 cat > conftest.$ac_ext <<EOF
7981 #line 7982 "configure"
7982 #include "confdefs.h"
7983 #include <math.h>
7984 int main() {
7985 _hypot(0, 0);
7986 ; return 0; }
7987 EOF
7988 if { (eval echo configure:7989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7989 rm -rf conftest*
7990 glibcpp_cv_func__hypot_use=yes
7991 else
7992 echo "configure: failed program was:" >&5
7993 cat conftest.$ac_ext >&5
7994 rm -rf conftest*
7995 glibcpp_cv_func__hypot_use=no
7996 fi
7997 rm -f conftest*
7998 ac_ext=c
7999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8000 ac_cpp='$CPP $CPPFLAGS'
8001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8002 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8003 cross_compiling=$ac_cv_prog_cc_cross
8004
8005
8006 fi
8007
8008 fi
8009 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
8010
8011 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
8012 for ac_func in _hypot
8013 do
8014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8015 echo "configure:8016: checking for $ac_func" >&5
8016 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8017 echo $ac_n "(cached) $ac_c" 1>&6
8018 else
8019 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure"
8021 #include "confdefs.h"
8022 /* System header to define __stub macros and hopefully few prototypes,
8023 which can conflict with char $ac_func(); below. */
8024 #include <assert.h>
8025 /* Override any gcc2 internal prototype to avoid an error. */
8026 /* We use char because int might match the return type of a gcc2
8027 builtin and then its argument prototype would still apply. */
8028 char $ac_func();
8029
8030 int main() {
8031
8032 /* The GNU C library defines this for functions which it implements
8033 to always fail with ENOSYS. Some functions are actually named
8034 something starting with __ and the normal name is an alias. */
8035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8036 choke me
8037 #else
8038 $ac_func();
8039 #endif
8040
8041 ; return 0; }
8042 EOF
8043 if { (eval echo configure:8044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8044 rm -rf conftest*
8045 eval "ac_cv_func_$ac_func=yes"
8046 else
8047 echo "configure: failed program was:" >&5
8048 cat conftest.$ac_ext >&5
8049 rm -rf conftest*
8050 eval "ac_cv_func_$ac_func=no"
8051 fi
8052 rm -f conftest*
8053 fi
8054
8055 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8056 echo "$ac_t""yes" 1>&6
8057 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8058 cat >> confdefs.h <<EOF
8059 #define $ac_tr_func 1
8060 EOF
8061
8062 else
8063 echo "$ac_t""no" 1>&6
8064 fi
8065 done
8066
8067 fi
8068 fi
8069
8070
8071
8072 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
8073 echo "configure:8074: checking for float trig functions" >&5
8074 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
8075 echo $ac_n "(cached) $ac_c" 1>&6
8076 else
8077
8078
8079 ac_ext=C
8080 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8081 ac_cpp='$CXXCPP $CPPFLAGS'
8082 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8083 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8084 cross_compiling=$ac_cv_prog_cxx_cross
8085
8086 cat > conftest.$ac_ext <<EOF
8087 #line 8088 "configure"
8088 #include "confdefs.h"
8089 #include <math.h>
8090 int main() {
8091 `for x in acosf asinf atanf \
8092 cosf sinf tanf \
8093 coshf sinhf tanhf; do echo "$x (0);"; done`
8094 ; return 0; }
8095 EOF
8096 if { (eval echo configure:8097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8097 rm -rf conftest*
8098 glibcpp_cv_func_float_trig_use=yes
8099 else
8100 echo "configure: failed program was:" >&5
8101 cat conftest.$ac_ext >&5
8102 rm -rf conftest*
8103 glibcpp_cv_func_float_trig_use=no
8104 fi
8105 rm -f conftest*
8106 ac_ext=c
8107 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8108 ac_cpp='$CPP $CPPFLAGS'
8109 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8110 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8111 cross_compiling=$ac_cv_prog_cc_cross
8112
8113 fi
8114
8115 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
8116 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
8117 for ac_func in acosf asinf atanf \
8118 cosf sinf tanf \
8119 coshf sinhf tanhf
8120 do
8121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8122 echo "configure:8123: checking for $ac_func" >&5
8123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8124 echo $ac_n "(cached) $ac_c" 1>&6
8125 else
8126 cat > conftest.$ac_ext <<EOF
8127 #line 8128 "configure"
8128 #include "confdefs.h"
8129 /* System header to define __stub macros and hopefully few prototypes,
8130 which can conflict with char $ac_func(); below. */
8131 #include <assert.h>
8132 /* Override any gcc2 internal prototype to avoid an error. */
8133 /* We use char because int might match the return type of a gcc2
8134 builtin and then its argument prototype would still apply. */
8135 char $ac_func();
8136
8137 int main() {
8138
8139 /* The GNU C library defines this for functions which it implements
8140 to always fail with ENOSYS. Some functions are actually named
8141 something starting with __ and the normal name is an alias. */
8142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8143 choke me
8144 #else
8145 $ac_func();
8146 #endif
8147
8148 ; return 0; }
8149 EOF
8150 if { (eval echo configure:8151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8151 rm -rf conftest*
8152 eval "ac_cv_func_$ac_func=yes"
8153 else
8154 echo "configure: failed program was:" >&5
8155 cat conftest.$ac_ext >&5
8156 rm -rf conftest*
8157 eval "ac_cv_func_$ac_func=no"
8158 fi
8159 rm -f conftest*
8160 fi
8161
8162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8163 echo "$ac_t""yes" 1>&6
8164 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8165 cat >> confdefs.h <<EOF
8166 #define $ac_tr_func 1
8167 EOF
8168
8169 else
8170 echo "$ac_t""no" 1>&6
8171 fi
8172 done
8173
8174 fi
8175
8176
8177 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
8178 echo "configure:8179: checking for float round functions" >&5
8179 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
8180 echo $ac_n "(cached) $ac_c" 1>&6
8181 else
8182
8183
8184 ac_ext=C
8185 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8186 ac_cpp='$CXXCPP $CPPFLAGS'
8187 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8188 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8189 cross_compiling=$ac_cv_prog_cxx_cross
8190
8191 cat > conftest.$ac_ext <<EOF
8192 #line 8193 "configure"
8193 #include "confdefs.h"
8194 #include <math.h>
8195 int main() {
8196 `for x in ceilf floorf; do echo "$x (0);"; done`
8197 ; return 0; }
8198 EOF
8199 if { (eval echo configure:8200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8200 rm -rf conftest*
8201 glibcpp_cv_func_float_round_use=yes
8202 else
8203 echo "configure: failed program was:" >&5
8204 cat conftest.$ac_ext >&5
8205 rm -rf conftest*
8206 glibcpp_cv_func_float_round_use=no
8207 fi
8208 rm -f conftest*
8209 ac_ext=c
8210 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8211 ac_cpp='$CPP $CPPFLAGS'
8212 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8213 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8214 cross_compiling=$ac_cv_prog_cc_cross
8215
8216 fi
8217
8218 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
8219 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
8220 for ac_func in ceilf floorf
8221 do
8222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8223 echo "configure:8224: checking for $ac_func" >&5
8224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8225 echo $ac_n "(cached) $ac_c" 1>&6
8226 else
8227 cat > conftest.$ac_ext <<EOF
8228 #line 8229 "configure"
8229 #include "confdefs.h"
8230 /* System header to define __stub macros and hopefully few prototypes,
8231 which can conflict with char $ac_func(); below. */
8232 #include <assert.h>
8233 /* Override any gcc2 internal prototype to avoid an error. */
8234 /* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8236 char $ac_func();
8237
8238 int main() {
8239
8240 /* The GNU C library defines this for functions which it implements
8241 to always fail with ENOSYS. Some functions are actually named
8242 something starting with __ and the normal name is an alias. */
8243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8244 choke me
8245 #else
8246 $ac_func();
8247 #endif
8248
8249 ; return 0; }
8250 EOF
8251 if { (eval echo configure:8252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8252 rm -rf conftest*
8253 eval "ac_cv_func_$ac_func=yes"
8254 else
8255 echo "configure: failed program was:" >&5
8256 cat conftest.$ac_ext >&5
8257 rm -rf conftest*
8258 eval "ac_cv_func_$ac_func=no"
8259 fi
8260 rm -f conftest*
8261 fi
8262
8263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8264 echo "$ac_t""yes" 1>&6
8265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8266 cat >> confdefs.h <<EOF
8267 #define $ac_tr_func 1
8268 EOF
8269
8270 else
8271 echo "$ac_t""no" 1>&6
8272 fi
8273 done
8274
8275 fi
8276
8277
8278
8279 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
8280 echo "configure:8281: checking for isnanf declaration" >&5
8281 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
8282 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
8283 echo $ac_n "(cached) $ac_c" 1>&6
8284 else
8285
8286
8287 ac_ext=C
8288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8289 ac_cpp='$CXXCPP $CPPFLAGS'
8290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8291 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8292 cross_compiling=$ac_cv_prog_cxx_cross
8293
8294 cat > conftest.$ac_ext <<EOF
8295 #line 8296 "configure"
8296 #include "confdefs.h"
8297 #include <math.h>
8298 #ifdef HAVE_IEEEFP_H
8299 #include <ieeefp.h>
8300 #endif
8301
8302 int main() {
8303 isnanf(0);
8304 ; return 0; }
8305 EOF
8306 if { (eval echo configure:8307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8307 rm -rf conftest*
8308 glibcpp_cv_func_isnanf_use=yes
8309 else
8310 echo "configure: failed program was:" >&5
8311 cat conftest.$ac_ext >&5
8312 rm -rf conftest*
8313 glibcpp_cv_func_isnanf_use=no
8314 fi
8315 rm -f conftest*
8316 ac_ext=c
8317 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8318 ac_cpp='$CPP $CPPFLAGS'
8319 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8320 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8321 cross_compiling=$ac_cv_prog_cc_cross
8322
8323
8324 fi
8325
8326 fi
8327 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
8328
8329 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
8330 for ac_func in isnanf
8331 do
8332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8333 echo "configure:8334: checking for $ac_func" >&5
8334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8335 echo $ac_n "(cached) $ac_c" 1>&6
8336 else
8337 cat > conftest.$ac_ext <<EOF
8338 #line 8339 "configure"
8339 #include "confdefs.h"
8340 /* System header to define __stub macros and hopefully few prototypes,
8341 which can conflict with char $ac_func(); below. */
8342 #include <assert.h>
8343 /* Override any gcc2 internal prototype to avoid an error. */
8344 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */
8346 char $ac_func();
8347
8348 int main() {
8349
8350 /* The GNU C library defines this for functions which it implements
8351 to always fail with ENOSYS. Some functions are actually named
8352 something starting with __ and the normal name is an alias. */
8353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8354 choke me
8355 #else
8356 $ac_func();
8357 #endif
8358
8359 ; return 0; }
8360 EOF
8361 if { (eval echo configure:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8362 rm -rf conftest*
8363 eval "ac_cv_func_$ac_func=yes"
8364 else
8365 echo "configure: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8367 rm -rf conftest*
8368 eval "ac_cv_func_$ac_func=no"
8369 fi
8370 rm -f conftest*
8371 fi
8372
8373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8374 echo "$ac_t""yes" 1>&6
8375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8376 cat >> confdefs.h <<EOF
8377 #define $ac_tr_func 1
8378 EOF
8379
8380 else
8381 echo "$ac_t""no" 1>&6
8382 fi
8383 done
8384
8385 else
8386
8387 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
8388 echo "configure:8389: checking for _isnanf declaration" >&5
8389 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
8390 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
8391 echo $ac_n "(cached) $ac_c" 1>&6
8392 else
8393
8394
8395 ac_ext=C
8396 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8397 ac_cpp='$CXXCPP $CPPFLAGS'
8398 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8399 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8400 cross_compiling=$ac_cv_prog_cxx_cross
8401
8402 cat > conftest.$ac_ext <<EOF
8403 #line 8404 "configure"
8404 #include "confdefs.h"
8405 #include <math.h>
8406 #ifdef HAVE_IEEEFP_H
8407 #include <ieeefp.h>
8408 #endif
8409
8410 int main() {
8411 _isnanf(0);
8412 ; return 0; }
8413 EOF
8414 if { (eval echo configure:8415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8415 rm -rf conftest*
8416 glibcpp_cv_func__isnanf_use=yes
8417 else
8418 echo "configure: failed program was:" >&5
8419 cat conftest.$ac_ext >&5
8420 rm -rf conftest*
8421 glibcpp_cv_func__isnanf_use=no
8422 fi
8423 rm -f conftest*
8424 ac_ext=c
8425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8426 ac_cpp='$CPP $CPPFLAGS'
8427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8429 cross_compiling=$ac_cv_prog_cc_cross
8430
8431
8432 fi
8433
8434 fi
8435 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
8436
8437 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
8438 for ac_func in _isnanf
8439 do
8440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8441 echo "configure:8442: checking for $ac_func" >&5
8442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8443 echo $ac_n "(cached) $ac_c" 1>&6
8444 else
8445 cat > conftest.$ac_ext <<EOF
8446 #line 8447 "configure"
8447 #include "confdefs.h"
8448 /* System header to define __stub macros and hopefully few prototypes,
8449 which can conflict with char $ac_func(); below. */
8450 #include <assert.h>
8451 /* Override any gcc2 internal prototype to avoid an error. */
8452 /* We use char because int might match the return type of a gcc2
8453 builtin and then its argument prototype would still apply. */
8454 char $ac_func();
8455
8456 int main() {
8457
8458 /* The GNU C library defines this for functions which it implements
8459 to always fail with ENOSYS. Some functions are actually named
8460 something starting with __ and the normal name is an alias. */
8461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8462 choke me
8463 #else
8464 $ac_func();
8465 #endif
8466
8467 ; return 0; }
8468 EOF
8469 if { (eval echo configure:8470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8470 rm -rf conftest*
8471 eval "ac_cv_func_$ac_func=yes"
8472 else
8473 echo "configure: failed program was:" >&5
8474 cat conftest.$ac_ext >&5
8475 rm -rf conftest*
8476 eval "ac_cv_func_$ac_func=no"
8477 fi
8478 rm -f conftest*
8479 fi
8480
8481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8482 echo "$ac_t""yes" 1>&6
8483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8484 cat >> confdefs.h <<EOF
8485 #define $ac_tr_func 1
8486 EOF
8487
8488 else
8489 echo "$ac_t""no" 1>&6
8490 fi
8491 done
8492
8493 fi
8494 fi
8495
8496
8497
8498 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
8499 echo "configure:8500: checking for isinff declaration" >&5
8500 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
8501 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
8502 echo $ac_n "(cached) $ac_c" 1>&6
8503 else
8504
8505
8506 ac_ext=C
8507 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8508 ac_cpp='$CXXCPP $CPPFLAGS'
8509 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8510 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8511 cross_compiling=$ac_cv_prog_cxx_cross
8512
8513 cat > conftest.$ac_ext <<EOF
8514 #line 8515 "configure"
8515 #include "confdefs.h"
8516 #include <math.h>
8517 #ifdef HAVE_IEEEFP_H
8518 #include <ieeefp.h>
8519 #endif
8520
8521 int main() {
8522 isinff(0);
8523 ; return 0; }
8524 EOF
8525 if { (eval echo configure:8526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8526 rm -rf conftest*
8527 glibcpp_cv_func_isinff_use=yes
8528 else
8529 echo "configure: failed program was:" >&5
8530 cat conftest.$ac_ext >&5
8531 rm -rf conftest*
8532 glibcpp_cv_func_isinff_use=no
8533 fi
8534 rm -f conftest*
8535 ac_ext=c
8536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8537 ac_cpp='$CPP $CPPFLAGS'
8538 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8539 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8540 cross_compiling=$ac_cv_prog_cc_cross
8541
8542
8543 fi
8544
8545 fi
8546 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
8547
8548 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
8549 for ac_func in isinff
8550 do
8551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8552 echo "configure:8553: checking for $ac_func" >&5
8553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8554 echo $ac_n "(cached) $ac_c" 1>&6
8555 else
8556 cat > conftest.$ac_ext <<EOF
8557 #line 8558 "configure"
8558 #include "confdefs.h"
8559 /* System header to define __stub macros and hopefully few prototypes,
8560 which can conflict with char $ac_func(); below. */
8561 #include <assert.h>
8562 /* Override any gcc2 internal prototype to avoid an error. */
8563 /* We use char because int might match the return type of a gcc2
8564 builtin and then its argument prototype would still apply. */
8565 char $ac_func();
8566
8567 int main() {
8568
8569 /* The GNU C library defines this for functions which it implements
8570 to always fail with ENOSYS. Some functions are actually named
8571 something starting with __ and the normal name is an alias. */
8572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8573 choke me
8574 #else
8575 $ac_func();
8576 #endif
8577
8578 ; return 0; }
8579 EOF
8580 if { (eval echo configure:8581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8581 rm -rf conftest*
8582 eval "ac_cv_func_$ac_func=yes"
8583 else
8584 echo "configure: failed program was:" >&5
8585 cat conftest.$ac_ext >&5
8586 rm -rf conftest*
8587 eval "ac_cv_func_$ac_func=no"
8588 fi
8589 rm -f conftest*
8590 fi
8591
8592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8593 echo "$ac_t""yes" 1>&6
8594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8595 cat >> confdefs.h <<EOF
8596 #define $ac_tr_func 1
8597 EOF
8598
8599 else
8600 echo "$ac_t""no" 1>&6
8601 fi
8602 done
8603
8604 else
8605
8606 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
8607 echo "configure:8608: checking for _isinff declaration" >&5
8608 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
8609 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
8610 echo $ac_n "(cached) $ac_c" 1>&6
8611 else
8612
8613
8614 ac_ext=C
8615 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8616 ac_cpp='$CXXCPP $CPPFLAGS'
8617 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8618 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8619 cross_compiling=$ac_cv_prog_cxx_cross
8620
8621 cat > conftest.$ac_ext <<EOF
8622 #line 8623 "configure"
8623 #include "confdefs.h"
8624 #include <math.h>
8625 #ifdef HAVE_IEEEFP_H
8626 #include <ieeefp.h>
8627 #endif
8628
8629 int main() {
8630 _isinff(0);
8631 ; return 0; }
8632 EOF
8633 if { (eval echo configure:8634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8634 rm -rf conftest*
8635 glibcpp_cv_func__isinff_use=yes
8636 else
8637 echo "configure: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8639 rm -rf conftest*
8640 glibcpp_cv_func__isinff_use=no
8641 fi
8642 rm -f conftest*
8643 ac_ext=c
8644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8645 ac_cpp='$CPP $CPPFLAGS'
8646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8647 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8648 cross_compiling=$ac_cv_prog_cc_cross
8649
8650
8651 fi
8652
8653 fi
8654 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
8655
8656 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
8657 for ac_func in _isinff
8658 do
8659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8660 echo "configure:8661: checking for $ac_func" >&5
8661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8662 echo $ac_n "(cached) $ac_c" 1>&6
8663 else
8664 cat > conftest.$ac_ext <<EOF
8665 #line 8666 "configure"
8666 #include "confdefs.h"
8667 /* System header to define __stub macros and hopefully few prototypes,
8668 which can conflict with char $ac_func(); below. */
8669 #include <assert.h>
8670 /* Override any gcc2 internal prototype to avoid an error. */
8671 /* We use char because int might match the return type of a gcc2
8672 builtin and then its argument prototype would still apply. */
8673 char $ac_func();
8674
8675 int main() {
8676
8677 /* The GNU C library defines this for functions which it implements
8678 to always fail with ENOSYS. Some functions are actually named
8679 something starting with __ and the normal name is an alias. */
8680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8681 choke me
8682 #else
8683 $ac_func();
8684 #endif
8685
8686 ; return 0; }
8687 EOF
8688 if { (eval echo configure:8689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8689 rm -rf conftest*
8690 eval "ac_cv_func_$ac_func=yes"
8691 else
8692 echo "configure: failed program was:" >&5
8693 cat conftest.$ac_ext >&5
8694 rm -rf conftest*
8695 eval "ac_cv_func_$ac_func=no"
8696 fi
8697 rm -f conftest*
8698 fi
8699
8700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8701 echo "$ac_t""yes" 1>&6
8702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8703 cat >> confdefs.h <<EOF
8704 #define $ac_tr_func 1
8705 EOF
8706
8707 else
8708 echo "$ac_t""no" 1>&6
8709 fi
8710 done
8711
8712 fi
8713 fi
8714
8715
8716
8717 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
8718 echo "configure:8719: checking for atan2f declaration" >&5
8719 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
8720 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
8721 echo $ac_n "(cached) $ac_c" 1>&6
8722 else
8723
8724
8725 ac_ext=C
8726 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8727 ac_cpp='$CXXCPP $CPPFLAGS'
8728 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8729 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8730 cross_compiling=$ac_cv_prog_cxx_cross
8731
8732 cat > conftest.$ac_ext <<EOF
8733 #line 8734 "configure"
8734 #include "confdefs.h"
8735 #include <math.h>
8736 int main() {
8737 atan2f(0, 0);
8738 ; return 0; }
8739 EOF
8740 if { (eval echo configure:8741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8741 rm -rf conftest*
8742 glibcpp_cv_func_atan2f_use=yes
8743 else
8744 echo "configure: failed program was:" >&5
8745 cat conftest.$ac_ext >&5
8746 rm -rf conftest*
8747 glibcpp_cv_func_atan2f_use=no
8748 fi
8749 rm -f conftest*
8750 ac_ext=c
8751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8752 ac_cpp='$CPP $CPPFLAGS'
8753 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8754 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8755 cross_compiling=$ac_cv_prog_cc_cross
8756
8757
8758 fi
8759
8760 fi
8761 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
8762
8763 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
8764 for ac_func in atan2f
8765 do
8766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8767 echo "configure:8768: checking for $ac_func" >&5
8768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8769 echo $ac_n "(cached) $ac_c" 1>&6
8770 else
8771 cat > conftest.$ac_ext <<EOF
8772 #line 8773 "configure"
8773 #include "confdefs.h"
8774 /* System header to define __stub macros and hopefully few prototypes,
8775 which can conflict with char $ac_func(); below. */
8776 #include <assert.h>
8777 /* Override any gcc2 internal prototype to avoid an error. */
8778 /* We use char because int might match the return type of a gcc2
8779 builtin and then its argument prototype would still apply. */
8780 char $ac_func();
8781
8782 int main() {
8783
8784 /* The GNU C library defines this for functions which it implements
8785 to always fail with ENOSYS. Some functions are actually named
8786 something starting with __ and the normal name is an alias. */
8787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8788 choke me
8789 #else
8790 $ac_func();
8791 #endif
8792
8793 ; return 0; }
8794 EOF
8795 if { (eval echo configure:8796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8796 rm -rf conftest*
8797 eval "ac_cv_func_$ac_func=yes"
8798 else
8799 echo "configure: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8801 rm -rf conftest*
8802 eval "ac_cv_func_$ac_func=no"
8803 fi
8804 rm -f conftest*
8805 fi
8806
8807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8808 echo "$ac_t""yes" 1>&6
8809 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8810 cat >> confdefs.h <<EOF
8811 #define $ac_tr_func 1
8812 EOF
8813
8814 else
8815 echo "$ac_t""no" 1>&6
8816 fi
8817 done
8818
8819 else
8820
8821 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
8822 echo "configure:8823: checking for _atan2f declaration" >&5
8823 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
8824 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
8825 echo $ac_n "(cached) $ac_c" 1>&6
8826 else
8827
8828
8829 ac_ext=C
8830 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8831 ac_cpp='$CXXCPP $CPPFLAGS'
8832 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8833 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8834 cross_compiling=$ac_cv_prog_cxx_cross
8835
8836 cat > conftest.$ac_ext <<EOF
8837 #line 8838 "configure"
8838 #include "confdefs.h"
8839 #include <math.h>
8840 int main() {
8841 _atan2f(0, 0);
8842 ; return 0; }
8843 EOF
8844 if { (eval echo configure:8845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8845 rm -rf conftest*
8846 glibcpp_cv_func__atan2f_use=yes
8847 else
8848 echo "configure: failed program was:" >&5
8849 cat conftest.$ac_ext >&5
8850 rm -rf conftest*
8851 glibcpp_cv_func__atan2f_use=no
8852 fi
8853 rm -f conftest*
8854 ac_ext=c
8855 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8856 ac_cpp='$CPP $CPPFLAGS'
8857 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8858 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8859 cross_compiling=$ac_cv_prog_cc_cross
8860
8861
8862 fi
8863
8864 fi
8865 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
8866
8867 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
8868 for ac_func in _atan2f
8869 do
8870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8871 echo "configure:8872: checking for $ac_func" >&5
8872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
8874 else
8875 cat > conftest.$ac_ext <<EOF
8876 #line 8877 "configure"
8877 #include "confdefs.h"
8878 /* System header to define __stub macros and hopefully few prototypes,
8879 which can conflict with char $ac_func(); below. */
8880 #include <assert.h>
8881 /* Override any gcc2 internal prototype to avoid an error. */
8882 /* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */
8884 char $ac_func();
8885
8886 int main() {
8887
8888 /* The GNU C library defines this for functions which it implements
8889 to always fail with ENOSYS. Some functions are actually named
8890 something starting with __ and the normal name is an alias. */
8891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8892 choke me
8893 #else
8894 $ac_func();
8895 #endif
8896
8897 ; return 0; }
8898 EOF
8899 if { (eval echo configure:8900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8900 rm -rf conftest*
8901 eval "ac_cv_func_$ac_func=yes"
8902 else
8903 echo "configure: failed program was:" >&5
8904 cat conftest.$ac_ext >&5
8905 rm -rf conftest*
8906 eval "ac_cv_func_$ac_func=no"
8907 fi
8908 rm -f conftest*
8909 fi
8910
8911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8912 echo "$ac_t""yes" 1>&6
8913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8914 cat >> confdefs.h <<EOF
8915 #define $ac_tr_func 1
8916 EOF
8917
8918 else
8919 echo "$ac_t""no" 1>&6
8920 fi
8921 done
8922
8923 fi
8924 fi
8925
8926
8927
8928 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
8929 echo "configure:8930: checking for fabsf declaration" >&5
8930 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
8931 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
8932 echo $ac_n "(cached) $ac_c" 1>&6
8933 else
8934
8935
8936 ac_ext=C
8937 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8938 ac_cpp='$CXXCPP $CPPFLAGS'
8939 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8940 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8941 cross_compiling=$ac_cv_prog_cxx_cross
8942
8943 cat > conftest.$ac_ext <<EOF
8944 #line 8945 "configure"
8945 #include "confdefs.h"
8946 #include <math.h>
8947 #ifdef HAVE_IEEEFP_H
8948 #include <ieeefp.h>
8949 #endif
8950
8951 int main() {
8952 fabsf(0);
8953 ; return 0; }
8954 EOF
8955 if { (eval echo configure:8956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8956 rm -rf conftest*
8957 glibcpp_cv_func_fabsf_use=yes
8958 else
8959 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8961 rm -rf conftest*
8962 glibcpp_cv_func_fabsf_use=no
8963 fi
8964 rm -f conftest*
8965 ac_ext=c
8966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8967 ac_cpp='$CPP $CPPFLAGS'
8968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8970 cross_compiling=$ac_cv_prog_cc_cross
8971
8972
8973 fi
8974
8975 fi
8976 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
8977
8978 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
8979 for ac_func in fabsf
8980 do
8981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8982 echo "configure:8983: checking for $ac_func" >&5
8983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8984 echo $ac_n "(cached) $ac_c" 1>&6
8985 else
8986 cat > conftest.$ac_ext <<EOF
8987 #line 8988 "configure"
8988 #include "confdefs.h"
8989 /* System header to define __stub macros and hopefully few prototypes,
8990 which can conflict with char $ac_func(); below. */
8991 #include <assert.h>
8992 /* Override any gcc2 internal prototype to avoid an error. */
8993 /* We use char because int might match the return type of a gcc2
8994 builtin and then its argument prototype would still apply. */
8995 char $ac_func();
8996
8997 int main() {
8998
8999 /* The GNU C library defines this for functions which it implements
9000 to always fail with ENOSYS. Some functions are actually named
9001 something starting with __ and the normal name is an alias. */
9002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9003 choke me
9004 #else
9005 $ac_func();
9006 #endif
9007
9008 ; return 0; }
9009 EOF
9010 if { (eval echo configure:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9011 rm -rf conftest*
9012 eval "ac_cv_func_$ac_func=yes"
9013 else
9014 echo "configure: failed program was:" >&5
9015 cat conftest.$ac_ext >&5
9016 rm -rf conftest*
9017 eval "ac_cv_func_$ac_func=no"
9018 fi
9019 rm -f conftest*
9020 fi
9021
9022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9023 echo "$ac_t""yes" 1>&6
9024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9025 cat >> confdefs.h <<EOF
9026 #define $ac_tr_func 1
9027 EOF
9028
9029 else
9030 echo "$ac_t""no" 1>&6
9031 fi
9032 done
9033
9034 else
9035
9036 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
9037 echo "configure:9038: checking for _fabsf declaration" >&5
9038 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
9039 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
9040 echo $ac_n "(cached) $ac_c" 1>&6
9041 else
9042
9043
9044 ac_ext=C
9045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9046 ac_cpp='$CXXCPP $CPPFLAGS'
9047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9049 cross_compiling=$ac_cv_prog_cxx_cross
9050
9051 cat > conftest.$ac_ext <<EOF
9052 #line 9053 "configure"
9053 #include "confdefs.h"
9054 #include <math.h>
9055 #ifdef HAVE_IEEEFP_H
9056 #include <ieeefp.h>
9057 #endif
9058
9059 int main() {
9060 _fabsf(0);
9061 ; return 0; }
9062 EOF
9063 if { (eval echo configure:9064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9064 rm -rf conftest*
9065 glibcpp_cv_func__fabsf_use=yes
9066 else
9067 echo "configure: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9069 rm -rf conftest*
9070 glibcpp_cv_func__fabsf_use=no
9071 fi
9072 rm -f conftest*
9073 ac_ext=c
9074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9075 ac_cpp='$CPP $CPPFLAGS'
9076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9078 cross_compiling=$ac_cv_prog_cc_cross
9079
9080
9081 fi
9082
9083 fi
9084 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
9085
9086 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
9087 for ac_func in _fabsf
9088 do
9089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9090 echo "configure:9091: checking for $ac_func" >&5
9091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9093 else
9094 cat > conftest.$ac_ext <<EOF
9095 #line 9096 "configure"
9096 #include "confdefs.h"
9097 /* System header to define __stub macros and hopefully few prototypes,
9098 which can conflict with char $ac_func(); below. */
9099 #include <assert.h>
9100 /* Override any gcc2 internal prototype to avoid an error. */
9101 /* We use char because int might match the return type of a gcc2
9102 builtin and then its argument prototype would still apply. */
9103 char $ac_func();
9104
9105 int main() {
9106
9107 /* The GNU C library defines this for functions which it implements
9108 to always fail with ENOSYS. Some functions are actually named
9109 something starting with __ and the normal name is an alias. */
9110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9111 choke me
9112 #else
9113 $ac_func();
9114 #endif
9115
9116 ; return 0; }
9117 EOF
9118 if { (eval echo configure:9119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9119 rm -rf conftest*
9120 eval "ac_cv_func_$ac_func=yes"
9121 else
9122 echo "configure: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9124 rm -rf conftest*
9125 eval "ac_cv_func_$ac_func=no"
9126 fi
9127 rm -f conftest*
9128 fi
9129
9130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9131 echo "$ac_t""yes" 1>&6
9132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9133 cat >> confdefs.h <<EOF
9134 #define $ac_tr_func 1
9135 EOF
9136
9137 else
9138 echo "$ac_t""no" 1>&6
9139 fi
9140 done
9141
9142 fi
9143 fi
9144
9145
9146
9147 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
9148 echo "configure:9149: checking for fmodf declaration" >&5
9149 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
9150 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
9151 echo $ac_n "(cached) $ac_c" 1>&6
9152 else
9153
9154
9155 ac_ext=C
9156 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9157 ac_cpp='$CXXCPP $CPPFLAGS'
9158 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9159 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9160 cross_compiling=$ac_cv_prog_cxx_cross
9161
9162 cat > conftest.$ac_ext <<EOF
9163 #line 9164 "configure"
9164 #include "confdefs.h"
9165 #include <math.h>
9166 int main() {
9167 fmodf(0, 0);
9168 ; return 0; }
9169 EOF
9170 if { (eval echo configure:9171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9171 rm -rf conftest*
9172 glibcpp_cv_func_fmodf_use=yes
9173 else
9174 echo "configure: failed program was:" >&5
9175 cat conftest.$ac_ext >&5
9176 rm -rf conftest*
9177 glibcpp_cv_func_fmodf_use=no
9178 fi
9179 rm -f conftest*
9180 ac_ext=c
9181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9182 ac_cpp='$CPP $CPPFLAGS'
9183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9185 cross_compiling=$ac_cv_prog_cc_cross
9186
9187
9188 fi
9189
9190 fi
9191 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
9192
9193 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
9194 for ac_func in fmodf
9195 do
9196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9197 echo "configure:9198: checking for $ac_func" >&5
9198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9199 echo $ac_n "(cached) $ac_c" 1>&6
9200 else
9201 cat > conftest.$ac_ext <<EOF
9202 #line 9203 "configure"
9203 #include "confdefs.h"
9204 /* System header to define __stub macros and hopefully few prototypes,
9205 which can conflict with char $ac_func(); below. */
9206 #include <assert.h>
9207 /* Override any gcc2 internal prototype to avoid an error. */
9208 /* We use char because int might match the return type of a gcc2
9209 builtin and then its argument prototype would still apply. */
9210 char $ac_func();
9211
9212 int main() {
9213
9214 /* The GNU C library defines this for functions which it implements
9215 to always fail with ENOSYS. Some functions are actually named
9216 something starting with __ and the normal name is an alias. */
9217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9218 choke me
9219 #else
9220 $ac_func();
9221 #endif
9222
9223 ; return 0; }
9224 EOF
9225 if { (eval echo configure:9226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9226 rm -rf conftest*
9227 eval "ac_cv_func_$ac_func=yes"
9228 else
9229 echo "configure: failed program was:" >&5
9230 cat conftest.$ac_ext >&5
9231 rm -rf conftest*
9232 eval "ac_cv_func_$ac_func=no"
9233 fi
9234 rm -f conftest*
9235 fi
9236
9237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9238 echo "$ac_t""yes" 1>&6
9239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9240 cat >> confdefs.h <<EOF
9241 #define $ac_tr_func 1
9242 EOF
9243
9244 else
9245 echo "$ac_t""no" 1>&6
9246 fi
9247 done
9248
9249 else
9250
9251 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
9252 echo "configure:9253: checking for _fmodf declaration" >&5
9253 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
9254 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
9256 else
9257
9258
9259 ac_ext=C
9260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9261 ac_cpp='$CXXCPP $CPPFLAGS'
9262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9264 cross_compiling=$ac_cv_prog_cxx_cross
9265
9266 cat > conftest.$ac_ext <<EOF
9267 #line 9268 "configure"
9268 #include "confdefs.h"
9269 #include <math.h>
9270 int main() {
9271 _fmodf(0, 0);
9272 ; return 0; }
9273 EOF
9274 if { (eval echo configure:9275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9275 rm -rf conftest*
9276 glibcpp_cv_func__fmodf_use=yes
9277 else
9278 echo "configure: failed program was:" >&5
9279 cat conftest.$ac_ext >&5
9280 rm -rf conftest*
9281 glibcpp_cv_func__fmodf_use=no
9282 fi
9283 rm -f conftest*
9284 ac_ext=c
9285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9286 ac_cpp='$CPP $CPPFLAGS'
9287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9289 cross_compiling=$ac_cv_prog_cc_cross
9290
9291
9292 fi
9293
9294 fi
9295 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
9296
9297 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
9298 for ac_func in _fmodf
9299 do
9300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9301 echo "configure:9302: checking for $ac_func" >&5
9302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9303 echo $ac_n "(cached) $ac_c" 1>&6
9304 else
9305 cat > conftest.$ac_ext <<EOF
9306 #line 9307 "configure"
9307 #include "confdefs.h"
9308 /* System header to define __stub macros and hopefully few prototypes,
9309 which can conflict with char $ac_func(); below. */
9310 #include <assert.h>
9311 /* Override any gcc2 internal prototype to avoid an error. */
9312 /* We use char because int might match the return type of a gcc2
9313 builtin and then its argument prototype would still apply. */
9314 char $ac_func();
9315
9316 int main() {
9317
9318 /* The GNU C library defines this for functions which it implements
9319 to always fail with ENOSYS. Some functions are actually named
9320 something starting with __ and the normal name is an alias. */
9321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9322 choke me
9323 #else
9324 $ac_func();
9325 #endif
9326
9327 ; return 0; }
9328 EOF
9329 if { (eval echo configure:9330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9330 rm -rf conftest*
9331 eval "ac_cv_func_$ac_func=yes"
9332 else
9333 echo "configure: failed program was:" >&5
9334 cat conftest.$ac_ext >&5
9335 rm -rf conftest*
9336 eval "ac_cv_func_$ac_func=no"
9337 fi
9338 rm -f conftest*
9339 fi
9340
9341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9342 echo "$ac_t""yes" 1>&6
9343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9344 cat >> confdefs.h <<EOF
9345 #define $ac_tr_func 1
9346 EOF
9347
9348 else
9349 echo "$ac_t""no" 1>&6
9350 fi
9351 done
9352
9353 fi
9354 fi
9355
9356
9357
9358 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
9359 echo "configure:9360: checking for frexpf declaration" >&5
9360 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
9361 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
9362 echo $ac_n "(cached) $ac_c" 1>&6
9363 else
9364
9365
9366 ac_ext=C
9367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9368 ac_cpp='$CXXCPP $CPPFLAGS'
9369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9370 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9371 cross_compiling=$ac_cv_prog_cxx_cross
9372
9373 cat > conftest.$ac_ext <<EOF
9374 #line 9375 "configure"
9375 #include "confdefs.h"
9376 #include <math.h>
9377 int main() {
9378 frexpf(0, 0);
9379 ; return 0; }
9380 EOF
9381 if { (eval echo configure:9382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9382 rm -rf conftest*
9383 glibcpp_cv_func_frexpf_use=yes
9384 else
9385 echo "configure: failed program was:" >&5
9386 cat conftest.$ac_ext >&5
9387 rm -rf conftest*
9388 glibcpp_cv_func_frexpf_use=no
9389 fi
9390 rm -f conftest*
9391 ac_ext=c
9392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9393 ac_cpp='$CPP $CPPFLAGS'
9394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9396 cross_compiling=$ac_cv_prog_cc_cross
9397
9398
9399 fi
9400
9401 fi
9402 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
9403
9404 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
9405 for ac_func in frexpf
9406 do
9407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9408 echo "configure:9409: checking for $ac_func" >&5
9409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9410 echo $ac_n "(cached) $ac_c" 1>&6
9411 else
9412 cat > conftest.$ac_ext <<EOF
9413 #line 9414 "configure"
9414 #include "confdefs.h"
9415 /* System header to define __stub macros and hopefully few prototypes,
9416 which can conflict with char $ac_func(); below. */
9417 #include <assert.h>
9418 /* Override any gcc2 internal prototype to avoid an error. */
9419 /* We use char because int might match the return type of a gcc2
9420 builtin and then its argument prototype would still apply. */
9421 char $ac_func();
9422
9423 int main() {
9424
9425 /* The GNU C library defines this for functions which it implements
9426 to always fail with ENOSYS. Some functions are actually named
9427 something starting with __ and the normal name is an alias. */
9428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9429 choke me
9430 #else
9431 $ac_func();
9432 #endif
9433
9434 ; return 0; }
9435 EOF
9436 if { (eval echo configure:9437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9437 rm -rf conftest*
9438 eval "ac_cv_func_$ac_func=yes"
9439 else
9440 echo "configure: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9442 rm -rf conftest*
9443 eval "ac_cv_func_$ac_func=no"
9444 fi
9445 rm -f conftest*
9446 fi
9447
9448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9449 echo "$ac_t""yes" 1>&6
9450 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9451 cat >> confdefs.h <<EOF
9452 #define $ac_tr_func 1
9453 EOF
9454
9455 else
9456 echo "$ac_t""no" 1>&6
9457 fi
9458 done
9459
9460 else
9461
9462 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
9463 echo "configure:9464: checking for _frexpf declaration" >&5
9464 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
9465 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
9466 echo $ac_n "(cached) $ac_c" 1>&6
9467 else
9468
9469
9470 ac_ext=C
9471 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9472 ac_cpp='$CXXCPP $CPPFLAGS'
9473 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9474 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9475 cross_compiling=$ac_cv_prog_cxx_cross
9476
9477 cat > conftest.$ac_ext <<EOF
9478 #line 9479 "configure"
9479 #include "confdefs.h"
9480 #include <math.h>
9481 int main() {
9482 _frexpf(0, 0);
9483 ; return 0; }
9484 EOF
9485 if { (eval echo configure:9486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9486 rm -rf conftest*
9487 glibcpp_cv_func__frexpf_use=yes
9488 else
9489 echo "configure: failed program was:" >&5
9490 cat conftest.$ac_ext >&5
9491 rm -rf conftest*
9492 glibcpp_cv_func__frexpf_use=no
9493 fi
9494 rm -f conftest*
9495 ac_ext=c
9496 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9497 ac_cpp='$CPP $CPPFLAGS'
9498 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9499 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9500 cross_compiling=$ac_cv_prog_cc_cross
9501
9502
9503 fi
9504
9505 fi
9506 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
9507
9508 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
9509 for ac_func in _frexpf
9510 do
9511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9512 echo "configure:9513: checking for $ac_func" >&5
9513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9514 echo $ac_n "(cached) $ac_c" 1>&6
9515 else
9516 cat > conftest.$ac_ext <<EOF
9517 #line 9518 "configure"
9518 #include "confdefs.h"
9519 /* System header to define __stub macros and hopefully few prototypes,
9520 which can conflict with char $ac_func(); below. */
9521 #include <assert.h>
9522 /* Override any gcc2 internal prototype to avoid an error. */
9523 /* We use char because int might match the return type of a gcc2
9524 builtin and then its argument prototype would still apply. */
9525 char $ac_func();
9526
9527 int main() {
9528
9529 /* The GNU C library defines this for functions which it implements
9530 to always fail with ENOSYS. Some functions are actually named
9531 something starting with __ and the normal name is an alias. */
9532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9533 choke me
9534 #else
9535 $ac_func();
9536 #endif
9537
9538 ; return 0; }
9539 EOF
9540 if { (eval echo configure:9541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9541 rm -rf conftest*
9542 eval "ac_cv_func_$ac_func=yes"
9543 else
9544 echo "configure: failed program was:" >&5
9545 cat conftest.$ac_ext >&5
9546 rm -rf conftest*
9547 eval "ac_cv_func_$ac_func=no"
9548 fi
9549 rm -f conftest*
9550 fi
9551
9552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9553 echo "$ac_t""yes" 1>&6
9554 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9555 cat >> confdefs.h <<EOF
9556 #define $ac_tr_func 1
9557 EOF
9558
9559 else
9560 echo "$ac_t""no" 1>&6
9561 fi
9562 done
9563
9564 fi
9565 fi
9566
9567
9568
9569 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
9570 echo "configure:9571: checking for hypotf declaration" >&5
9571 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
9572 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
9573 echo $ac_n "(cached) $ac_c" 1>&6
9574 else
9575
9576
9577 ac_ext=C
9578 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9579 ac_cpp='$CXXCPP $CPPFLAGS'
9580 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9581 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9582 cross_compiling=$ac_cv_prog_cxx_cross
9583
9584 cat > conftest.$ac_ext <<EOF
9585 #line 9586 "configure"
9586 #include "confdefs.h"
9587 #include <math.h>
9588 int main() {
9589 hypotf(0, 0);
9590 ; return 0; }
9591 EOF
9592 if { (eval echo configure:9593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9593 rm -rf conftest*
9594 glibcpp_cv_func_hypotf_use=yes
9595 else
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9598 rm -rf conftest*
9599 glibcpp_cv_func_hypotf_use=no
9600 fi
9601 rm -f conftest*
9602 ac_ext=c
9603 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9604 ac_cpp='$CPP $CPPFLAGS'
9605 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9606 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9607 cross_compiling=$ac_cv_prog_cc_cross
9608
9609
9610 fi
9611
9612 fi
9613 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
9614
9615 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
9616 for ac_func in hypotf
9617 do
9618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9619 echo "configure:9620: checking for $ac_func" >&5
9620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9621 echo $ac_n "(cached) $ac_c" 1>&6
9622 else
9623 cat > conftest.$ac_ext <<EOF
9624 #line 9625 "configure"
9625 #include "confdefs.h"
9626 /* System header to define __stub macros and hopefully few prototypes,
9627 which can conflict with char $ac_func(); below. */
9628 #include <assert.h>
9629 /* Override any gcc2 internal prototype to avoid an error. */
9630 /* We use char because int might match the return type of a gcc2
9631 builtin and then its argument prototype would still apply. */
9632 char $ac_func();
9633
9634 int main() {
9635
9636 /* The GNU C library defines this for functions which it implements
9637 to always fail with ENOSYS. Some functions are actually named
9638 something starting with __ and the normal name is an alias. */
9639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9640 choke me
9641 #else
9642 $ac_func();
9643 #endif
9644
9645 ; return 0; }
9646 EOF
9647 if { (eval echo configure:9648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9648 rm -rf conftest*
9649 eval "ac_cv_func_$ac_func=yes"
9650 else
9651 echo "configure: failed program was:" >&5
9652 cat conftest.$ac_ext >&5
9653 rm -rf conftest*
9654 eval "ac_cv_func_$ac_func=no"
9655 fi
9656 rm -f conftest*
9657 fi
9658
9659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9660 echo "$ac_t""yes" 1>&6
9661 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9662 cat >> confdefs.h <<EOF
9663 #define $ac_tr_func 1
9664 EOF
9665
9666 else
9667 echo "$ac_t""no" 1>&6
9668 fi
9669 done
9670
9671 else
9672
9673 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
9674 echo "configure:9675: checking for _hypotf declaration" >&5
9675 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
9676 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
9677 echo $ac_n "(cached) $ac_c" 1>&6
9678 else
9679
9680
9681 ac_ext=C
9682 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9683 ac_cpp='$CXXCPP $CPPFLAGS'
9684 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9685 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9686 cross_compiling=$ac_cv_prog_cxx_cross
9687
9688 cat > conftest.$ac_ext <<EOF
9689 #line 9690 "configure"
9690 #include "confdefs.h"
9691 #include <math.h>
9692 int main() {
9693 _hypotf(0, 0);
9694 ; return 0; }
9695 EOF
9696 if { (eval echo configure:9697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9697 rm -rf conftest*
9698 glibcpp_cv_func__hypotf_use=yes
9699 else
9700 echo "configure: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
9702 rm -rf conftest*
9703 glibcpp_cv_func__hypotf_use=no
9704 fi
9705 rm -f conftest*
9706 ac_ext=c
9707 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9708 ac_cpp='$CPP $CPPFLAGS'
9709 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9710 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9711 cross_compiling=$ac_cv_prog_cc_cross
9712
9713
9714 fi
9715
9716 fi
9717 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
9718
9719 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
9720 for ac_func in _hypotf
9721 do
9722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9723 echo "configure:9724: checking for $ac_func" >&5
9724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9725 echo $ac_n "(cached) $ac_c" 1>&6
9726 else
9727 cat > conftest.$ac_ext <<EOF
9728 #line 9729 "configure"
9729 #include "confdefs.h"
9730 /* System header to define __stub macros and hopefully few prototypes,
9731 which can conflict with char $ac_func(); below. */
9732 #include <assert.h>
9733 /* Override any gcc2 internal prototype to avoid an error. */
9734 /* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9736 char $ac_func();
9737
9738 int main() {
9739
9740 /* The GNU C library defines this for functions which it implements
9741 to always fail with ENOSYS. Some functions are actually named
9742 something starting with __ and the normal name is an alias. */
9743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9744 choke me
9745 #else
9746 $ac_func();
9747 #endif
9748
9749 ; return 0; }
9750 EOF
9751 if { (eval echo configure:9752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9752 rm -rf conftest*
9753 eval "ac_cv_func_$ac_func=yes"
9754 else
9755 echo "configure: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9757 rm -rf conftest*
9758 eval "ac_cv_func_$ac_func=no"
9759 fi
9760 rm -f conftest*
9761 fi
9762
9763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9764 echo "$ac_t""yes" 1>&6
9765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9766 cat >> confdefs.h <<EOF
9767 #define $ac_tr_func 1
9768 EOF
9769
9770 else
9771 echo "$ac_t""no" 1>&6
9772 fi
9773 done
9774
9775 fi
9776 fi
9777
9778
9779
9780 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
9781 echo "configure:9782: checking for ldexpf declaration" >&5
9782 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
9783 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
9784 echo $ac_n "(cached) $ac_c" 1>&6
9785 else
9786
9787
9788 ac_ext=C
9789 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9790 ac_cpp='$CXXCPP $CPPFLAGS'
9791 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9792 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9793 cross_compiling=$ac_cv_prog_cxx_cross
9794
9795 cat > conftest.$ac_ext <<EOF
9796 #line 9797 "configure"
9797 #include "confdefs.h"
9798 #include <math.h>
9799 int main() {
9800 ldexpf(0, 0);
9801 ; return 0; }
9802 EOF
9803 if { (eval echo configure:9804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9804 rm -rf conftest*
9805 glibcpp_cv_func_ldexpf_use=yes
9806 else
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9809 rm -rf conftest*
9810 glibcpp_cv_func_ldexpf_use=no
9811 fi
9812 rm -f conftest*
9813 ac_ext=c
9814 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9815 ac_cpp='$CPP $CPPFLAGS'
9816 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9817 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9818 cross_compiling=$ac_cv_prog_cc_cross
9819
9820
9821 fi
9822
9823 fi
9824 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
9825
9826 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
9827 for ac_func in ldexpf
9828 do
9829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9830 echo "configure:9831: checking for $ac_func" >&5
9831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9832 echo $ac_n "(cached) $ac_c" 1>&6
9833 else
9834 cat > conftest.$ac_ext <<EOF
9835 #line 9836 "configure"
9836 #include "confdefs.h"
9837 /* System header to define __stub macros and hopefully few prototypes,
9838 which can conflict with char $ac_func(); below. */
9839 #include <assert.h>
9840 /* Override any gcc2 internal prototype to avoid an error. */
9841 /* We use char because int might match the return type of a gcc2
9842 builtin and then its argument prototype would still apply. */
9843 char $ac_func();
9844
9845 int main() {
9846
9847 /* The GNU C library defines this for functions which it implements
9848 to always fail with ENOSYS. Some functions are actually named
9849 something starting with __ and the normal name is an alias. */
9850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9851 choke me
9852 #else
9853 $ac_func();
9854 #endif
9855
9856 ; return 0; }
9857 EOF
9858 if { (eval echo configure:9859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9859 rm -rf conftest*
9860 eval "ac_cv_func_$ac_func=yes"
9861 else
9862 echo "configure: failed program was:" >&5
9863 cat conftest.$ac_ext >&5
9864 rm -rf conftest*
9865 eval "ac_cv_func_$ac_func=no"
9866 fi
9867 rm -f conftest*
9868 fi
9869
9870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9871 echo "$ac_t""yes" 1>&6
9872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9873 cat >> confdefs.h <<EOF
9874 #define $ac_tr_func 1
9875 EOF
9876
9877 else
9878 echo "$ac_t""no" 1>&6
9879 fi
9880 done
9881
9882 else
9883
9884 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
9885 echo "configure:9886: checking for _ldexpf declaration" >&5
9886 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
9887 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
9888 echo $ac_n "(cached) $ac_c" 1>&6
9889 else
9890
9891
9892 ac_ext=C
9893 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9894 ac_cpp='$CXXCPP $CPPFLAGS'
9895 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9896 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9897 cross_compiling=$ac_cv_prog_cxx_cross
9898
9899 cat > conftest.$ac_ext <<EOF
9900 #line 9901 "configure"
9901 #include "confdefs.h"
9902 #include <math.h>
9903 int main() {
9904 _ldexpf(0, 0);
9905 ; return 0; }
9906 EOF
9907 if { (eval echo configure:9908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9908 rm -rf conftest*
9909 glibcpp_cv_func__ldexpf_use=yes
9910 else
9911 echo "configure: failed program was:" >&5
9912 cat conftest.$ac_ext >&5
9913 rm -rf conftest*
9914 glibcpp_cv_func__ldexpf_use=no
9915 fi
9916 rm -f conftest*
9917 ac_ext=c
9918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9919 ac_cpp='$CPP $CPPFLAGS'
9920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9922 cross_compiling=$ac_cv_prog_cc_cross
9923
9924
9925 fi
9926
9927 fi
9928 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
9929
9930 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
9931 for ac_func in _ldexpf
9932 do
9933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9934 echo "configure:9935: checking for $ac_func" >&5
9935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9936 echo $ac_n "(cached) $ac_c" 1>&6
9937 else
9938 cat > conftest.$ac_ext <<EOF
9939 #line 9940 "configure"
9940 #include "confdefs.h"
9941 /* System header to define __stub macros and hopefully few prototypes,
9942 which can conflict with char $ac_func(); below. */
9943 #include <assert.h>
9944 /* Override any gcc2 internal prototype to avoid an error. */
9945 /* We use char because int might match the return type of a gcc2
9946 builtin and then its argument prototype would still apply. */
9947 char $ac_func();
9948
9949 int main() {
9950
9951 /* The GNU C library defines this for functions which it implements
9952 to always fail with ENOSYS. Some functions are actually named
9953 something starting with __ and the normal name is an alias. */
9954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9955 choke me
9956 #else
9957 $ac_func();
9958 #endif
9959
9960 ; return 0; }
9961 EOF
9962 if { (eval echo configure:9963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9963 rm -rf conftest*
9964 eval "ac_cv_func_$ac_func=yes"
9965 else
9966 echo "configure: failed program was:" >&5
9967 cat conftest.$ac_ext >&5
9968 rm -rf conftest*
9969 eval "ac_cv_func_$ac_func=no"
9970 fi
9971 rm -f conftest*
9972 fi
9973
9974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9975 echo "$ac_t""yes" 1>&6
9976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9977 cat >> confdefs.h <<EOF
9978 #define $ac_tr_func 1
9979 EOF
9980
9981 else
9982 echo "$ac_t""no" 1>&6
9983 fi
9984 done
9985
9986 fi
9987 fi
9988
9989
9990
9991 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
9992 echo "configure:9993: checking for logf declaration" >&5
9993 if test x${glibcpp_cv_func_logf_use+set} != xset; then
9994 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
9995 echo $ac_n "(cached) $ac_c" 1>&6
9996 else
9997
9998
9999 ac_ext=C
10000 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10001 ac_cpp='$CXXCPP $CPPFLAGS'
10002 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10003 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10004 cross_compiling=$ac_cv_prog_cxx_cross
10005
10006 cat > conftest.$ac_ext <<EOF
10007 #line 10008 "configure"
10008 #include "confdefs.h"
10009 #include <math.h>
10010 #ifdef HAVE_IEEEFP_H
10011 #include <ieeefp.h>
10012 #endif
10013
10014 int main() {
10015 logf(0);
10016 ; return 0; }
10017 EOF
10018 if { (eval echo configure:10019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10019 rm -rf conftest*
10020 glibcpp_cv_func_logf_use=yes
10021 else
10022 echo "configure: failed program was:" >&5
10023 cat conftest.$ac_ext >&5
10024 rm -rf conftest*
10025 glibcpp_cv_func_logf_use=no
10026 fi
10027 rm -f conftest*
10028 ac_ext=c
10029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10030 ac_cpp='$CPP $CPPFLAGS'
10031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10033 cross_compiling=$ac_cv_prog_cc_cross
10034
10035
10036 fi
10037
10038 fi
10039 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
10040
10041 if test x$glibcpp_cv_func_logf_use = x"yes"; then
10042 for ac_func in logf
10043 do
10044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10045 echo "configure:10046: checking for $ac_func" >&5
10046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10047 echo $ac_n "(cached) $ac_c" 1>&6
10048 else
10049 cat > conftest.$ac_ext <<EOF
10050 #line 10051 "configure"
10051 #include "confdefs.h"
10052 /* System header to define __stub macros and hopefully few prototypes,
10053 which can conflict with char $ac_func(); below. */
10054 #include <assert.h>
10055 /* Override any gcc2 internal prototype to avoid an error. */
10056 /* We use char because int might match the return type of a gcc2
10057 builtin and then its argument prototype would still apply. */
10058 char $ac_func();
10059
10060 int main() {
10061
10062 /* The GNU C library defines this for functions which it implements
10063 to always fail with ENOSYS. Some functions are actually named
10064 something starting with __ and the normal name is an alias. */
10065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10066 choke me
10067 #else
10068 $ac_func();
10069 #endif
10070
10071 ; return 0; }
10072 EOF
10073 if { (eval echo configure:10074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10074 rm -rf conftest*
10075 eval "ac_cv_func_$ac_func=yes"
10076 else
10077 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10079 rm -rf conftest*
10080 eval "ac_cv_func_$ac_func=no"
10081 fi
10082 rm -f conftest*
10083 fi
10084
10085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10086 echo "$ac_t""yes" 1>&6
10087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10088 cat >> confdefs.h <<EOF
10089 #define $ac_tr_func 1
10090 EOF
10091
10092 else
10093 echo "$ac_t""no" 1>&6
10094 fi
10095 done
10096
10097 else
10098
10099 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
10100 echo "configure:10101: checking for _logf declaration" >&5
10101 if test x${glibcpp_cv_func__logf_use+set} != xset; then
10102 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
10103 echo $ac_n "(cached) $ac_c" 1>&6
10104 else
10105
10106
10107 ac_ext=C
10108 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10109 ac_cpp='$CXXCPP $CPPFLAGS'
10110 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10111 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10112 cross_compiling=$ac_cv_prog_cxx_cross
10113
10114 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10117 #include <math.h>
10118 #ifdef HAVE_IEEEFP_H
10119 #include <ieeefp.h>
10120 #endif
10121
10122 int main() {
10123 _logf(0);
10124 ; return 0; }
10125 EOF
10126 if { (eval echo configure:10127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10127 rm -rf conftest*
10128 glibcpp_cv_func__logf_use=yes
10129 else
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10132 rm -rf conftest*
10133 glibcpp_cv_func__logf_use=no
10134 fi
10135 rm -f conftest*
10136 ac_ext=c
10137 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10138 ac_cpp='$CPP $CPPFLAGS'
10139 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10140 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10141 cross_compiling=$ac_cv_prog_cc_cross
10142
10143
10144 fi
10145
10146 fi
10147 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
10148
10149 if test x$glibcpp_cv_func__logf_use = x"yes"; then
10150 for ac_func in _logf
10151 do
10152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10153 echo "configure:10154: checking for $ac_func" >&5
10154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10155 echo $ac_n "(cached) $ac_c" 1>&6
10156 else
10157 cat > conftest.$ac_ext <<EOF
10158 #line 10159 "configure"
10159 #include "confdefs.h"
10160 /* System header to define __stub macros and hopefully few prototypes,
10161 which can conflict with char $ac_func(); below. */
10162 #include <assert.h>
10163 /* Override any gcc2 internal prototype to avoid an error. */
10164 /* We use char because int might match the return type of a gcc2
10165 builtin and then its argument prototype would still apply. */
10166 char $ac_func();
10167
10168 int main() {
10169
10170 /* The GNU C library defines this for functions which it implements
10171 to always fail with ENOSYS. Some functions are actually named
10172 something starting with __ and the normal name is an alias. */
10173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10174 choke me
10175 #else
10176 $ac_func();
10177 #endif
10178
10179 ; return 0; }
10180 EOF
10181 if { (eval echo configure:10182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10182 rm -rf conftest*
10183 eval "ac_cv_func_$ac_func=yes"
10184 else
10185 echo "configure: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 rm -rf conftest*
10188 eval "ac_cv_func_$ac_func=no"
10189 fi
10190 rm -f conftest*
10191 fi
10192
10193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10194 echo "$ac_t""yes" 1>&6
10195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10196 cat >> confdefs.h <<EOF
10197 #define $ac_tr_func 1
10198 EOF
10199
10200 else
10201 echo "$ac_t""no" 1>&6
10202 fi
10203 done
10204
10205 fi
10206 fi
10207
10208
10209
10210 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
10211 echo "configure:10212: checking for log10f declaration" >&5
10212 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
10213 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
10214 echo $ac_n "(cached) $ac_c" 1>&6
10215 else
10216
10217
10218 ac_ext=C
10219 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10220 ac_cpp='$CXXCPP $CPPFLAGS'
10221 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10222 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10223 cross_compiling=$ac_cv_prog_cxx_cross
10224
10225 cat > conftest.$ac_ext <<EOF
10226 #line 10227 "configure"
10227 #include "confdefs.h"
10228 #include <math.h>
10229 #ifdef HAVE_IEEEFP_H
10230 #include <ieeefp.h>
10231 #endif
10232
10233 int main() {
10234 log10f(0);
10235 ; return 0; }
10236 EOF
10237 if { (eval echo configure:10238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10238 rm -rf conftest*
10239 glibcpp_cv_func_log10f_use=yes
10240 else
10241 echo "configure: failed program was:" >&5
10242 cat conftest.$ac_ext >&5
10243 rm -rf conftest*
10244 glibcpp_cv_func_log10f_use=no
10245 fi
10246 rm -f conftest*
10247 ac_ext=c
10248 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10249 ac_cpp='$CPP $CPPFLAGS'
10250 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10251 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10252 cross_compiling=$ac_cv_prog_cc_cross
10253
10254
10255 fi
10256
10257 fi
10258 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
10259
10260 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
10261 for ac_func in log10f
10262 do
10263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10264 echo "configure:10265: checking for $ac_func" >&5
10265 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10266 echo $ac_n "(cached) $ac_c" 1>&6
10267 else
10268 cat > conftest.$ac_ext <<EOF
10269 #line 10270 "configure"
10270 #include "confdefs.h"
10271 /* System header to define __stub macros and hopefully few prototypes,
10272 which can conflict with char $ac_func(); below. */
10273 #include <assert.h>
10274 /* Override any gcc2 internal prototype to avoid an error. */
10275 /* We use char because int might match the return type of a gcc2
10276 builtin and then its argument prototype would still apply. */
10277 char $ac_func();
10278
10279 int main() {
10280
10281 /* The GNU C library defines this for functions which it implements
10282 to always fail with ENOSYS. Some functions are actually named
10283 something starting with __ and the normal name is an alias. */
10284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10285 choke me
10286 #else
10287 $ac_func();
10288 #endif
10289
10290 ; return 0; }
10291 EOF
10292 if { (eval echo configure:10293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10293 rm -rf conftest*
10294 eval "ac_cv_func_$ac_func=yes"
10295 else
10296 echo "configure: failed program was:" >&5
10297 cat conftest.$ac_ext >&5
10298 rm -rf conftest*
10299 eval "ac_cv_func_$ac_func=no"
10300 fi
10301 rm -f conftest*
10302 fi
10303
10304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10305 echo "$ac_t""yes" 1>&6
10306 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10307 cat >> confdefs.h <<EOF
10308 #define $ac_tr_func 1
10309 EOF
10310
10311 else
10312 echo "$ac_t""no" 1>&6
10313 fi
10314 done
10315
10316 else
10317
10318 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
10319 echo "configure:10320: checking for _log10f declaration" >&5
10320 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
10321 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10323 else
10324
10325
10326 ac_ext=C
10327 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10328 ac_cpp='$CXXCPP $CPPFLAGS'
10329 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10330 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10331 cross_compiling=$ac_cv_prog_cxx_cross
10332
10333 cat > conftest.$ac_ext <<EOF
10334 #line 10335 "configure"
10335 #include "confdefs.h"
10336 #include <math.h>
10337 #ifdef HAVE_IEEEFP_H
10338 #include <ieeefp.h>
10339 #endif
10340
10341 int main() {
10342 _log10f(0);
10343 ; return 0; }
10344 EOF
10345 if { (eval echo configure:10346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10346 rm -rf conftest*
10347 glibcpp_cv_func__log10f_use=yes
10348 else
10349 echo "configure: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10351 rm -rf conftest*
10352 glibcpp_cv_func__log10f_use=no
10353 fi
10354 rm -f conftest*
10355 ac_ext=c
10356 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10357 ac_cpp='$CPP $CPPFLAGS'
10358 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10359 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10360 cross_compiling=$ac_cv_prog_cc_cross
10361
10362
10363 fi
10364
10365 fi
10366 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
10367
10368 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
10369 for ac_func in _log10f
10370 do
10371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10372 echo "configure:10373: checking for $ac_func" >&5
10373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10374 echo $ac_n "(cached) $ac_c" 1>&6
10375 else
10376 cat > conftest.$ac_ext <<EOF
10377 #line 10378 "configure"
10378 #include "confdefs.h"
10379 /* System header to define __stub macros and hopefully few prototypes,
10380 which can conflict with char $ac_func(); below. */
10381 #include <assert.h>
10382 /* Override any gcc2 internal prototype to avoid an error. */
10383 /* We use char because int might match the return type of a gcc2
10384 builtin and then its argument prototype would still apply. */
10385 char $ac_func();
10386
10387 int main() {
10388
10389 /* The GNU C library defines this for functions which it implements
10390 to always fail with ENOSYS. Some functions are actually named
10391 something starting with __ and the normal name is an alias. */
10392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10393 choke me
10394 #else
10395 $ac_func();
10396 #endif
10397
10398 ; return 0; }
10399 EOF
10400 if { (eval echo configure:10401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10401 rm -rf conftest*
10402 eval "ac_cv_func_$ac_func=yes"
10403 else
10404 echo "configure: failed program was:" >&5
10405 cat conftest.$ac_ext >&5
10406 rm -rf conftest*
10407 eval "ac_cv_func_$ac_func=no"
10408 fi
10409 rm -f conftest*
10410 fi
10411
10412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10413 echo "$ac_t""yes" 1>&6
10414 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10415 cat >> confdefs.h <<EOF
10416 #define $ac_tr_func 1
10417 EOF
10418
10419 else
10420 echo "$ac_t""no" 1>&6
10421 fi
10422 done
10423
10424 fi
10425 fi
10426
10427
10428
10429 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
10430 echo "configure:10431: checking for modff declaration" >&5
10431 if test x${glibcpp_cv_func_modff_use+set} != xset; then
10432 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
10433 echo $ac_n "(cached) $ac_c" 1>&6
10434 else
10435
10436
10437 ac_ext=C
10438 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10439 ac_cpp='$CXXCPP $CPPFLAGS'
10440 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10441 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10442 cross_compiling=$ac_cv_prog_cxx_cross
10443
10444 cat > conftest.$ac_ext <<EOF
10445 #line 10446 "configure"
10446 #include "confdefs.h"
10447 #include <math.h>
10448 int main() {
10449 modff(0, 0);
10450 ; return 0; }
10451 EOF
10452 if { (eval echo configure:10453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10453 rm -rf conftest*
10454 glibcpp_cv_func_modff_use=yes
10455 else
10456 echo "configure: failed program was:" >&5
10457 cat conftest.$ac_ext >&5
10458 rm -rf conftest*
10459 glibcpp_cv_func_modff_use=no
10460 fi
10461 rm -f conftest*
10462 ac_ext=c
10463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10464 ac_cpp='$CPP $CPPFLAGS'
10465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10467 cross_compiling=$ac_cv_prog_cc_cross
10468
10469
10470 fi
10471
10472 fi
10473 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
10474
10475 if test x$glibcpp_cv_func_modff_use = x"yes"; then
10476 for ac_func in modff
10477 do
10478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10479 echo "configure:10480: checking for $ac_func" >&5
10480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10481 echo $ac_n "(cached) $ac_c" 1>&6
10482 else
10483 cat > conftest.$ac_ext <<EOF
10484 #line 10485 "configure"
10485 #include "confdefs.h"
10486 /* System header to define __stub macros and hopefully few prototypes,
10487 which can conflict with char $ac_func(); below. */
10488 #include <assert.h>
10489 /* Override any gcc2 internal prototype to avoid an error. */
10490 /* We use char because int might match the return type of a gcc2
10491 builtin and then its argument prototype would still apply. */
10492 char $ac_func();
10493
10494 int main() {
10495
10496 /* The GNU C library defines this for functions which it implements
10497 to always fail with ENOSYS. Some functions are actually named
10498 something starting with __ and the normal name is an alias. */
10499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10500 choke me
10501 #else
10502 $ac_func();
10503 #endif
10504
10505 ; return 0; }
10506 EOF
10507 if { (eval echo configure:10508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10508 rm -rf conftest*
10509 eval "ac_cv_func_$ac_func=yes"
10510 else
10511 echo "configure: failed program was:" >&5
10512 cat conftest.$ac_ext >&5
10513 rm -rf conftest*
10514 eval "ac_cv_func_$ac_func=no"
10515 fi
10516 rm -f conftest*
10517 fi
10518
10519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10520 echo "$ac_t""yes" 1>&6
10521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10522 cat >> confdefs.h <<EOF
10523 #define $ac_tr_func 1
10524 EOF
10525
10526 else
10527 echo "$ac_t""no" 1>&6
10528 fi
10529 done
10530
10531 else
10532
10533 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
10534 echo "configure:10535: checking for _modff declaration" >&5
10535 if test x${glibcpp_cv_func__modff_use+set} != xset; then
10536 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
10537 echo $ac_n "(cached) $ac_c" 1>&6
10538 else
10539
10540
10541 ac_ext=C
10542 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10543 ac_cpp='$CXXCPP $CPPFLAGS'
10544 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10545 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10546 cross_compiling=$ac_cv_prog_cxx_cross
10547
10548 cat > conftest.$ac_ext <<EOF
10549 #line 10550 "configure"
10550 #include "confdefs.h"
10551 #include <math.h>
10552 int main() {
10553 _modff(0, 0);
10554 ; return 0; }
10555 EOF
10556 if { (eval echo configure:10557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10557 rm -rf conftest*
10558 glibcpp_cv_func__modff_use=yes
10559 else
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 rm -rf conftest*
10563 glibcpp_cv_func__modff_use=no
10564 fi
10565 rm -f conftest*
10566 ac_ext=c
10567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10568 ac_cpp='$CPP $CPPFLAGS'
10569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10571 cross_compiling=$ac_cv_prog_cc_cross
10572
10573
10574 fi
10575
10576 fi
10577 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
10578
10579 if test x$glibcpp_cv_func__modff_use = x"yes"; then
10580 for ac_func in _modff
10581 do
10582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10583 echo "configure:10584: checking for $ac_func" >&5
10584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10585 echo $ac_n "(cached) $ac_c" 1>&6
10586 else
10587 cat > conftest.$ac_ext <<EOF
10588 #line 10589 "configure"
10589 #include "confdefs.h"
10590 /* System header to define __stub macros and hopefully few prototypes,
10591 which can conflict with char $ac_func(); below. */
10592 #include <assert.h>
10593 /* Override any gcc2 internal prototype to avoid an error. */
10594 /* We use char because int might match the return type of a gcc2
10595 builtin and then its argument prototype would still apply. */
10596 char $ac_func();
10597
10598 int main() {
10599
10600 /* The GNU C library defines this for functions which it implements
10601 to always fail with ENOSYS. Some functions are actually named
10602 something starting with __ and the normal name is an alias. */
10603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10604 choke me
10605 #else
10606 $ac_func();
10607 #endif
10608
10609 ; return 0; }
10610 EOF
10611 if { (eval echo configure:10612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10612 rm -rf conftest*
10613 eval "ac_cv_func_$ac_func=yes"
10614 else
10615 echo "configure: failed program was:" >&5
10616 cat conftest.$ac_ext >&5
10617 rm -rf conftest*
10618 eval "ac_cv_func_$ac_func=no"
10619 fi
10620 rm -f conftest*
10621 fi
10622
10623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10624 echo "$ac_t""yes" 1>&6
10625 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10626 cat >> confdefs.h <<EOF
10627 #define $ac_tr_func 1
10628 EOF
10629
10630 else
10631 echo "$ac_t""no" 1>&6
10632 fi
10633 done
10634
10635 fi
10636 fi
10637
10638
10639
10640 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
10641 echo "configure:10642: checking for powf declaration" >&5
10642 if test x${glibcpp_cv_func_powf_use+set} != xset; then
10643 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
10644 echo $ac_n "(cached) $ac_c" 1>&6
10645 else
10646
10647
10648 ac_ext=C
10649 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10650 ac_cpp='$CXXCPP $CPPFLAGS'
10651 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10652 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10653 cross_compiling=$ac_cv_prog_cxx_cross
10654
10655 cat > conftest.$ac_ext <<EOF
10656 #line 10657 "configure"
10657 #include "confdefs.h"
10658 #include <math.h>
10659 int main() {
10660 powf(0, 0);
10661 ; return 0; }
10662 EOF
10663 if { (eval echo configure:10664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10664 rm -rf conftest*
10665 glibcpp_cv_func_powf_use=yes
10666 else
10667 echo "configure: failed program was:" >&5
10668 cat conftest.$ac_ext >&5
10669 rm -rf conftest*
10670 glibcpp_cv_func_powf_use=no
10671 fi
10672 rm -f conftest*
10673 ac_ext=c
10674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10675 ac_cpp='$CPP $CPPFLAGS'
10676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10678 cross_compiling=$ac_cv_prog_cc_cross
10679
10680
10681 fi
10682
10683 fi
10684 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
10685
10686 if test x$glibcpp_cv_func_powf_use = x"yes"; then
10687 for ac_func in powf
10688 do
10689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10690 echo "configure:10691: checking for $ac_func" >&5
10691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10692 echo $ac_n "(cached) $ac_c" 1>&6
10693 else
10694 cat > conftest.$ac_ext <<EOF
10695 #line 10696 "configure"
10696 #include "confdefs.h"
10697 /* System header to define __stub macros and hopefully few prototypes,
10698 which can conflict with char $ac_func(); below. */
10699 #include <assert.h>
10700 /* Override any gcc2 internal prototype to avoid an error. */
10701 /* We use char because int might match the return type of a gcc2
10702 builtin and then its argument prototype would still apply. */
10703 char $ac_func();
10704
10705 int main() {
10706
10707 /* The GNU C library defines this for functions which it implements
10708 to always fail with ENOSYS. Some functions are actually named
10709 something starting with __ and the normal name is an alias. */
10710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10711 choke me
10712 #else
10713 $ac_func();
10714 #endif
10715
10716 ; return 0; }
10717 EOF
10718 if { (eval echo configure:10719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10719 rm -rf conftest*
10720 eval "ac_cv_func_$ac_func=yes"
10721 else
10722 echo "configure: failed program was:" >&5
10723 cat conftest.$ac_ext >&5
10724 rm -rf conftest*
10725 eval "ac_cv_func_$ac_func=no"
10726 fi
10727 rm -f conftest*
10728 fi
10729
10730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10731 echo "$ac_t""yes" 1>&6
10732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10733 cat >> confdefs.h <<EOF
10734 #define $ac_tr_func 1
10735 EOF
10736
10737 else
10738 echo "$ac_t""no" 1>&6
10739 fi
10740 done
10741
10742 else
10743
10744 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
10745 echo "configure:10746: checking for _powf declaration" >&5
10746 if test x${glibcpp_cv_func__powf_use+set} != xset; then
10747 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
10748 echo $ac_n "(cached) $ac_c" 1>&6
10749 else
10750
10751
10752 ac_ext=C
10753 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10754 ac_cpp='$CXXCPP $CPPFLAGS'
10755 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10756 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10757 cross_compiling=$ac_cv_prog_cxx_cross
10758
10759 cat > conftest.$ac_ext <<EOF
10760 #line 10761 "configure"
10761 #include "confdefs.h"
10762 #include <math.h>
10763 int main() {
10764 _powf(0, 0);
10765 ; return 0; }
10766 EOF
10767 if { (eval echo configure:10768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10768 rm -rf conftest*
10769 glibcpp_cv_func__powf_use=yes
10770 else
10771 echo "configure: failed program was:" >&5
10772 cat conftest.$ac_ext >&5
10773 rm -rf conftest*
10774 glibcpp_cv_func__powf_use=no
10775 fi
10776 rm -f conftest*
10777 ac_ext=c
10778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10779 ac_cpp='$CPP $CPPFLAGS'
10780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10782 cross_compiling=$ac_cv_prog_cc_cross
10783
10784
10785 fi
10786
10787 fi
10788 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
10789
10790 if test x$glibcpp_cv_func__powf_use = x"yes"; then
10791 for ac_func in _powf
10792 do
10793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10794 echo "configure:10795: checking for $ac_func" >&5
10795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10797 else
10798 cat > conftest.$ac_ext <<EOF
10799 #line 10800 "configure"
10800 #include "confdefs.h"
10801 /* System header to define __stub macros and hopefully few prototypes,
10802 which can conflict with char $ac_func(); below. */
10803 #include <assert.h>
10804 /* Override any gcc2 internal prototype to avoid an error. */
10805 /* We use char because int might match the return type of a gcc2
10806 builtin and then its argument prototype would still apply. */
10807 char $ac_func();
10808
10809 int main() {
10810
10811 /* The GNU C library defines this for functions which it implements
10812 to always fail with ENOSYS. Some functions are actually named
10813 something starting with __ and the normal name is an alias. */
10814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10815 choke me
10816 #else
10817 $ac_func();
10818 #endif
10819
10820 ; return 0; }
10821 EOF
10822 if { (eval echo configure:10823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10823 rm -rf conftest*
10824 eval "ac_cv_func_$ac_func=yes"
10825 else
10826 echo "configure: failed program was:" >&5
10827 cat conftest.$ac_ext >&5
10828 rm -rf conftest*
10829 eval "ac_cv_func_$ac_func=no"
10830 fi
10831 rm -f conftest*
10832 fi
10833
10834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10835 echo "$ac_t""yes" 1>&6
10836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10837 cat >> confdefs.h <<EOF
10838 #define $ac_tr_func 1
10839 EOF
10840
10841 else
10842 echo "$ac_t""no" 1>&6
10843 fi
10844 done
10845
10846 fi
10847 fi
10848
10849
10850
10851 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
10852 echo "configure:10853: checking for sqrtf declaration" >&5
10853 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
10854 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
10855 echo $ac_n "(cached) $ac_c" 1>&6
10856 else
10857
10858
10859 ac_ext=C
10860 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10861 ac_cpp='$CXXCPP $CPPFLAGS'
10862 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10863 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10864 cross_compiling=$ac_cv_prog_cxx_cross
10865
10866 cat > conftest.$ac_ext <<EOF
10867 #line 10868 "configure"
10868 #include "confdefs.h"
10869 #include <math.h>
10870 #ifdef HAVE_IEEEFP_H
10871 #include <ieeefp.h>
10872 #endif
10873
10874 int main() {
10875 sqrtf(0);
10876 ; return 0; }
10877 EOF
10878 if { (eval echo configure:10879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10879 rm -rf conftest*
10880 glibcpp_cv_func_sqrtf_use=yes
10881 else
10882 echo "configure: failed program was:" >&5
10883 cat conftest.$ac_ext >&5
10884 rm -rf conftest*
10885 glibcpp_cv_func_sqrtf_use=no
10886 fi
10887 rm -f conftest*
10888 ac_ext=c
10889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10890 ac_cpp='$CPP $CPPFLAGS'
10891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10893 cross_compiling=$ac_cv_prog_cc_cross
10894
10895
10896 fi
10897
10898 fi
10899 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
10900
10901 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
10902 for ac_func in sqrtf
10903 do
10904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10905 echo "configure:10906: checking for $ac_func" >&5
10906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10907 echo $ac_n "(cached) $ac_c" 1>&6
10908 else
10909 cat > conftest.$ac_ext <<EOF
10910 #line 10911 "configure"
10911 #include "confdefs.h"
10912 /* System header to define __stub macros and hopefully few prototypes,
10913 which can conflict with char $ac_func(); below. */
10914 #include <assert.h>
10915 /* Override any gcc2 internal prototype to avoid an error. */
10916 /* We use char because int might match the return type of a gcc2
10917 builtin and then its argument prototype would still apply. */
10918 char $ac_func();
10919
10920 int main() {
10921
10922 /* The GNU C library defines this for functions which it implements
10923 to always fail with ENOSYS. Some functions are actually named
10924 something starting with __ and the normal name is an alias. */
10925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10926 choke me
10927 #else
10928 $ac_func();
10929 #endif
10930
10931 ; return 0; }
10932 EOF
10933 if { (eval echo configure:10934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10934 rm -rf conftest*
10935 eval "ac_cv_func_$ac_func=yes"
10936 else
10937 echo "configure: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10939 rm -rf conftest*
10940 eval "ac_cv_func_$ac_func=no"
10941 fi
10942 rm -f conftest*
10943 fi
10944
10945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10946 echo "$ac_t""yes" 1>&6
10947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10948 cat >> confdefs.h <<EOF
10949 #define $ac_tr_func 1
10950 EOF
10951
10952 else
10953 echo "$ac_t""no" 1>&6
10954 fi
10955 done
10956
10957 else
10958
10959 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
10960 echo "configure:10961: checking for _sqrtf declaration" >&5
10961 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
10962 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
10963 echo $ac_n "(cached) $ac_c" 1>&6
10964 else
10965
10966
10967 ac_ext=C
10968 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10969 ac_cpp='$CXXCPP $CPPFLAGS'
10970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10972 cross_compiling=$ac_cv_prog_cxx_cross
10973
10974 cat > conftest.$ac_ext <<EOF
10975 #line 10976 "configure"
10976 #include "confdefs.h"
10977 #include <math.h>
10978 #ifdef HAVE_IEEEFP_H
10979 #include <ieeefp.h>
10980 #endif
10981
10982 int main() {
10983 _sqrtf(0);
10984 ; return 0; }
10985 EOF
10986 if { (eval echo configure:10987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10987 rm -rf conftest*
10988 glibcpp_cv_func__sqrtf_use=yes
10989 else
10990 echo "configure: failed program was:" >&5
10991 cat conftest.$ac_ext >&5
10992 rm -rf conftest*
10993 glibcpp_cv_func__sqrtf_use=no
10994 fi
10995 rm -f conftest*
10996 ac_ext=c
10997 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10998 ac_cpp='$CPP $CPPFLAGS'
10999 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11000 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11001 cross_compiling=$ac_cv_prog_cc_cross
11002
11003
11004 fi
11005
11006 fi
11007 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
11008
11009 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
11010 for ac_func in _sqrtf
11011 do
11012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11013 echo "configure:11014: checking for $ac_func" >&5
11014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11015 echo $ac_n "(cached) $ac_c" 1>&6
11016 else
11017 cat > conftest.$ac_ext <<EOF
11018 #line 11019 "configure"
11019 #include "confdefs.h"
11020 /* System header to define __stub macros and hopefully few prototypes,
11021 which can conflict with char $ac_func(); below. */
11022 #include <assert.h>
11023 /* Override any gcc2 internal prototype to avoid an error. */
11024 /* We use char because int might match the return type of a gcc2
11025 builtin and then its argument prototype would still apply. */
11026 char $ac_func();
11027
11028 int main() {
11029
11030 /* The GNU C library defines this for functions which it implements
11031 to always fail with ENOSYS. Some functions are actually named
11032 something starting with __ and the normal name is an alias. */
11033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11034 choke me
11035 #else
11036 $ac_func();
11037 #endif
11038
11039 ; return 0; }
11040 EOF
11041 if { (eval echo configure:11042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11042 rm -rf conftest*
11043 eval "ac_cv_func_$ac_func=yes"
11044 else
11045 echo "configure: failed program was:" >&5
11046 cat conftest.$ac_ext >&5
11047 rm -rf conftest*
11048 eval "ac_cv_func_$ac_func=no"
11049 fi
11050 rm -f conftest*
11051 fi
11052
11053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11054 echo "$ac_t""yes" 1>&6
11055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11056 cat >> confdefs.h <<EOF
11057 #define $ac_tr_func 1
11058 EOF
11059
11060 else
11061 echo "$ac_t""no" 1>&6
11062 fi
11063 done
11064
11065 fi
11066 fi
11067
11068
11069
11070 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
11071 echo "configure:11072: checking for sincosf declaration" >&5
11072 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
11073 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
11074 echo $ac_n "(cached) $ac_c" 1>&6
11075 else
11076
11077
11078 ac_ext=C
11079 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11080 ac_cpp='$CXXCPP $CPPFLAGS'
11081 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11082 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11083 cross_compiling=$ac_cv_prog_cxx_cross
11084
11085 cat > conftest.$ac_ext <<EOF
11086 #line 11087 "configure"
11087 #include "confdefs.h"
11088 #include <math.h>
11089 int main() {
11090 sincosf(0, 0, 0);
11091 ; return 0; }
11092 EOF
11093 if { (eval echo configure:11094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11094 rm -rf conftest*
11095 glibcpp_cv_func_sincosf_use=yes
11096 else
11097 echo "configure: failed program was:" >&5
11098 cat conftest.$ac_ext >&5
11099 rm -rf conftest*
11100 glibcpp_cv_func_sincosf_use=no
11101 fi
11102 rm -f conftest*
11103 ac_ext=c
11104 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11105 ac_cpp='$CPP $CPPFLAGS'
11106 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11107 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11108 cross_compiling=$ac_cv_prog_cc_cross
11109
11110
11111 fi
11112
11113 fi
11114 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
11115
11116 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
11117 for ac_func in sincosf
11118 do
11119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11120 echo "configure:11121: checking for $ac_func" >&5
11121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11122 echo $ac_n "(cached) $ac_c" 1>&6
11123 else
11124 cat > conftest.$ac_ext <<EOF
11125 #line 11126 "configure"
11126 #include "confdefs.h"
11127 /* System header to define __stub macros and hopefully few prototypes,
11128 which can conflict with char $ac_func(); below. */
11129 #include <assert.h>
11130 /* Override any gcc2 internal prototype to avoid an error. */
11131 /* We use char because int might match the return type of a gcc2
11132 builtin and then its argument prototype would still apply. */
11133 char $ac_func();
11134
11135 int main() {
11136
11137 /* The GNU C library defines this for functions which it implements
11138 to always fail with ENOSYS. Some functions are actually named
11139 something starting with __ and the normal name is an alias. */
11140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11141 choke me
11142 #else
11143 $ac_func();
11144 #endif
11145
11146 ; return 0; }
11147 EOF
11148 if { (eval echo configure:11149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11149 rm -rf conftest*
11150 eval "ac_cv_func_$ac_func=yes"
11151 else
11152 echo "configure: failed program was:" >&5
11153 cat conftest.$ac_ext >&5
11154 rm -rf conftest*
11155 eval "ac_cv_func_$ac_func=no"
11156 fi
11157 rm -f conftest*
11158 fi
11159
11160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11161 echo "$ac_t""yes" 1>&6
11162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11163 cat >> confdefs.h <<EOF
11164 #define $ac_tr_func 1
11165 EOF
11166
11167 else
11168 echo "$ac_t""no" 1>&6
11169 fi
11170 done
11171
11172 else
11173
11174 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
11175 echo "configure:11176: checking for _sincosf declaration" >&5
11176 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
11177 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
11178 echo $ac_n "(cached) $ac_c" 1>&6
11179 else
11180
11181
11182 ac_ext=C
11183 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11184 ac_cpp='$CXXCPP $CPPFLAGS'
11185 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11186 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11187 cross_compiling=$ac_cv_prog_cxx_cross
11188
11189 cat > conftest.$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11192 #include <math.h>
11193 int main() {
11194 _sincosf(0, 0, 0);
11195 ; return 0; }
11196 EOF
11197 if { (eval echo configure:11198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11198 rm -rf conftest*
11199 glibcpp_cv_func__sincosf_use=yes
11200 else
11201 echo "configure: failed program was:" >&5
11202 cat conftest.$ac_ext >&5
11203 rm -rf conftest*
11204 glibcpp_cv_func__sincosf_use=no
11205 fi
11206 rm -f conftest*
11207 ac_ext=c
11208 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11209 ac_cpp='$CPP $CPPFLAGS'
11210 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11211 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11212 cross_compiling=$ac_cv_prog_cc_cross
11213
11214
11215 fi
11216
11217 fi
11218 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
11219
11220 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
11221 for ac_func in _sincosf
11222 do
11223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11224 echo "configure:11225: checking for $ac_func" >&5
11225 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11226 echo $ac_n "(cached) $ac_c" 1>&6
11227 else
11228 cat > conftest.$ac_ext <<EOF
11229 #line 11230 "configure"
11230 #include "confdefs.h"
11231 /* System header to define __stub macros and hopefully few prototypes,
11232 which can conflict with char $ac_func(); below. */
11233 #include <assert.h>
11234 /* Override any gcc2 internal prototype to avoid an error. */
11235 /* We use char because int might match the return type of a gcc2
11236 builtin and then its argument prototype would still apply. */
11237 char $ac_func();
11238
11239 int main() {
11240
11241 /* The GNU C library defines this for functions which it implements
11242 to always fail with ENOSYS. Some functions are actually named
11243 something starting with __ and the normal name is an alias. */
11244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11245 choke me
11246 #else
11247 $ac_func();
11248 #endif
11249
11250 ; return 0; }
11251 EOF
11252 if { (eval echo configure:11253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11253 rm -rf conftest*
11254 eval "ac_cv_func_$ac_func=yes"
11255 else
11256 echo "configure: failed program was:" >&5
11257 cat conftest.$ac_ext >&5
11258 rm -rf conftest*
11259 eval "ac_cv_func_$ac_func=no"
11260 fi
11261 rm -f conftest*
11262 fi
11263
11264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11265 echo "$ac_t""yes" 1>&6
11266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11267 cat >> confdefs.h <<EOF
11268 #define $ac_tr_func 1
11269 EOF
11270
11271 else
11272 echo "$ac_t""no" 1>&6
11273 fi
11274 done
11275
11276 fi
11277 fi
11278
11279
11280
11281 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
11282 echo "configure:11283: checking for finitef declaration" >&5
11283 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
11284 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
11285 echo $ac_n "(cached) $ac_c" 1>&6
11286 else
11287
11288
11289 ac_ext=C
11290 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11291 ac_cpp='$CXXCPP $CPPFLAGS'
11292 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11293 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11294 cross_compiling=$ac_cv_prog_cxx_cross
11295
11296 cat > conftest.$ac_ext <<EOF
11297 #line 11298 "configure"
11298 #include "confdefs.h"
11299 #include <math.h>
11300 #ifdef HAVE_IEEEFP_H
11301 #include <ieeefp.h>
11302 #endif
11303
11304 int main() {
11305 finitef(0);
11306 ; return 0; }
11307 EOF
11308 if { (eval echo configure:11309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11309 rm -rf conftest*
11310 glibcpp_cv_func_finitef_use=yes
11311 else
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11314 rm -rf conftest*
11315 glibcpp_cv_func_finitef_use=no
11316 fi
11317 rm -f conftest*
11318 ac_ext=c
11319 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11320 ac_cpp='$CPP $CPPFLAGS'
11321 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11322 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11323 cross_compiling=$ac_cv_prog_cc_cross
11324
11325
11326 fi
11327
11328 fi
11329 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
11330
11331 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
11332 for ac_func in finitef
11333 do
11334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11335 echo "configure:11336: checking for $ac_func" >&5
11336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11337 echo $ac_n "(cached) $ac_c" 1>&6
11338 else
11339 cat > conftest.$ac_ext <<EOF
11340 #line 11341 "configure"
11341 #include "confdefs.h"
11342 /* System header to define __stub macros and hopefully few prototypes,
11343 which can conflict with char $ac_func(); below. */
11344 #include <assert.h>
11345 /* Override any gcc2 internal prototype to avoid an error. */
11346 /* We use char because int might match the return type of a gcc2
11347 builtin and then its argument prototype would still apply. */
11348 char $ac_func();
11349
11350 int main() {
11351
11352 /* The GNU C library defines this for functions which it implements
11353 to always fail with ENOSYS. Some functions are actually named
11354 something starting with __ and the normal name is an alias. */
11355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11356 choke me
11357 #else
11358 $ac_func();
11359 #endif
11360
11361 ; return 0; }
11362 EOF
11363 if { (eval echo configure:11364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11364 rm -rf conftest*
11365 eval "ac_cv_func_$ac_func=yes"
11366 else
11367 echo "configure: failed program was:" >&5
11368 cat conftest.$ac_ext >&5
11369 rm -rf conftest*
11370 eval "ac_cv_func_$ac_func=no"
11371 fi
11372 rm -f conftest*
11373 fi
11374
11375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11376 echo "$ac_t""yes" 1>&6
11377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11378 cat >> confdefs.h <<EOF
11379 #define $ac_tr_func 1
11380 EOF
11381
11382 else
11383 echo "$ac_t""no" 1>&6
11384 fi
11385 done
11386
11387 else
11388
11389 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
11390 echo "configure:11391: checking for _finitef declaration" >&5
11391 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
11392 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
11393 echo $ac_n "(cached) $ac_c" 1>&6
11394 else
11395
11396
11397 ac_ext=C
11398 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11399 ac_cpp='$CXXCPP $CPPFLAGS'
11400 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11401 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11402 cross_compiling=$ac_cv_prog_cxx_cross
11403
11404 cat > conftest.$ac_ext <<EOF
11405 #line 11406 "configure"
11406 #include "confdefs.h"
11407 #include <math.h>
11408 #ifdef HAVE_IEEEFP_H
11409 #include <ieeefp.h>
11410 #endif
11411
11412 int main() {
11413 _finitef(0);
11414 ; return 0; }
11415 EOF
11416 if { (eval echo configure:11417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11417 rm -rf conftest*
11418 glibcpp_cv_func__finitef_use=yes
11419 else
11420 echo "configure: failed program was:" >&5
11421 cat conftest.$ac_ext >&5
11422 rm -rf conftest*
11423 glibcpp_cv_func__finitef_use=no
11424 fi
11425 rm -f conftest*
11426 ac_ext=c
11427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11428 ac_cpp='$CPP $CPPFLAGS'
11429 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11430 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11431 cross_compiling=$ac_cv_prog_cc_cross
11432
11433
11434 fi
11435
11436 fi
11437 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
11438
11439 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
11440 for ac_func in _finitef
11441 do
11442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11443 echo "configure:11444: checking for $ac_func" >&5
11444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11445 echo $ac_n "(cached) $ac_c" 1>&6
11446 else
11447 cat > conftest.$ac_ext <<EOF
11448 #line 11449 "configure"
11449 #include "confdefs.h"
11450 /* System header to define __stub macros and hopefully few prototypes,
11451 which can conflict with char $ac_func(); below. */
11452 #include <assert.h>
11453 /* Override any gcc2 internal prototype to avoid an error. */
11454 /* We use char because int might match the return type of a gcc2
11455 builtin and then its argument prototype would still apply. */
11456 char $ac_func();
11457
11458 int main() {
11459
11460 /* The GNU C library defines this for functions which it implements
11461 to always fail with ENOSYS. Some functions are actually named
11462 something starting with __ and the normal name is an alias. */
11463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11464 choke me
11465 #else
11466 $ac_func();
11467 #endif
11468
11469 ; return 0; }
11470 EOF
11471 if { (eval echo configure:11472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11472 rm -rf conftest*
11473 eval "ac_cv_func_$ac_func=yes"
11474 else
11475 echo "configure: failed program was:" >&5
11476 cat conftest.$ac_ext >&5
11477 rm -rf conftest*
11478 eval "ac_cv_func_$ac_func=no"
11479 fi
11480 rm -f conftest*
11481 fi
11482
11483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11484 echo "$ac_t""yes" 1>&6
11485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11486 cat >> confdefs.h <<EOF
11487 #define $ac_tr_func 1
11488 EOF
11489
11490 else
11491 echo "$ac_t""no" 1>&6
11492 fi
11493 done
11494
11495 fi
11496 fi
11497
11498
11499
11500 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
11501 echo "configure:11502: checking for long double trig functions" >&5
11502 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
11503 echo $ac_n "(cached) $ac_c" 1>&6
11504 else
11505
11506
11507 ac_ext=C
11508 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11509 ac_cpp='$CXXCPP $CPPFLAGS'
11510 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11511 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11512 cross_compiling=$ac_cv_prog_cxx_cross
11513
11514 cat > conftest.$ac_ext <<EOF
11515 #line 11516 "configure"
11516 #include "confdefs.h"
11517 #include <math.h>
11518 int main() {
11519 `for x in acosl asinl atanl \
11520 cosl sinl tanl \
11521 coshl sinhl tanhl; do echo "$x (0);"; done`
11522 ; return 0; }
11523 EOF
11524 if { (eval echo configure:11525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11525 rm -rf conftest*
11526 glibcpp_cv_func_long_double_trig_use=yes
11527 else
11528 echo "configure: failed program was:" >&5
11529 cat conftest.$ac_ext >&5
11530 rm -rf conftest*
11531 glibcpp_cv_func_long_double_trig_use=no
11532 fi
11533 rm -f conftest*
11534 ac_ext=c
11535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11536 ac_cpp='$CPP $CPPFLAGS'
11537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11539 cross_compiling=$ac_cv_prog_cc_cross
11540
11541 fi
11542
11543 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
11544 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
11545 for ac_func in acosl asinl atanl \
11546 cosl sinl tanl \
11547 coshl sinhl tanhl
11548 do
11549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11550 echo "configure:11551: checking for $ac_func" >&5
11551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11552 echo $ac_n "(cached) $ac_c" 1>&6
11553 else
11554 cat > conftest.$ac_ext <<EOF
11555 #line 11556 "configure"
11556 #include "confdefs.h"
11557 /* System header to define __stub macros and hopefully few prototypes,
11558 which can conflict with char $ac_func(); below. */
11559 #include <assert.h>
11560 /* Override any gcc2 internal prototype to avoid an error. */
11561 /* We use char because int might match the return type of a gcc2
11562 builtin and then its argument prototype would still apply. */
11563 char $ac_func();
11564
11565 int main() {
11566
11567 /* The GNU C library defines this for functions which it implements
11568 to always fail with ENOSYS. Some functions are actually named
11569 something starting with __ and the normal name is an alias. */
11570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11571 choke me
11572 #else
11573 $ac_func();
11574 #endif
11575
11576 ; return 0; }
11577 EOF
11578 if { (eval echo configure:11579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11579 rm -rf conftest*
11580 eval "ac_cv_func_$ac_func=yes"
11581 else
11582 echo "configure: failed program was:" >&5
11583 cat conftest.$ac_ext >&5
11584 rm -rf conftest*
11585 eval "ac_cv_func_$ac_func=no"
11586 fi
11587 rm -f conftest*
11588 fi
11589
11590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11591 echo "$ac_t""yes" 1>&6
11592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11593 cat >> confdefs.h <<EOF
11594 #define $ac_tr_func 1
11595 EOF
11596
11597 else
11598 echo "$ac_t""no" 1>&6
11599 fi
11600 done
11601
11602 fi
11603
11604
11605 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
11606 echo "configure:11607: checking for long double round functions" >&5
11607 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
11608 echo $ac_n "(cached) $ac_c" 1>&6
11609 else
11610
11611
11612 ac_ext=C
11613 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11614 ac_cpp='$CXXCPP $CPPFLAGS'
11615 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11616 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11617 cross_compiling=$ac_cv_prog_cxx_cross
11618
11619 cat > conftest.$ac_ext <<EOF
11620 #line 11621 "configure"
11621 #include "confdefs.h"
11622 #include <math.h>
11623 int main() {
11624 `for x in ceill floorl; do echo "$x (0);"; done`
11625 ; return 0; }
11626 EOF
11627 if { (eval echo configure:11628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11628 rm -rf conftest*
11629 glibcpp_cv_func_long_double_round_use=yes
11630 else
11631 echo "configure: failed program was:" >&5
11632 cat conftest.$ac_ext >&5
11633 rm -rf conftest*
11634 glibcpp_cv_func_long_double_round_use=no
11635 fi
11636 rm -f conftest*
11637 ac_ext=c
11638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11639 ac_cpp='$CPP $CPPFLAGS'
11640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11642 cross_compiling=$ac_cv_prog_cc_cross
11643
11644 fi
11645
11646 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
11647 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
11648 for ac_func in ceill floorl
11649 do
11650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11651 echo "configure:11652: checking for $ac_func" >&5
11652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11653 echo $ac_n "(cached) $ac_c" 1>&6
11654 else
11655 cat > conftest.$ac_ext <<EOF
11656 #line 11657 "configure"
11657 #include "confdefs.h"
11658 /* System header to define __stub macros and hopefully few prototypes,
11659 which can conflict with char $ac_func(); below. */
11660 #include <assert.h>
11661 /* Override any gcc2 internal prototype to avoid an error. */
11662 /* We use char because int might match the return type of a gcc2
11663 builtin and then its argument prototype would still apply. */
11664 char $ac_func();
11665
11666 int main() {
11667
11668 /* The GNU C library defines this for functions which it implements
11669 to always fail with ENOSYS. Some functions are actually named
11670 something starting with __ and the normal name is an alias. */
11671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11672 choke me
11673 #else
11674 $ac_func();
11675 #endif
11676
11677 ; return 0; }
11678 EOF
11679 if { (eval echo configure:11680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11680 rm -rf conftest*
11681 eval "ac_cv_func_$ac_func=yes"
11682 else
11683 echo "configure: failed program was:" >&5
11684 cat conftest.$ac_ext >&5
11685 rm -rf conftest*
11686 eval "ac_cv_func_$ac_func=no"
11687 fi
11688 rm -f conftest*
11689 fi
11690
11691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11692 echo "$ac_t""yes" 1>&6
11693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11694 cat >> confdefs.h <<EOF
11695 #define $ac_tr_func 1
11696 EOF
11697
11698 else
11699 echo "$ac_t""no" 1>&6
11700 fi
11701 done
11702
11703 fi
11704
11705
11706
11707 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
11708 echo "configure:11709: checking for isnanl declaration" >&5
11709 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
11710 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
11712 else
11713
11714
11715 ac_ext=C
11716 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11717 ac_cpp='$CXXCPP $CPPFLAGS'
11718 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11719 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11720 cross_compiling=$ac_cv_prog_cxx_cross
11721
11722 cat > conftest.$ac_ext <<EOF
11723 #line 11724 "configure"
11724 #include "confdefs.h"
11725 #include <math.h>
11726 #ifdef HAVE_IEEEFP_H
11727 #include <ieeefp.h>
11728 #endif
11729
11730 int main() {
11731 isnanl(0);
11732 ; return 0; }
11733 EOF
11734 if { (eval echo configure:11735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11735 rm -rf conftest*
11736 glibcpp_cv_func_isnanl_use=yes
11737 else
11738 echo "configure: failed program was:" >&5
11739 cat conftest.$ac_ext >&5
11740 rm -rf conftest*
11741 glibcpp_cv_func_isnanl_use=no
11742 fi
11743 rm -f conftest*
11744 ac_ext=c
11745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11746 ac_cpp='$CPP $CPPFLAGS'
11747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11749 cross_compiling=$ac_cv_prog_cc_cross
11750
11751
11752 fi
11753
11754 fi
11755 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
11756
11757 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
11758 for ac_func in isnanl
11759 do
11760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11761 echo "configure:11762: checking for $ac_func" >&5
11762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11763 echo $ac_n "(cached) $ac_c" 1>&6
11764 else
11765 cat > conftest.$ac_ext <<EOF
11766 #line 11767 "configure"
11767 #include "confdefs.h"
11768 /* System header to define __stub macros and hopefully few prototypes,
11769 which can conflict with char $ac_func(); below. */
11770 #include <assert.h>
11771 /* Override any gcc2 internal prototype to avoid an error. */
11772 /* We use char because int might match the return type of a gcc2
11773 builtin and then its argument prototype would still apply. */
11774 char $ac_func();
11775
11776 int main() {
11777
11778 /* The GNU C library defines this for functions which it implements
11779 to always fail with ENOSYS. Some functions are actually named
11780 something starting with __ and the normal name is an alias. */
11781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11782 choke me
11783 #else
11784 $ac_func();
11785 #endif
11786
11787 ; return 0; }
11788 EOF
11789 if { (eval echo configure:11790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11790 rm -rf conftest*
11791 eval "ac_cv_func_$ac_func=yes"
11792 else
11793 echo "configure: failed program was:" >&5
11794 cat conftest.$ac_ext >&5
11795 rm -rf conftest*
11796 eval "ac_cv_func_$ac_func=no"
11797 fi
11798 rm -f conftest*
11799 fi
11800
11801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11802 echo "$ac_t""yes" 1>&6
11803 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11804 cat >> confdefs.h <<EOF
11805 #define $ac_tr_func 1
11806 EOF
11807
11808 else
11809 echo "$ac_t""no" 1>&6
11810 fi
11811 done
11812
11813 else
11814
11815 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
11816 echo "configure:11817: checking for _isnanl declaration" >&5
11817 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
11818 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
11819 echo $ac_n "(cached) $ac_c" 1>&6
11820 else
11821
11822
11823 ac_ext=C
11824 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11825 ac_cpp='$CXXCPP $CPPFLAGS'
11826 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11827 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11828 cross_compiling=$ac_cv_prog_cxx_cross
11829
11830 cat > conftest.$ac_ext <<EOF
11831 #line 11832 "configure"
11832 #include "confdefs.h"
11833 #include <math.h>
11834 #ifdef HAVE_IEEEFP_H
11835 #include <ieeefp.h>
11836 #endif
11837
11838 int main() {
11839 _isnanl(0);
11840 ; return 0; }
11841 EOF
11842 if { (eval echo configure:11843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11843 rm -rf conftest*
11844 glibcpp_cv_func__isnanl_use=yes
11845 else
11846 echo "configure: failed program was:" >&5
11847 cat conftest.$ac_ext >&5
11848 rm -rf conftest*
11849 glibcpp_cv_func__isnanl_use=no
11850 fi
11851 rm -f conftest*
11852 ac_ext=c
11853 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11854 ac_cpp='$CPP $CPPFLAGS'
11855 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11856 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11857 cross_compiling=$ac_cv_prog_cc_cross
11858
11859
11860 fi
11861
11862 fi
11863 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
11864
11865 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
11866 for ac_func in _isnanl
11867 do
11868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11869 echo "configure:11870: checking for $ac_func" >&5
11870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11871 echo $ac_n "(cached) $ac_c" 1>&6
11872 else
11873 cat > conftest.$ac_ext <<EOF
11874 #line 11875 "configure"
11875 #include "confdefs.h"
11876 /* System header to define __stub macros and hopefully few prototypes,
11877 which can conflict with char $ac_func(); below. */
11878 #include <assert.h>
11879 /* Override any gcc2 internal prototype to avoid an error. */
11880 /* We use char because int might match the return type of a gcc2
11881 builtin and then its argument prototype would still apply. */
11882 char $ac_func();
11883
11884 int main() {
11885
11886 /* The GNU C library defines this for functions which it implements
11887 to always fail with ENOSYS. Some functions are actually named
11888 something starting with __ and the normal name is an alias. */
11889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11890 choke me
11891 #else
11892 $ac_func();
11893 #endif
11894
11895 ; return 0; }
11896 EOF
11897 if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11898 rm -rf conftest*
11899 eval "ac_cv_func_$ac_func=yes"
11900 else
11901 echo "configure: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11903 rm -rf conftest*
11904 eval "ac_cv_func_$ac_func=no"
11905 fi
11906 rm -f conftest*
11907 fi
11908
11909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11910 echo "$ac_t""yes" 1>&6
11911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11912 cat >> confdefs.h <<EOF
11913 #define $ac_tr_func 1
11914 EOF
11915
11916 else
11917 echo "$ac_t""no" 1>&6
11918 fi
11919 done
11920
11921 fi
11922 fi
11923
11924
11925
11926 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
11927 echo "configure:11928: checking for isinfl declaration" >&5
11928 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
11929 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
11930 echo $ac_n "(cached) $ac_c" 1>&6
11931 else
11932
11933
11934 ac_ext=C
11935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11936 ac_cpp='$CXXCPP $CPPFLAGS'
11937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11939 cross_compiling=$ac_cv_prog_cxx_cross
11940
11941 cat > conftest.$ac_ext <<EOF
11942 #line 11943 "configure"
11943 #include "confdefs.h"
11944 #include <math.h>
11945 #ifdef HAVE_IEEEFP_H
11946 #include <ieeefp.h>
11947 #endif
11948
11949 int main() {
11950 isinfl(0);
11951 ; return 0; }
11952 EOF
11953 if { (eval echo configure:11954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11954 rm -rf conftest*
11955 glibcpp_cv_func_isinfl_use=yes
11956 else
11957 echo "configure: failed program was:" >&5
11958 cat conftest.$ac_ext >&5
11959 rm -rf conftest*
11960 glibcpp_cv_func_isinfl_use=no
11961 fi
11962 rm -f conftest*
11963 ac_ext=c
11964 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11965 ac_cpp='$CPP $CPPFLAGS'
11966 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11967 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11968 cross_compiling=$ac_cv_prog_cc_cross
11969
11970
11971 fi
11972
11973 fi
11974 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
11975
11976 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
11977 for ac_func in isinfl
11978 do
11979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11980 echo "configure:11981: checking for $ac_func" >&5
11981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11982 echo $ac_n "(cached) $ac_c" 1>&6
11983 else
11984 cat > conftest.$ac_ext <<EOF
11985 #line 11986 "configure"
11986 #include "confdefs.h"
11987 /* System header to define __stub macros and hopefully few prototypes,
11988 which can conflict with char $ac_func(); below. */
11989 #include <assert.h>
11990 /* Override any gcc2 internal prototype to avoid an error. */
11991 /* We use char because int might match the return type of a gcc2
11992 builtin and then its argument prototype would still apply. */
11993 char $ac_func();
11994
11995 int main() {
11996
11997 /* The GNU C library defines this for functions which it implements
11998 to always fail with ENOSYS. Some functions are actually named
11999 something starting with __ and the normal name is an alias. */
12000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12001 choke me
12002 #else
12003 $ac_func();
12004 #endif
12005
12006 ; return 0; }
12007 EOF
12008 if { (eval echo configure:12009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12009 rm -rf conftest*
12010 eval "ac_cv_func_$ac_func=yes"
12011 else
12012 echo "configure: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12014 rm -rf conftest*
12015 eval "ac_cv_func_$ac_func=no"
12016 fi
12017 rm -f conftest*
12018 fi
12019
12020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12021 echo "$ac_t""yes" 1>&6
12022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12023 cat >> confdefs.h <<EOF
12024 #define $ac_tr_func 1
12025 EOF
12026
12027 else
12028 echo "$ac_t""no" 1>&6
12029 fi
12030 done
12031
12032 else
12033
12034 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
12035 echo "configure:12036: checking for _isinfl declaration" >&5
12036 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
12037 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
12038 echo $ac_n "(cached) $ac_c" 1>&6
12039 else
12040
12041
12042 ac_ext=C
12043 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12044 ac_cpp='$CXXCPP $CPPFLAGS'
12045 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12046 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12047 cross_compiling=$ac_cv_prog_cxx_cross
12048
12049 cat > conftest.$ac_ext <<EOF
12050 #line 12051 "configure"
12051 #include "confdefs.h"
12052 #include <math.h>
12053 #ifdef HAVE_IEEEFP_H
12054 #include <ieeefp.h>
12055 #endif
12056
12057 int main() {
12058 _isinfl(0);
12059 ; return 0; }
12060 EOF
12061 if { (eval echo configure:12062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12062 rm -rf conftest*
12063 glibcpp_cv_func__isinfl_use=yes
12064 else
12065 echo "configure: failed program was:" >&5
12066 cat conftest.$ac_ext >&5
12067 rm -rf conftest*
12068 glibcpp_cv_func__isinfl_use=no
12069 fi
12070 rm -f conftest*
12071 ac_ext=c
12072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12073 ac_cpp='$CPP $CPPFLAGS'
12074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12076 cross_compiling=$ac_cv_prog_cc_cross
12077
12078
12079 fi
12080
12081 fi
12082 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
12083
12084 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
12085 for ac_func in _isinfl
12086 do
12087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12088 echo "configure:12089: checking for $ac_func" >&5
12089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12090 echo $ac_n "(cached) $ac_c" 1>&6
12091 else
12092 cat > conftest.$ac_ext <<EOF
12093 #line 12094 "configure"
12094 #include "confdefs.h"
12095 /* System header to define __stub macros and hopefully few prototypes,
12096 which can conflict with char $ac_func(); below. */
12097 #include <assert.h>
12098 /* Override any gcc2 internal prototype to avoid an error. */
12099 /* We use char because int might match the return type of a gcc2
12100 builtin and then its argument prototype would still apply. */
12101 char $ac_func();
12102
12103 int main() {
12104
12105 /* The GNU C library defines this for functions which it implements
12106 to always fail with ENOSYS. Some functions are actually named
12107 something starting with __ and the normal name is an alias. */
12108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12109 choke me
12110 #else
12111 $ac_func();
12112 #endif
12113
12114 ; return 0; }
12115 EOF
12116 if { (eval echo configure:12117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12117 rm -rf conftest*
12118 eval "ac_cv_func_$ac_func=yes"
12119 else
12120 echo "configure: failed program was:" >&5
12121 cat conftest.$ac_ext >&5
12122 rm -rf conftest*
12123 eval "ac_cv_func_$ac_func=no"
12124 fi
12125 rm -f conftest*
12126 fi
12127
12128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12129 echo "$ac_t""yes" 1>&6
12130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12131 cat >> confdefs.h <<EOF
12132 #define $ac_tr_func 1
12133 EOF
12134
12135 else
12136 echo "$ac_t""no" 1>&6
12137 fi
12138 done
12139
12140 fi
12141 fi
12142
12143
12144
12145 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
12146 echo "configure:12147: checking for copysignl declaration" >&5
12147 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
12148 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
12149 echo $ac_n "(cached) $ac_c" 1>&6
12150 else
12151
12152
12153 ac_ext=C
12154 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12155 ac_cpp='$CXXCPP $CPPFLAGS'
12156 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12157 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12158 cross_compiling=$ac_cv_prog_cxx_cross
12159
12160 cat > conftest.$ac_ext <<EOF
12161 #line 12162 "configure"
12162 #include "confdefs.h"
12163 #include <math.h>
12164 int main() {
12165 copysignl(0, 0);
12166 ; return 0; }
12167 EOF
12168 if { (eval echo configure:12169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12169 rm -rf conftest*
12170 glibcpp_cv_func_copysignl_use=yes
12171 else
12172 echo "configure: failed program was:" >&5
12173 cat conftest.$ac_ext >&5
12174 rm -rf conftest*
12175 glibcpp_cv_func_copysignl_use=no
12176 fi
12177 rm -f conftest*
12178 ac_ext=c
12179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12180 ac_cpp='$CPP $CPPFLAGS'
12181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12182 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12183 cross_compiling=$ac_cv_prog_cc_cross
12184
12185
12186 fi
12187
12188 fi
12189 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
12190
12191 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
12192 for ac_func in copysignl
12193 do
12194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12195 echo "configure:12196: checking for $ac_func" >&5
12196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12197 echo $ac_n "(cached) $ac_c" 1>&6
12198 else
12199 cat > conftest.$ac_ext <<EOF
12200 #line 12201 "configure"
12201 #include "confdefs.h"
12202 /* System header to define __stub macros and hopefully few prototypes,
12203 which can conflict with char $ac_func(); below. */
12204 #include <assert.h>
12205 /* Override any gcc2 internal prototype to avoid an error. */
12206 /* We use char because int might match the return type of a gcc2
12207 builtin and then its argument prototype would still apply. */
12208 char $ac_func();
12209
12210 int main() {
12211
12212 /* The GNU C library defines this for functions which it implements
12213 to always fail with ENOSYS. Some functions are actually named
12214 something starting with __ and the normal name is an alias. */
12215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12216 choke me
12217 #else
12218 $ac_func();
12219 #endif
12220
12221 ; return 0; }
12222 EOF
12223 if { (eval echo configure:12224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12224 rm -rf conftest*
12225 eval "ac_cv_func_$ac_func=yes"
12226 else
12227 echo "configure: failed program was:" >&5
12228 cat conftest.$ac_ext >&5
12229 rm -rf conftest*
12230 eval "ac_cv_func_$ac_func=no"
12231 fi
12232 rm -f conftest*
12233 fi
12234
12235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12236 echo "$ac_t""yes" 1>&6
12237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12238 cat >> confdefs.h <<EOF
12239 #define $ac_tr_func 1
12240 EOF
12241
12242 else
12243 echo "$ac_t""no" 1>&6
12244 fi
12245 done
12246
12247 else
12248
12249 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
12250 echo "configure:12251: checking for _copysignl declaration" >&5
12251 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
12252 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
12253 echo $ac_n "(cached) $ac_c" 1>&6
12254 else
12255
12256
12257 ac_ext=C
12258 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12259 ac_cpp='$CXXCPP $CPPFLAGS'
12260 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12261 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12262 cross_compiling=$ac_cv_prog_cxx_cross
12263
12264 cat > conftest.$ac_ext <<EOF
12265 #line 12266 "configure"
12266 #include "confdefs.h"
12267 #include <math.h>
12268 int main() {
12269 _copysignl(0, 0);
12270 ; return 0; }
12271 EOF
12272 if { (eval echo configure:12273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12273 rm -rf conftest*
12274 glibcpp_cv_func__copysignl_use=yes
12275 else
12276 echo "configure: failed program was:" >&5
12277 cat conftest.$ac_ext >&5
12278 rm -rf conftest*
12279 glibcpp_cv_func__copysignl_use=no
12280 fi
12281 rm -f conftest*
12282 ac_ext=c
12283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12284 ac_cpp='$CPP $CPPFLAGS'
12285 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12286 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12287 cross_compiling=$ac_cv_prog_cc_cross
12288
12289
12290 fi
12291
12292 fi
12293 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
12294
12295 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
12296 for ac_func in _copysignl
12297 do
12298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12299 echo "configure:12300: checking for $ac_func" >&5
12300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12301 echo $ac_n "(cached) $ac_c" 1>&6
12302 else
12303 cat > conftest.$ac_ext <<EOF
12304 #line 12305 "configure"
12305 #include "confdefs.h"
12306 /* System header to define __stub macros and hopefully few prototypes,
12307 which can conflict with char $ac_func(); below. */
12308 #include <assert.h>
12309 /* Override any gcc2 internal prototype to avoid an error. */
12310 /* We use char because int might match the return type of a gcc2
12311 builtin and then its argument prototype would still apply. */
12312 char $ac_func();
12313
12314 int main() {
12315
12316 /* The GNU C library defines this for functions which it implements
12317 to always fail with ENOSYS. Some functions are actually named
12318 something starting with __ and the normal name is an alias. */
12319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12320 choke me
12321 #else
12322 $ac_func();
12323 #endif
12324
12325 ; return 0; }
12326 EOF
12327 if { (eval echo configure:12328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12328 rm -rf conftest*
12329 eval "ac_cv_func_$ac_func=yes"
12330 else
12331 echo "configure: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12333 rm -rf conftest*
12334 eval "ac_cv_func_$ac_func=no"
12335 fi
12336 rm -f conftest*
12337 fi
12338
12339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12340 echo "$ac_t""yes" 1>&6
12341 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12342 cat >> confdefs.h <<EOF
12343 #define $ac_tr_func 1
12344 EOF
12345
12346 else
12347 echo "$ac_t""no" 1>&6
12348 fi
12349 done
12350
12351 fi
12352 fi
12353
12354
12355
12356 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
12357 echo "configure:12358: checking for atan2l declaration" >&5
12358 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
12359 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
12360 echo $ac_n "(cached) $ac_c" 1>&6
12361 else
12362
12363
12364 ac_ext=C
12365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12366 ac_cpp='$CXXCPP $CPPFLAGS'
12367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12369 cross_compiling=$ac_cv_prog_cxx_cross
12370
12371 cat > conftest.$ac_ext <<EOF
12372 #line 12373 "configure"
12373 #include "confdefs.h"
12374 #include <math.h>
12375 int main() {
12376 atan2l(0, 0);
12377 ; return 0; }
12378 EOF
12379 if { (eval echo configure:12380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12380 rm -rf conftest*
12381 glibcpp_cv_func_atan2l_use=yes
12382 else
12383 echo "configure: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12385 rm -rf conftest*
12386 glibcpp_cv_func_atan2l_use=no
12387 fi
12388 rm -f conftest*
12389 ac_ext=c
12390 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12391 ac_cpp='$CPP $CPPFLAGS'
12392 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12393 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12394 cross_compiling=$ac_cv_prog_cc_cross
12395
12396
12397 fi
12398
12399 fi
12400 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
12401
12402 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
12403 for ac_func in atan2l
12404 do
12405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12406 echo "configure:12407: checking for $ac_func" >&5
12407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12408 echo $ac_n "(cached) $ac_c" 1>&6
12409 else
12410 cat > conftest.$ac_ext <<EOF
12411 #line 12412 "configure"
12412 #include "confdefs.h"
12413 /* System header to define __stub macros and hopefully few prototypes,
12414 which can conflict with char $ac_func(); below. */
12415 #include <assert.h>
12416 /* Override any gcc2 internal prototype to avoid an error. */
12417 /* We use char because int might match the return type of a gcc2
12418 builtin and then its argument prototype would still apply. */
12419 char $ac_func();
12420
12421 int main() {
12422
12423 /* The GNU C library defines this for functions which it implements
12424 to always fail with ENOSYS. Some functions are actually named
12425 something starting with __ and the normal name is an alias. */
12426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12427 choke me
12428 #else
12429 $ac_func();
12430 #endif
12431
12432 ; return 0; }
12433 EOF
12434 if { (eval echo configure:12435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12435 rm -rf conftest*
12436 eval "ac_cv_func_$ac_func=yes"
12437 else
12438 echo "configure: failed program was:" >&5
12439 cat conftest.$ac_ext >&5
12440 rm -rf conftest*
12441 eval "ac_cv_func_$ac_func=no"
12442 fi
12443 rm -f conftest*
12444 fi
12445
12446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12447 echo "$ac_t""yes" 1>&6
12448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12449 cat >> confdefs.h <<EOF
12450 #define $ac_tr_func 1
12451 EOF
12452
12453 else
12454 echo "$ac_t""no" 1>&6
12455 fi
12456 done
12457
12458 else
12459
12460 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
12461 echo "configure:12462: checking for _atan2l declaration" >&5
12462 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
12463 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
12464 echo $ac_n "(cached) $ac_c" 1>&6
12465 else
12466
12467
12468 ac_ext=C
12469 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12470 ac_cpp='$CXXCPP $CPPFLAGS'
12471 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12472 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12473 cross_compiling=$ac_cv_prog_cxx_cross
12474
12475 cat > conftest.$ac_ext <<EOF
12476 #line 12477 "configure"
12477 #include "confdefs.h"
12478 #include <math.h>
12479 int main() {
12480 _atan2l(0, 0);
12481 ; return 0; }
12482 EOF
12483 if { (eval echo configure:12484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12484 rm -rf conftest*
12485 glibcpp_cv_func__atan2l_use=yes
12486 else
12487 echo "configure: failed program was:" >&5
12488 cat conftest.$ac_ext >&5
12489 rm -rf conftest*
12490 glibcpp_cv_func__atan2l_use=no
12491 fi
12492 rm -f conftest*
12493 ac_ext=c
12494 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12495 ac_cpp='$CPP $CPPFLAGS'
12496 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12497 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12498 cross_compiling=$ac_cv_prog_cc_cross
12499
12500
12501 fi
12502
12503 fi
12504 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
12505
12506 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
12507 for ac_func in _atan2l
12508 do
12509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12510 echo "configure:12511: checking for $ac_func" >&5
12511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12512 echo $ac_n "(cached) $ac_c" 1>&6
12513 else
12514 cat > conftest.$ac_ext <<EOF
12515 #line 12516 "configure"
12516 #include "confdefs.h"
12517 /* System header to define __stub macros and hopefully few prototypes,
12518 which can conflict with char $ac_func(); below. */
12519 #include <assert.h>
12520 /* Override any gcc2 internal prototype to avoid an error. */
12521 /* We use char because int might match the return type of a gcc2
12522 builtin and then its argument prototype would still apply. */
12523 char $ac_func();
12524
12525 int main() {
12526
12527 /* The GNU C library defines this for functions which it implements
12528 to always fail with ENOSYS. Some functions are actually named
12529 something starting with __ and the normal name is an alias. */
12530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12531 choke me
12532 #else
12533 $ac_func();
12534 #endif
12535
12536 ; return 0; }
12537 EOF
12538 if { (eval echo configure:12539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12539 rm -rf conftest*
12540 eval "ac_cv_func_$ac_func=yes"
12541 else
12542 echo "configure: failed program was:" >&5
12543 cat conftest.$ac_ext >&5
12544 rm -rf conftest*
12545 eval "ac_cv_func_$ac_func=no"
12546 fi
12547 rm -f conftest*
12548 fi
12549
12550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12551 echo "$ac_t""yes" 1>&6
12552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12553 cat >> confdefs.h <<EOF
12554 #define $ac_tr_func 1
12555 EOF
12556
12557 else
12558 echo "$ac_t""no" 1>&6
12559 fi
12560 done
12561
12562 fi
12563 fi
12564
12565
12566
12567 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
12568 echo "configure:12569: checking for expl declaration" >&5
12569 if test x${glibcpp_cv_func_expl_use+set} != xset; then
12570 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
12571 echo $ac_n "(cached) $ac_c" 1>&6
12572 else
12573
12574
12575 ac_ext=C
12576 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12577 ac_cpp='$CXXCPP $CPPFLAGS'
12578 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12579 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12580 cross_compiling=$ac_cv_prog_cxx_cross
12581
12582 cat > conftest.$ac_ext <<EOF
12583 #line 12584 "configure"
12584 #include "confdefs.h"
12585 #include <math.h>
12586 #ifdef HAVE_IEEEFP_H
12587 #include <ieeefp.h>
12588 #endif
12589
12590 int main() {
12591 expl(0);
12592 ; return 0; }
12593 EOF
12594 if { (eval echo configure:12595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12595 rm -rf conftest*
12596 glibcpp_cv_func_expl_use=yes
12597 else
12598 echo "configure: failed program was:" >&5
12599 cat conftest.$ac_ext >&5
12600 rm -rf conftest*
12601 glibcpp_cv_func_expl_use=no
12602 fi
12603 rm -f conftest*
12604 ac_ext=c
12605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12606 ac_cpp='$CPP $CPPFLAGS'
12607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12609 cross_compiling=$ac_cv_prog_cc_cross
12610
12611
12612 fi
12613
12614 fi
12615 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
12616
12617 if test x$glibcpp_cv_func_expl_use = x"yes"; then
12618 for ac_func in expl
12619 do
12620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12621 echo "configure:12622: checking for $ac_func" >&5
12622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12623 echo $ac_n "(cached) $ac_c" 1>&6
12624 else
12625 cat > conftest.$ac_ext <<EOF
12626 #line 12627 "configure"
12627 #include "confdefs.h"
12628 /* System header to define __stub macros and hopefully few prototypes,
12629 which can conflict with char $ac_func(); below. */
12630 #include <assert.h>
12631 /* Override any gcc2 internal prototype to avoid an error. */
12632 /* We use char because int might match the return type of a gcc2
12633 builtin and then its argument prototype would still apply. */
12634 char $ac_func();
12635
12636 int main() {
12637
12638 /* The GNU C library defines this for functions which it implements
12639 to always fail with ENOSYS. Some functions are actually named
12640 something starting with __ and the normal name is an alias. */
12641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12642 choke me
12643 #else
12644 $ac_func();
12645 #endif
12646
12647 ; return 0; }
12648 EOF
12649 if { (eval echo configure:12650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12650 rm -rf conftest*
12651 eval "ac_cv_func_$ac_func=yes"
12652 else
12653 echo "configure: failed program was:" >&5
12654 cat conftest.$ac_ext >&5
12655 rm -rf conftest*
12656 eval "ac_cv_func_$ac_func=no"
12657 fi
12658 rm -f conftest*
12659 fi
12660
12661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12662 echo "$ac_t""yes" 1>&6
12663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12664 cat >> confdefs.h <<EOF
12665 #define $ac_tr_func 1
12666 EOF
12667
12668 else
12669 echo "$ac_t""no" 1>&6
12670 fi
12671 done
12672
12673 else
12674
12675 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
12676 echo "configure:12677: checking for _expl declaration" >&5
12677 if test x${glibcpp_cv_func__expl_use+set} != xset; then
12678 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
12679 echo $ac_n "(cached) $ac_c" 1>&6
12680 else
12681
12682
12683 ac_ext=C
12684 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12685 ac_cpp='$CXXCPP $CPPFLAGS'
12686 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12687 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12688 cross_compiling=$ac_cv_prog_cxx_cross
12689
12690 cat > conftest.$ac_ext <<EOF
12691 #line 12692 "configure"
12692 #include "confdefs.h"
12693 #include <math.h>
12694 #ifdef HAVE_IEEEFP_H
12695 #include <ieeefp.h>
12696 #endif
12697
12698 int main() {
12699 _expl(0);
12700 ; return 0; }
12701 EOF
12702 if { (eval echo configure:12703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12703 rm -rf conftest*
12704 glibcpp_cv_func__expl_use=yes
12705 else
12706 echo "configure: failed program was:" >&5
12707 cat conftest.$ac_ext >&5
12708 rm -rf conftest*
12709 glibcpp_cv_func__expl_use=no
12710 fi
12711 rm -f conftest*
12712 ac_ext=c
12713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12714 ac_cpp='$CPP $CPPFLAGS'
12715 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12716 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12717 cross_compiling=$ac_cv_prog_cc_cross
12718
12719
12720 fi
12721
12722 fi
12723 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
12724
12725 if test x$glibcpp_cv_func__expl_use = x"yes"; then
12726 for ac_func in _expl
12727 do
12728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12729 echo "configure:12730: checking for $ac_func" >&5
12730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12731 echo $ac_n "(cached) $ac_c" 1>&6
12732 else
12733 cat > conftest.$ac_ext <<EOF
12734 #line 12735 "configure"
12735 #include "confdefs.h"
12736 /* System header to define __stub macros and hopefully few prototypes,
12737 which can conflict with char $ac_func(); below. */
12738 #include <assert.h>
12739 /* Override any gcc2 internal prototype to avoid an error. */
12740 /* We use char because int might match the return type of a gcc2
12741 builtin and then its argument prototype would still apply. */
12742 char $ac_func();
12743
12744 int main() {
12745
12746 /* The GNU C library defines this for functions which it implements
12747 to always fail with ENOSYS. Some functions are actually named
12748 something starting with __ and the normal name is an alias. */
12749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12750 choke me
12751 #else
12752 $ac_func();
12753 #endif
12754
12755 ; return 0; }
12756 EOF
12757 if { (eval echo configure:12758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12758 rm -rf conftest*
12759 eval "ac_cv_func_$ac_func=yes"
12760 else
12761 echo "configure: failed program was:" >&5
12762 cat conftest.$ac_ext >&5
12763 rm -rf conftest*
12764 eval "ac_cv_func_$ac_func=no"
12765 fi
12766 rm -f conftest*
12767 fi
12768
12769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12770 echo "$ac_t""yes" 1>&6
12771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12772 cat >> confdefs.h <<EOF
12773 #define $ac_tr_func 1
12774 EOF
12775
12776 else
12777 echo "$ac_t""no" 1>&6
12778 fi
12779 done
12780
12781 fi
12782 fi
12783
12784
12785
12786 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
12787 echo "configure:12788: checking for fabsl declaration" >&5
12788 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
12789 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
12790 echo $ac_n "(cached) $ac_c" 1>&6
12791 else
12792
12793
12794 ac_ext=C
12795 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12796 ac_cpp='$CXXCPP $CPPFLAGS'
12797 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12798 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12799 cross_compiling=$ac_cv_prog_cxx_cross
12800
12801 cat > conftest.$ac_ext <<EOF
12802 #line 12803 "configure"
12803 #include "confdefs.h"
12804 #include <math.h>
12805 #ifdef HAVE_IEEEFP_H
12806 #include <ieeefp.h>
12807 #endif
12808
12809 int main() {
12810 fabsl(0);
12811 ; return 0; }
12812 EOF
12813 if { (eval echo configure:12814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12814 rm -rf conftest*
12815 glibcpp_cv_func_fabsl_use=yes
12816 else
12817 echo "configure: failed program was:" >&5
12818 cat conftest.$ac_ext >&5
12819 rm -rf conftest*
12820 glibcpp_cv_func_fabsl_use=no
12821 fi
12822 rm -f conftest*
12823 ac_ext=c
12824 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12825 ac_cpp='$CPP $CPPFLAGS'
12826 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12827 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12828 cross_compiling=$ac_cv_prog_cc_cross
12829
12830
12831 fi
12832
12833 fi
12834 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
12835
12836 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
12837 for ac_func in fabsl
12838 do
12839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12840 echo "configure:12841: checking for $ac_func" >&5
12841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12842 echo $ac_n "(cached) $ac_c" 1>&6
12843 else
12844 cat > conftest.$ac_ext <<EOF
12845 #line 12846 "configure"
12846 #include "confdefs.h"
12847 /* System header to define __stub macros and hopefully few prototypes,
12848 which can conflict with char $ac_func(); below. */
12849 #include <assert.h>
12850 /* Override any gcc2 internal prototype to avoid an error. */
12851 /* We use char because int might match the return type of a gcc2
12852 builtin and then its argument prototype would still apply. */
12853 char $ac_func();
12854
12855 int main() {
12856
12857 /* The GNU C library defines this for functions which it implements
12858 to always fail with ENOSYS. Some functions are actually named
12859 something starting with __ and the normal name is an alias. */
12860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12861 choke me
12862 #else
12863 $ac_func();
12864 #endif
12865
12866 ; return 0; }
12867 EOF
12868 if { (eval echo configure:12869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12869 rm -rf conftest*
12870 eval "ac_cv_func_$ac_func=yes"
12871 else
12872 echo "configure: failed program was:" >&5
12873 cat conftest.$ac_ext >&5
12874 rm -rf conftest*
12875 eval "ac_cv_func_$ac_func=no"
12876 fi
12877 rm -f conftest*
12878 fi
12879
12880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12881 echo "$ac_t""yes" 1>&6
12882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12883 cat >> confdefs.h <<EOF
12884 #define $ac_tr_func 1
12885 EOF
12886
12887 else
12888 echo "$ac_t""no" 1>&6
12889 fi
12890 done
12891
12892 else
12893
12894 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
12895 echo "configure:12896: checking for _fabsl declaration" >&5
12896 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
12897 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
12898 echo $ac_n "(cached) $ac_c" 1>&6
12899 else
12900
12901
12902 ac_ext=C
12903 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12904 ac_cpp='$CXXCPP $CPPFLAGS'
12905 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12906 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12907 cross_compiling=$ac_cv_prog_cxx_cross
12908
12909 cat > conftest.$ac_ext <<EOF
12910 #line 12911 "configure"
12911 #include "confdefs.h"
12912 #include <math.h>
12913 #ifdef HAVE_IEEEFP_H
12914 #include <ieeefp.h>
12915 #endif
12916
12917 int main() {
12918 _fabsl(0);
12919 ; return 0; }
12920 EOF
12921 if { (eval echo configure:12922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12922 rm -rf conftest*
12923 glibcpp_cv_func__fabsl_use=yes
12924 else
12925 echo "configure: failed program was:" >&5
12926 cat conftest.$ac_ext >&5
12927 rm -rf conftest*
12928 glibcpp_cv_func__fabsl_use=no
12929 fi
12930 rm -f conftest*
12931 ac_ext=c
12932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12933 ac_cpp='$CPP $CPPFLAGS'
12934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12936 cross_compiling=$ac_cv_prog_cc_cross
12937
12938
12939 fi
12940
12941 fi
12942 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
12943
12944 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
12945 for ac_func in _fabsl
12946 do
12947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12948 echo "configure:12949: checking for $ac_func" >&5
12949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12950 echo $ac_n "(cached) $ac_c" 1>&6
12951 else
12952 cat > conftest.$ac_ext <<EOF
12953 #line 12954 "configure"
12954 #include "confdefs.h"
12955 /* System header to define __stub macros and hopefully few prototypes,
12956 which can conflict with char $ac_func(); below. */
12957 #include <assert.h>
12958 /* Override any gcc2 internal prototype to avoid an error. */
12959 /* We use char because int might match the return type of a gcc2
12960 builtin and then its argument prototype would still apply. */
12961 char $ac_func();
12962
12963 int main() {
12964
12965 /* The GNU C library defines this for functions which it implements
12966 to always fail with ENOSYS. Some functions are actually named
12967 something starting with __ and the normal name is an alias. */
12968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12969 choke me
12970 #else
12971 $ac_func();
12972 #endif
12973
12974 ; return 0; }
12975 EOF
12976 if { (eval echo configure:12977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12977 rm -rf conftest*
12978 eval "ac_cv_func_$ac_func=yes"
12979 else
12980 echo "configure: failed program was:" >&5
12981 cat conftest.$ac_ext >&5
12982 rm -rf conftest*
12983 eval "ac_cv_func_$ac_func=no"
12984 fi
12985 rm -f conftest*
12986 fi
12987
12988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12989 echo "$ac_t""yes" 1>&6
12990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12991 cat >> confdefs.h <<EOF
12992 #define $ac_tr_func 1
12993 EOF
12994
12995 else
12996 echo "$ac_t""no" 1>&6
12997 fi
12998 done
12999
13000 fi
13001 fi
13002
13003
13004
13005 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
13006 echo "configure:13007: checking for fmodl declaration" >&5
13007 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
13008 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
13009 echo $ac_n "(cached) $ac_c" 1>&6
13010 else
13011
13012
13013 ac_ext=C
13014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13015 ac_cpp='$CXXCPP $CPPFLAGS'
13016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13018 cross_compiling=$ac_cv_prog_cxx_cross
13019
13020 cat > conftest.$ac_ext <<EOF
13021 #line 13022 "configure"
13022 #include "confdefs.h"
13023 #include <math.h>
13024 int main() {
13025 fmodl(0, 0);
13026 ; return 0; }
13027 EOF
13028 if { (eval echo configure:13029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13029 rm -rf conftest*
13030 glibcpp_cv_func_fmodl_use=yes
13031 else
13032 echo "configure: failed program was:" >&5
13033 cat conftest.$ac_ext >&5
13034 rm -rf conftest*
13035 glibcpp_cv_func_fmodl_use=no
13036 fi
13037 rm -f conftest*
13038 ac_ext=c
13039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13040 ac_cpp='$CPP $CPPFLAGS'
13041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13043 cross_compiling=$ac_cv_prog_cc_cross
13044
13045
13046 fi
13047
13048 fi
13049 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
13050
13051 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
13052 for ac_func in fmodl
13053 do
13054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13055 echo "configure:13056: checking for $ac_func" >&5
13056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13057 echo $ac_n "(cached) $ac_c" 1>&6
13058 else
13059 cat > conftest.$ac_ext <<EOF
13060 #line 13061 "configure"
13061 #include "confdefs.h"
13062 /* System header to define __stub macros and hopefully few prototypes,
13063 which can conflict with char $ac_func(); below. */
13064 #include <assert.h>
13065 /* Override any gcc2 internal prototype to avoid an error. */
13066 /* We use char because int might match the return type of a gcc2
13067 builtin and then its argument prototype would still apply. */
13068 char $ac_func();
13069
13070 int main() {
13071
13072 /* The GNU C library defines this for functions which it implements
13073 to always fail with ENOSYS. Some functions are actually named
13074 something starting with __ and the normal name is an alias. */
13075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13076 choke me
13077 #else
13078 $ac_func();
13079 #endif
13080
13081 ; return 0; }
13082 EOF
13083 if { (eval echo configure:13084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13084 rm -rf conftest*
13085 eval "ac_cv_func_$ac_func=yes"
13086 else
13087 echo "configure: failed program was:" >&5
13088 cat conftest.$ac_ext >&5
13089 rm -rf conftest*
13090 eval "ac_cv_func_$ac_func=no"
13091 fi
13092 rm -f conftest*
13093 fi
13094
13095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13096 echo "$ac_t""yes" 1>&6
13097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13098 cat >> confdefs.h <<EOF
13099 #define $ac_tr_func 1
13100 EOF
13101
13102 else
13103 echo "$ac_t""no" 1>&6
13104 fi
13105 done
13106
13107 else
13108
13109 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
13110 echo "configure:13111: checking for _fmodl declaration" >&5
13111 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
13112 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
13113 echo $ac_n "(cached) $ac_c" 1>&6
13114 else
13115
13116
13117 ac_ext=C
13118 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13119 ac_cpp='$CXXCPP $CPPFLAGS'
13120 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13121 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13122 cross_compiling=$ac_cv_prog_cxx_cross
13123
13124 cat > conftest.$ac_ext <<EOF
13125 #line 13126 "configure"
13126 #include "confdefs.h"
13127 #include <math.h>
13128 int main() {
13129 _fmodl(0, 0);
13130 ; return 0; }
13131 EOF
13132 if { (eval echo configure:13133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13133 rm -rf conftest*
13134 glibcpp_cv_func__fmodl_use=yes
13135 else
13136 echo "configure: failed program was:" >&5
13137 cat conftest.$ac_ext >&5
13138 rm -rf conftest*
13139 glibcpp_cv_func__fmodl_use=no
13140 fi
13141 rm -f conftest*
13142 ac_ext=c
13143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13144 ac_cpp='$CPP $CPPFLAGS'
13145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13147 cross_compiling=$ac_cv_prog_cc_cross
13148
13149
13150 fi
13151
13152 fi
13153 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
13154
13155 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
13156 for ac_func in _fmodl
13157 do
13158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13159 echo "configure:13160: checking for $ac_func" >&5
13160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13161 echo $ac_n "(cached) $ac_c" 1>&6
13162 else
13163 cat > conftest.$ac_ext <<EOF
13164 #line 13165 "configure"
13165 #include "confdefs.h"
13166 /* System header to define __stub macros and hopefully few prototypes,
13167 which can conflict with char $ac_func(); below. */
13168 #include <assert.h>
13169 /* Override any gcc2 internal prototype to avoid an error. */
13170 /* We use char because int might match the return type of a gcc2
13171 builtin and then its argument prototype would still apply. */
13172 char $ac_func();
13173
13174 int main() {
13175
13176 /* The GNU C library defines this for functions which it implements
13177 to always fail with ENOSYS. Some functions are actually named
13178 something starting with __ and the normal name is an alias. */
13179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13180 choke me
13181 #else
13182 $ac_func();
13183 #endif
13184
13185 ; return 0; }
13186 EOF
13187 if { (eval echo configure:13188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13188 rm -rf conftest*
13189 eval "ac_cv_func_$ac_func=yes"
13190 else
13191 echo "configure: failed program was:" >&5
13192 cat conftest.$ac_ext >&5
13193 rm -rf conftest*
13194 eval "ac_cv_func_$ac_func=no"
13195 fi
13196 rm -f conftest*
13197 fi
13198
13199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13200 echo "$ac_t""yes" 1>&6
13201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13202 cat >> confdefs.h <<EOF
13203 #define $ac_tr_func 1
13204 EOF
13205
13206 else
13207 echo "$ac_t""no" 1>&6
13208 fi
13209 done
13210
13211 fi
13212 fi
13213
13214
13215
13216 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
13217 echo "configure:13218: checking for frexpl declaration" >&5
13218 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
13219 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
13220 echo $ac_n "(cached) $ac_c" 1>&6
13221 else
13222
13223
13224 ac_ext=C
13225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13226 ac_cpp='$CXXCPP $CPPFLAGS'
13227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13229 cross_compiling=$ac_cv_prog_cxx_cross
13230
13231 cat > conftest.$ac_ext <<EOF
13232 #line 13233 "configure"
13233 #include "confdefs.h"
13234 #include <math.h>
13235 int main() {
13236 frexpl(0, 0);
13237 ; return 0; }
13238 EOF
13239 if { (eval echo configure:13240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13240 rm -rf conftest*
13241 glibcpp_cv_func_frexpl_use=yes
13242 else
13243 echo "configure: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
13245 rm -rf conftest*
13246 glibcpp_cv_func_frexpl_use=no
13247 fi
13248 rm -f conftest*
13249 ac_ext=c
13250 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13251 ac_cpp='$CPP $CPPFLAGS'
13252 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13253 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13254 cross_compiling=$ac_cv_prog_cc_cross
13255
13256
13257 fi
13258
13259 fi
13260 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
13261
13262 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
13263 for ac_func in frexpl
13264 do
13265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13266 echo "configure:13267: checking for $ac_func" >&5
13267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13268 echo $ac_n "(cached) $ac_c" 1>&6
13269 else
13270 cat > conftest.$ac_ext <<EOF
13271 #line 13272 "configure"
13272 #include "confdefs.h"
13273 /* System header to define __stub macros and hopefully few prototypes,
13274 which can conflict with char $ac_func(); below. */
13275 #include <assert.h>
13276 /* Override any gcc2 internal prototype to avoid an error. */
13277 /* We use char because int might match the return type of a gcc2
13278 builtin and then its argument prototype would still apply. */
13279 char $ac_func();
13280
13281 int main() {
13282
13283 /* The GNU C library defines this for functions which it implements
13284 to always fail with ENOSYS. Some functions are actually named
13285 something starting with __ and the normal name is an alias. */
13286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13287 choke me
13288 #else
13289 $ac_func();
13290 #endif
13291
13292 ; return 0; }
13293 EOF
13294 if { (eval echo configure:13295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13295 rm -rf conftest*
13296 eval "ac_cv_func_$ac_func=yes"
13297 else
13298 echo "configure: failed program was:" >&5
13299 cat conftest.$ac_ext >&5
13300 rm -rf conftest*
13301 eval "ac_cv_func_$ac_func=no"
13302 fi
13303 rm -f conftest*
13304 fi
13305
13306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13307 echo "$ac_t""yes" 1>&6
13308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13309 cat >> confdefs.h <<EOF
13310 #define $ac_tr_func 1
13311 EOF
13312
13313 else
13314 echo "$ac_t""no" 1>&6
13315 fi
13316 done
13317
13318 else
13319
13320 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
13321 echo "configure:13322: checking for _frexpl declaration" >&5
13322 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
13323 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
13324 echo $ac_n "(cached) $ac_c" 1>&6
13325 else
13326
13327
13328 ac_ext=C
13329 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13330 ac_cpp='$CXXCPP $CPPFLAGS'
13331 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13332 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13333 cross_compiling=$ac_cv_prog_cxx_cross
13334
13335 cat > conftest.$ac_ext <<EOF
13336 #line 13337 "configure"
13337 #include "confdefs.h"
13338 #include <math.h>
13339 int main() {
13340 _frexpl(0, 0);
13341 ; return 0; }
13342 EOF
13343 if { (eval echo configure:13344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13344 rm -rf conftest*
13345 glibcpp_cv_func__frexpl_use=yes
13346 else
13347 echo "configure: failed program was:" >&5
13348 cat conftest.$ac_ext >&5
13349 rm -rf conftest*
13350 glibcpp_cv_func__frexpl_use=no
13351 fi
13352 rm -f conftest*
13353 ac_ext=c
13354 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13355 ac_cpp='$CPP $CPPFLAGS'
13356 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13357 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13358 cross_compiling=$ac_cv_prog_cc_cross
13359
13360
13361 fi
13362
13363 fi
13364 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
13365
13366 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
13367 for ac_func in _frexpl
13368 do
13369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13370 echo "configure:13371: checking for $ac_func" >&5
13371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13372 echo $ac_n "(cached) $ac_c" 1>&6
13373 else
13374 cat > conftest.$ac_ext <<EOF
13375 #line 13376 "configure"
13376 #include "confdefs.h"
13377 /* System header to define __stub macros and hopefully few prototypes,
13378 which can conflict with char $ac_func(); below. */
13379 #include <assert.h>
13380 /* Override any gcc2 internal prototype to avoid an error. */
13381 /* We use char because int might match the return type of a gcc2
13382 builtin and then its argument prototype would still apply. */
13383 char $ac_func();
13384
13385 int main() {
13386
13387 /* The GNU C library defines this for functions which it implements
13388 to always fail with ENOSYS. Some functions are actually named
13389 something starting with __ and the normal name is an alias. */
13390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13391 choke me
13392 #else
13393 $ac_func();
13394 #endif
13395
13396 ; return 0; }
13397 EOF
13398 if { (eval echo configure:13399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13399 rm -rf conftest*
13400 eval "ac_cv_func_$ac_func=yes"
13401 else
13402 echo "configure: failed program was:" >&5
13403 cat conftest.$ac_ext >&5
13404 rm -rf conftest*
13405 eval "ac_cv_func_$ac_func=no"
13406 fi
13407 rm -f conftest*
13408 fi
13409
13410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13411 echo "$ac_t""yes" 1>&6
13412 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13413 cat >> confdefs.h <<EOF
13414 #define $ac_tr_func 1
13415 EOF
13416
13417 else
13418 echo "$ac_t""no" 1>&6
13419 fi
13420 done
13421
13422 fi
13423 fi
13424
13425
13426
13427 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
13428 echo "configure:13429: checking for hypotl declaration" >&5
13429 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
13430 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
13431 echo $ac_n "(cached) $ac_c" 1>&6
13432 else
13433
13434
13435 ac_ext=C
13436 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13437 ac_cpp='$CXXCPP $CPPFLAGS'
13438 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13439 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13440 cross_compiling=$ac_cv_prog_cxx_cross
13441
13442 cat > conftest.$ac_ext <<EOF
13443 #line 13444 "configure"
13444 #include "confdefs.h"
13445 #include <math.h>
13446 int main() {
13447 hypotl(0, 0);
13448 ; return 0; }
13449 EOF
13450 if { (eval echo configure:13451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13451 rm -rf conftest*
13452 glibcpp_cv_func_hypotl_use=yes
13453 else
13454 echo "configure: failed program was:" >&5
13455 cat conftest.$ac_ext >&5
13456 rm -rf conftest*
13457 glibcpp_cv_func_hypotl_use=no
13458 fi
13459 rm -f conftest*
13460 ac_ext=c
13461 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13462 ac_cpp='$CPP $CPPFLAGS'
13463 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13464 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13465 cross_compiling=$ac_cv_prog_cc_cross
13466
13467
13468 fi
13469
13470 fi
13471 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
13472
13473 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
13474 for ac_func in hypotl
13475 do
13476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13477 echo "configure:13478: checking for $ac_func" >&5
13478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13479 echo $ac_n "(cached) $ac_c" 1>&6
13480 else
13481 cat > conftest.$ac_ext <<EOF
13482 #line 13483 "configure"
13483 #include "confdefs.h"
13484 /* System header to define __stub macros and hopefully few prototypes,
13485 which can conflict with char $ac_func(); below. */
13486 #include <assert.h>
13487 /* Override any gcc2 internal prototype to avoid an error. */
13488 /* We use char because int might match the return type of a gcc2
13489 builtin and then its argument prototype would still apply. */
13490 char $ac_func();
13491
13492 int main() {
13493
13494 /* The GNU C library defines this for functions which it implements
13495 to always fail with ENOSYS. Some functions are actually named
13496 something starting with __ and the normal name is an alias. */
13497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13498 choke me
13499 #else
13500 $ac_func();
13501 #endif
13502
13503 ; return 0; }
13504 EOF
13505 if { (eval echo configure:13506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13506 rm -rf conftest*
13507 eval "ac_cv_func_$ac_func=yes"
13508 else
13509 echo "configure: failed program was:" >&5
13510 cat conftest.$ac_ext >&5
13511 rm -rf conftest*
13512 eval "ac_cv_func_$ac_func=no"
13513 fi
13514 rm -f conftest*
13515 fi
13516
13517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13518 echo "$ac_t""yes" 1>&6
13519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13520 cat >> confdefs.h <<EOF
13521 #define $ac_tr_func 1
13522 EOF
13523
13524 else
13525 echo "$ac_t""no" 1>&6
13526 fi
13527 done
13528
13529 else
13530
13531 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
13532 echo "configure:13533: checking for _hypotl declaration" >&5
13533 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
13534 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
13535 echo $ac_n "(cached) $ac_c" 1>&6
13536 else
13537
13538
13539 ac_ext=C
13540 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13541 ac_cpp='$CXXCPP $CPPFLAGS'
13542 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13543 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13544 cross_compiling=$ac_cv_prog_cxx_cross
13545
13546 cat > conftest.$ac_ext <<EOF
13547 #line 13548 "configure"
13548 #include "confdefs.h"
13549 #include <math.h>
13550 int main() {
13551 _hypotl(0, 0);
13552 ; return 0; }
13553 EOF
13554 if { (eval echo configure:13555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13555 rm -rf conftest*
13556 glibcpp_cv_func__hypotl_use=yes
13557 else
13558 echo "configure: failed program was:" >&5
13559 cat conftest.$ac_ext >&5
13560 rm -rf conftest*
13561 glibcpp_cv_func__hypotl_use=no
13562 fi
13563 rm -f conftest*
13564 ac_ext=c
13565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13566 ac_cpp='$CPP $CPPFLAGS'
13567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13569 cross_compiling=$ac_cv_prog_cc_cross
13570
13571
13572 fi
13573
13574 fi
13575 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
13576
13577 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
13578 for ac_func in _hypotl
13579 do
13580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13581 echo "configure:13582: checking for $ac_func" >&5
13582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13583 echo $ac_n "(cached) $ac_c" 1>&6
13584 else
13585 cat > conftest.$ac_ext <<EOF
13586 #line 13587 "configure"
13587 #include "confdefs.h"
13588 /* System header to define __stub macros and hopefully few prototypes,
13589 which can conflict with char $ac_func(); below. */
13590 #include <assert.h>
13591 /* Override any gcc2 internal prototype to avoid an error. */
13592 /* We use char because int might match the return type of a gcc2
13593 builtin and then its argument prototype would still apply. */
13594 char $ac_func();
13595
13596 int main() {
13597
13598 /* The GNU C library defines this for functions which it implements
13599 to always fail with ENOSYS. Some functions are actually named
13600 something starting with __ and the normal name is an alias. */
13601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13602 choke me
13603 #else
13604 $ac_func();
13605 #endif
13606
13607 ; return 0; }
13608 EOF
13609 if { (eval echo configure:13610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13610 rm -rf conftest*
13611 eval "ac_cv_func_$ac_func=yes"
13612 else
13613 echo "configure: failed program was:" >&5
13614 cat conftest.$ac_ext >&5
13615 rm -rf conftest*
13616 eval "ac_cv_func_$ac_func=no"
13617 fi
13618 rm -f conftest*
13619 fi
13620
13621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13622 echo "$ac_t""yes" 1>&6
13623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13624 cat >> confdefs.h <<EOF
13625 #define $ac_tr_func 1
13626 EOF
13627
13628 else
13629 echo "$ac_t""no" 1>&6
13630 fi
13631 done
13632
13633 fi
13634 fi
13635
13636
13637
13638 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
13639 echo "configure:13640: checking for ldexpl declaration" >&5
13640 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
13641 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
13642 echo $ac_n "(cached) $ac_c" 1>&6
13643 else
13644
13645
13646 ac_ext=C
13647 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13648 ac_cpp='$CXXCPP $CPPFLAGS'
13649 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13650 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13651 cross_compiling=$ac_cv_prog_cxx_cross
13652
13653 cat > conftest.$ac_ext <<EOF
13654 #line 13655 "configure"
13655 #include "confdefs.h"
13656 #include <math.h>
13657 int main() {
13658 ldexpl(0, 0);
13659 ; return 0; }
13660 EOF
13661 if { (eval echo configure:13662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13662 rm -rf conftest*
13663 glibcpp_cv_func_ldexpl_use=yes
13664 else
13665 echo "configure: failed program was:" >&5
13666 cat conftest.$ac_ext >&5
13667 rm -rf conftest*
13668 glibcpp_cv_func_ldexpl_use=no
13669 fi
13670 rm -f conftest*
13671 ac_ext=c
13672 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13673 ac_cpp='$CPP $CPPFLAGS'
13674 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13675 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13676 cross_compiling=$ac_cv_prog_cc_cross
13677
13678
13679 fi
13680
13681 fi
13682 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
13683
13684 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
13685 for ac_func in ldexpl
13686 do
13687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13688 echo "configure:13689: checking for $ac_func" >&5
13689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13690 echo $ac_n "(cached) $ac_c" 1>&6
13691 else
13692 cat > conftest.$ac_ext <<EOF
13693 #line 13694 "configure"
13694 #include "confdefs.h"
13695 /* System header to define __stub macros and hopefully few prototypes,
13696 which can conflict with char $ac_func(); below. */
13697 #include <assert.h>
13698 /* Override any gcc2 internal prototype to avoid an error. */
13699 /* We use char because int might match the return type of a gcc2
13700 builtin and then its argument prototype would still apply. */
13701 char $ac_func();
13702
13703 int main() {
13704
13705 /* The GNU C library defines this for functions which it implements
13706 to always fail with ENOSYS. Some functions are actually named
13707 something starting with __ and the normal name is an alias. */
13708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13709 choke me
13710 #else
13711 $ac_func();
13712 #endif
13713
13714 ; return 0; }
13715 EOF
13716 if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13717 rm -rf conftest*
13718 eval "ac_cv_func_$ac_func=yes"
13719 else
13720 echo "configure: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13722 rm -rf conftest*
13723 eval "ac_cv_func_$ac_func=no"
13724 fi
13725 rm -f conftest*
13726 fi
13727
13728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13729 echo "$ac_t""yes" 1>&6
13730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13731 cat >> confdefs.h <<EOF
13732 #define $ac_tr_func 1
13733 EOF
13734
13735 else
13736 echo "$ac_t""no" 1>&6
13737 fi
13738 done
13739
13740 else
13741
13742 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
13743 echo "configure:13744: checking for _ldexpl declaration" >&5
13744 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
13745 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
13746 echo $ac_n "(cached) $ac_c" 1>&6
13747 else
13748
13749
13750 ac_ext=C
13751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13752 ac_cpp='$CXXCPP $CPPFLAGS'
13753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13755 cross_compiling=$ac_cv_prog_cxx_cross
13756
13757 cat > conftest.$ac_ext <<EOF
13758 #line 13759 "configure"
13759 #include "confdefs.h"
13760 #include <math.h>
13761 int main() {
13762 _ldexpl(0, 0);
13763 ; return 0; }
13764 EOF
13765 if { (eval echo configure:13766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13766 rm -rf conftest*
13767 glibcpp_cv_func__ldexpl_use=yes
13768 else
13769 echo "configure: failed program was:" >&5
13770 cat conftest.$ac_ext >&5
13771 rm -rf conftest*
13772 glibcpp_cv_func__ldexpl_use=no
13773 fi
13774 rm -f conftest*
13775 ac_ext=c
13776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13777 ac_cpp='$CPP $CPPFLAGS'
13778 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13779 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13780 cross_compiling=$ac_cv_prog_cc_cross
13781
13782
13783 fi
13784
13785 fi
13786 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
13787
13788 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
13789 for ac_func in _ldexpl
13790 do
13791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13792 echo "configure:13793: checking for $ac_func" >&5
13793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13794 echo $ac_n "(cached) $ac_c" 1>&6
13795 else
13796 cat > conftest.$ac_ext <<EOF
13797 #line 13798 "configure"
13798 #include "confdefs.h"
13799 /* System header to define __stub macros and hopefully few prototypes,
13800 which can conflict with char $ac_func(); below. */
13801 #include <assert.h>
13802 /* Override any gcc2 internal prototype to avoid an error. */
13803 /* We use char because int might match the return type of a gcc2
13804 builtin and then its argument prototype would still apply. */
13805 char $ac_func();
13806
13807 int main() {
13808
13809 /* The GNU C library defines this for functions which it implements
13810 to always fail with ENOSYS. Some functions are actually named
13811 something starting with __ and the normal name is an alias. */
13812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13813 choke me
13814 #else
13815 $ac_func();
13816 #endif
13817
13818 ; return 0; }
13819 EOF
13820 if { (eval echo configure:13821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13821 rm -rf conftest*
13822 eval "ac_cv_func_$ac_func=yes"
13823 else
13824 echo "configure: failed program was:" >&5
13825 cat conftest.$ac_ext >&5
13826 rm -rf conftest*
13827 eval "ac_cv_func_$ac_func=no"
13828 fi
13829 rm -f conftest*
13830 fi
13831
13832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13833 echo "$ac_t""yes" 1>&6
13834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13835 cat >> confdefs.h <<EOF
13836 #define $ac_tr_func 1
13837 EOF
13838
13839 else
13840 echo "$ac_t""no" 1>&6
13841 fi
13842 done
13843
13844 fi
13845 fi
13846
13847
13848
13849 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
13850 echo "configure:13851: checking for logl declaration" >&5
13851 if test x${glibcpp_cv_func_logl_use+set} != xset; then
13852 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
13853 echo $ac_n "(cached) $ac_c" 1>&6
13854 else
13855
13856
13857 ac_ext=C
13858 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13859 ac_cpp='$CXXCPP $CPPFLAGS'
13860 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13861 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13862 cross_compiling=$ac_cv_prog_cxx_cross
13863
13864 cat > conftest.$ac_ext <<EOF
13865 #line 13866 "configure"
13866 #include "confdefs.h"
13867 #include <math.h>
13868 #ifdef HAVE_IEEEFP_H
13869 #include <ieeefp.h>
13870 #endif
13871
13872 int main() {
13873 logl(0);
13874 ; return 0; }
13875 EOF
13876 if { (eval echo configure:13877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13877 rm -rf conftest*
13878 glibcpp_cv_func_logl_use=yes
13879 else
13880 echo "configure: failed program was:" >&5
13881 cat conftest.$ac_ext >&5
13882 rm -rf conftest*
13883 glibcpp_cv_func_logl_use=no
13884 fi
13885 rm -f conftest*
13886 ac_ext=c
13887 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13888 ac_cpp='$CPP $CPPFLAGS'
13889 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13890 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13891 cross_compiling=$ac_cv_prog_cc_cross
13892
13893
13894 fi
13895
13896 fi
13897 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
13898
13899 if test x$glibcpp_cv_func_logl_use = x"yes"; then
13900 for ac_func in logl
13901 do
13902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13903 echo "configure:13904: checking for $ac_func" >&5
13904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13905 echo $ac_n "(cached) $ac_c" 1>&6
13906 else
13907 cat > conftest.$ac_ext <<EOF
13908 #line 13909 "configure"
13909 #include "confdefs.h"
13910 /* System header to define __stub macros and hopefully few prototypes,
13911 which can conflict with char $ac_func(); below. */
13912 #include <assert.h>
13913 /* Override any gcc2 internal prototype to avoid an error. */
13914 /* We use char because int might match the return type of a gcc2
13915 builtin and then its argument prototype would still apply. */
13916 char $ac_func();
13917
13918 int main() {
13919
13920 /* The GNU C library defines this for functions which it implements
13921 to always fail with ENOSYS. Some functions are actually named
13922 something starting with __ and the normal name is an alias. */
13923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13924 choke me
13925 #else
13926 $ac_func();
13927 #endif
13928
13929 ; return 0; }
13930 EOF
13931 if { (eval echo configure:13932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13932 rm -rf conftest*
13933 eval "ac_cv_func_$ac_func=yes"
13934 else
13935 echo "configure: failed program was:" >&5
13936 cat conftest.$ac_ext >&5
13937 rm -rf conftest*
13938 eval "ac_cv_func_$ac_func=no"
13939 fi
13940 rm -f conftest*
13941 fi
13942
13943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13944 echo "$ac_t""yes" 1>&6
13945 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13946 cat >> confdefs.h <<EOF
13947 #define $ac_tr_func 1
13948 EOF
13949
13950 else
13951 echo "$ac_t""no" 1>&6
13952 fi
13953 done
13954
13955 else
13956
13957 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
13958 echo "configure:13959: checking for _logl declaration" >&5
13959 if test x${glibcpp_cv_func__logl_use+set} != xset; then
13960 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
13961 echo $ac_n "(cached) $ac_c" 1>&6
13962 else
13963
13964
13965 ac_ext=C
13966 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13967 ac_cpp='$CXXCPP $CPPFLAGS'
13968 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13969 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13970 cross_compiling=$ac_cv_prog_cxx_cross
13971
13972 cat > conftest.$ac_ext <<EOF
13973 #line 13974 "configure"
13974 #include "confdefs.h"
13975 #include <math.h>
13976 #ifdef HAVE_IEEEFP_H
13977 #include <ieeefp.h>
13978 #endif
13979
13980 int main() {
13981 _logl(0);
13982 ; return 0; }
13983 EOF
13984 if { (eval echo configure:13985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13985 rm -rf conftest*
13986 glibcpp_cv_func__logl_use=yes
13987 else
13988 echo "configure: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13990 rm -rf conftest*
13991 glibcpp_cv_func__logl_use=no
13992 fi
13993 rm -f conftest*
13994 ac_ext=c
13995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13996 ac_cpp='$CPP $CPPFLAGS'
13997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13999 cross_compiling=$ac_cv_prog_cc_cross
14000
14001
14002 fi
14003
14004 fi
14005 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
14006
14007 if test x$glibcpp_cv_func__logl_use = x"yes"; then
14008 for ac_func in _logl
14009 do
14010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14011 echo "configure:14012: checking for $ac_func" >&5
14012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14013 echo $ac_n "(cached) $ac_c" 1>&6
14014 else
14015 cat > conftest.$ac_ext <<EOF
14016 #line 14017 "configure"
14017 #include "confdefs.h"
14018 /* System header to define __stub macros and hopefully few prototypes,
14019 which can conflict with char $ac_func(); below. */
14020 #include <assert.h>
14021 /* Override any gcc2 internal prototype to avoid an error. */
14022 /* We use char because int might match the return type of a gcc2
14023 builtin and then its argument prototype would still apply. */
14024 char $ac_func();
14025
14026 int main() {
14027
14028 /* The GNU C library defines this for functions which it implements
14029 to always fail with ENOSYS. Some functions are actually named
14030 something starting with __ and the normal name is an alias. */
14031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14032 choke me
14033 #else
14034 $ac_func();
14035 #endif
14036
14037 ; return 0; }
14038 EOF
14039 if { (eval echo configure:14040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14040 rm -rf conftest*
14041 eval "ac_cv_func_$ac_func=yes"
14042 else
14043 echo "configure: failed program was:" >&5
14044 cat conftest.$ac_ext >&5
14045 rm -rf conftest*
14046 eval "ac_cv_func_$ac_func=no"
14047 fi
14048 rm -f conftest*
14049 fi
14050
14051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14052 echo "$ac_t""yes" 1>&6
14053 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14054 cat >> confdefs.h <<EOF
14055 #define $ac_tr_func 1
14056 EOF
14057
14058 else
14059 echo "$ac_t""no" 1>&6
14060 fi
14061 done
14062
14063 fi
14064 fi
14065
14066
14067
14068 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
14069 echo "configure:14070: checking for log10l declaration" >&5
14070 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
14071 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
14072 echo $ac_n "(cached) $ac_c" 1>&6
14073 else
14074
14075
14076 ac_ext=C
14077 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14078 ac_cpp='$CXXCPP $CPPFLAGS'
14079 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14080 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14081 cross_compiling=$ac_cv_prog_cxx_cross
14082
14083 cat > conftest.$ac_ext <<EOF
14084 #line 14085 "configure"
14085 #include "confdefs.h"
14086 #include <math.h>
14087 #ifdef HAVE_IEEEFP_H
14088 #include <ieeefp.h>
14089 #endif
14090
14091 int main() {
14092 log10l(0);
14093 ; return 0; }
14094 EOF
14095 if { (eval echo configure:14096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14096 rm -rf conftest*
14097 glibcpp_cv_func_log10l_use=yes
14098 else
14099 echo "configure: failed program was:" >&5
14100 cat conftest.$ac_ext >&5
14101 rm -rf conftest*
14102 glibcpp_cv_func_log10l_use=no
14103 fi
14104 rm -f conftest*
14105 ac_ext=c
14106 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14107 ac_cpp='$CPP $CPPFLAGS'
14108 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14109 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14110 cross_compiling=$ac_cv_prog_cc_cross
14111
14112
14113 fi
14114
14115 fi
14116 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
14117
14118 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
14119 for ac_func in log10l
14120 do
14121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14122 echo "configure:14123: checking for $ac_func" >&5
14123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14124 echo $ac_n "(cached) $ac_c" 1>&6
14125 else
14126 cat > conftest.$ac_ext <<EOF
14127 #line 14128 "configure"
14128 #include "confdefs.h"
14129 /* System header to define __stub macros and hopefully few prototypes,
14130 which can conflict with char $ac_func(); below. */
14131 #include <assert.h>
14132 /* Override any gcc2 internal prototype to avoid an error. */
14133 /* We use char because int might match the return type of a gcc2
14134 builtin and then its argument prototype would still apply. */
14135 char $ac_func();
14136
14137 int main() {
14138
14139 /* The GNU C library defines this for functions which it implements
14140 to always fail with ENOSYS. Some functions are actually named
14141 something starting with __ and the normal name is an alias. */
14142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14143 choke me
14144 #else
14145 $ac_func();
14146 #endif
14147
14148 ; return 0; }
14149 EOF
14150 if { (eval echo configure:14151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14151 rm -rf conftest*
14152 eval "ac_cv_func_$ac_func=yes"
14153 else
14154 echo "configure: failed program was:" >&5
14155 cat conftest.$ac_ext >&5
14156 rm -rf conftest*
14157 eval "ac_cv_func_$ac_func=no"
14158 fi
14159 rm -f conftest*
14160 fi
14161
14162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14163 echo "$ac_t""yes" 1>&6
14164 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14165 cat >> confdefs.h <<EOF
14166 #define $ac_tr_func 1
14167 EOF
14168
14169 else
14170 echo "$ac_t""no" 1>&6
14171 fi
14172 done
14173
14174 else
14175
14176 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
14177 echo "configure:14178: checking for _log10l declaration" >&5
14178 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
14179 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
14180 echo $ac_n "(cached) $ac_c" 1>&6
14181 else
14182
14183
14184 ac_ext=C
14185 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14186 ac_cpp='$CXXCPP $CPPFLAGS'
14187 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14188 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14189 cross_compiling=$ac_cv_prog_cxx_cross
14190
14191 cat > conftest.$ac_ext <<EOF
14192 #line 14193 "configure"
14193 #include "confdefs.h"
14194 #include <math.h>
14195 #ifdef HAVE_IEEEFP_H
14196 #include <ieeefp.h>
14197 #endif
14198
14199 int main() {
14200 _log10l(0);
14201 ; return 0; }
14202 EOF
14203 if { (eval echo configure:14204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14204 rm -rf conftest*
14205 glibcpp_cv_func__log10l_use=yes
14206 else
14207 echo "configure: failed program was:" >&5
14208 cat conftest.$ac_ext >&5
14209 rm -rf conftest*
14210 glibcpp_cv_func__log10l_use=no
14211 fi
14212 rm -f conftest*
14213 ac_ext=c
14214 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14215 ac_cpp='$CPP $CPPFLAGS'
14216 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14217 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14218 cross_compiling=$ac_cv_prog_cc_cross
14219
14220
14221 fi
14222
14223 fi
14224 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
14225
14226 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
14227 for ac_func in _log10l
14228 do
14229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14230 echo "configure:14231: checking for $ac_func" >&5
14231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14232 echo $ac_n "(cached) $ac_c" 1>&6
14233 else
14234 cat > conftest.$ac_ext <<EOF
14235 #line 14236 "configure"
14236 #include "confdefs.h"
14237 /* System header to define __stub macros and hopefully few prototypes,
14238 which can conflict with char $ac_func(); below. */
14239 #include <assert.h>
14240 /* Override any gcc2 internal prototype to avoid an error. */
14241 /* We use char because int might match the return type of a gcc2
14242 builtin and then its argument prototype would still apply. */
14243 char $ac_func();
14244
14245 int main() {
14246
14247 /* The GNU C library defines this for functions which it implements
14248 to always fail with ENOSYS. Some functions are actually named
14249 something starting with __ and the normal name is an alias. */
14250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14251 choke me
14252 #else
14253 $ac_func();
14254 #endif
14255
14256 ; return 0; }
14257 EOF
14258 if { (eval echo configure:14259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14259 rm -rf conftest*
14260 eval "ac_cv_func_$ac_func=yes"
14261 else
14262 echo "configure: failed program was:" >&5
14263 cat conftest.$ac_ext >&5
14264 rm -rf conftest*
14265 eval "ac_cv_func_$ac_func=no"
14266 fi
14267 rm -f conftest*
14268 fi
14269
14270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14271 echo "$ac_t""yes" 1>&6
14272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14273 cat >> confdefs.h <<EOF
14274 #define $ac_tr_func 1
14275 EOF
14276
14277 else
14278 echo "$ac_t""no" 1>&6
14279 fi
14280 done
14281
14282 fi
14283 fi
14284
14285
14286
14287 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
14288 echo "configure:14289: checking for modfl declaration" >&5
14289 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
14290 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
14291 echo $ac_n "(cached) $ac_c" 1>&6
14292 else
14293
14294
14295 ac_ext=C
14296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14297 ac_cpp='$CXXCPP $CPPFLAGS'
14298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14300 cross_compiling=$ac_cv_prog_cxx_cross
14301
14302 cat > conftest.$ac_ext <<EOF
14303 #line 14304 "configure"
14304 #include "confdefs.h"
14305 #include <math.h>
14306 int main() {
14307 modfl(0, 0);
14308 ; return 0; }
14309 EOF
14310 if { (eval echo configure:14311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14311 rm -rf conftest*
14312 glibcpp_cv_func_modfl_use=yes
14313 else
14314 echo "configure: failed program was:" >&5
14315 cat conftest.$ac_ext >&5
14316 rm -rf conftest*
14317 glibcpp_cv_func_modfl_use=no
14318 fi
14319 rm -f conftest*
14320 ac_ext=c
14321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14322 ac_cpp='$CPP $CPPFLAGS'
14323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14325 cross_compiling=$ac_cv_prog_cc_cross
14326
14327
14328 fi
14329
14330 fi
14331 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
14332
14333 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
14334 for ac_func in modfl
14335 do
14336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14337 echo "configure:14338: checking for $ac_func" >&5
14338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14339 echo $ac_n "(cached) $ac_c" 1>&6
14340 else
14341 cat > conftest.$ac_ext <<EOF
14342 #line 14343 "configure"
14343 #include "confdefs.h"
14344 /* System header to define __stub macros and hopefully few prototypes,
14345 which can conflict with char $ac_func(); below. */
14346 #include <assert.h>
14347 /* Override any gcc2 internal prototype to avoid an error. */
14348 /* We use char because int might match the return type of a gcc2
14349 builtin and then its argument prototype would still apply. */
14350 char $ac_func();
14351
14352 int main() {
14353
14354 /* The GNU C library defines this for functions which it implements
14355 to always fail with ENOSYS. Some functions are actually named
14356 something starting with __ and the normal name is an alias. */
14357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14358 choke me
14359 #else
14360 $ac_func();
14361 #endif
14362
14363 ; return 0; }
14364 EOF
14365 if { (eval echo configure:14366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14366 rm -rf conftest*
14367 eval "ac_cv_func_$ac_func=yes"
14368 else
14369 echo "configure: failed program was:" >&5
14370 cat conftest.$ac_ext >&5
14371 rm -rf conftest*
14372 eval "ac_cv_func_$ac_func=no"
14373 fi
14374 rm -f conftest*
14375 fi
14376
14377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14378 echo "$ac_t""yes" 1>&6
14379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14380 cat >> confdefs.h <<EOF
14381 #define $ac_tr_func 1
14382 EOF
14383
14384 else
14385 echo "$ac_t""no" 1>&6
14386 fi
14387 done
14388
14389 else
14390
14391 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
14392 echo "configure:14393: checking for _modfl declaration" >&5
14393 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
14394 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
14395 echo $ac_n "(cached) $ac_c" 1>&6
14396 else
14397
14398
14399 ac_ext=C
14400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14401 ac_cpp='$CXXCPP $CPPFLAGS'
14402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14404 cross_compiling=$ac_cv_prog_cxx_cross
14405
14406 cat > conftest.$ac_ext <<EOF
14407 #line 14408 "configure"
14408 #include "confdefs.h"
14409 #include <math.h>
14410 int main() {
14411 _modfl(0, 0);
14412 ; return 0; }
14413 EOF
14414 if { (eval echo configure:14415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14415 rm -rf conftest*
14416 glibcpp_cv_func__modfl_use=yes
14417 else
14418 echo "configure: failed program was:" >&5
14419 cat conftest.$ac_ext >&5
14420 rm -rf conftest*
14421 glibcpp_cv_func__modfl_use=no
14422 fi
14423 rm -f conftest*
14424 ac_ext=c
14425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14426 ac_cpp='$CPP $CPPFLAGS'
14427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14429 cross_compiling=$ac_cv_prog_cc_cross
14430
14431
14432 fi
14433
14434 fi
14435 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
14436
14437 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
14438 for ac_func in _modfl
14439 do
14440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14441 echo "configure:14442: checking for $ac_func" >&5
14442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14443 echo $ac_n "(cached) $ac_c" 1>&6
14444 else
14445 cat > conftest.$ac_ext <<EOF
14446 #line 14447 "configure"
14447 #include "confdefs.h"
14448 /* System header to define __stub macros and hopefully few prototypes,
14449 which can conflict with char $ac_func(); below. */
14450 #include <assert.h>
14451 /* Override any gcc2 internal prototype to avoid an error. */
14452 /* We use char because int might match the return type of a gcc2
14453 builtin and then its argument prototype would still apply. */
14454 char $ac_func();
14455
14456 int main() {
14457
14458 /* The GNU C library defines this for functions which it implements
14459 to always fail with ENOSYS. Some functions are actually named
14460 something starting with __ and the normal name is an alias. */
14461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14462 choke me
14463 #else
14464 $ac_func();
14465 #endif
14466
14467 ; return 0; }
14468 EOF
14469 if { (eval echo configure:14470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14470 rm -rf conftest*
14471 eval "ac_cv_func_$ac_func=yes"
14472 else
14473 echo "configure: failed program was:" >&5
14474 cat conftest.$ac_ext >&5
14475 rm -rf conftest*
14476 eval "ac_cv_func_$ac_func=no"
14477 fi
14478 rm -f conftest*
14479 fi
14480
14481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14482 echo "$ac_t""yes" 1>&6
14483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14484 cat >> confdefs.h <<EOF
14485 #define $ac_tr_func 1
14486 EOF
14487
14488 else
14489 echo "$ac_t""no" 1>&6
14490 fi
14491 done
14492
14493 fi
14494 fi
14495
14496
14497
14498 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
14499 echo "configure:14500: checking for powl declaration" >&5
14500 if test x${glibcpp_cv_func_powl_use+set} != xset; then
14501 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
14502 echo $ac_n "(cached) $ac_c" 1>&6
14503 else
14504
14505
14506 ac_ext=C
14507 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14508 ac_cpp='$CXXCPP $CPPFLAGS'
14509 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14510 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14511 cross_compiling=$ac_cv_prog_cxx_cross
14512
14513 cat > conftest.$ac_ext <<EOF
14514 #line 14515 "configure"
14515 #include "confdefs.h"
14516 #include <math.h>
14517 int main() {
14518 powl(0, 0);
14519 ; return 0; }
14520 EOF
14521 if { (eval echo configure:14522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14522 rm -rf conftest*
14523 glibcpp_cv_func_powl_use=yes
14524 else
14525 echo "configure: failed program was:" >&5
14526 cat conftest.$ac_ext >&5
14527 rm -rf conftest*
14528 glibcpp_cv_func_powl_use=no
14529 fi
14530 rm -f conftest*
14531 ac_ext=c
14532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14533 ac_cpp='$CPP $CPPFLAGS'
14534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14536 cross_compiling=$ac_cv_prog_cc_cross
14537
14538
14539 fi
14540
14541 fi
14542 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
14543
14544 if test x$glibcpp_cv_func_powl_use = x"yes"; then
14545 for ac_func in powl
14546 do
14547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14548 echo "configure:14549: checking for $ac_func" >&5
14549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14550 echo $ac_n "(cached) $ac_c" 1>&6
14551 else
14552 cat > conftest.$ac_ext <<EOF
14553 #line 14554 "configure"
14554 #include "confdefs.h"
14555 /* System header to define __stub macros and hopefully few prototypes,
14556 which can conflict with char $ac_func(); below. */
14557 #include <assert.h>
14558 /* Override any gcc2 internal prototype to avoid an error. */
14559 /* We use char because int might match the return type of a gcc2
14560 builtin and then its argument prototype would still apply. */
14561 char $ac_func();
14562
14563 int main() {
14564
14565 /* The GNU C library defines this for functions which it implements
14566 to always fail with ENOSYS. Some functions are actually named
14567 something starting with __ and the normal name is an alias. */
14568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14569 choke me
14570 #else
14571 $ac_func();
14572 #endif
14573
14574 ; return 0; }
14575 EOF
14576 if { (eval echo configure:14577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14577 rm -rf conftest*
14578 eval "ac_cv_func_$ac_func=yes"
14579 else
14580 echo "configure: failed program was:" >&5
14581 cat conftest.$ac_ext >&5
14582 rm -rf conftest*
14583 eval "ac_cv_func_$ac_func=no"
14584 fi
14585 rm -f conftest*
14586 fi
14587
14588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14589 echo "$ac_t""yes" 1>&6
14590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14591 cat >> confdefs.h <<EOF
14592 #define $ac_tr_func 1
14593 EOF
14594
14595 else
14596 echo "$ac_t""no" 1>&6
14597 fi
14598 done
14599
14600 else
14601
14602 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
14603 echo "configure:14604: checking for _powl declaration" >&5
14604 if test x${glibcpp_cv_func__powl_use+set} != xset; then
14605 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
14606 echo $ac_n "(cached) $ac_c" 1>&6
14607 else
14608
14609
14610 ac_ext=C
14611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14612 ac_cpp='$CXXCPP $CPPFLAGS'
14613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14615 cross_compiling=$ac_cv_prog_cxx_cross
14616
14617 cat > conftest.$ac_ext <<EOF
14618 #line 14619 "configure"
14619 #include "confdefs.h"
14620 #include <math.h>
14621 int main() {
14622 _powl(0, 0);
14623 ; return 0; }
14624 EOF
14625 if { (eval echo configure:14626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14626 rm -rf conftest*
14627 glibcpp_cv_func__powl_use=yes
14628 else
14629 echo "configure: failed program was:" >&5
14630 cat conftest.$ac_ext >&5
14631 rm -rf conftest*
14632 glibcpp_cv_func__powl_use=no
14633 fi
14634 rm -f conftest*
14635 ac_ext=c
14636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14637 ac_cpp='$CPP $CPPFLAGS'
14638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14639 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14640 cross_compiling=$ac_cv_prog_cc_cross
14641
14642
14643 fi
14644
14645 fi
14646 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
14647
14648 if test x$glibcpp_cv_func__powl_use = x"yes"; then
14649 for ac_func in _powl
14650 do
14651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14652 echo "configure:14653: checking for $ac_func" >&5
14653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14654 echo $ac_n "(cached) $ac_c" 1>&6
14655 else
14656 cat > conftest.$ac_ext <<EOF
14657 #line 14658 "configure"
14658 #include "confdefs.h"
14659 /* System header to define __stub macros and hopefully few prototypes,
14660 which can conflict with char $ac_func(); below. */
14661 #include <assert.h>
14662 /* Override any gcc2 internal prototype to avoid an error. */
14663 /* We use char because int might match the return type of a gcc2
14664 builtin and then its argument prototype would still apply. */
14665 char $ac_func();
14666
14667 int main() {
14668
14669 /* The GNU C library defines this for functions which it implements
14670 to always fail with ENOSYS. Some functions are actually named
14671 something starting with __ and the normal name is an alias. */
14672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14673 choke me
14674 #else
14675 $ac_func();
14676 #endif
14677
14678 ; return 0; }
14679 EOF
14680 if { (eval echo configure:14681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14681 rm -rf conftest*
14682 eval "ac_cv_func_$ac_func=yes"
14683 else
14684 echo "configure: failed program was:" >&5
14685 cat conftest.$ac_ext >&5
14686 rm -rf conftest*
14687 eval "ac_cv_func_$ac_func=no"
14688 fi
14689 rm -f conftest*
14690 fi
14691
14692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14693 echo "$ac_t""yes" 1>&6
14694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14695 cat >> confdefs.h <<EOF
14696 #define $ac_tr_func 1
14697 EOF
14698
14699 else
14700 echo "$ac_t""no" 1>&6
14701 fi
14702 done
14703
14704 fi
14705 fi
14706
14707
14708
14709 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
14710 echo "configure:14711: checking for sqrtl declaration" >&5
14711 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
14712 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
14713 echo $ac_n "(cached) $ac_c" 1>&6
14714 else
14715
14716
14717 ac_ext=C
14718 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14719 ac_cpp='$CXXCPP $CPPFLAGS'
14720 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14721 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14722 cross_compiling=$ac_cv_prog_cxx_cross
14723
14724 cat > conftest.$ac_ext <<EOF
14725 #line 14726 "configure"
14726 #include "confdefs.h"
14727 #include <math.h>
14728 #ifdef HAVE_IEEEFP_H
14729 #include <ieeefp.h>
14730 #endif
14731
14732 int main() {
14733 sqrtl(0);
14734 ; return 0; }
14735 EOF
14736 if { (eval echo configure:14737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14737 rm -rf conftest*
14738 glibcpp_cv_func_sqrtl_use=yes
14739 else
14740 echo "configure: failed program was:" >&5
14741 cat conftest.$ac_ext >&5
14742 rm -rf conftest*
14743 glibcpp_cv_func_sqrtl_use=no
14744 fi
14745 rm -f conftest*
14746 ac_ext=c
14747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14748 ac_cpp='$CPP $CPPFLAGS'
14749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14751 cross_compiling=$ac_cv_prog_cc_cross
14752
14753
14754 fi
14755
14756 fi
14757 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
14758
14759 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
14760 for ac_func in sqrtl
14761 do
14762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14763 echo "configure:14764: checking for $ac_func" >&5
14764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14765 echo $ac_n "(cached) $ac_c" 1>&6
14766 else
14767 cat > conftest.$ac_ext <<EOF
14768 #line 14769 "configure"
14769 #include "confdefs.h"
14770 /* System header to define __stub macros and hopefully few prototypes,
14771 which can conflict with char $ac_func(); below. */
14772 #include <assert.h>
14773 /* Override any gcc2 internal prototype to avoid an error. */
14774 /* We use char because int might match the return type of a gcc2
14775 builtin and then its argument prototype would still apply. */
14776 char $ac_func();
14777
14778 int main() {
14779
14780 /* The GNU C library defines this for functions which it implements
14781 to always fail with ENOSYS. Some functions are actually named
14782 something starting with __ and the normal name is an alias. */
14783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14784 choke me
14785 #else
14786 $ac_func();
14787 #endif
14788
14789 ; return 0; }
14790 EOF
14791 if { (eval echo configure:14792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14792 rm -rf conftest*
14793 eval "ac_cv_func_$ac_func=yes"
14794 else
14795 echo "configure: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14797 rm -rf conftest*
14798 eval "ac_cv_func_$ac_func=no"
14799 fi
14800 rm -f conftest*
14801 fi
14802
14803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14804 echo "$ac_t""yes" 1>&6
14805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14806 cat >> confdefs.h <<EOF
14807 #define $ac_tr_func 1
14808 EOF
14809
14810 else
14811 echo "$ac_t""no" 1>&6
14812 fi
14813 done
14814
14815 else
14816
14817 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
14818 echo "configure:14819: checking for _sqrtl declaration" >&5
14819 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
14820 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
14821 echo $ac_n "(cached) $ac_c" 1>&6
14822 else
14823
14824
14825 ac_ext=C
14826 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14827 ac_cpp='$CXXCPP $CPPFLAGS'
14828 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14829 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14830 cross_compiling=$ac_cv_prog_cxx_cross
14831
14832 cat > conftest.$ac_ext <<EOF
14833 #line 14834 "configure"
14834 #include "confdefs.h"
14835 #include <math.h>
14836 #ifdef HAVE_IEEEFP_H
14837 #include <ieeefp.h>
14838 #endif
14839
14840 int main() {
14841 _sqrtl(0);
14842 ; return 0; }
14843 EOF
14844 if { (eval echo configure:14845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14845 rm -rf conftest*
14846 glibcpp_cv_func__sqrtl_use=yes
14847 else
14848 echo "configure: failed program was:" >&5
14849 cat conftest.$ac_ext >&5
14850 rm -rf conftest*
14851 glibcpp_cv_func__sqrtl_use=no
14852 fi
14853 rm -f conftest*
14854 ac_ext=c
14855 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14856 ac_cpp='$CPP $CPPFLAGS'
14857 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14858 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14859 cross_compiling=$ac_cv_prog_cc_cross
14860
14861
14862 fi
14863
14864 fi
14865 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
14866
14867 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
14868 for ac_func in _sqrtl
14869 do
14870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14871 echo "configure:14872: checking for $ac_func" >&5
14872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14873 echo $ac_n "(cached) $ac_c" 1>&6
14874 else
14875 cat > conftest.$ac_ext <<EOF
14876 #line 14877 "configure"
14877 #include "confdefs.h"
14878 /* System header to define __stub macros and hopefully few prototypes,
14879 which can conflict with char $ac_func(); below. */
14880 #include <assert.h>
14881 /* Override any gcc2 internal prototype to avoid an error. */
14882 /* We use char because int might match the return type of a gcc2
14883 builtin and then its argument prototype would still apply. */
14884 char $ac_func();
14885
14886 int main() {
14887
14888 /* The GNU C library defines this for functions which it implements
14889 to always fail with ENOSYS. Some functions are actually named
14890 something starting with __ and the normal name is an alias. */
14891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14892 choke me
14893 #else
14894 $ac_func();
14895 #endif
14896
14897 ; return 0; }
14898 EOF
14899 if { (eval echo configure:14900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14900 rm -rf conftest*
14901 eval "ac_cv_func_$ac_func=yes"
14902 else
14903 echo "configure: failed program was:" >&5
14904 cat conftest.$ac_ext >&5
14905 rm -rf conftest*
14906 eval "ac_cv_func_$ac_func=no"
14907 fi
14908 rm -f conftest*
14909 fi
14910
14911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14912 echo "$ac_t""yes" 1>&6
14913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14914 cat >> confdefs.h <<EOF
14915 #define $ac_tr_func 1
14916 EOF
14917
14918 else
14919 echo "$ac_t""no" 1>&6
14920 fi
14921 done
14922
14923 fi
14924 fi
14925
14926
14927
14928 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
14929 echo "configure:14930: checking for sincosl declaration" >&5
14930 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
14931 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
14932 echo $ac_n "(cached) $ac_c" 1>&6
14933 else
14934
14935
14936 ac_ext=C
14937 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14938 ac_cpp='$CXXCPP $CPPFLAGS'
14939 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14940 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14941 cross_compiling=$ac_cv_prog_cxx_cross
14942
14943 cat > conftest.$ac_ext <<EOF
14944 #line 14945 "configure"
14945 #include "confdefs.h"
14946 #include <math.h>
14947 int main() {
14948 sincosl(0, 0, 0);
14949 ; return 0; }
14950 EOF
14951 if { (eval echo configure:14952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14952 rm -rf conftest*
14953 glibcpp_cv_func_sincosl_use=yes
14954 else
14955 echo "configure: failed program was:" >&5
14956 cat conftest.$ac_ext >&5
14957 rm -rf conftest*
14958 glibcpp_cv_func_sincosl_use=no
14959 fi
14960 rm -f conftest*
14961 ac_ext=c
14962 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14963 ac_cpp='$CPP $CPPFLAGS'
14964 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14965 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14966 cross_compiling=$ac_cv_prog_cc_cross
14967
14968
14969 fi
14970
14971 fi
14972 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
14973
14974 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
14975 for ac_func in sincosl
14976 do
14977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14978 echo "configure:14979: checking for $ac_func" >&5
14979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14980 echo $ac_n "(cached) $ac_c" 1>&6
14981 else
14982 cat > conftest.$ac_ext <<EOF
14983 #line 14984 "configure"
14984 #include "confdefs.h"
14985 /* System header to define __stub macros and hopefully few prototypes,
14986 which can conflict with char $ac_func(); below. */
14987 #include <assert.h>
14988 /* Override any gcc2 internal prototype to avoid an error. */
14989 /* We use char because int might match the return type of a gcc2
14990 builtin and then its argument prototype would still apply. */
14991 char $ac_func();
14992
14993 int main() {
14994
14995 /* The GNU C library defines this for functions which it implements
14996 to always fail with ENOSYS. Some functions are actually named
14997 something starting with __ and the normal name is an alias. */
14998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14999 choke me
15000 #else
15001 $ac_func();
15002 #endif
15003
15004 ; return 0; }
15005 EOF
15006 if { (eval echo configure:15007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15007 rm -rf conftest*
15008 eval "ac_cv_func_$ac_func=yes"
15009 else
15010 echo "configure: failed program was:" >&5
15011 cat conftest.$ac_ext >&5
15012 rm -rf conftest*
15013 eval "ac_cv_func_$ac_func=no"
15014 fi
15015 rm -f conftest*
15016 fi
15017
15018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15019 echo "$ac_t""yes" 1>&6
15020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15021 cat >> confdefs.h <<EOF
15022 #define $ac_tr_func 1
15023 EOF
15024
15025 else
15026 echo "$ac_t""no" 1>&6
15027 fi
15028 done
15029
15030 else
15031
15032 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
15033 echo "configure:15034: checking for _sincosl declaration" >&5
15034 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
15035 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
15036 echo $ac_n "(cached) $ac_c" 1>&6
15037 else
15038
15039
15040 ac_ext=C
15041 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15042 ac_cpp='$CXXCPP $CPPFLAGS'
15043 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15044 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15045 cross_compiling=$ac_cv_prog_cxx_cross
15046
15047 cat > conftest.$ac_ext <<EOF
15048 #line 15049 "configure"
15049 #include "confdefs.h"
15050 #include <math.h>
15051 int main() {
15052 _sincosl(0, 0, 0);
15053 ; return 0; }
15054 EOF
15055 if { (eval echo configure:15056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15056 rm -rf conftest*
15057 glibcpp_cv_func__sincosl_use=yes
15058 else
15059 echo "configure: failed program was:" >&5
15060 cat conftest.$ac_ext >&5
15061 rm -rf conftest*
15062 glibcpp_cv_func__sincosl_use=no
15063 fi
15064 rm -f conftest*
15065 ac_ext=c
15066 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15067 ac_cpp='$CPP $CPPFLAGS'
15068 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15069 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15070 cross_compiling=$ac_cv_prog_cc_cross
15071
15072
15073 fi
15074
15075 fi
15076 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
15077
15078 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
15079 for ac_func in _sincosl
15080 do
15081 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15082 echo "configure:15083: checking for $ac_func" >&5
15083 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15084 echo $ac_n "(cached) $ac_c" 1>&6
15085 else
15086 cat > conftest.$ac_ext <<EOF
15087 #line 15088 "configure"
15088 #include "confdefs.h"
15089 /* System header to define __stub macros and hopefully few prototypes,
15090 which can conflict with char $ac_func(); below. */
15091 #include <assert.h>
15092 /* Override any gcc2 internal prototype to avoid an error. */
15093 /* We use char because int might match the return type of a gcc2
15094 builtin and then its argument prototype would still apply. */
15095 char $ac_func();
15096
15097 int main() {
15098
15099 /* The GNU C library defines this for functions which it implements
15100 to always fail with ENOSYS. Some functions are actually named
15101 something starting with __ and the normal name is an alias. */
15102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15103 choke me
15104 #else
15105 $ac_func();
15106 #endif
15107
15108 ; return 0; }
15109 EOF
15110 if { (eval echo configure:15111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15111 rm -rf conftest*
15112 eval "ac_cv_func_$ac_func=yes"
15113 else
15114 echo "configure: failed program was:" >&5
15115 cat conftest.$ac_ext >&5
15116 rm -rf conftest*
15117 eval "ac_cv_func_$ac_func=no"
15118 fi
15119 rm -f conftest*
15120 fi
15121
15122 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15123 echo "$ac_t""yes" 1>&6
15124 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15125 cat >> confdefs.h <<EOF
15126 #define $ac_tr_func 1
15127 EOF
15128
15129 else
15130 echo "$ac_t""no" 1>&6
15131 fi
15132 done
15133
15134 fi
15135 fi
15136
15137
15138
15139 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
15140 echo "configure:15141: checking for finitel declaration" >&5
15141 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
15142 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
15143 echo $ac_n "(cached) $ac_c" 1>&6
15144 else
15145
15146
15147 ac_ext=C
15148 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15149 ac_cpp='$CXXCPP $CPPFLAGS'
15150 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15151 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15152 cross_compiling=$ac_cv_prog_cxx_cross
15153
15154 cat > conftest.$ac_ext <<EOF
15155 #line 15156 "configure"
15156 #include "confdefs.h"
15157 #include <math.h>
15158 #ifdef HAVE_IEEEFP_H
15159 #include <ieeefp.h>
15160 #endif
15161
15162 int main() {
15163 finitel(0);
15164 ; return 0; }
15165 EOF
15166 if { (eval echo configure:15167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15167 rm -rf conftest*
15168 glibcpp_cv_func_finitel_use=yes
15169 else
15170 echo "configure: failed program was:" >&5
15171 cat conftest.$ac_ext >&5
15172 rm -rf conftest*
15173 glibcpp_cv_func_finitel_use=no
15174 fi
15175 rm -f conftest*
15176 ac_ext=c
15177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15178 ac_cpp='$CPP $CPPFLAGS'
15179 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15180 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15181 cross_compiling=$ac_cv_prog_cc_cross
15182
15183
15184 fi
15185
15186 fi
15187 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
15188
15189 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
15190 for ac_func in finitel
15191 do
15192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15193 echo "configure:15194: checking for $ac_func" >&5
15194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15195 echo $ac_n "(cached) $ac_c" 1>&6
15196 else
15197 cat > conftest.$ac_ext <<EOF
15198 #line 15199 "configure"
15199 #include "confdefs.h"
15200 /* System header to define __stub macros and hopefully few prototypes,
15201 which can conflict with char $ac_func(); below. */
15202 #include <assert.h>
15203 /* Override any gcc2 internal prototype to avoid an error. */
15204 /* We use char because int might match the return type of a gcc2
15205 builtin and then its argument prototype would still apply. */
15206 char $ac_func();
15207
15208 int main() {
15209
15210 /* The GNU C library defines this for functions which it implements
15211 to always fail with ENOSYS. Some functions are actually named
15212 something starting with __ and the normal name is an alias. */
15213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15214 choke me
15215 #else
15216 $ac_func();
15217 #endif
15218
15219 ; return 0; }
15220 EOF
15221 if { (eval echo configure:15222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15222 rm -rf conftest*
15223 eval "ac_cv_func_$ac_func=yes"
15224 else
15225 echo "configure: failed program was:" >&5
15226 cat conftest.$ac_ext >&5
15227 rm -rf conftest*
15228 eval "ac_cv_func_$ac_func=no"
15229 fi
15230 rm -f conftest*
15231 fi
15232
15233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15234 echo "$ac_t""yes" 1>&6
15235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15236 cat >> confdefs.h <<EOF
15237 #define $ac_tr_func 1
15238 EOF
15239
15240 else
15241 echo "$ac_t""no" 1>&6
15242 fi
15243 done
15244
15245 else
15246
15247 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
15248 echo "configure:15249: checking for _finitel declaration" >&5
15249 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
15250 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
15251 echo $ac_n "(cached) $ac_c" 1>&6
15252 else
15253
15254
15255 ac_ext=C
15256 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15257 ac_cpp='$CXXCPP $CPPFLAGS'
15258 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15259 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15260 cross_compiling=$ac_cv_prog_cxx_cross
15261
15262 cat > conftest.$ac_ext <<EOF
15263 #line 15264 "configure"
15264 #include "confdefs.h"
15265 #include <math.h>
15266 #ifdef HAVE_IEEEFP_H
15267 #include <ieeefp.h>
15268 #endif
15269
15270 int main() {
15271 _finitel(0);
15272 ; return 0; }
15273 EOF
15274 if { (eval echo configure:15275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15275 rm -rf conftest*
15276 glibcpp_cv_func__finitel_use=yes
15277 else
15278 echo "configure: failed program was:" >&5
15279 cat conftest.$ac_ext >&5
15280 rm -rf conftest*
15281 glibcpp_cv_func__finitel_use=no
15282 fi
15283 rm -f conftest*
15284 ac_ext=c
15285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15286 ac_cpp='$CPP $CPPFLAGS'
15287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15289 cross_compiling=$ac_cv_prog_cc_cross
15290
15291
15292 fi
15293
15294 fi
15295 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
15296
15297 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
15298 for ac_func in _finitel
15299 do
15300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15301 echo "configure:15302: checking for $ac_func" >&5
15302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15303 echo $ac_n "(cached) $ac_c" 1>&6
15304 else
15305 cat > conftest.$ac_ext <<EOF
15306 #line 15307 "configure"
15307 #include "confdefs.h"
15308 /* System header to define __stub macros and hopefully few prototypes,
15309 which can conflict with char $ac_func(); below. */
15310 #include <assert.h>
15311 /* Override any gcc2 internal prototype to avoid an error. */
15312 /* We use char because int might match the return type of a gcc2
15313 builtin and then its argument prototype would still apply. */
15314 char $ac_func();
15315
15316 int main() {
15317
15318 /* The GNU C library defines this for functions which it implements
15319 to always fail with ENOSYS. Some functions are actually named
15320 something starting with __ and the normal name is an alias. */
15321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15322 choke me
15323 #else
15324 $ac_func();
15325 #endif
15326
15327 ; return 0; }
15328 EOF
15329 if { (eval echo configure:15330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15330 rm -rf conftest*
15331 eval "ac_cv_func_$ac_func=yes"
15332 else
15333 echo "configure: failed program was:" >&5
15334 cat conftest.$ac_ext >&5
15335 rm -rf conftest*
15336 eval "ac_cv_func_$ac_func=no"
15337 fi
15338 rm -f conftest*
15339 fi
15340
15341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15342 echo "$ac_t""yes" 1>&6
15343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15344 cat >> confdefs.h <<EOF
15345 #define $ac_tr_func 1
15346 EOF
15347
15348 else
15349 echo "$ac_t""no" 1>&6
15350 fi
15351 done
15352
15353 fi
15354 fi
15355
15356
15357
15358
15359 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
15360 echo "configure:15361: checking for _float trig functions" >&5
15361 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
15362 echo $ac_n "(cached) $ac_c" 1>&6
15363 else
15364
15365
15366 ac_ext=C
15367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15368 ac_cpp='$CXXCPP $CPPFLAGS'
15369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15370 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15371 cross_compiling=$ac_cv_prog_cxx_cross
15372
15373 cat > conftest.$ac_ext <<EOF
15374 #line 15375 "configure"
15375 #include "confdefs.h"
15376 #include <math.h>
15377 int main() {
15378 `for x in _acosf _asinf _atanf \
15379 _cosf _sinf _tanf \
15380 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
15381 ; return 0; }
15382 EOF
15383 if { (eval echo configure:15384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15384 rm -rf conftest*
15385 glibcpp_cv_func__float_trig_use=yes
15386 else
15387 echo "configure: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15389 rm -rf conftest*
15390 glibcpp_cv_func__float_trig_use=no
15391 fi
15392 rm -f conftest*
15393 ac_ext=c
15394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15395 ac_cpp='$CPP $CPPFLAGS'
15396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15398 cross_compiling=$ac_cv_prog_cc_cross
15399
15400 fi
15401
15402 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
15403 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
15404 for ac_func in _acosf _asinf _atanf \
15405 _cosf _sinf _tanf \
15406 _coshf _sinhf _tanhf
15407 do
15408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15409 echo "configure:15410: checking for $ac_func" >&5
15410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15411 echo $ac_n "(cached) $ac_c" 1>&6
15412 else
15413 cat > conftest.$ac_ext <<EOF
15414 #line 15415 "configure"
15415 #include "confdefs.h"
15416 /* System header to define __stub macros and hopefully few prototypes,
15417 which can conflict with char $ac_func(); below. */
15418 #include <assert.h>
15419 /* Override any gcc2 internal prototype to avoid an error. */
15420 /* We use char because int might match the return type of a gcc2
15421 builtin and then its argument prototype would still apply. */
15422 char $ac_func();
15423
15424 int main() {
15425
15426 /* The GNU C library defines this for functions which it implements
15427 to always fail with ENOSYS. Some functions are actually named
15428 something starting with __ and the normal name is an alias. */
15429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15430 choke me
15431 #else
15432 $ac_func();
15433 #endif
15434
15435 ; return 0; }
15436 EOF
15437 if { (eval echo configure:15438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15438 rm -rf conftest*
15439 eval "ac_cv_func_$ac_func=yes"
15440 else
15441 echo "configure: failed program was:" >&5
15442 cat conftest.$ac_ext >&5
15443 rm -rf conftest*
15444 eval "ac_cv_func_$ac_func=no"
15445 fi
15446 rm -f conftest*
15447 fi
15448
15449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15450 echo "$ac_t""yes" 1>&6
15451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15452 cat >> confdefs.h <<EOF
15453 #define $ac_tr_func 1
15454 EOF
15455
15456 else
15457 echo "$ac_t""no" 1>&6
15458 fi
15459 done
15460
15461 fi
15462
15463
15464 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
15465 echo "configure:15466: checking for _float round functions" >&5
15466 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
15467 echo $ac_n "(cached) $ac_c" 1>&6
15468 else
15469
15470
15471 ac_ext=C
15472 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15473 ac_cpp='$CXXCPP $CPPFLAGS'
15474 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15475 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15476 cross_compiling=$ac_cv_prog_cxx_cross
15477
15478 cat > conftest.$ac_ext <<EOF
15479 #line 15480 "configure"
15480 #include "confdefs.h"
15481 #include <math.h>
15482 int main() {
15483 `for x in _ceilf _floorf; do echo "$x (0);"; done`
15484 ; return 0; }
15485 EOF
15486 if { (eval echo configure:15487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15487 rm -rf conftest*
15488 glibcpp_cv_func__float_round_use=yes
15489 else
15490 echo "configure: failed program was:" >&5
15491 cat conftest.$ac_ext >&5
15492 rm -rf conftest*
15493 glibcpp_cv_func__float_round_use=no
15494 fi
15495 rm -f conftest*
15496 ac_ext=c
15497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15498 ac_cpp='$CPP $CPPFLAGS'
15499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15500 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15501 cross_compiling=$ac_cv_prog_cc_cross
15502
15503 fi
15504
15505 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
15506 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
15507 for ac_func in _ceilf _floorf
15508 do
15509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15510 echo "configure:15511: checking for $ac_func" >&5
15511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15512 echo $ac_n "(cached) $ac_c" 1>&6
15513 else
15514 cat > conftest.$ac_ext <<EOF
15515 #line 15516 "configure"
15516 #include "confdefs.h"
15517 /* System header to define __stub macros and hopefully few prototypes,
15518 which can conflict with char $ac_func(); below. */
15519 #include <assert.h>
15520 /* Override any gcc2 internal prototype to avoid an error. */
15521 /* We use char because int might match the return type of a gcc2
15522 builtin and then its argument prototype would still apply. */
15523 char $ac_func();
15524
15525 int main() {
15526
15527 /* The GNU C library defines this for functions which it implements
15528 to always fail with ENOSYS. Some functions are actually named
15529 something starting with __ and the normal name is an alias. */
15530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15531 choke me
15532 #else
15533 $ac_func();
15534 #endif
15535
15536 ; return 0; }
15537 EOF
15538 if { (eval echo configure:15539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15539 rm -rf conftest*
15540 eval "ac_cv_func_$ac_func=yes"
15541 else
15542 echo "configure: failed program was:" >&5
15543 cat conftest.$ac_ext >&5
15544 rm -rf conftest*
15545 eval "ac_cv_func_$ac_func=no"
15546 fi
15547 rm -f conftest*
15548 fi
15549
15550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15551 echo "$ac_t""yes" 1>&6
15552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15553 cat >> confdefs.h <<EOF
15554 #define $ac_tr_func 1
15555 EOF
15556
15557 else
15558 echo "$ac_t""no" 1>&6
15559 fi
15560 done
15561
15562 fi
15563
15564
15565
15566 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
15567 echo "configure:15568: checking for _long double trig functions" >&5
15568 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
15569 echo $ac_n "(cached) $ac_c" 1>&6
15570 else
15571
15572
15573 ac_ext=C
15574 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15575 ac_cpp='$CXXCPP $CPPFLAGS'
15576 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15577 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15578 cross_compiling=$ac_cv_prog_cxx_cross
15579
15580 cat > conftest.$ac_ext <<EOF
15581 #line 15582 "configure"
15582 #include "confdefs.h"
15583 #include <math.h>
15584 int main() {
15585 `for x in _acosl _asinl _atanl \
15586 _cosl _sinl _tanl \
15587 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
15588 ; return 0; }
15589 EOF
15590 if { (eval echo configure:15591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15591 rm -rf conftest*
15592 glibcpp_cv_func__long_double_trig_use=yes
15593 else
15594 echo "configure: failed program was:" >&5
15595 cat conftest.$ac_ext >&5
15596 rm -rf conftest*
15597 glibcpp_cv_func__long_double_trig_use=no
15598 fi
15599 rm -f conftest*
15600 ac_ext=c
15601 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15602 ac_cpp='$CPP $CPPFLAGS'
15603 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15604 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15605 cross_compiling=$ac_cv_prog_cc_cross
15606
15607 fi
15608
15609 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
15610 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
15611 for ac_func in _acosl _asinl _atanl \
15612 _cosl _sinl _tanl \
15613 _coshl _sinhl _tanhl
15614 do
15615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15616 echo "configure:15617: checking for $ac_func" >&5
15617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15618 echo $ac_n "(cached) $ac_c" 1>&6
15619 else
15620 cat > conftest.$ac_ext <<EOF
15621 #line 15622 "configure"
15622 #include "confdefs.h"
15623 /* System header to define __stub macros and hopefully few prototypes,
15624 which can conflict with char $ac_func(); below. */
15625 #include <assert.h>
15626 /* Override any gcc2 internal prototype to avoid an error. */
15627 /* We use char because int might match the return type of a gcc2
15628 builtin and then its argument prototype would still apply. */
15629 char $ac_func();
15630
15631 int main() {
15632
15633 /* The GNU C library defines this for functions which it implements
15634 to always fail with ENOSYS. Some functions are actually named
15635 something starting with __ and the normal name is an alias. */
15636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15637 choke me
15638 #else
15639 $ac_func();
15640 #endif
15641
15642 ; return 0; }
15643 EOF
15644 if { (eval echo configure:15645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15645 rm -rf conftest*
15646 eval "ac_cv_func_$ac_func=yes"
15647 else
15648 echo "configure: failed program was:" >&5
15649 cat conftest.$ac_ext >&5
15650 rm -rf conftest*
15651 eval "ac_cv_func_$ac_func=no"
15652 fi
15653 rm -f conftest*
15654 fi
15655
15656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15657 echo "$ac_t""yes" 1>&6
15658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15659 cat >> confdefs.h <<EOF
15660 #define $ac_tr_func 1
15661 EOF
15662
15663 else
15664 echo "$ac_t""no" 1>&6
15665 fi
15666 done
15667
15668 fi
15669
15670
15671 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
15672 echo "configure:15673: checking for _long double round functions" >&5
15673 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
15674 echo $ac_n "(cached) $ac_c" 1>&6
15675 else
15676
15677
15678 ac_ext=C
15679 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15680 ac_cpp='$CXXCPP $CPPFLAGS'
15681 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15682 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15683 cross_compiling=$ac_cv_prog_cxx_cross
15684
15685 cat > conftest.$ac_ext <<EOF
15686 #line 15687 "configure"
15687 #include "confdefs.h"
15688 #include <math.h>
15689 int main() {
15690 `for x in _ceill _floorl; do echo "$x (0);"; done`
15691 ; return 0; }
15692 EOF
15693 if { (eval echo configure:15694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15694 rm -rf conftest*
15695 glibcpp_cv_func__long_double_round_use=yes
15696 else
15697 echo "configure: failed program was:" >&5
15698 cat conftest.$ac_ext >&5
15699 rm -rf conftest*
15700 glibcpp_cv_func__long_double_round_use=no
15701 fi
15702 rm -f conftest*
15703 ac_ext=c
15704 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15705 ac_cpp='$CPP $CPPFLAGS'
15706 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15707 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15708 cross_compiling=$ac_cv_prog_cc_cross
15709
15710 fi
15711
15712 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
15713 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
15714 for ac_func in _ceill _floorl
15715 do
15716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15717 echo "configure:15718: checking for $ac_func" >&5
15718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15719 echo $ac_n "(cached) $ac_c" 1>&6
15720 else
15721 cat > conftest.$ac_ext <<EOF
15722 #line 15723 "configure"
15723 #include "confdefs.h"
15724 /* System header to define __stub macros and hopefully few prototypes,
15725 which can conflict with char $ac_func(); below. */
15726 #include <assert.h>
15727 /* Override any gcc2 internal prototype to avoid an error. */
15728 /* We use char because int might match the return type of a gcc2
15729 builtin and then its argument prototype would still apply. */
15730 char $ac_func();
15731
15732 int main() {
15733
15734 /* The GNU C library defines this for functions which it implements
15735 to always fail with ENOSYS. Some functions are actually named
15736 something starting with __ and the normal name is an alias. */
15737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15738 choke me
15739 #else
15740 $ac_func();
15741 #endif
15742
15743 ; return 0; }
15744 EOF
15745 if { (eval echo configure:15746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15746 rm -rf conftest*
15747 eval "ac_cv_func_$ac_func=yes"
15748 else
15749 echo "configure: failed program was:" >&5
15750 cat conftest.$ac_ext >&5
15751 rm -rf conftest*
15752 eval "ac_cv_func_$ac_func=no"
15753 fi
15754 rm -f conftest*
15755 fi
15756
15757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15758 echo "$ac_t""yes" 1>&6
15759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15760 cat >> confdefs.h <<EOF
15761 #define $ac_tr_func 1
15762 EOF
15763
15764 else
15765 echo "$ac_t""no" 1>&6
15766 fi
15767 done
15768
15769 fi
15770
15771
15772 LIBS="$ac_save_LIBS"
15773 CXXFLAGS="$ac_save_CXXFLAGS"
15774
15775
15776 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
15777 echo "configure:15778: checking for main in -lm" >&5
15778 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
15779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15780 echo $ac_n "(cached) $ac_c" 1>&6
15781 else
15782 ac_save_LIBS="$LIBS"
15783 LIBS="-lm $LIBS"
15784 cat > conftest.$ac_ext <<EOF
15785 #line 15786 "configure"
15786 #include "confdefs.h"
15787
15788 int main() {
15789 main()
15790 ; return 0; }
15791 EOF
15792 if { (eval echo configure:15793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15793 rm -rf conftest*
15794 eval "ac_cv_lib_$ac_lib_var=yes"
15795 else
15796 echo "configure: failed program was:" >&5
15797 cat conftest.$ac_ext >&5
15798 rm -rf conftest*
15799 eval "ac_cv_lib_$ac_lib_var=no"
15800 fi
15801 rm -f conftest*
15802 LIBS="$ac_save_LIBS"
15803
15804 fi
15805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15806 echo "$ac_t""yes" 1>&6
15807 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15809 cat >> confdefs.h <<EOF
15810 #define $ac_tr_lib 1
15811 EOF
15812
15813 LIBS="-lm $LIBS"
15814
15815 else
15816 echo "$ac_t""no" 1>&6
15817 fi
15818
15819 for ac_func in nan copysignf
15820 do
15821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15822 echo "configure:15823: checking for $ac_func" >&5
15823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15824 echo $ac_n "(cached) $ac_c" 1>&6
15825 else
15826 cat > conftest.$ac_ext <<EOF
15827 #line 15828 "configure"
15828 #include "confdefs.h"
15829 /* System header to define __stub macros and hopefully few prototypes,
15830 which can conflict with char $ac_func(); below. */
15831 #include <assert.h>
15832 /* Override any gcc2 internal prototype to avoid an error. */
15833 /* We use char because int might match the return type of a gcc2
15834 builtin and then its argument prototype would still apply. */
15835 char $ac_func();
15836
15837 int main() {
15838
15839 /* The GNU C library defines this for functions which it implements
15840 to always fail with ENOSYS. Some functions are actually named
15841 something starting with __ and the normal name is an alias. */
15842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15843 choke me
15844 #else
15845 $ac_func();
15846 #endif
15847
15848 ; return 0; }
15849 EOF
15850 if { (eval echo configure:15851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15851 rm -rf conftest*
15852 eval "ac_cv_func_$ac_func=yes"
15853 else
15854 echo "configure: failed program was:" >&5
15855 cat conftest.$ac_ext >&5
15856 rm -rf conftest*
15857 eval "ac_cv_func_$ac_func=no"
15858 fi
15859 rm -f conftest*
15860 fi
15861
15862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15863 echo "$ac_t""yes" 1>&6
15864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15865 cat >> confdefs.h <<EOF
15866 #define $ac_tr_func 1
15867 EOF
15868
15869 else
15870 echo "$ac_t""no" 1>&6
15871 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15872 fi
15873 done
15874
15875
15876
15877 USE_COMPLEX_LONG_DOUBLE=no
15878 if test x$ac_cv_func_copysignl = x"yes"; then
15879 USE_COMPLEX_LONG_DOUBLE=yes
15880 for ac_func in signbitl
15881 do
15882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15883 echo "configure:15884: checking for $ac_func" >&5
15884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15885 echo $ac_n "(cached) $ac_c" 1>&6
15886 else
15887 cat > conftest.$ac_ext <<EOF
15888 #line 15889 "configure"
15889 #include "confdefs.h"
15890 /* System header to define __stub macros and hopefully few prototypes,
15891 which can conflict with char $ac_func(); below. */
15892 #include <assert.h>
15893 /* Override any gcc2 internal prototype to avoid an error. */
15894 /* We use char because int might match the return type of a gcc2
15895 builtin and then its argument prototype would still apply. */
15896 char $ac_func();
15897
15898 int main() {
15899
15900 /* The GNU C library defines this for functions which it implements
15901 to always fail with ENOSYS. Some functions are actually named
15902 something starting with __ and the normal name is an alias. */
15903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15904 choke me
15905 #else
15906 $ac_func();
15907 #endif
15908
15909 ; return 0; }
15910 EOF
15911 if { (eval echo configure:15912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15912 rm -rf conftest*
15913 eval "ac_cv_func_$ac_func=yes"
15914 else
15915 echo "configure: failed program was:" >&5
15916 cat conftest.$ac_ext >&5
15917 rm -rf conftest*
15918 eval "ac_cv_func_$ac_func=no"
15919 fi
15920 rm -f conftest*
15921 fi
15922
15923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15924 echo "$ac_t""yes" 1>&6
15925 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15926 cat >> confdefs.h <<EOF
15927 #define $ac_tr_func 1
15928 EOF
15929
15930 else
15931 echo "$ac_t""no" 1>&6
15932 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
15933 fi
15934 done
15935
15936
15937 fi
15938
15939
15940
15941
15942
15943 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
15944 echo "configure:15945: checking for mbstate_t" >&5
15945 cat > conftest.$ac_ext <<EOF
15946 #line 15947 "configure"
15947 #include "confdefs.h"
15948 #include <wchar.h>
15949 int main() {
15950 mbstate_t teststate;
15951 ; return 0; }
15952 EOF
15953 if { (eval echo configure:15954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15954 rm -rf conftest*
15955 have_mbstate_t=yes
15956 else
15957 echo "configure: failed program was:" >&5
15958 cat conftest.$ac_ext >&5
15959 rm -rf conftest*
15960 have_mbstate_t=no
15961 fi
15962 rm -f conftest*
15963 echo "$ac_t""$have_mbstate_t" 1>&6
15964 if test x"$have_mbstate_t" = xyes; then
15965 cat >> confdefs.h <<\EOF
15966 #define HAVE_MBSTATE_T 1
15967 EOF
15968
15969 fi
15970
15971 for ac_hdr in wchar.h
15972 do
15973 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15974 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15975 echo "configure:15976: checking for $ac_hdr" >&5
15976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15977 echo $ac_n "(cached) $ac_c" 1>&6
15978 else
15979 cat > conftest.$ac_ext <<EOF
15980 #line 15981 "configure"
15981 #include "confdefs.h"
15982 #include <$ac_hdr>
15983 EOF
15984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15985 { (eval echo configure:15986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15987 if test -z "$ac_err"; then
15988 rm -rf conftest*
15989 eval "ac_cv_header_$ac_safe=yes"
15990 else
15991 echo "$ac_err" >&5
15992 echo "configure: failed program was:" >&5
15993 cat conftest.$ac_ext >&5
15994 rm -rf conftest*
15995 eval "ac_cv_header_$ac_safe=no"
15996 fi
15997 rm -f conftest*
15998 fi
15999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16000 echo "$ac_t""yes" 1>&6
16001 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16002 cat >> confdefs.h <<EOF
16003 #define $ac_tr_hdr 1
16004 EOF
16005 ac_has_wchar_h=yes
16006 else
16007 echo "$ac_t""no" 1>&6
16008 ac_has_wchar_h=no
16009 fi
16010 done
16011
16012 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
16013 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
16014 echo "configure:16015: checking for wctype.h" >&5
16015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16016 echo $ac_n "(cached) $ac_c" 1>&6
16017 else
16018 cat > conftest.$ac_ext <<EOF
16019 #line 16020 "configure"
16020 #include "confdefs.h"
16021 #include <wctype.h>
16022 EOF
16023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16024 { (eval echo configure:16025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16026 if test -z "$ac_err"; then
16027 rm -rf conftest*
16028 eval "ac_cv_header_$ac_safe=yes"
16029 else
16030 echo "$ac_err" >&5
16031 echo "configure: failed program was:" >&5
16032 cat conftest.$ac_ext >&5
16033 rm -rf conftest*
16034 eval "ac_cv_header_$ac_safe=no"
16035 fi
16036 rm -f conftest*
16037 fi
16038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16039 echo "$ac_t""yes" 1>&6
16040 ac_has_wctype_h=yes
16041 else
16042 echo "$ac_t""no" 1>&6
16043 ac_has_wctype_h=no
16044 fi
16045
16046
16047 if test x"$ac_has_wchar_h" = xyes &&
16048 test x"$ac_has_wctype_h" = xyes &&
16049 test x"$enable_c_mbchar" != xno; then
16050
16051 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
16052 echo "configure:16053: checking for WCHAR_MIN and WCHAR_MAX" >&5
16053 cat > conftest.$ac_ext <<EOF
16054 #line 16055 "configure"
16055 #include "confdefs.h"
16056 #include <wchar.h>
16057 int main() {
16058 int i = WCHAR_MIN; int j = WCHAR_MAX;
16059 ; return 0; }
16060 EOF
16061 if { (eval echo configure:16062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16062 rm -rf conftest*
16063 has_wchar_minmax=yes
16064 else
16065 echo "configure: failed program was:" >&5
16066 cat conftest.$ac_ext >&5
16067 rm -rf conftest*
16068 has_wchar_minmax=no
16069 fi
16070 rm -f conftest*
16071 echo "$ac_t""$has_wchar_minmax" 1>&6
16072
16073 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
16074 echo "configure:16075: checking for WEOF" >&5
16075 cat > conftest.$ac_ext <<EOF
16076 #line 16077 "configure"
16077 #include "confdefs.h"
16078
16079 #include <wchar.h>
16080 #include <stddef.h>
16081 int main() {
16082 wint_t i = WEOF;
16083 ; return 0; }
16084 EOF
16085 if { (eval echo configure:16086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16086 rm -rf conftest*
16087 has_weof=yes
16088 else
16089 echo "configure: failed program was:" >&5
16090 cat conftest.$ac_ext >&5
16091 rm -rf conftest*
16092 has_weof=no
16093 fi
16094 rm -f conftest*
16095 echo "$ac_t""$has_weof" 1>&6
16096
16097 ac_wfuncs=yes
16098 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
16099 do
16100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16101 echo "configure:16102: checking for $ac_func" >&5
16102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16103 echo $ac_n "(cached) $ac_c" 1>&6
16104 else
16105 cat > conftest.$ac_ext <<EOF
16106 #line 16107 "configure"
16107 #include "confdefs.h"
16108 /* System header to define __stub macros and hopefully few prototypes,
16109 which can conflict with char $ac_func(); below. */
16110 #include <assert.h>
16111 /* Override any gcc2 internal prototype to avoid an error. */
16112 /* We use char because int might match the return type of a gcc2
16113 builtin and then its argument prototype would still apply. */
16114 char $ac_func();
16115
16116 int main() {
16117
16118 /* The GNU C library defines this for functions which it implements
16119 to always fail with ENOSYS. Some functions are actually named
16120 something starting with __ and the normal name is an alias. */
16121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16122 choke me
16123 #else
16124 $ac_func();
16125 #endif
16126
16127 ; return 0; }
16128 EOF
16129 if { (eval echo configure:16130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16130 rm -rf conftest*
16131 eval "ac_cv_func_$ac_func=yes"
16132 else
16133 echo "configure: failed program was:" >&5
16134 cat conftest.$ac_ext >&5
16135 rm -rf conftest*
16136 eval "ac_cv_func_$ac_func=no"
16137 fi
16138 rm -f conftest*
16139 fi
16140
16141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16142 echo "$ac_t""yes" 1>&6
16143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16144 cat >> confdefs.h <<EOF
16145 #define $ac_tr_func 1
16146 EOF
16147
16148 else
16149 echo "$ac_t""no" 1>&6
16150 \
16151 ac_wfuncs=no
16152 fi
16153 done
16154
16155
16156 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
16157 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
16158 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
16159 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
16160 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
16161 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
16162 do
16163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16164 echo "configure:16165: checking for $ac_func" >&5
16165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16166 echo $ac_n "(cached) $ac_c" 1>&6
16167 else
16168 cat > conftest.$ac_ext <<EOF
16169 #line 16170 "configure"
16170 #include "confdefs.h"
16171 /* System header to define __stub macros and hopefully few prototypes,
16172 which can conflict with char $ac_func(); below. */
16173 #include <assert.h>
16174 /* Override any gcc2 internal prototype to avoid an error. */
16175 /* We use char because int might match the return type of a gcc2
16176 builtin and then its argument prototype would still apply. */
16177 char $ac_func();
16178
16179 int main() {
16180
16181 /* The GNU C library defines this for functions which it implements
16182 to always fail with ENOSYS. Some functions are actually named
16183 something starting with __ and the normal name is an alias. */
16184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16185 choke me
16186 #else
16187 $ac_func();
16188 #endif
16189
16190 ; return 0; }
16191 EOF
16192 if { (eval echo configure:16193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16193 rm -rf conftest*
16194 eval "ac_cv_func_$ac_func=yes"
16195 else
16196 echo "configure: failed program was:" >&5
16197 cat conftest.$ac_ext >&5
16198 rm -rf conftest*
16199 eval "ac_cv_func_$ac_func=no"
16200 fi
16201 rm -f conftest*
16202 fi
16203
16204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16205 echo "$ac_t""yes" 1>&6
16206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16207 cat >> confdefs.h <<EOF
16208 #define $ac_tr_func 1
16209 EOF
16210
16211 else
16212 echo "$ac_t""no" 1>&6
16213 \
16214 ac_wfuncs=no
16215 fi
16216 done
16217
16218
16219 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
16220 echo "configure:16221: checking for ISO C99 wchar_t support" >&5
16221 if test x"$has_weof" = xyes &&
16222 test x"$has_wchar_minmax" = xyes &&
16223 test x"$ac_wfuncs" = xyes; then
16224 ac_isoC99_wchar_t=yes
16225 else
16226 ac_isoC99_wchar_t=no
16227 fi
16228 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
16229
16230 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
16231 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
16232 echo "configure:16233: checking for iconv.h" >&5
16233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16234 echo $ac_n "(cached) $ac_c" 1>&6
16235 else
16236 cat > conftest.$ac_ext <<EOF
16237 #line 16238 "configure"
16238 #include "confdefs.h"
16239 #include <iconv.h>
16240 EOF
16241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16242 { (eval echo configure:16243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16244 if test -z "$ac_err"; then
16245 rm -rf conftest*
16246 eval "ac_cv_header_$ac_safe=yes"
16247 else
16248 echo "$ac_err" >&5
16249 echo "configure: failed program was:" >&5
16250 cat conftest.$ac_ext >&5
16251 rm -rf conftest*
16252 eval "ac_cv_header_$ac_safe=no"
16253 fi
16254 rm -f conftest*
16255 fi
16256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16257 echo "$ac_t""yes" 1>&6
16258 ac_has_iconv_h=yes
16259 else
16260 echo "$ac_t""no" 1>&6
16261 ac_has_iconv_h=no
16262 fi
16263
16264 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
16265 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
16266 echo "configure:16267: checking for langinfo.h" >&5
16267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16268 echo $ac_n "(cached) $ac_c" 1>&6
16269 else
16270 cat > conftest.$ac_ext <<EOF
16271 #line 16272 "configure"
16272 #include "confdefs.h"
16273 #include <langinfo.h>
16274 EOF
16275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16276 { (eval echo configure:16277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16278 if test -z "$ac_err"; then
16279 rm -rf conftest*
16280 eval "ac_cv_header_$ac_safe=yes"
16281 else
16282 echo "$ac_err" >&5
16283 echo "configure: failed program was:" >&5
16284 cat conftest.$ac_ext >&5
16285 rm -rf conftest*
16286 eval "ac_cv_header_$ac_safe=no"
16287 fi
16288 rm -f conftest*
16289 fi
16290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16291 echo "$ac_t""yes" 1>&6
16292 ac_has_langinfo_h=yes
16293 else
16294 echo "$ac_t""no" 1>&6
16295 ac_has_langinfo_h=no
16296 fi
16297
16298
16299 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
16300 echo "configure:16301: checking for iconv in -liconv" >&5
16301 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
16302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16303 echo $ac_n "(cached) $ac_c" 1>&6
16304 else
16305 ac_save_LIBS="$LIBS"
16306 LIBS="-liconv $LIBS"
16307 cat > conftest.$ac_ext <<EOF
16308 #line 16309 "configure"
16309 #include "confdefs.h"
16310 /* Override any gcc2 internal prototype to avoid an error. */
16311 /* We use char because int might match the return type of a gcc2
16312 builtin and then its argument prototype would still apply. */
16313 char iconv();
16314
16315 int main() {
16316 iconv()
16317 ; return 0; }
16318 EOF
16319 if { (eval echo configure:16320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16320 rm -rf conftest*
16321 eval "ac_cv_lib_$ac_lib_var=yes"
16322 else
16323 echo "configure: failed program was:" >&5
16324 cat conftest.$ac_ext >&5
16325 rm -rf conftest*
16326 eval "ac_cv_lib_$ac_lib_var=no"
16327 fi
16328 rm -f conftest*
16329 LIBS="$ac_save_LIBS"
16330
16331 fi
16332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16333 echo "$ac_t""yes" 1>&6
16334 libiconv="-liconv"
16335 else
16336 echo "$ac_t""no" 1>&6
16337 fi
16338
16339 ac_save_LIBS="$LIBS"
16340 LIBS="$LIBS $libiconv"
16341
16342 for ac_func in iconv_open iconv_close iconv nl_langinfo
16343 do
16344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16345 echo "configure:16346: checking for $ac_func" >&5
16346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16347 echo $ac_n "(cached) $ac_c" 1>&6
16348 else
16349 cat > conftest.$ac_ext <<EOF
16350 #line 16351 "configure"
16351 #include "confdefs.h"
16352 /* System header to define __stub macros and hopefully few prototypes,
16353 which can conflict with char $ac_func(); below. */
16354 #include <assert.h>
16355 /* Override any gcc2 internal prototype to avoid an error. */
16356 /* We use char because int might match the return type of a gcc2
16357 builtin and then its argument prototype would still apply. */
16358 char $ac_func();
16359
16360 int main() {
16361
16362 /* The GNU C library defines this for functions which it implements
16363 to always fail with ENOSYS. Some functions are actually named
16364 something starting with __ and the normal name is an alias. */
16365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16366 choke me
16367 #else
16368 $ac_func();
16369 #endif
16370
16371 ; return 0; }
16372 EOF
16373 if { (eval echo configure:16374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16374 rm -rf conftest*
16375 eval "ac_cv_func_$ac_func=yes"
16376 else
16377 echo "configure: failed program was:" >&5
16378 cat conftest.$ac_ext >&5
16379 rm -rf conftest*
16380 eval "ac_cv_func_$ac_func=no"
16381 fi
16382 rm -f conftest*
16383 fi
16384
16385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16386 echo "$ac_t""yes" 1>&6
16387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16388 cat >> confdefs.h <<EOF
16389 #define $ac_tr_func 1
16390 EOF
16391 \
16392 ac_XPG2funcs=yes
16393 else
16394 echo "$ac_t""no" 1>&6
16395 ac_XPG2funcs=no
16396 fi
16397 done
16398
16399
16400 LIBS="$ac_save_LIBS"
16401
16402 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
16403 echo "configure:16404: checking for XPG2 wchar_t support" >&5
16404 if test x"$ac_has_iconv_h" = xyes &&
16405 test x"$ac_has_langinfo_h" = xyes &&
16406 test x"$ac_XPG2funcs" = xyes; then
16407 ac_XPG2_wchar_t=yes
16408 else
16409 ac_XPG2_wchar_t=no
16410 fi
16411 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
16412
16413 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
16414 echo "configure:16415: checking for enabled wchar_t specializations" >&5
16415 if test x"$ac_isoC99_wchar_t" = xyes &&
16416 test x"$ac_XPG2_wchar_t" = xyes; then
16417 cat >> confdefs.h <<\EOF
16418 #define _GLIBCPP_USE_WCHAR_T 1
16419 EOF
16420
16421 echo "$ac_t"""yes"" 1>&6
16422 else
16423 echo "$ac_t"""no"" 1>&6
16424 fi
16425 else
16426 echo "configure: warning: wchar_t support disabled." 1>&2
16427 fi
16428
16429
16430 ac_test_CXXFLAGS="${CXXFLAGS+set}"
16431 ac_save_CXXFLAGS="$CXXFLAGS"
16432 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
16433
16434
16435 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
16436 echo "configure:16437: checking for strtold declaration" >&5
16437 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
16438 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
16439 echo $ac_n "(cached) $ac_c" 1>&6
16440 else
16441
16442
16443 ac_ext=C
16444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16445 ac_cpp='$CXXCPP $CPPFLAGS'
16446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16448 cross_compiling=$ac_cv_prog_cxx_cross
16449
16450 cat > conftest.$ac_ext <<EOF
16451 #line 16452 "configure"
16452 #include "confdefs.h"
16453 #include <stdlib.h>
16454 int main() {
16455 strtold(0, 0);
16456 ; return 0; }
16457 EOF
16458 if { (eval echo configure:16459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16459 rm -rf conftest*
16460 glibcpp_cv_func_strtold_use=yes
16461 else
16462 echo "configure: failed program was:" >&5
16463 cat conftest.$ac_ext >&5
16464 rm -rf conftest*
16465 glibcpp_cv_func_strtold_use=no
16466 fi
16467 rm -f conftest*
16468 ac_ext=c
16469 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16470 ac_cpp='$CPP $CPPFLAGS'
16471 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16472 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16473 cross_compiling=$ac_cv_prog_cc_cross
16474
16475
16476 fi
16477
16478 fi
16479 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
16480 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
16481 for ac_func in strtold
16482 do
16483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16484 echo "configure:16485: checking for $ac_func" >&5
16485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16486 echo $ac_n "(cached) $ac_c" 1>&6
16487 else
16488 cat > conftest.$ac_ext <<EOF
16489 #line 16490 "configure"
16490 #include "confdefs.h"
16491 /* System header to define __stub macros and hopefully few prototypes,
16492 which can conflict with char $ac_func(); below. */
16493 #include <assert.h>
16494 /* Override any gcc2 internal prototype to avoid an error. */
16495 /* We use char because int might match the return type of a gcc2
16496 builtin and then its argument prototype would still apply. */
16497 char $ac_func();
16498
16499 int main() {
16500
16501 /* The GNU C library defines this for functions which it implements
16502 to always fail with ENOSYS. Some functions are actually named
16503 something starting with __ and the normal name is an alias. */
16504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16505 choke me
16506 #else
16507 $ac_func();
16508 #endif
16509
16510 ; return 0; }
16511 EOF
16512 if { (eval echo configure:16513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16513 rm -rf conftest*
16514 eval "ac_cv_func_$ac_func=yes"
16515 else
16516 echo "configure: failed program was:" >&5
16517 cat conftest.$ac_ext >&5
16518 rm -rf conftest*
16519 eval "ac_cv_func_$ac_func=no"
16520 fi
16521 rm -f conftest*
16522 fi
16523
16524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16525 echo "$ac_t""yes" 1>&6
16526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16527 cat >> confdefs.h <<EOF
16528 #define $ac_tr_func 1
16529 EOF
16530
16531 else
16532 echo "$ac_t""no" 1>&6
16533 fi
16534 done
16535
16536 fi
16537
16538 for ac_func in drand48
16539 do
16540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16541 echo "configure:16542: checking for $ac_func" >&5
16542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16543 echo $ac_n "(cached) $ac_c" 1>&6
16544 else
16545 cat > conftest.$ac_ext <<EOF
16546 #line 16547 "configure"
16547 #include "confdefs.h"
16548 /* System header to define __stub macros and hopefully few prototypes,
16549 which can conflict with char $ac_func(); below. */
16550 #include <assert.h>
16551 /* Override any gcc2 internal prototype to avoid an error. */
16552 /* We use char because int might match the return type of a gcc2
16553 builtin and then its argument prototype would still apply. */
16554 char $ac_func();
16555
16556 int main() {
16557
16558 /* The GNU C library defines this for functions which it implements
16559 to always fail with ENOSYS. Some functions are actually named
16560 something starting with __ and the normal name is an alias. */
16561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16562 choke me
16563 #else
16564 $ac_func();
16565 #endif
16566
16567 ; return 0; }
16568 EOF
16569 if { (eval echo configure:16570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16570 rm -rf conftest*
16571 eval "ac_cv_func_$ac_func=yes"
16572 else
16573 echo "configure: failed program was:" >&5
16574 cat conftest.$ac_ext >&5
16575 rm -rf conftest*
16576 eval "ac_cv_func_$ac_func=no"
16577 fi
16578 rm -f conftest*
16579 fi
16580
16581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16582 echo "$ac_t""yes" 1>&6
16583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16584 cat >> confdefs.h <<EOF
16585 #define $ac_tr_func 1
16586 EOF
16587
16588 else
16589 echo "$ac_t""no" 1>&6
16590 fi
16591 done
16592
16593
16594 CXXFLAGS="$ac_save_CXXFLAGS"
16595
16596
16597 cat > conftest.$ac_ext <<EOF
16598 #line 16599 "configure"
16599 #include "confdefs.h"
16600
16601 #include <setjmp.h>
16602
16603 int main() {
16604 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16605 ; return 0; }
16606 EOF
16607 if { (eval echo configure:16608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16608 rm -rf conftest*
16609 cat >> confdefs.h <<\EOF
16610 #define HAVE_SIGSETJMP 1
16611 EOF
16612
16613 else
16614 echo "configure: failed program was:" >&5
16615 cat conftest.$ac_ext >&5
16616 fi
16617 rm -f conftest*
16618
16619 for ac_hdr in unistd.h
16620 do
16621 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16622 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16623 echo "configure:16624: checking for $ac_hdr" >&5
16624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <$ac_hdr>
16631 EOF
16632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16633 { (eval echo configure:16634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16635 if test -z "$ac_err"; then
16636 rm -rf conftest*
16637 eval "ac_cv_header_$ac_safe=yes"
16638 else
16639 echo "$ac_err" >&5
16640 echo "configure: failed program was:" >&5
16641 cat conftest.$ac_ext >&5
16642 rm -rf conftest*
16643 eval "ac_cv_header_$ac_safe=no"
16644 fi
16645 rm -f conftest*
16646 fi
16647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16648 echo "$ac_t""yes" 1>&6
16649 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16650 cat >> confdefs.h <<EOF
16651 #define $ac_tr_hdr 1
16652 EOF
16653
16654 else
16655 echo "$ac_t""no" 1>&6
16656 fi
16657 done
16658
16659 for ac_func in getpagesize
16660 do
16661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16662 echo "configure:16663: checking for $ac_func" >&5
16663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16664 echo $ac_n "(cached) $ac_c" 1>&6
16665 else
16666 cat > conftest.$ac_ext <<EOF
16667 #line 16668 "configure"
16668 #include "confdefs.h"
16669 /* System header to define __stub macros and hopefully few prototypes,
16670 which can conflict with char $ac_func(); below. */
16671 #include <assert.h>
16672 /* Override any gcc2 internal prototype to avoid an error. */
16673 /* We use char because int might match the return type of a gcc2
16674 builtin and then its argument prototype would still apply. */
16675 char $ac_func();
16676
16677 int main() {
16678
16679 /* The GNU C library defines this for functions which it implements
16680 to always fail with ENOSYS. Some functions are actually named
16681 something starting with __ and the normal name is an alias. */
16682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16683 choke me
16684 #else
16685 $ac_func();
16686 #endif
16687
16688 ; return 0; }
16689 EOF
16690 if { (eval echo configure:16691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16691 rm -rf conftest*
16692 eval "ac_cv_func_$ac_func=yes"
16693 else
16694 echo "configure: failed program was:" >&5
16695 cat conftest.$ac_ext >&5
16696 rm -rf conftest*
16697 eval "ac_cv_func_$ac_func=no"
16698 fi
16699 rm -f conftest*
16700 fi
16701
16702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16703 echo "$ac_t""yes" 1>&6
16704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16705 cat >> confdefs.h <<EOF
16706 #define $ac_tr_func 1
16707 EOF
16708
16709 else
16710 echo "$ac_t""no" 1>&6
16711 fi
16712 done
16713
16714 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
16715 echo "configure:16716: checking for working mmap" >&5
16716 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
16717 echo $ac_n "(cached) $ac_c" 1>&6
16718 else
16719 if test "$cross_compiling" = yes; then
16720 ac_cv_func_mmap_fixed_mapped=no
16721 else
16722 cat > conftest.$ac_ext <<EOF
16723 #line 16724 "configure"
16724 #include "confdefs.h"
16725
16726 /* Thanks to Mike Haertel and Jim Avera for this test.
16727 Here is a matrix of mmap possibilities:
16728 mmap private not fixed
16729 mmap private fixed at somewhere currently unmapped
16730 mmap private fixed at somewhere already mapped
16731 mmap shared not fixed
16732 mmap shared fixed at somewhere currently unmapped
16733 mmap shared fixed at somewhere already mapped
16734 For private mappings, we should verify that changes cannot be read()
16735 back from the file, nor mmap's back from the file at a different
16736 address. (There have been systems where private was not correctly
16737 implemented like the infamous i386 svr4.0, and systems where the
16738 VM page cache was not coherent with the filesystem buffer cache
16739 like early versions of FreeBSD and possibly contemporary NetBSD.)
16740 For shared mappings, we should conversely verify that changes get
16741 propogated back to all the places they're supposed to be.
16742
16743 Grep wants private fixed already mapped.
16744 The main things grep needs to know about mmap are:
16745 * does it exist and is it safe to write into the mmap'd area
16746 * how to use it (BSD variants) */
16747 #include <sys/types.h>
16748 #include <fcntl.h>
16749 #include <sys/mman.h>
16750
16751 /* This mess was copied from the GNU getpagesize.h. */
16752 #ifndef HAVE_GETPAGESIZE
16753 # ifdef HAVE_UNISTD_H
16754 # include <unistd.h>
16755 # endif
16756
16757 /* Assume that all systems that can run configure have sys/param.h. */
16758 # ifndef HAVE_SYS_PARAM_H
16759 # define HAVE_SYS_PARAM_H 1
16760 # endif
16761
16762 # ifdef _SC_PAGESIZE
16763 # define getpagesize() sysconf(_SC_PAGESIZE)
16764 # else /* no _SC_PAGESIZE */
16765 # ifdef HAVE_SYS_PARAM_H
16766 # include <sys/param.h>
16767 # ifdef EXEC_PAGESIZE
16768 # define getpagesize() EXEC_PAGESIZE
16769 # else /* no EXEC_PAGESIZE */
16770 # ifdef NBPG
16771 # define getpagesize() NBPG * CLSIZE
16772 # ifndef CLSIZE
16773 # define CLSIZE 1
16774 # endif /* no CLSIZE */
16775 # else /* no NBPG */
16776 # ifdef NBPC
16777 # define getpagesize() NBPC
16778 # else /* no NBPC */
16779 # ifdef PAGESIZE
16780 # define getpagesize() PAGESIZE
16781 # endif /* PAGESIZE */
16782 # endif /* no NBPC */
16783 # endif /* no NBPG */
16784 # endif /* no EXEC_PAGESIZE */
16785 # else /* no HAVE_SYS_PARAM_H */
16786 # define getpagesize() 8192 /* punt totally */
16787 # endif /* no HAVE_SYS_PARAM_H */
16788 # endif /* no _SC_PAGESIZE */
16789
16790 #endif /* no HAVE_GETPAGESIZE */
16791
16792 #ifdef __cplusplus
16793 extern "C" { void *malloc(unsigned); }
16794 #else
16795 char *malloc();
16796 #endif
16797
16798 int
16799 main()
16800 {
16801 char *data, *data2, *data3;
16802 int i, pagesize;
16803 int fd;
16804
16805 pagesize = getpagesize();
16806
16807 /*
16808 * First, make a file with some known garbage in it.
16809 */
16810 data = malloc(pagesize);
16811 if (!data)
16812 exit(1);
16813 for (i = 0; i < pagesize; ++i)
16814 *(data + i) = rand();
16815 umask(0);
16816 fd = creat("conftestmmap", 0600);
16817 if (fd < 0)
16818 exit(1);
16819 if (write(fd, data, pagesize) != pagesize)
16820 exit(1);
16821 close(fd);
16822
16823 /*
16824 * Next, try to mmap the file at a fixed address which
16825 * already has something else allocated at it. If we can,
16826 * also make sure that we see the same garbage.
16827 */
16828 fd = open("conftestmmap", O_RDWR);
16829 if (fd < 0)
16830 exit(1);
16831 data2 = malloc(2 * pagesize);
16832 if (!data2)
16833 exit(1);
16834 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16835 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
16836 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16837 exit(1);
16838 for (i = 0; i < pagesize; ++i)
16839 if (*(data + i) != *(data2 + i))
16840 exit(1);
16841
16842 /*
16843 * Finally, make sure that changes to the mapped area
16844 * do not percolate back to the file as seen by read().
16845 * (This is a bug on some variants of i386 svr4.0.)
16846 */
16847 for (i = 0; i < pagesize; ++i)
16848 *(data2 + i) = *(data2 + i) + 1;
16849 data3 = malloc(pagesize);
16850 if (!data3)
16851 exit(1);
16852 if (read(fd, data3, pagesize) != pagesize)
16853 exit(1);
16854 for (i = 0; i < pagesize; ++i)
16855 if (*(data + i) != *(data3 + i))
16856 exit(1);
16857 close(fd);
16858 unlink("conftestmmap");
16859 exit(0);
16860 }
16861
16862 EOF
16863 if { (eval echo configure:16864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16864 then
16865 ac_cv_func_mmap_fixed_mapped=yes
16866 else
16867 echo "configure: failed program was:" >&5
16868 cat conftest.$ac_ext >&5
16869 rm -fr conftest*
16870 ac_cv_func_mmap_fixed_mapped=no
16871 fi
16872 rm -fr conftest*
16873 fi
16874
16875 fi
16876
16877 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
16878 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16879 cat >> confdefs.h <<\EOF
16880 #define HAVE_MMAP 1
16881 EOF
16882
16883 fi
16884
16885 fi
16886
16887 # Propagate the target-specific source directories through the build chain.
16888 OS_INC_SRCDIR=$os_include_dir/bits
16889 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
16890
16891
16892
16893 # Set up cross-compile flags
16894
16895
16896
16897 if test "$CANADIAN" = yes; then
16898 CANADIAN_TRUE=
16899 CANADIAN_FALSE='#'
16900 else
16901 CANADIAN_TRUE='#'
16902 CANADIAN_FALSE=
16903 fi
16904
16905 cat > confcache <<\EOF
16906 # This file is a shell script that caches the results of configure
16907 # tests run on this system so they can be shared between configure
16908 # scripts and configure runs. It is not useful on other systems.
16909 # If it contains results you don't want to keep, you may remove or edit it.
16910 #
16911 # By default, configure uses ./config.cache as the cache file,
16912 # creating it if it does not exist already. You can give configure
16913 # the --cache-file=FILE option to use a different cache file; that is
16914 # what configure does when it calls configure scripts in
16915 # subdirectories, so they share the cache.
16916 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16917 # config.status only pays attention to the cache file if you give it the
16918 # --recheck option to rerun configure.
16919 #
16920 EOF
16921 # The following way of writing the cache mishandles newlines in values,
16922 # but we know of no workaround that is simple, portable, and efficient.
16923 # So, don't put newlines in cache variables' values.
16924 # Ultrix sh set writes to stderr and can't be redirected directly,
16925 # and sets the high bit in the cache file unless we assign to the vars.
16926 (set) 2>&1 |
16927 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16928 *ac_space=\ *)
16929 # `set' does not quote correctly, so add quotes (double-quote substitution
16930 # turns \\\\ into \\, and sed turns \\ into \).
16931 sed -n \
16932 -e "s/'/'\\\\''/g" \
16933 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16934 ;;
16935 *)
16936 # `set' quotes correctly as required by POSIX, so do not add quotes.
16937 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16938 ;;
16939 esac >> confcache
16940 if cmp -s $cache_file confcache; then
16941 :
16942 else
16943 if test -w $cache_file; then
16944 echo "updating cache $cache_file"
16945 cat confcache > $cache_file
16946 else
16947 echo "not updating unwritable cache $cache_file"
16948 fi
16949 fi
16950 rm -f confcache
16951
16952
16953 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
16954 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
16955 echo "configure:16956: checking for locale.h" >&5
16956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16957 echo $ac_n "(cached) $ac_c" 1>&6
16958 else
16959 cat > conftest.$ac_ext <<EOF
16960 #line 16961 "configure"
16961 #include "confdefs.h"
16962 #include <locale.h>
16963 EOF
16964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16965 { (eval echo configure:16966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16967 if test -z "$ac_err"; then
16968 rm -rf conftest*
16969 eval "ac_cv_header_$ac_safe=yes"
16970 else
16971 echo "$ac_err" >&5
16972 echo "configure: failed program was:" >&5
16973 cat conftest.$ac_ext >&5
16974 rm -rf conftest*
16975 eval "ac_cv_header_$ac_safe=no"
16976 fi
16977 rm -f conftest*
16978 fi
16979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16980 echo "$ac_t""yes" 1>&6
16981
16982 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16983 echo "configure:16984: checking for LC_MESSAGES" >&5
16984 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
16985 echo $ac_n "(cached) $ac_c" 1>&6
16986 else
16987 cat > conftest.$ac_ext <<EOF
16988 #line 16989 "configure"
16989 #include "confdefs.h"
16990 #include <locale.h>
16991 int main() {
16992 return LC_MESSAGES
16993 ; return 0; }
16994 EOF
16995 if { (eval echo configure:16996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16996 rm -rf conftest*
16997 ac_cv_val_LC_MESSAGES=yes
16998 else
16999 echo "configure: failed program was:" >&5
17000 cat conftest.$ac_ext >&5
17001 rm -rf conftest*
17002 ac_cv_val_LC_MESSAGES=no
17003 fi
17004 rm -f conftest*
17005 fi
17006
17007 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
17008 if test $ac_cv_val_LC_MESSAGES = yes; then
17009 cat >> confdefs.h <<\EOF
17010 #define HAVE_LC_MESSAGES 1
17011 EOF
17012
17013 fi
17014
17015 else
17016 echo "$ac_t""no" 1>&6
17017 fi
17018
17019
17020
17021 if test "${multilib}" = "yes"; then
17022 multilib_arg="--enable-multilib"
17023 else
17024 multilib_arg=
17025 fi
17026
17027 # Needed so that g++ can find the correct include subdir automatically.
17028 INTERFACE=v3
17029
17030 # Export all the install information
17031
17032
17033 glibcpp_toolexecdir=no
17034 glibcpp_toolexeclibdir=no
17035
17036 # Export build and source directories.
17037 # These need to be absolute paths, yet at the same time need to
17038 # canonicalize only relative paths, because then amd will not unmount
17039 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
17040 glibcpp_builddir=`pwd`
17041 case $srcdir in
17042 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
17043 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
17044 esac
17045 glibcpp_prefixdir=${prefix}
17046
17047 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
17048 echo "configure:17049: checking for interface version number" >&5
17049 libstdcxx_interface=$INTERFACE
17050 echo "$ac_t""$libstdcxx_interface" 1>&6
17051
17052 # Process the option --with-gxx-include-dir=<path to include-files directory>
17053 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
17054 echo "configure:17055: checking for --with-gxx-include-dir" >&5
17055 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
17056 if test "${with_gxx_include_dir+set}" = set; then
17057 withval="$with_gxx_include_dir"
17058 case "${withval}" in
17059 yes)
17060 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
17061 gxx_include_dir=no
17062 ;;
17063 no)
17064 gxx_include_dir=no
17065 ;;
17066 *)
17067 gxx_include_dir=${withval}
17068 ;;
17069 esac
17070 else
17071 gxx_include_dir=no
17072 fi
17073
17074 echo "$ac_t""$gxx_include_dir" 1>&6
17075
17076 # Process the option "--enable-version-specific-runtime-libs"
17077 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
17078 echo "configure:17079: checking for --enable-version-specific-runtime-libs" >&5
17079 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17080 if test "${enable_version_specific_runtime_libs+set}" = set; then
17081 enableval="$enable_version_specific_runtime_libs"
17082 version_specific_libs=yes
17083 # Need the gcc compiler version to know where to install libraries
17084 # and header files if --enable-version-specific-runtime-libs option
17085 # is selected.
17086 gcc_version_trigger=${srcdir}/../gcc/version.c
17087 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
17088 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
17089 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
17090 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17091 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
17092
17093 else
17094 version_specific_libs=no
17095 fi
17096
17097 echo "$ac_t""$version_specific_libs" 1>&6
17098
17099 # Default case for install directory for include files.
17100 if test x"$version_specific_libs" = x"no" \
17101 && test x"$gxx_include_dir" = x"no"; then
17102 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
17103 fi
17104
17105 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
17106 # Install a library built with a cross compiler in tooldir, not libdir.
17107 if test x"$glibcpp_toolexecdir" = x"no"; then
17108 if test -n "$with_cross_host" &&
17109 test x"$with_cross_host" != x"no"; then
17110 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
17111 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
17112 else
17113 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
17114 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
17115 fi
17116 fi
17117
17118 echo $ac_n "checking for install location""... $ac_c" 1>&6
17119 echo "configure:17120: checking for install location" >&5
17120 echo "$ac_t""$gxx_include_dir" 1>&6
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130 # Export all the include and flag information to makefiles.
17131
17132 # Root level of the build directory include sources.
17133 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
17134
17135 # Passed down for canadian crosses.
17136 if test x"$CANADIAN" = xyes; then
17137 TOPLEVEL_INCLUDES='-I$(includedir)'
17138 fi
17139
17140 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
17141
17142 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
17143
17144 if test x"$need_libio" = xyes; then
17145 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
17146
17147 fi
17148
17149 # Now, export this to all the little Makefiles....
17150
17151
17152
17153
17154
17155
17156 # Optimization flags that are probably a good idea for thrill-seekers. Just
17157 # uncomment the lines below and make, everything else is ready to go...
17158 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
17159 OPTIMIZE_CXXFLAGS=
17160
17161
17162 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
17163
17164
17165
17166 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
17167 grep "enable shared" > /dev/null; then
17168 LIBSUPCXX_PICFLAGS=-prefer-pic
17169 else
17170 LIBSUPCXX_PICFLAGS=
17171 fi
17172
17173
17174 # Generate the various Makefiles, include files, and scripts.
17175 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
17176 # and libsupc++/Makefile.am so that multilib installs will end up
17177 # installed in the correct place. To work around this not being passed
17178 # down from config-ml.in -> top_srcdir/Makefile.am ->
17179 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
17180 trap '' 1 2 15
17181 cat > confcache <<\EOF
17182 # This file is a shell script that caches the results of configure
17183 # tests run on this system so they can be shared between configure
17184 # scripts and configure runs. It is not useful on other systems.
17185 # If it contains results you don't want to keep, you may remove or edit it.
17186 #
17187 # By default, configure uses ./config.cache as the cache file,
17188 # creating it if it does not exist already. You can give configure
17189 # the --cache-file=FILE option to use a different cache file; that is
17190 # what configure does when it calls configure scripts in
17191 # subdirectories, so they share the cache.
17192 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17193 # config.status only pays attention to the cache file if you give it the
17194 # --recheck option to rerun configure.
17195 #
17196 EOF
17197 # The following way of writing the cache mishandles newlines in values,
17198 # but we know of no workaround that is simple, portable, and efficient.
17199 # So, don't put newlines in cache variables' values.
17200 # Ultrix sh set writes to stderr and can't be redirected directly,
17201 # and sets the high bit in the cache file unless we assign to the vars.
17202 (set) 2>&1 |
17203 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17204 *ac_space=\ *)
17205 # `set' does not quote correctly, so add quotes (double-quote substitution
17206 # turns \\\\ into \\, and sed turns \\ into \).
17207 sed -n \
17208 -e "s/'/'\\\\''/g" \
17209 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17210 ;;
17211 *)
17212 # `set' quotes correctly as required by POSIX, so do not add quotes.
17213 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17214 ;;
17215 esac >> confcache
17216 if cmp -s $cache_file confcache; then
17217 :
17218 else
17219 if test -w $cache_file; then
17220 echo "updating cache $cache_file"
17221 cat confcache > $cache_file
17222 else
17223 echo "not updating unwritable cache $cache_file"
17224 fi
17225 fi
17226 rm -f confcache
17227
17228 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17229
17230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17231 # Let make expand exec_prefix.
17232 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17233
17234 # Any assignment to VPATH causes Sun make to only execute
17235 # the first set of double-colon rules, so remove it if not needed.
17236 # If there is a colon in the path, we need to keep it.
17237 if test "x$srcdir" = x.; then
17238 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17239 fi
17240
17241 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17242
17243 DEFS=-DHAVE_CONFIG_H
17244
17245 # Without the "./", some shells look in PATH for config.status.
17246 : ${CONFIG_STATUS=./config.status}
17247
17248 echo creating $CONFIG_STATUS
17249 rm -f $CONFIG_STATUS
17250 cat > $CONFIG_STATUS <<EOF
17251 #! /bin/sh
17252 # Generated automatically by configure.
17253 # Run this file to recreate the current configuration.
17254 # This directory was configured as follows,
17255 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17256 #
17257 # $0 $ac_configure_args
17258 #
17259 # Compiler output produced by configure, useful for debugging
17260 # configure, is in ./config.log if it exists.
17261
17262 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17263 for ac_option
17264 do
17265 case "\$ac_option" in
17266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17267 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17268 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17269 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17270 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17271 exit 0 ;;
17272 -help | --help | --hel | --he | --h)
17273 echo "\$ac_cs_usage"; exit 0 ;;
17274 *) echo "\$ac_cs_usage"; exit 1 ;;
17275 esac
17276 done
17277
17278 ac_given_srcdir=$srcdir
17279 ac_given_INSTALL="$INSTALL"
17280
17281 trap 'rm -fr `echo "Makefile \
17282 include/Makefile src/Makefile \
17283 libmath/Makefile libio/Makefile libsupc++/Makefile \
17284 testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17285 EOF
17286 cat >> $CONFIG_STATUS <<EOF
17287
17288 # Protect against being on the right side of a sed subst in config.status.
17289 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17290 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17291 $ac_vpsub
17292 $extrasub
17293 s%@SHELL@%$SHELL%g
17294 s%@CFLAGS@%$CFLAGS%g
17295 s%@CPPFLAGS@%$CPPFLAGS%g
17296 s%@CXXFLAGS@%$CXXFLAGS%g
17297 s%@FFLAGS@%$FFLAGS%g
17298 s%@DEFS@%$DEFS%g
17299 s%@LDFLAGS@%$LDFLAGS%g
17300 s%@LIBS@%$LIBS%g
17301 s%@exec_prefix@%$exec_prefix%g
17302 s%@prefix@%$prefix%g
17303 s%@program_transform_name@%$program_transform_name%g
17304 s%@bindir@%$bindir%g
17305 s%@sbindir@%$sbindir%g
17306 s%@libexecdir@%$libexecdir%g
17307 s%@datadir@%$datadir%g
17308 s%@sysconfdir@%$sysconfdir%g
17309 s%@sharedstatedir@%$sharedstatedir%g
17310 s%@localstatedir@%$localstatedir%g
17311 s%@libdir@%$libdir%g
17312 s%@includedir@%$includedir%g
17313 s%@oldincludedir@%$oldincludedir%g
17314 s%@infodir@%$infodir%g
17315 s%@mandir@%$mandir%g
17316 s%@toplevel_srcdir@%$toplevel_srcdir%g
17317 s%@host@%$host%g
17318 s%@host_alias@%$host_alias%g
17319 s%@host_cpu@%$host_cpu%g
17320 s%@host_vendor@%$host_vendor%g
17321 s%@host_os@%$host_os%g
17322 s%@target@%$target%g
17323 s%@target_alias@%$target_alias%g
17324 s%@target_cpu@%$target_cpu%g
17325 s%@target_vendor@%$target_vendor%g
17326 s%@target_os@%$target_os%g
17327 s%@build@%$build%g
17328 s%@build_alias@%$build_alias%g
17329 s%@build_cpu@%$build_cpu%g
17330 s%@build_vendor@%$build_vendor%g
17331 s%@build_os@%$build_os%g
17332 s%@LN_S@%$LN_S%g
17333 s%@glibcpp_basedir@%$glibcpp_basedir%g
17334 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17335 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17336 s%@INSTALL_DATA@%$INSTALL_DATA%g
17337 s%@PACKAGE@%$PACKAGE%g
17338 s%@VERSION@%$VERSION%g
17339 s%@ACLOCAL@%$ACLOCAL%g
17340 s%@AUTOCONF@%$AUTOCONF%g
17341 s%@AUTOMAKE@%$AUTOMAKE%g
17342 s%@AUTOHEADER@%$AUTOHEADER%g
17343 s%@MAKEINFO@%$MAKEINFO%g
17344 s%@SET_MAKE@%$SET_MAKE%g
17345 s%@CC@%$CC%g
17346 s%@glibcpp_CXX@%$glibcpp_CXX%g
17347 s%@AS@%$AS%g
17348 s%@AR@%$AR%g
17349 s%@RANLIB@%$RANLIB%g
17350 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
17351 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
17352 s%@MAINT@%$MAINT%g
17353 s%@EXEEXT@%$EXEEXT%g
17354 s%@OBJEXT@%$OBJEXT%g
17355 s%@STRIP@%$STRIP%g
17356 s%@LIBTOOL@%$LIBTOOL%g
17357 s%@CXXCPP@%$CXXCPP%g
17358 s%@enable_shared@%$enable_shared%g
17359 s%@enable_static@%$enable_static%g
17360 s%@ifGNUmake@%$ifGNUmake%g
17361 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
17362 s%@CPP@%$CPP%g
17363 s%@CSTDIO_H@%$CSTDIO_H%g
17364 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
17365 s%@CCODECVT_C@%$CCODECVT_C%g
17366 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
17367 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
17368 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
17369 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
17370 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
17371 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
17372 s%@libio_la@%$libio_la%g
17373 s%@CLOCALE_H@%$CLOCALE_H%g
17374 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
17375 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
17376 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
17377 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
17378 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
17379 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
17380 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
17381 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
17382 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
17383 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
17384 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
17385 s%@WERROR@%$WERROR%g
17386 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
17387 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
17388 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
17389 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
17390 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
17391 s%@glibcpp_builddir@%$glibcpp_builddir%g
17392 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
17393 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
17394 s%@gxx_include_dir@%$gxx_include_dir%g
17395 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
17396 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
17397 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
17398 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
17399 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
17400 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
17401 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
17402 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
17403 s%@WARN_FLAGS@%$WARN_FLAGS%g
17404 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
17405
17406 CEOF
17407 EOF
17408
17409 cat >> $CONFIG_STATUS <<\EOF
17410
17411 # Split the substitutions into bite-sized pieces for seds with
17412 # small command number limits, like on Digital OSF/1 and HP-UX.
17413 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17414 ac_file=1 # Number of current file.
17415 ac_beg=1 # First line for current file.
17416 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17417 ac_more_lines=:
17418 ac_sed_cmds=""
17419 while $ac_more_lines; do
17420 if test $ac_beg -gt 1; then
17421 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17422 else
17423 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17424 fi
17425 if test ! -s conftest.s$ac_file; then
17426 ac_more_lines=false
17427 rm -f conftest.s$ac_file
17428 else
17429 if test -z "$ac_sed_cmds"; then
17430 ac_sed_cmds="sed -f conftest.s$ac_file"
17431 else
17432 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17433 fi
17434 ac_file=`expr $ac_file + 1`
17435 ac_beg=$ac_end
17436 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17437 fi
17438 done
17439 if test -z "$ac_sed_cmds"; then
17440 ac_sed_cmds=cat
17441 fi
17442 EOF
17443
17444 cat >> $CONFIG_STATUS <<EOF
17445
17446 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
17447 include/Makefile src/Makefile \
17448 libmath/Makefile libio/Makefile libsupc++/Makefile \
17449 testsuite/Makefile mkcheck testsuite_flags"}
17450 EOF
17451 cat >> $CONFIG_STATUS <<\EOF
17452 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17454 case "$ac_file" in
17455 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17456 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17457 *) ac_file_in="${ac_file}.in" ;;
17458 esac
17459
17460 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17461
17462 # Remove last slash and all that follows it. Not all systems have dirname.
17463 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17464 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17465 # The file is in a subdirectory.
17466 test ! -d "$ac_dir" && mkdir "$ac_dir"
17467 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17468 # A "../" for each directory in $ac_dir_suffix.
17469 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17470 else
17471 ac_dir_suffix= ac_dots=
17472 fi
17473
17474 case "$ac_given_srcdir" in
17475 .) srcdir=.
17476 if test -z "$ac_dots"; then top_srcdir=.
17477 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17478 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17479 *) # Relative path.
17480 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17481 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17482 esac
17483
17484 case "$ac_given_INSTALL" in
17485 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17486 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17487 esac
17488
17489 echo creating "$ac_file"
17490 rm -f "$ac_file"
17491 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17492 case "$ac_file" in
17493 *Makefile*) ac_comsub="1i\\
17494 # $configure_input" ;;
17495 *) ac_comsub= ;;
17496 esac
17497
17498 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17499 sed -e "$ac_comsub
17500 s%@configure_input@%$configure_input%g
17501 s%@srcdir@%$srcdir%g
17502 s%@top_srcdir@%$top_srcdir%g
17503 s%@INSTALL@%$INSTALL%g
17504 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17505 fi; done
17506 rm -f conftest.s*
17507
17508 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17509 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17510 #
17511 # ac_d sets the value in "#define NAME VALUE" lines.
17512 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17513 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17514 ac_dC='\3'
17515 ac_dD='%g'
17516 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17517 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17518 ac_uB='\([ ]\)%\1#\2define\3'
17519 ac_uC=' '
17520 ac_uD='\4%g'
17521 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17522 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17523 ac_eB='$%\1#\2define\3'
17524 ac_eC=' '
17525 ac_eD='%g'
17526
17527 if test "${CONFIG_HEADERS+set}" != set; then
17528 EOF
17529 cat >> $CONFIG_STATUS <<EOF
17530 CONFIG_HEADERS="config.h"
17531 EOF
17532 cat >> $CONFIG_STATUS <<\EOF
17533 fi
17534 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17535 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17536 case "$ac_file" in
17537 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17538 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17539 *) ac_file_in="${ac_file}.in" ;;
17540 esac
17541
17542 echo creating $ac_file
17543
17544 rm -f conftest.frag conftest.in conftest.out
17545 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17546 cat $ac_file_inputs > conftest.in
17547
17548 EOF
17549
17550 # Transform confdefs.h into a sed script conftest.vals that substitutes
17551 # the proper values into config.h.in to produce config.h. And first:
17552 # Protect against being on the right side of a sed subst in config.status.
17553 # Protect against being in an unquoted here document in config.status.
17554 rm -f conftest.vals
17555 cat > conftest.hdr <<\EOF
17556 s/[\\&%]/\\&/g
17557 s%[\\$`]%\\&%g
17558 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17559 s%ac_d%ac_u%gp
17560 s%ac_u%ac_e%gp
17561 EOF
17562 sed -n -f conftest.hdr confdefs.h > conftest.vals
17563 rm -f conftest.hdr
17564
17565 # This sed command replaces #undef with comments. This is necessary, for
17566 # example, in the case of _POSIX_SOURCE, which is predefined and required
17567 # on some systems where configure will not decide to define it.
17568 cat >> conftest.vals <<\EOF
17569 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17570 EOF
17571
17572 # Break up conftest.vals because some shells have a limit on
17573 # the size of here documents, and old seds have small limits too.
17574
17575 rm -f conftest.tail
17576 while :
17577 do
17578 ac_lines=`grep -c . conftest.vals`
17579 # grep -c gives empty output for an empty file on some AIX systems.
17580 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17581 # Write a limited-size here document to conftest.frag.
17582 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17583 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17584 echo 'CEOF
17585 sed -f conftest.frag conftest.in > conftest.out
17586 rm -f conftest.in
17587 mv conftest.out conftest.in
17588 ' >> $CONFIG_STATUS
17589 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17590 rm -f conftest.vals
17591 mv conftest.tail conftest.vals
17592 done
17593 rm -f conftest.vals
17594
17595 cat >> $CONFIG_STATUS <<\EOF
17596 rm -f conftest.frag conftest.h
17597 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17598 cat conftest.in >> conftest.h
17599 rm -f conftest.in
17600 if cmp -s $ac_file conftest.h 2>/dev/null; then
17601 echo "$ac_file is unchanged"
17602 rm -f conftest.h
17603 else
17604 # Remove last slash and all that follows it. Not all systems have dirname.
17605 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17606 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17607 # The file is in a subdirectory.
17608 test ! -d "$ac_dir" && mkdir "$ac_dir"
17609 fi
17610 rm -f $ac_file
17611 mv conftest.h $ac_file
17612 fi
17613 fi; done
17614
17615 EOF
17616
17617 cat >> $CONFIG_STATUS <<EOF
17618 ac_sources="$BASIC_FILE_CC $CLOCALE_CC"
17619 ac_dests="src/basic_file.cc src/c++locale.cc"
17620 EOF
17621
17622 cat >> $CONFIG_STATUS <<\EOF
17623 srcdir=$ac_given_srcdir
17624 while test -n "$ac_sources"; do
17625 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17626 set $ac_sources; ac_source=$1; shift; ac_sources=$*
17627
17628 echo "linking $srcdir/$ac_source to $ac_dest"
17629
17630 if test ! -r $srcdir/$ac_source; then
17631 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
17632 fi
17633 rm -f $ac_dest
17634
17635 # Make relative symlinks.
17636 # Remove last slash and all that follows it. Not all systems have dirname.
17637 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
17638 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
17639 # The dest file is in a subdirectory.
17640 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
17641 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
17642 # A "../" for each directory in $ac_dest_dir_suffix.
17643 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
17644 else
17645 ac_dest_dir_suffix= ac_dots=
17646 fi
17647
17648 case "$srcdir" in
17649 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
17650 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
17651 esac
17652
17653 # Make a symlink if possible; otherwise try a hard link.
17654 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17655 ln $srcdir/$ac_source $ac_dest; then :
17656 else
17657 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
17658 fi
17659 done
17660 EOF
17661 cat >> $CONFIG_STATUS <<EOF
17662
17663 srcdir=${srcdir}
17664 host=${host}
17665 target=${target}
17666 with_multisubdir=${with_multisubdir}
17667 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17668 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17669 glibcpp_basedir=${glibcpp_basedir}
17670 CC="${CC}"
17671 CXX="${CXX}"
17672
17673 EOF
17674 cat >> $CONFIG_STATUS <<\EOF
17675 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
17676 if test -n "$CONFIG_FILES"; then
17677 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
17678 grep '^MULTISUBDIR =' Makefile >> src/Makefile
17679 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
17680 fi
17681 chmod +x mkcheck
17682 chmod +x testsuite_flags
17683
17684 exit 0
17685 EOF
17686 chmod +x $CONFIG_STATUS
17687 rm -fr confdefs* $ac_clean_files
17688 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17689
17690
17691
17692 # Sanity checking & User-visible messages.
17693 # Checks down here, otherwise they get scrolled off before
17694 # the user will notice.
17695
17696 # Trying to get more people to read documentation. Possibly remove
17697 # check and warn all the time. There is no "informational" AC_MSG_
17698 # macro, so these are going to be printed even when --quiet/--silent
17699 # is given.
17700 if test ! -f stamp-sanity-warned; then
17701 touch stamp-sanity-warned
17702 echo ""
17703 echo "Please make certain that you read the installation information here:"
17704 echo " faster => ${srcdir}/docs/install.html"
17705 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
17706 echo ""
17707 echo "and the configuration information here:"
17708 echo " faster => ${srcdir}/docs/configopts.html"
17709 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
17710 echo ""
17711 echo "before proceeding with ${_cv_gnu_make_command}."
17712 echo ""
17713 fi