]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/configure
21e07d4e9be4c6da0b7ee2d6f3bbdaea1cd927d9
[thirdparty/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 --enable-multilib build hella library versions (default)"
16 ac_help="$ac_help
17 --with-target-subdir=SUBDIR
18 configuring in a subdirectory"
19 ac_help="$ac_help
20 --with-cross-host=HOST configuring with a cross compiler"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 ac_help="$ac_help
27 --enable-static[=PKGS] build static libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33 --disable-libtool-lock avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37 --enable-debug extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39 --enable-cstdio enable stdio for target io package.
40 --enable-cstdio=LIB use LIB target-speific io package. [default=stdio]
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 --enable-concept-checks use Boost-derived template checks [default=no]"
61 ac_help="$ac_help
62 --with-gxx-include-dir the installation directory for include files"
63 ac_help="$ac_help
64 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
65
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
69 build=NONE
70 cache_file=./config.cache
71 exec_prefix=NONE
72 host=NONE
73 no_create=
74 nonopt=NONE
75 no_recursion=
76 prefix=NONE
77 program_prefix=NONE
78 program_suffix=NONE
79 program_transform_name=s,x,x,
80 silent=
81 site=
82 srcdir=
83 target=NONE
84 verbose=
85 x_includes=NONE
86 x_libraries=NONE
87 bindir='${exec_prefix}/bin'
88 sbindir='${exec_prefix}/sbin'
89 libexecdir='${exec_prefix}/libexec'
90 datadir='${prefix}/share'
91 sysconfdir='${prefix}/etc'
92 sharedstatedir='${prefix}/com'
93 localstatedir='${prefix}/var'
94 libdir='${exec_prefix}/lib'
95 includedir='${prefix}/include'
96 oldincludedir='/usr/include'
97 infodir='${prefix}/info'
98 mandir='${prefix}/man'
99
100 # Initialize some other variables.
101 subdirs=
102 MFLAGS= MAKEFLAGS=
103 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
105 ac_max_here_lines=12
106
107 ac_prev=
108 for ac_option
109 do
110
111 # If the previous option needs an argument, assign it.
112 if test -n "$ac_prev"; then
113 eval "$ac_prev=\$ac_option"
114 ac_prev=
115 continue
116 fi
117
118 case "$ac_option" in
119 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120 *) ac_optarg= ;;
121 esac
122
123 # Accept the important Cygnus configure options, so we can diagnose typos.
124
125 case "$ac_option" in
126
127 -bindir | --bindir | --bindi | --bind | --bin | --bi)
128 ac_prev=bindir ;;
129 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
130 bindir="$ac_optarg" ;;
131
132 -build | --build | --buil | --bui | --bu)
133 ac_prev=build ;;
134 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
135 build="$ac_optarg" ;;
136
137 -cache-file | --cache-file | --cache-fil | --cache-fi \
138 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
139 ac_prev=cache_file ;;
140 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
141 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
142 cache_file="$ac_optarg" ;;
143
144 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
145 ac_prev=datadir ;;
146 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
147 | --da=*)
148 datadir="$ac_optarg" ;;
149
150 -disable-* | --disable-*)
151 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 fi
156 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}=no" ;;
158
159 -enable-* | --enable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 fi
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 case "$ac_option" in
167 *=*) ;;
168 *) ac_optarg=yes ;;
169 esac
170 eval "enable_${ac_feature}='$ac_optarg'" ;;
171
172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
174 | --exec | --exe | --ex)
175 ac_prev=exec_prefix ;;
176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
178 | --exec=* | --exe=* | --ex=*)
179 exec_prefix="$ac_optarg" ;;
180
181 -gas | --gas | --ga | --g)
182 # Obsolete; use --with-gas.
183 with_gas=yes ;;
184
185 -help | --help | --hel | --he)
186 # Omit some internal or obsolete options to make the list less imposing.
187 # This message is too long to be a string in the A/UX 3.1 sh.
188 cat << EOF
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
191 Configuration:
192 --cache-file=FILE cache test results in FILE
193 --help print this message
194 --no-create do not create output files
195 --quiet, --silent do not print \`checking...' messages
196 --version print the version of autoconf that created configure
197 Directory and file names:
198 --prefix=PREFIX install architecture-independent files in PREFIX
199 [$ac_default_prefix]
200 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
201 [same as prefix]
202 --bindir=DIR user executables in DIR [EPREFIX/bin]
203 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
204 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
205 --datadir=DIR read-only architecture-independent data in DIR
206 [PREFIX/share]
207 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
208 --sharedstatedir=DIR modifiable architecture-independent data in DIR
209 [PREFIX/com]
210 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
211 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
212 --includedir=DIR C header files in DIR [PREFIX/include]
213 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
214 --infodir=DIR info documentation in DIR [PREFIX/info]
215 --mandir=DIR man documentation in DIR [PREFIX/man]
216 --srcdir=DIR find the sources in DIR [configure dir or ..]
217 --program-prefix=PREFIX prepend PREFIX to installed program names
218 --program-suffix=SUFFIX append SUFFIX to installed program names
219 --program-transform-name=PROGRAM
220 run sed PROGRAM on installed program names
221 EOF
222 cat << EOF
223 Host type:
224 --build=BUILD configure for building on BUILD [BUILD=HOST]
225 --host=HOST configure for HOST [guessed]
226 --target=TARGET configure for TARGET [TARGET=HOST]
227 Features and packages:
228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
230 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
231 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
232 --x-includes=DIR X include files are in DIR
233 --x-libraries=DIR X library files are in DIR
234 EOF
235 if test -n "$ac_help"; then
236 echo "--enable and --with options recognized:$ac_help"
237 fi
238 exit 0 ;;
239
240 -host | --host | --hos | --ho)
241 ac_prev=host ;;
242 -host=* | --host=* | --hos=* | --ho=*)
243 host="$ac_optarg" ;;
244
245 -includedir | --includedir | --includedi | --included | --include \
246 | --includ | --inclu | --incl | --inc)
247 ac_prev=includedir ;;
248 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249 | --includ=* | --inclu=* | --incl=* | --inc=*)
250 includedir="$ac_optarg" ;;
251
252 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 ac_prev=infodir ;;
254 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255 infodir="$ac_optarg" ;;
256
257 -libdir | --libdir | --libdi | --libd)
258 ac_prev=libdir ;;
259 -libdir=* | --libdir=* | --libdi=* | --libd=*)
260 libdir="$ac_optarg" ;;
261
262 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263 | --libexe | --libex | --libe)
264 ac_prev=libexecdir ;;
265 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266 | --libexe=* | --libex=* | --libe=*)
267 libexecdir="$ac_optarg" ;;
268
269 -localstatedir | --localstatedir | --localstatedi | --localstated \
270 | --localstate | --localstat | --localsta | --localst \
271 | --locals | --local | --loca | --loc | --lo)
272 ac_prev=localstatedir ;;
273 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276 localstatedir="$ac_optarg" ;;
277
278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 ac_prev=mandir ;;
280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281 mandir="$ac_optarg" ;;
282
283 -nfp | --nfp | --nf)
284 # Obsolete; use --without-fp.
285 with_fp=no ;;
286
287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288 | --no-cr | --no-c)
289 no_create=yes ;;
290
291 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293 no_recursion=yes ;;
294
295 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297 | --oldin | --oldi | --old | --ol | --o)
298 ac_prev=oldincludedir ;;
299 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302 oldincludedir="$ac_optarg" ;;
303
304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 ac_prev=prefix ;;
306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307 prefix="$ac_optarg" ;;
308
309 -program-prefix | --program-prefix | --program-prefi | --program-pref \
310 | --program-pre | --program-pr | --program-p)
311 ac_prev=program_prefix ;;
312 -program-prefix=* | --program-prefix=* | --program-prefi=* \
313 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314 program_prefix="$ac_optarg" ;;
315
316 -program-suffix | --program-suffix | --program-suffi | --program-suff \
317 | --program-suf | --program-su | --program-s)
318 ac_prev=program_suffix ;;
319 -program-suffix=* | --program-suffix=* | --program-suffi=* \
320 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321 program_suffix="$ac_optarg" ;;
322
323 -program-transform-name | --program-transform-name \
324 | --program-transform-nam | --program-transform-na \
325 | --program-transform-n | --program-transform- \
326 | --program-transform | --program-transfor \
327 | --program-transfo | --program-transf \
328 | --program-trans | --program-tran \
329 | --progr-tra | --program-tr | --program-t)
330 ac_prev=program_transform_name ;;
331 -program-transform-name=* | --program-transform-name=* \
332 | --program-transform-nam=* | --program-transform-na=* \
333 | --program-transform-n=* | --program-transform-=* \
334 | --program-transform=* | --program-transfor=* \
335 | --program-transfo=* | --program-transf=* \
336 | --program-trans=* | --program-tran=* \
337 | --progr-tra=* | --program-tr=* | --program-t=*)
338 program_transform_name="$ac_optarg" ;;
339
340 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341 | -silent | --silent | --silen | --sile | --sil)
342 silent=yes ;;
343
344 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 ac_prev=sbindir ;;
346 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 | --sbi=* | --sb=*)
348 sbindir="$ac_optarg" ;;
349
350 -sharedstatedir | --sharedstatedir | --sharedstatedi \
351 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352 | --sharedst | --shareds | --shared | --share | --shar \
353 | --sha | --sh)
354 ac_prev=sharedstatedir ;;
355 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 | --sha=* | --sh=*)
359 sharedstatedir="$ac_optarg" ;;
360
361 -site | --site | --sit)
362 ac_prev=site ;;
363 -site=* | --site=* | --sit=*)
364 site="$ac_optarg" ;;
365
366 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 ac_prev=srcdir ;;
368 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369 srcdir="$ac_optarg" ;;
370
371 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
372 | --syscon | --sysco | --sysc | --sys | --sy)
373 ac_prev=sysconfdir ;;
374 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
375 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
376 sysconfdir="$ac_optarg" ;;
377
378 -target | --target | --targe | --targ | --tar | --ta | --t)
379 ac_prev=target ;;
380 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
381 target="$ac_optarg" ;;
382
383 -v | -verbose | --verbose | --verbos | --verbo | --verb)
384 verbose=yes ;;
385
386 -version | --version | --versio | --versi | --vers)
387 echo "configure generated by autoconf version 2.13"
388 exit 0 ;;
389
390 -with-* | --with-*)
391 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 fi
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 case "$ac_option" in
398 *=*) ;;
399 *) ac_optarg=yes ;;
400 esac
401 eval "with_${ac_package}='$ac_optarg'" ;;
402
403 -without-* | --without-*)
404 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 fi
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}=no" ;;
411
412 --x)
413 # Obsolete; use --with-x.
414 with_x=yes ;;
415
416 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
417 | --x-incl | --x-inc | --x-in | --x-i)
418 ac_prev=x_includes ;;
419 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
420 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
421 x_includes="$ac_optarg" ;;
422
423 -x-libraries | --x-libraries | --x-librarie | --x-librari \
424 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
425 ac_prev=x_libraries ;;
426 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
427 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
428 x_libraries="$ac_optarg" ;;
429
430 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431 ;;
432
433 *)
434 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
435 echo "configure: warning: $ac_option: invalid host type" 1>&2
436 fi
437 if test "x$nonopt" != xNONE; then
438 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
439 fi
440 nonopt="$ac_option"
441 ;;
442
443 esac
444 done
445
446 if test -n "$ac_prev"; then
447 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 fi
449
450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451
452 # File descriptor usage:
453 # 0 standard input
454 # 1 file creation
455 # 2 errors and warnings
456 # 3 some systems may open it to /dev/tty
457 # 4 used on the Kubota Titan
458 # 6 checking for... messages and results
459 # 5 compiler messages saved in config.log
460 if test "$silent" = yes; then
461 exec 6>/dev/null
462 else
463 exec 6>&1
464 fi
465 exec 5>./config.log
466
467 echo "\
468 This file contains any messages produced by compilers while
469 running configure, to aid debugging if configure makes a mistake.
470 " 1>&5
471
472 # Strip out --no-create and --no-recursion so they do not pile up.
473 # Also quote any args containing shell metacharacters.
474 ac_configure_args=
475 for ac_arg
476 do
477 case "$ac_arg" in
478 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
479 | --no-cr | --no-c) ;;
480 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
481 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
482 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
483 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
484 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
485 esac
486 done
487
488 # NLS nuisances.
489 # Only set these to C if already set. These must not be set unconditionally
490 # because not all systems understand e.g. LANG=C (notably SCO).
491 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
492 # Non-C LC_CTYPE values break the ctype check.
493 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
494 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
495 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
496 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
497
498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
499 rm -rf conftest* confdefs.h
500 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
501 echo > confdefs.h
502
503 # A filename unique to this package, relative to the directory that
504 # configure is in, which we can look for to find out if srcdir is correct.
505 ac_unique_file=src/ios.cc
506
507 # Find the source files, if location was not specified.
508 if test -z "$srcdir"; then
509 ac_srcdir_defaulted=yes
510 # Try the directory containing this script, then its parent.
511 ac_prog=$0
512 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
513 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514 srcdir=$ac_confdir
515 if test ! -r $srcdir/$ac_unique_file; then
516 srcdir=..
517 fi
518 else
519 ac_srcdir_defaulted=no
520 fi
521 if test ! -r $srcdir/$ac_unique_file; then
522 if test "$ac_srcdir_defaulted" = yes; then
523 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
524 else
525 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526 fi
527 fi
528 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529
530 # Prefer explicitly selected file to automatically selected ones.
531 if test -z "$CONFIG_SITE"; then
532 if test "x$prefix" != xNONE; then
533 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
534 else
535 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536 fi
537 fi
538 for ac_site_file in $CONFIG_SITE; do
539 if test -r "$ac_site_file"; then
540 echo "loading site script $ac_site_file"
541 . "$ac_site_file"
542 fi
543 done
544
545 if test -r "$cache_file"; then
546 echo "loading cache $cache_file"
547 . $cache_file
548 else
549 echo "creating cache $cache_file"
550 > $cache_file
551 fi
552
553 ac_ext=c
554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555 ac_cpp='$CPP $CPPFLAGS'
556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558 cross_compiling=$ac_cv_prog_cc_cross
559
560 ac_exeext=
561 ac_objext=o
562 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
563 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565 ac_n= ac_c='
566 ' ac_t=' '
567 else
568 ac_n=-n ac_c= ac_t=
569 fi
570 else
571 ac_n= ac_c='\c' ac_t=
572 fi
573
574
575
576 PACKAGE=libstdc++
577
578 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
579 release_VERSION=3.1.0
580
581 # For libtool versioning info, format is CURRENT:REVISION:AGE
582 libtool_VERSION=4:0:0
583
584
585 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
586 # AC 2.50 sets target_alias iff the user specified --target, but we use it
587 # everywhere, so we set it here just to be sure.
588 ac_aux_dir=
589 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
590 if test -f $ac_dir/install-sh; then
591 ac_aux_dir=$ac_dir
592 ac_install_sh="$ac_aux_dir/install-sh -c"
593 break
594 elif 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 fi
599 done
600 if test -z "$ac_aux_dir"; then
601 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
602 fi
603 ac_config_guess=$ac_aux_dir/config.guess
604 ac_config_sub=$ac_aux_dir/config.sub
605 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
606
607
608 # Do some error checking and defaulting for the host and target type.
609 # The inputs are:
610 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
611 #
612 # The rules are:
613 # 1. You are not allowed to specify --host, --target, and nonopt at the
614 # same time.
615 # 2. Host defaults to nonopt.
616 # 3. If nonopt is not specified, then host defaults to the current host,
617 # as determined by config.guess.
618 # 4. Target and build default to nonopt.
619 # 5. If nonopt is not specified, then target and build default to host.
620
621 # The aliases save the names the user supplied, while $host etc.
622 # will get canonicalized.
623 case $host---$target---$nonopt in
624 NONE---*---* | *---NONE---* | *---*---NONE) ;;
625 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
626 esac
627
628
629 # Make sure we can run config.sub.
630 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
631 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
632 fi
633
634 echo $ac_n "checking host system type""... $ac_c" 1>&6
635 echo "configure:636: checking host system type" >&5
636
637 host_alias=$host
638 case "$host_alias" in
639 NONE)
640 case $nonopt in
641 NONE)
642 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
643 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
644 fi ;;
645 *) host_alias=$nonopt ;;
646 esac ;;
647 esac
648
649 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
650 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653 echo "$ac_t""$host" 1>&6
654
655 echo $ac_n "checking target system type""... $ac_c" 1>&6
656 echo "configure:657: checking target system type" >&5
657
658 target_alias=$target
659 case "$target_alias" in
660 NONE)
661 case $nonopt in
662 NONE) target_alias=$host_alias ;;
663 *) target_alias=$nonopt ;;
664 esac ;;
665 esac
666
667 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
668 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
669 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
670 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671 echo "$ac_t""$target" 1>&6
672
673 echo $ac_n "checking build system type""... $ac_c" 1>&6
674 echo "configure:675: checking build system type" >&5
675
676 build_alias=$build
677 case "$build_alias" in
678 NONE)
679 case $nonopt in
680 NONE) build_alias=$host_alias ;;
681 *) build_alias=$nonopt ;;
682 esac ;;
683 esac
684
685 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
686 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
687 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
688 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
689 echo "$ac_t""$build" 1>&6
690
691 test "$host_alias" != "$target_alias" &&
692 test "$program_prefix$program_suffix$program_transform_name" = \
693 NONENONEs,x,x, &&
694 program_prefix=${target_alias}-
695
696 target_alias=${target_alias-$target}
697
698
699 # Find a good install program. We prefer a C program (faster),
700 # so one script is as good as another. But avoid the broken or
701 # incompatible versions:
702 # SysV /etc/install, /usr/sbin/install
703 # SunOS /usr/etc/install
704 # IRIX /sbin/install
705 # AIX /bin/install
706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
709 # ./install, which can be erroneously created by make from ./install.sh.
710 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
711 echo "configure:712: checking for a BSD compatible install" >&5
712 if test -z "$INSTALL"; then
713 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
714 echo $ac_n "(cached) $ac_c" 1>&6
715 else
716 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
717 for ac_dir in $PATH; do
718 # Account for people who put trailing slashes in PATH elements.
719 case "$ac_dir/" in
720 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
721 *)
722 # OSF1 and SCO ODT 3.0 have their own names for install.
723 # Don't use installbsd from OSF since it installs stuff as root
724 # by default.
725 for ac_prog in ginstall scoinst install; do
726 if test -f $ac_dir/$ac_prog; then
727 if test $ac_prog = install &&
728 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
729 # AIX install. It has an incompatible calling convention.
730 :
731 else
732 ac_cv_path_install="$ac_dir/$ac_prog -c"
733 break 2
734 fi
735 fi
736 done
737 ;;
738 esac
739 done
740 IFS="$ac_save_IFS"
741
742 fi
743 if test "${ac_cv_path_install+set}" = set; then
744 INSTALL="$ac_cv_path_install"
745 else
746 # As a last resort, use the slow shell script. We don't cache a
747 # path for INSTALL within a source directory, because that will
748 # break other packages using the cache if that directory is
749 # removed, or if the path is relative.
750 INSTALL="$ac_install_sh"
751 fi
752 fi
753 echo "$ac_t""$INSTALL" 1>&6
754
755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
756 # It thinks the first close brace ends the variable substitution.
757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
758
759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
760
761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
762
763 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
764 echo "configure:765: checking whether build environment is sane" >&5
765 # Just in case
766 sleep 1
767 echo timestamp > conftestfile
768 # Do `set' in a subshell so we don't clobber the current shell's
769 # arguments. Must try -L first in case configure is actually a
770 # symlink; some systems play weird games with the mod time of symlinks
771 # (eg FreeBSD returns the mod time of the symlink's containing
772 # directory).
773 if (
774 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
775 if test "$*" = "X"; then
776 # -L didn't work.
777 set X `ls -t $srcdir/configure conftestfile`
778 fi
779 if test "$*" != "X $srcdir/configure conftestfile" \
780 && test "$*" != "X conftestfile $srcdir/configure"; then
781
782 # If neither matched, then we have a broken ls. This can happen
783 # if, for instance, CONFIG_SHELL is bash and it inherits a
784 # broken ls alias from the environment. This has actually
785 # happened. Such a system could not be considered "sane".
786 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
787 alias in your environment" 1>&2; exit 1; }
788 fi
789
790 test "$2" = conftestfile
791 )
792 then
793 # Ok.
794 :
795 else
796 { echo "configure: error: newly created file is older than distributed files!
797 Check your system clock" 1>&2; exit 1; }
798 fi
799 rm -f conftest*
800 echo "$ac_t""yes" 1>&6
801 if test "$program_transform_name" = s,x,x,; then
802 program_transform_name=
803 else
804 # Double any \ or $. echo might interpret backslashes.
805 cat <<\EOF_SED > conftestsed
806 s,\\,\\\\,g; s,\$,$$,g
807 EOF_SED
808 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
809 rm -f conftestsed
810 fi
811 test "$program_prefix" != NONE &&
812 program_transform_name="s,^,${program_prefix},; $program_transform_name"
813 # Use a double $ so make ignores it.
814 test "$program_suffix" != NONE &&
815 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
816
817 # sed with no file args requires a program.
818 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
819
820 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
821 echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
822 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
823 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
825 else
826 cat > conftestmake <<\EOF
827 all:
828 @echo 'ac_maketemp="${MAKE}"'
829 EOF
830 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
831 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
832 if test -n "$ac_maketemp"; then
833 eval ac_cv_prog_make_${ac_make}_set=yes
834 else
835 eval ac_cv_prog_make_${ac_make}_set=no
836 fi
837 rm -f conftestmake
838 fi
839 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
840 echo "$ac_t""yes" 1>&6
841 SET_MAKE=
842 else
843 echo "$ac_t""no" 1>&6
844 SET_MAKE="MAKE=${MAKE-make}"
845 fi
846
847
848 PACKAGE=$PACKAGE
849
850 VERSION=$release_VERSION
851
852 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
853 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
854 fi
855 cat >> confdefs.h <<EOF
856 #define PACKAGE "$PACKAGE"
857 EOF
858
859 cat >> confdefs.h <<EOF
860 #define VERSION "$VERSION"
861 EOF
862
863
864
865 missing_dir=`cd $ac_aux_dir && pwd`
866 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
867 echo "configure:868: checking for working aclocal" >&5
868 # Run test in a subshell; some versions of sh will print an error if
869 # an executable is not found, even if stderr is redirected.
870 # Redirect stdin to placate older versions of autoconf. Sigh.
871 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
872 ACLOCAL=aclocal
873 echo "$ac_t""found" 1>&6
874 else
875 ACLOCAL="$missing_dir/missing aclocal"
876 echo "$ac_t""missing" 1>&6
877 fi
878
879 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
880 echo "configure:881: checking for working autoconf" >&5
881 # Run test in a subshell; some versions of sh will print an error if
882 # an executable is not found, even if stderr is redirected.
883 # Redirect stdin to placate older versions of autoconf. Sigh.
884 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
885 AUTOCONF=autoconf
886 echo "$ac_t""found" 1>&6
887 else
888 AUTOCONF="$missing_dir/missing autoconf"
889 echo "$ac_t""missing" 1>&6
890 fi
891
892 echo $ac_n "checking for working automake""... $ac_c" 1>&6
893 echo "configure:894: checking for working automake" >&5
894 # Run test in a subshell; some versions of sh will print an error if
895 # an executable is not found, even if stderr is redirected.
896 # Redirect stdin to placate older versions of autoconf. Sigh.
897 if (automake --version) < /dev/null > /dev/null 2>&1; then
898 AUTOMAKE=automake
899 echo "$ac_t""found" 1>&6
900 else
901 AUTOMAKE="$missing_dir/missing automake"
902 echo "$ac_t""missing" 1>&6
903 fi
904
905 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
906 echo "configure:907: checking for working autoheader" >&5
907 # Run test in a subshell; some versions of sh will print an error if
908 # an executable is not found, even if stderr is redirected.
909 # Redirect stdin to placate older versions of autoconf. Sigh.
910 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
911 AUTOHEADER=autoheader
912 echo "$ac_t""found" 1>&6
913 else
914 AUTOHEADER="$missing_dir/missing autoheader"
915 echo "$ac_t""missing" 1>&6
916 fi
917
918 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
919 echo "configure:920: checking for working makeinfo" >&5
920 # Run test in a subshell; some versions of sh will print an error if
921 # an executable is not found, even if stderr is redirected.
922 # Redirect stdin to placate older versions of autoconf. Sigh.
923 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
924 MAKEINFO=makeinfo
925 echo "$ac_t""found" 1>&6
926 else
927 MAKEINFO="$missing_dir/missing makeinfo"
928 echo "$ac_t""missing" 1>&6
929 fi
930
931
932
933
934
935
936 # Runs configure.host and configure.target, as well as finds CC, CXX
937 # and assorted other critical bits. Have to run this before the
938 # GLIBCPP_ENABLE_* macros below.
939 if test $host != $build; then
940 ac_tool_prefix=${host_alias}-
941 else
942 ac_tool_prefix=
943 fi
944
945 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
946 echo "configure:947: checking for Cygwin environment" >&5
947 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
949 else
950 cat > conftest.$ac_ext <<EOF
951 #line 952 "configure"
952 #include "confdefs.h"
953
954 int main() {
955
956 #ifndef __CYGWIN__
957 #define __CYGWIN__ __CYGWIN32__
958 #endif
959 return __CYGWIN__;
960 ; return 0; }
961 EOF
962 if { (eval echo configure:963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
963 rm -rf conftest*
964 ac_cv_cygwin=yes
965 else
966 echo "configure: failed program was:" >&5
967 cat conftest.$ac_ext >&5
968 rm -rf conftest*
969 ac_cv_cygwin=no
970 fi
971 rm -f conftest*
972 rm -f conftest*
973 fi
974
975 echo "$ac_t""$ac_cv_cygwin" 1>&6
976 CYGWIN=
977 test "$ac_cv_cygwin" = yes && CYGWIN=yes
978 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
979 echo "configure:980: checking for mingw32 environment" >&5
980 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
982 else
983 cat > conftest.$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
986
987 int main() {
988 return __MINGW32__;
989 ; return 0; }
990 EOF
991 if { (eval echo configure:992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
992 rm -rf conftest*
993 ac_cv_mingw32=yes
994 else
995 echo "configure: failed program was:" >&5
996 cat conftest.$ac_ext >&5
997 rm -rf conftest*
998 ac_cv_mingw32=no
999 fi
1000 rm -f conftest*
1001 rm -f conftest*
1002 fi
1003
1004 echo "$ac_t""$ac_cv_mingw32" 1>&6
1005 MINGW32=
1006 test "$ac_cv_mingw32" = yes && MINGW32=yes
1007
1008 # Check whether --enable-multilib or --disable-multilib was given.
1009 if test "${enable_multilib+set}" = set; then
1010 enableval="$enable_multilib"
1011 case "${enableval}" in
1012 yes) multilib=yes ;;
1013 no) multilib=no ;;
1014 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1015 esac
1016 else
1017 multilib=yes
1018 fi
1019
1020 # When building with srcdir == objdir, links to the source files will
1021 # be created in directories within the target_subdir. We have to
1022 # adjust toplevel_srcdir accordingly, so that configure finds
1023 # install-sh and other auxiliary files that live in the top-level
1024 # source directory.
1025 if test "${srcdir}" = "."; then
1026 if test -z "${with_target_subdir}"; then
1027 toprel=".."
1028 else
1029 if test "${with_target_subdir}" != "."; then
1030 toprel="${with_multisrctop}../.."
1031 else
1032 toprel="${with_multisrctop}.."
1033 fi
1034 fi
1035 else
1036 toprel=".."
1037 fi
1038 ac_aux_dir=
1039 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1040 if test -f $ac_dir/install-sh; then
1041 ac_aux_dir=$ac_dir
1042 ac_install_sh="$ac_aux_dir/install-sh -c"
1043 break
1044 elif test -f $ac_dir/install.sh; then
1045 ac_aux_dir=$ac_dir
1046 ac_install_sh="$ac_aux_dir/install.sh -c"
1047 break
1048 fi
1049 done
1050 if test -z "$ac_aux_dir"; then
1051 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1052 fi
1053 ac_config_guess=$ac_aux_dir/config.guess
1054 ac_config_sub=$ac_aux_dir/config.sub
1055 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1056
1057 toplevel_srcdir=\${top_srcdir}/$toprel
1058
1059
1060 # Export build and source directories.
1061 # These need to be absolute paths, yet at the same time need to
1062 # canonicalize only relative paths, because then amd will not unmount
1063 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1064 glibcpp_builddir=`pwd`
1065 case $srcdir in
1066 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1067 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1068 esac
1069
1070
1071
1072
1073
1074 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
1075 # be 'cp -p' if linking isn't available.
1076 #ac_cv_prog_LN_S='cp -p'
1077 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether ln -s works" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1081 else
1082 rm -f conftestdata
1083 if ln -s X conftestdata 2>/dev/null
1084 then
1085 rm -f conftestdata
1086 ac_cv_prog_LN_S="ln -s"
1087 else
1088 ac_cv_prog_LN_S=ln
1089 fi
1090 fi
1091 LN_S="$ac_cv_prog_LN_S"
1092 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1093 echo "$ac_t""yes" 1>&6
1094 else
1095 echo "$ac_t""no" 1>&6
1096 fi
1097
1098
1099 # We use these options to decide which functions to include.
1100 # Check whether --with-target-subdir or --without-target-subdir was given.
1101 if test "${with_target_subdir+set}" = set; then
1102 withval="$with_target_subdir"
1103 :
1104 fi
1105
1106 # Check whether --with-cross-host or --without-cross-host was given.
1107 if test "${with_cross_host+set}" = set; then
1108 withval="$with_cross_host"
1109 :
1110 fi
1111
1112
1113 glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1114
1115
1116 # Never versions of autoconf add an underscore to these functions.
1117 # Prevent future problems ...
1118
1119
1120
1121
1122
1123 # AC_PROG_CC
1124
1125 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1126 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1127 # are probably using a cross compiler, which will not be able to fully
1128 # link an executable. This should really be fixed in autoconf
1129 # itself.
1130
1131
1132
1133
1134 # Extract the first word of "gcc", so it can be a program name with args.
1135 set dummy gcc; ac_word=$2
1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1137 echo "configure:1138: checking for $ac_word" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1140 else
1141 if test -n "$CC"; then
1142 ac_cv_prog_CC="$CC" # Let the user override the test.
1143 else
1144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1145 ac_dummy="$PATH"
1146 for ac_dir in $ac_dummy; do
1147 test -z "$ac_dir" && ac_dir=.
1148 if test -f $ac_dir/$ac_word; then
1149 ac_cv_prog_CC="gcc"
1150 break
1151 fi
1152 done
1153 IFS="$ac_save_ifs"
1154 fi
1155 fi
1156 CC="$ac_cv_prog_CC"
1157 if test -n "$CC"; then
1158 echo "$ac_t""$CC" 1>&6
1159 else
1160 echo "$ac_t""no" 1>&6
1161 fi
1162
1163 if test -z "$CC"; then
1164 # Extract the first word of "cc", so it can be a program name with args.
1165 set dummy cc; ac_word=$2
1166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1167 echo "configure:1168: checking for $ac_word" >&5
1168 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1170 else
1171 if test -n "$CC"; then
1172 ac_cv_prog_CC="$CC" # Let the user override the test.
1173 else
1174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1175 ac_prog_rejected=no
1176 ac_dummy="$PATH"
1177 for ac_dir in $ac_dummy; do
1178 test -z "$ac_dir" && ac_dir=.
1179 if test -f $ac_dir/$ac_word; then
1180 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1181 ac_prog_rejected=yes
1182 continue
1183 fi
1184 ac_cv_prog_CC="cc"
1185 break
1186 fi
1187 done
1188 IFS="$ac_save_ifs"
1189 if test $ac_prog_rejected = yes; then
1190 # We found a bogon in the path, so make sure we never use it.
1191 set dummy $ac_cv_prog_CC
1192 shift
1193 if test $# -gt 0; then
1194 # We chose a different compiler from the bogus one.
1195 # However, it has the same basename, so the bogon will be chosen
1196 # first if we set CC to just the basename; use the full file name.
1197 shift
1198 set dummy "$ac_dir/$ac_word" "$@"
1199 shift
1200 ac_cv_prog_CC="$@"
1201 fi
1202 fi
1203 fi
1204 fi
1205 CC="$ac_cv_prog_CC"
1206 if test -n "$CC"; then
1207 echo "$ac_t""$CC" 1>&6
1208 else
1209 echo "$ac_t""no" 1>&6
1210 fi
1211
1212 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1213 fi
1214
1215 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether we are using GNU C" >&5
1217 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1219 else
1220 cat > conftest.c <<EOF
1221 #ifdef __GNUC__
1222 yes;
1223 #endif
1224 EOF
1225 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1226 ac_cv_prog_gcc=yes
1227 else
1228 ac_cv_prog_gcc=no
1229 fi
1230 fi
1231
1232 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1233
1234 if test $ac_cv_prog_gcc = yes; then
1235 GCC=yes
1236 ac_test_CFLAGS="${CFLAGS+set}"
1237 ac_save_CFLAGS="$CFLAGS"
1238 CFLAGS=
1239 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1240 echo "configure:1241: checking whether ${CC-cc} accepts -g" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1243 else
1244 echo 'void f(){}' > conftest.c
1245 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1246 ac_cv_prog_cc_g=yes
1247 else
1248 ac_cv_prog_cc_g=no
1249 fi
1250 rm -f conftest*
1251
1252 fi
1253
1254 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1255 if test "$ac_test_CFLAGS" = set; then
1256 CFLAGS="$ac_save_CFLAGS"
1257 elif test $ac_cv_prog_cc_g = yes; then
1258 CFLAGS="-g -O2"
1259 else
1260 CFLAGS="-O2"
1261 fi
1262 else
1263 GCC=
1264 test "${CFLAGS+set}" = set || CFLAGS="-g"
1265 fi
1266
1267
1268 # Can't just call these here as g++ requires libstc++ to be built....
1269 # AC_PROG_CXX
1270
1271 # Likewise for AC_PROG_CXX.
1272
1273
1274
1275 # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1276 # flags that come in CXX while configuring libstdc++. They're different
1277 # from those used for all other target libraries. If CXX is set in
1278 # the environment, respect that here.
1279 glibcpp_CXX=$CXX
1280 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1281 do
1282 # Extract the first word of "$ac_prog", so it can be a program name with args.
1283 set dummy $ac_prog; ac_word=$2
1284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1285 echo "configure:1286: checking for $ac_word" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289 if test -n "$glibcpp_CXX"; then
1290 ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1291 else
1292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1293 ac_dummy="$PATH"
1294 for ac_dir in $ac_dummy; do
1295 test -z "$ac_dir" && ac_dir=.
1296 if test -f $ac_dir/$ac_word; then
1297 ac_cv_prog_glibcpp_CXX="$ac_prog"
1298 break
1299 fi
1300 done
1301 IFS="$ac_save_ifs"
1302 fi
1303 fi
1304 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1305 if test -n "$glibcpp_CXX"; then
1306 echo "$ac_t""$glibcpp_CXX" 1>&6
1307 else
1308 echo "$ac_t""no" 1>&6
1309 fi
1310
1311 test -n "$glibcpp_CXX" && break
1312 done
1313 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1314
1315
1316 CXX=$glibcpp_CXX
1317 test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1318
1319 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1320 echo "configure:1321: checking whether we are using GNU C++" >&5
1321 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1323 else
1324 cat > conftest.C <<EOF
1325 #ifdef __GNUC__
1326 yes;
1327 #endif
1328 EOF
1329 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1330 ac_cv_prog_gxx=yes
1331 else
1332 ac_cv_prog_gxx=no
1333 fi
1334 fi
1335
1336 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1337
1338 if test $ac_cv_prog_gxx = yes; then
1339 GXX=yes
1340 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1341 ac_save_CXXFLAGS="$CXXFLAGS"
1342 CXXFLAGS=
1343 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1344 echo "configure:1345: checking whether ${CXX-g++} accepts -g" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348 echo 'void f(){}' > conftest.cc
1349 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1350 ac_cv_prog_cxx_g=yes
1351 else
1352 ac_cv_prog_cxx_g=no
1353 fi
1354 rm -f conftest*
1355
1356 fi
1357
1358 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1359 if test "$ac_test_CXXFLAGS" = set; then
1360 CXXFLAGS="$ac_save_CXXFLAGS"
1361 elif test $ac_cv_prog_cxx_g = yes; then
1362 CXXFLAGS="-g -O2"
1363 else
1364 CXXFLAGS="-O2"
1365 fi
1366 else
1367 GXX=
1368 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1369 fi
1370
1371
1372 # For some reason, gettext needs this.
1373
1374 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1375 echo "configure:1376: checking for strerror in -lcposix" >&5
1376 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380 ac_save_LIBS="$LIBS"
1381 LIBS="-lcposix $LIBS"
1382 cat > conftest.$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1385 /* Override any gcc2 internal prototype to avoid an error. */
1386 /* We use char because int might match the return type of a gcc2
1387 builtin and then its argument prototype would still apply. */
1388 char strerror();
1389
1390 int main() {
1391 strerror()
1392 ; return 0; }
1393 EOF
1394 if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1395 rm -rf conftest*
1396 eval "ac_cv_lib_$ac_lib_var=yes"
1397 else
1398 echo "configure: failed program was:" >&5
1399 cat conftest.$ac_ext >&5
1400 rm -rf conftest*
1401 eval "ac_cv_lib_$ac_lib_var=no"
1402 fi
1403 rm -f conftest*
1404 LIBS="$ac_save_LIBS"
1405
1406 fi
1407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1408 echo "$ac_t""yes" 1>&6
1409 LIBS="$LIBS -lcposix"
1410 else
1411 echo "$ac_t""no" 1>&6
1412 fi
1413
1414
1415
1416
1417 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1418 set dummy ${ac_tool_prefix}as; ac_word=$2
1419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1420 echo "configure:1421: checking for $ac_word" >&5
1421 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1423 else
1424 if test -n "$AS"; then
1425 ac_cv_prog_AS="$AS" # Let the user override the test.
1426 else
1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1428 ac_dummy="$PATH"
1429 for ac_dir in $ac_dummy; do
1430 test -z "$ac_dir" && ac_dir=.
1431 if test -f $ac_dir/$ac_word; then
1432 ac_cv_prog_AS="${ac_tool_prefix}as"
1433 break
1434 fi
1435 done
1436 IFS="$ac_save_ifs"
1437 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1438 fi
1439 fi
1440 AS="$ac_cv_prog_AS"
1441 if test -n "$AS"; then
1442 echo "$ac_t""$AS" 1>&6
1443 else
1444 echo "$ac_t""no" 1>&6
1445 fi
1446
1447
1448
1449 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1450 set dummy ${ac_tool_prefix}ar; ac_word=$2
1451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1452 echo "configure:1453: checking for $ac_word" >&5
1453 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1455 else
1456 if test -n "$AR"; then
1457 ac_cv_prog_AR="$AR" # Let the user override the test.
1458 else
1459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1460 ac_dummy="$PATH"
1461 for ac_dir in $ac_dummy; do
1462 test -z "$ac_dir" && ac_dir=.
1463 if test -f $ac_dir/$ac_word; then
1464 ac_cv_prog_AR="${ac_tool_prefix}ar"
1465 break
1466 fi
1467 done
1468 IFS="$ac_save_ifs"
1469 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1470 fi
1471 fi
1472 AR="$ac_cv_prog_AR"
1473 if test -n "$AR"; then
1474 echo "$ac_t""$AR" 1>&6
1475 else
1476 echo "$ac_t""no" 1>&6
1477 fi
1478
1479
1480
1481 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1482 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1484 echo "configure:1485: checking for $ac_word" >&5
1485 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1487 else
1488 if test -n "$RANLIB"; then
1489 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1490 else
1491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1492 ac_dummy="$PATH"
1493 for ac_dir in $ac_dummy; do
1494 test -z "$ac_dir" && ac_dir=.
1495 if test -f $ac_dir/$ac_word; then
1496 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1497 break
1498 fi
1499 done
1500 IFS="$ac_save_ifs"
1501 fi
1502 fi
1503 RANLIB="$ac_cv_prog_RANLIB"
1504 if test -n "$RANLIB"; then
1505 echo "$ac_t""$RANLIB" 1>&6
1506 else
1507 echo "$ac_t""no" 1>&6
1508 fi
1509
1510
1511 if test -z "$ac_cv_prog_RANLIB"; then
1512 if test -n "$ac_tool_prefix"; then
1513 # Extract the first word of "ranlib", so it can be a program name with args.
1514 set dummy ranlib; ac_word=$2
1515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1516 echo "configure:1517: checking for $ac_word" >&5
1517 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1518 echo $ac_n "(cached) $ac_c" 1>&6
1519 else
1520 if test -n "$RANLIB"; then
1521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1522 else
1523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1524 ac_dummy="$PATH"
1525 for ac_dir in $ac_dummy; do
1526 test -z "$ac_dir" && ac_dir=.
1527 if test -f $ac_dir/$ac_word; then
1528 ac_cv_prog_RANLIB="ranlib"
1529 break
1530 fi
1531 done
1532 IFS="$ac_save_ifs"
1533 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1534 fi
1535 fi
1536 RANLIB="$ac_cv_prog_RANLIB"
1537 if test -n "$RANLIB"; then
1538 echo "$ac_t""$RANLIB" 1>&6
1539 else
1540 echo "$ac_t""no" 1>&6
1541 fi
1542
1543 else
1544 RANLIB="ranlib-not-found-in-path-error"
1545 fi
1546 fi
1547
1548 # Find a good install program. We prefer a C program (faster),
1549 # so one script is as good as another. But avoid the broken or
1550 # incompatible versions:
1551 # SysV /etc/install, /usr/sbin/install
1552 # SunOS /usr/etc/install
1553 # IRIX /sbin/install
1554 # AIX /bin/install
1555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1558 # ./install, which can be erroneously created by make from ./install.sh.
1559 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1560 echo "configure:1561: checking for a BSD compatible install" >&5
1561 if test -z "$INSTALL"; then
1562 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1566 for ac_dir in $PATH; do
1567 # Account for people who put trailing slashes in PATH elements.
1568 case "$ac_dir/" in
1569 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1570 *)
1571 # OSF1 and SCO ODT 3.0 have their own names for install.
1572 # Don't use installbsd from OSF since it installs stuff as root
1573 # by default.
1574 for ac_prog in ginstall scoinst install; do
1575 if test -f $ac_dir/$ac_prog; then
1576 if test $ac_prog = install &&
1577 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1578 # AIX install. It has an incompatible calling convention.
1579 :
1580 else
1581 ac_cv_path_install="$ac_dir/$ac_prog -c"
1582 break 2
1583 fi
1584 fi
1585 done
1586 ;;
1587 esac
1588 done
1589 IFS="$ac_save_IFS"
1590
1591 fi
1592 if test "${ac_cv_path_install+set}" = set; then
1593 INSTALL="$ac_cv_path_install"
1594 else
1595 # As a last resort, use the slow shell script. We don't cache a
1596 # path for INSTALL within a source directory, because that will
1597 # break other packages using the cache if that directory is
1598 # removed, or if the path is relative.
1599 INSTALL="$ac_install_sh"
1600 fi
1601 fi
1602 echo "$ac_t""$INSTALL" 1>&6
1603
1604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1605 # It thinks the first close brace ends the variable substitution.
1606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1607
1608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1609
1610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1611
1612
1613 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1614 echo "configure:1615: checking whether to enable maintainer-specific portions of Makefiles" >&5
1615 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1616 if test "${enable_maintainer_mode+set}" = set; then
1617 enableval="$enable_maintainer_mode"
1618 USE_MAINTAINER_MODE=$enableval
1619 else
1620 USE_MAINTAINER_MODE=no
1621 fi
1622
1623 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1624
1625
1626 if test $USE_MAINTAINER_MODE = yes; then
1627 MAINTAINER_MODE_TRUE=
1628 MAINTAINER_MODE_FALSE='#'
1629 else
1630 MAINTAINER_MODE_TRUE='#'
1631 MAINTAINER_MODE_FALSE=
1632 fi
1633 MAINT=$MAINTAINER_MODE_TRUE
1634
1635
1636
1637 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1638 # at least currently, we never actually build a program, so we never
1639 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1640 # fails, because we are probably configuring with a cross compiler
1641 # which can't create executables. So we include AC_EXEEXT to keep
1642 # automake happy, but we don't execute it, since we don't care about
1643 # the result.
1644 if false; then
1645 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1646 # to nothing, so nothing would remain between `then' and `fi' if it
1647 # were not for the `:' below.
1648 :
1649
1650
1651 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1652 echo "configure:1653: checking for executable suffix" >&5
1653 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1655 else
1656 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1657 ac_cv_exeext=.exe
1658 else
1659 rm -f conftest*
1660 echo 'int main () { return 0; }' > conftest.$ac_ext
1661 ac_cv_exeext=
1662 if { (eval echo configure:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1663 for file in conftest.*; do
1664 case $file in
1665 *.c | *.o | *.obj) ;;
1666 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1667 esac
1668 done
1669 else
1670 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1671 fi
1672 rm -f conftest*
1673 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1674 fi
1675 fi
1676
1677 EXEEXT=""
1678 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1679 echo "$ac_t""${ac_cv_exeext}" 1>&6
1680 ac_exeext=$EXEEXT
1681
1682 fi
1683
1684 . ${glibcpp_basedir}/configure.host
1685
1686 case ${glibcpp_basedir} in
1687 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1688 *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1689 esac
1690
1691 # This does for the target what configure.host does for the host. In
1692 # addition to possibly modifying the same flags, it also sets up symlinks.
1693
1694 . ${glibcpp_basedir}/configure.target
1695 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1696 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1697
1698
1699 #
1700
1701
1702
1703 # Check whether --enable-shared or --disable-shared was given.
1704 if test "${enable_shared+set}" = set; then
1705 enableval="$enable_shared"
1706 p=${PACKAGE-default}
1707 case $enableval in
1708 yes) enable_shared=yes ;;
1709 no) enable_shared=no ;;
1710 *)
1711 enable_shared=no
1712 # Look at the argument we got. We use all the common list separators.
1713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1714 for pkg in $enableval; do
1715 if test "X$pkg" = "X$p"; then
1716 enable_shared=yes
1717 fi
1718 done
1719 IFS="$ac_save_ifs"
1720 ;;
1721 esac
1722 else
1723 enable_shared=yes
1724 fi
1725
1726 # Check whether --enable-static or --disable-static was given.
1727 if test "${enable_static+set}" = set; then
1728 enableval="$enable_static"
1729 p=${PACKAGE-default}
1730 case $enableval in
1731 yes) enable_static=yes ;;
1732 no) enable_static=no ;;
1733 *)
1734 enable_static=no
1735 # Look at the argument we got. We use all the common list separators.
1736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1737 for pkg in $enableval; do
1738 if test "X$pkg" = "X$p"; then
1739 enable_static=yes
1740 fi
1741 done
1742 IFS="$ac_save_ifs"
1743 ;;
1744 esac
1745 else
1746 enable_static=yes
1747 fi
1748
1749 # Check whether --enable-fast-install or --disable-fast-install was given.
1750 if test "${enable_fast_install+set}" = set; then
1751 enableval="$enable_fast_install"
1752 p=${PACKAGE-default}
1753 case $enableval in
1754 yes) enable_fast_install=yes ;;
1755 no) enable_fast_install=no ;;
1756 *)
1757 enable_fast_install=no
1758 # Look at the argument we got. We use all the common list separators.
1759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1760 for pkg in $enableval; do
1761 if test "X$pkg" = "X$p"; then
1762 enable_fast_install=yes
1763 fi
1764 done
1765 IFS="$ac_save_ifs"
1766 ;;
1767 esac
1768 else
1769 enable_fast_install=yes
1770 fi
1771
1772 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1773 if test "${with_gnu_ld+set}" = set; then
1774 withval="$with_gnu_ld"
1775 test "$withval" = no || with_gnu_ld=yes
1776 else
1777 with_gnu_ld=no
1778 fi
1779
1780 ac_prog=ld
1781 if test "$GCC" = yes; then
1782 # Check if gcc -print-prog-name=ld gives a path.
1783 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1784 echo "configure:1785: checking for ld used by GCC" >&5
1785 case $host in
1786 *-*-mingw*)
1787 # gcc leaves a trailing carriage return which upsets mingw
1788 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1789 *)
1790 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1791 esac
1792 case $ac_prog in
1793 # Accept absolute paths.
1794 [\\/]* | [A-Za-z]:[\\/]*)
1795 re_direlt='/[^/][^/]*/\.\./'
1796 # Canonicalize the path of ld
1797 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1798 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1799 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1800 done
1801 test -z "$LD" && LD="$ac_prog"
1802 ;;
1803 "")
1804 # If it fails, then pretend we aren't using GCC.
1805 ac_prog=ld
1806 ;;
1807 *)
1808 # If it is relative, then search for the first ld in PATH.
1809 with_gnu_ld=unknown
1810 ;;
1811 esac
1812 elif test "$with_gnu_ld" = yes; then
1813 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1814 echo "configure:1815: checking for GNU ld" >&5
1815 else
1816 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1817 echo "configure:1818: checking for non-GNU ld" >&5
1818 fi
1819 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1821 else
1822 if test -z "$LD"; then
1823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1824 for ac_dir in $PATH; do
1825 test -z "$ac_dir" && ac_dir=.
1826 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1827 lt_cv_path_LD="$ac_dir/$ac_prog"
1828 # Check to see if the program is GNU ld. I'd rather use --version,
1829 # but apparently some GNU ld's only accept -v.
1830 # Break only if it was the GNU/non-GNU ld that we prefer.
1831 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1832 test "$with_gnu_ld" != no && break
1833 else
1834 test "$with_gnu_ld" != yes && break
1835 fi
1836 fi
1837 done
1838 IFS="$ac_save_ifs"
1839 else
1840 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1841 fi
1842 fi
1843
1844 LD="$lt_cv_path_LD"
1845 if test -n "$LD"; then
1846 echo "$ac_t""$LD" 1>&6
1847 else
1848 echo "$ac_t""no" 1>&6
1849 fi
1850 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1851 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1852 echo "configure:1853: checking if the linker ($LD) is GNU ld" >&5
1853 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1855 else
1856 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1857 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1858 lt_cv_prog_gnu_ld=yes
1859 else
1860 lt_cv_prog_gnu_ld=no
1861 fi
1862 fi
1863
1864 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1865 with_gnu_ld=$lt_cv_prog_gnu_ld
1866
1867
1868 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1869 echo "configure:1870: checking for $LD option to reload object files" >&5
1870 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1872 else
1873 lt_cv_ld_reload_flag='-r'
1874 fi
1875
1876 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1877 reload_flag=$lt_cv_ld_reload_flag
1878 test -n "$reload_flag" && reload_flag=" $reload_flag"
1879
1880 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1881 echo "configure:1882: checking for BSD-compatible nm" >&5
1882 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1884 else
1885 if test -n "$NM"; then
1886 # Let the user override the test.
1887 lt_cv_path_NM="$NM"
1888 else
1889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1890 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1891 test -z "$ac_dir" && ac_dir=.
1892 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1893 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1894 # Check to see if the nm accepts a BSD-compat flag.
1895 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1896 # nm: unknown option "B" ignored
1897 # Tru64's nm complains that /dev/null is an invalid object file
1898 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1899 lt_cv_path_NM="$tmp_nm -B"
1900 break
1901 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1902 lt_cv_path_NM="$tmp_nm -p"
1903 break
1904 else
1905 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1906 continue # so that we can try to find one that supports BSD flags
1907 fi
1908 fi
1909 done
1910 IFS="$ac_save_ifs"
1911 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1912 fi
1913 fi
1914
1915 NM="$lt_cv_path_NM"
1916 echo "$ac_t""$NM" 1>&6
1917
1918 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1919 echo "configure:1920: checking how to recognise dependant libraries" >&5
1920 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1922 else
1923 lt_cv_file_magic_cmd='$MAGIC_CMD'
1924 lt_cv_file_magic_test_file=
1925 lt_cv_deplibs_check_method='unknown'
1926 # Need to set the preceding variable on all platforms that support
1927 # interlibrary dependencies.
1928 # 'none' -- dependencies not supported.
1929 # `unknown' -- same as none, but documents that we really don't know.
1930 # 'pass_all' -- all dependencies passed with no checks.
1931 # 'test_compile' -- check by making test program.
1932 # 'file_magic [regex]' -- check by looking for files in library path
1933 # which responds to the $file_magic_cmd with a given egrep regex.
1934 # If you have `file' or equivalent on your system and you're not sure
1935 # whether `pass_all' will *always* work, you probably want this one.
1936
1937 case $host_os in
1938 aix*)
1939 lt_cv_deplibs_check_method=pass_all
1940 ;;
1941
1942 beos*)
1943 lt_cv_deplibs_check_method=pass_all
1944 ;;
1945
1946 bsdi4*)
1947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1948 lt_cv_file_magic_cmd='/usr/bin/file -L'
1949 lt_cv_file_magic_test_file=/shlib/libc.so
1950 ;;
1951
1952 cygwin* | mingw* |pw32*)
1953 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1954 lt_cv_file_magic_cmd='$OBJDUMP -f'
1955 ;;
1956
1957 darwin* | rhapsody*)
1958 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1959 lt_cv_file_magic_cmd='/usr/bin/file -L'
1960 case "$host_os" in
1961 rhapsody* | darwin1.012)
1962 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1963 ;;
1964 *) # Darwin 1.3 on
1965 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1966 ;;
1967 esac
1968 ;;
1969
1970 freebsd* )
1971 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1972 case $host_cpu in
1973 i*86 )
1974 # Not sure whether the presence of OpenBSD here was a mistake.
1975 # Let's accept both of them until this is cleared up.
1976 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1977 lt_cv_file_magic_cmd=/usr/bin/file
1978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1979 ;;
1980 esac
1981 else
1982 lt_cv_deplibs_check_method=pass_all
1983 fi
1984 ;;
1985
1986 gnu*)
1987 lt_cv_deplibs_check_method=pass_all
1988 ;;
1989
1990 hpux10.20*|hpux11*)
1991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1992 lt_cv_file_magic_cmd=/usr/bin/file
1993 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1994 ;;
1995
1996 irix5* | irix6*)
1997 case $host_os in
1998 irix5*)
1999 # this will be overridden with pass_all, but let us keep it just in case
2000 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2001 ;;
2002 *)
2003 case $LD in
2004 *-32|*"-32 ") libmagic=32-bit;;
2005 *-n32|*"-n32 ") libmagic=N32;;
2006 *-64|*"-64 ") libmagic=64-bit;;
2007 *) libmagic=never-match;;
2008 esac
2009 # this will be overridden with pass_all, but let us keep it just in case
2010 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2011 ;;
2012 esac
2013 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2014 lt_cv_deplibs_check_method=pass_all
2015 ;;
2016
2017 # This must be Linux ELF.
2018 linux-gnu*)
2019 case $host_cpu in
2020 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2021 lt_cv_deplibs_check_method=pass_all ;;
2022 *)
2023 # glibc up to 2.1.1 does not perform some relocations on ARM
2024 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2025 esac
2026 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2027 ;;
2028
2029 netbsd*)
2030 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2031 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2032 else
2033 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2034 fi
2035 ;;
2036
2037 newsos6)
2038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2039 lt_cv_file_magic_cmd=/usr/bin/file
2040 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2041 ;;
2042
2043 osf3* | osf4* | osf5*)
2044 # this will be overridden with pass_all, but let us keep it just in case
2045 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2046 lt_cv_file_magic_test_file=/shlib/libc.so
2047 lt_cv_deplibs_check_method=pass_all
2048 ;;
2049
2050 sco3.2v5*)
2051 lt_cv_deplibs_check_method=pass_all
2052 ;;
2053
2054 solaris*)
2055 lt_cv_deplibs_check_method=pass_all
2056 lt_cv_file_magic_test_file=/lib/libc.so
2057 ;;
2058
2059 sysv5uw[78]* | sysv4*uw2*)
2060 lt_cv_deplibs_check_method=pass_all
2061 ;;
2062
2063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2064 case $host_vendor in
2065 ncr)
2066 lt_cv_deplibs_check_method=pass_all
2067 ;;
2068 motorola)
2069 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]'
2070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2071 ;;
2072 esac
2073 ;;
2074 esac
2075
2076 fi
2077
2078 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2079 file_magic_cmd=$lt_cv_file_magic_cmd
2080 deplibs_check_method=$lt_cv_deplibs_check_method
2081
2082 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2083 echo "configure:2084: checking for object suffix" >&5
2084 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2086 else
2087 rm -f conftest*
2088 echo 'int i = 1;' > conftest.$ac_ext
2089 if { (eval echo configure:2090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2090 for ac_file in conftest.*; do
2091 case $ac_file in
2092 *.c) ;;
2093 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2094 esac
2095 done
2096 else
2097 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2098 fi
2099 rm -f conftest*
2100 fi
2101
2102 echo "$ac_t""$ac_cv_objext" 1>&6
2103 OBJEXT=$ac_cv_objext
2104 ac_objext=$ac_cv_objext
2105
2106 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2107
2108 # Only perform the check for file, if the check method requires it
2109 case $deplibs_check_method in
2110 file_magic*)
2111 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2112 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2113 echo "configure:2114: checking for ${ac_tool_prefix}file" >&5
2114 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2116 else
2117 case $MAGIC_CMD in
2118 /*)
2119 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2120 ;;
2121 ?:/*)
2122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2123 ;;
2124 *)
2125 ac_save_MAGIC_CMD="$MAGIC_CMD"
2126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2127 ac_dummy="/usr/bin:$PATH"
2128 for ac_dir in $ac_dummy; do
2129 test -z "$ac_dir" && ac_dir=.
2130 if test -f $ac_dir/${ac_tool_prefix}file; then
2131 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2132 if test -n "$file_magic_test_file"; then
2133 case $deplibs_check_method in
2134 "file_magic "*)
2135 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2138 egrep "$file_magic_regex" > /dev/null; then
2139 :
2140 else
2141 cat <<EOF 1>&2
2142
2143 *** Warning: the command libtool uses to detect shared libraries,
2144 *** $file_magic_cmd, produces output that libtool cannot recognize.
2145 *** The result is that libtool may fail to recognize shared libraries
2146 *** as such. This will affect the creation of libtool libraries that
2147 *** depend on shared libraries, but programs linked with such libtool
2148 *** libraries will work regardless of this problem. Nevertheless, you
2149 *** may want to report the problem to your system manager and/or to
2150 *** bug-libtool@gnu.org
2151
2152 EOF
2153 fi ;;
2154 esac
2155 fi
2156 break
2157 fi
2158 done
2159 IFS="$ac_save_ifs"
2160 MAGIC_CMD="$ac_save_MAGIC_CMD"
2161 ;;
2162 esac
2163 fi
2164
2165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2166 if test -n "$MAGIC_CMD"; then
2167 echo "$ac_t""$MAGIC_CMD" 1>&6
2168 else
2169 echo "$ac_t""no" 1>&6
2170 fi
2171
2172 if test -z "$lt_cv_path_MAGIC_CMD"; then
2173 if test -n "$ac_tool_prefix"; then
2174 echo $ac_n "checking for file""... $ac_c" 1>&6
2175 echo "configure:2176: checking for file" >&5
2176 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179 case $MAGIC_CMD in
2180 /*)
2181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2182 ;;
2183 ?:/*)
2184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2185 ;;
2186 *)
2187 ac_save_MAGIC_CMD="$MAGIC_CMD"
2188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2189 ac_dummy="/usr/bin:$PATH"
2190 for ac_dir in $ac_dummy; do
2191 test -z "$ac_dir" && ac_dir=.
2192 if test -f $ac_dir/file; then
2193 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2194 if test -n "$file_magic_test_file"; then
2195 case $deplibs_check_method in
2196 "file_magic "*)
2197 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2199 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2200 egrep "$file_magic_regex" > /dev/null; then
2201 :
2202 else
2203 cat <<EOF 1>&2
2204
2205 *** Warning: the command libtool uses to detect shared libraries,
2206 *** $file_magic_cmd, produces output that libtool cannot recognize.
2207 *** The result is that libtool may fail to recognize shared libraries
2208 *** as such. This will affect the creation of libtool libraries that
2209 *** depend on shared libraries, but programs linked with such libtool
2210 *** libraries will work regardless of this problem. Nevertheless, you
2211 *** may want to report the problem to your system manager and/or to
2212 *** bug-libtool@gnu.org
2213
2214 EOF
2215 fi ;;
2216 esac
2217 fi
2218 break
2219 fi
2220 done
2221 IFS="$ac_save_ifs"
2222 MAGIC_CMD="$ac_save_MAGIC_CMD"
2223 ;;
2224 esac
2225 fi
2226
2227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2228 if test -n "$MAGIC_CMD"; then
2229 echo "$ac_t""$MAGIC_CMD" 1>&6
2230 else
2231 echo "$ac_t""no" 1>&6
2232 fi
2233
2234 else
2235 MAGIC_CMD=:
2236 fi
2237 fi
2238
2239 fi
2240 ;;
2241 esac
2242
2243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_word" >&5
2247 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2249 else
2250 if test -n "$RANLIB"; then
2251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2252 else
2253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2254 ac_dummy="$PATH"
2255 for ac_dir in $ac_dummy; do
2256 test -z "$ac_dir" && ac_dir=.
2257 if test -f $ac_dir/$ac_word; then
2258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2259 break
2260 fi
2261 done
2262 IFS="$ac_save_ifs"
2263 fi
2264 fi
2265 RANLIB="$ac_cv_prog_RANLIB"
2266 if test -n "$RANLIB"; then
2267 echo "$ac_t""$RANLIB" 1>&6
2268 else
2269 echo "$ac_t""no" 1>&6
2270 fi
2271
2272
2273 if test -z "$ac_cv_prog_RANLIB"; then
2274 if test -n "$ac_tool_prefix"; then
2275 # Extract the first word of "ranlib", so it can be a program name with args.
2276 set dummy ranlib; ac_word=$2
2277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2278 echo "configure:2279: checking for $ac_word" >&5
2279 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2281 else
2282 if test -n "$RANLIB"; then
2283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2284 else
2285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2286 ac_dummy="$PATH"
2287 for ac_dir in $ac_dummy; do
2288 test -z "$ac_dir" && ac_dir=.
2289 if test -f $ac_dir/$ac_word; then
2290 ac_cv_prog_RANLIB="ranlib"
2291 break
2292 fi
2293 done
2294 IFS="$ac_save_ifs"
2295 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2296 fi
2297 fi
2298 RANLIB="$ac_cv_prog_RANLIB"
2299 if test -n "$RANLIB"; then
2300 echo "$ac_t""$RANLIB" 1>&6
2301 else
2302 echo "$ac_t""no" 1>&6
2303 fi
2304
2305 else
2306 RANLIB=":"
2307 fi
2308 fi
2309
2310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2311 set dummy ${ac_tool_prefix}strip; ac_word=$2
2312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2313 echo "configure:2314: checking for $ac_word" >&5
2314 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2316 else
2317 if test -n "$STRIP"; then
2318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2319 else
2320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2321 ac_dummy="$PATH"
2322 for ac_dir in $ac_dummy; do
2323 test -z "$ac_dir" && ac_dir=.
2324 if test -f $ac_dir/$ac_word; then
2325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2326 break
2327 fi
2328 done
2329 IFS="$ac_save_ifs"
2330 fi
2331 fi
2332 STRIP="$ac_cv_prog_STRIP"
2333 if test -n "$STRIP"; then
2334 echo "$ac_t""$STRIP" 1>&6
2335 else
2336 echo "$ac_t""no" 1>&6
2337 fi
2338
2339
2340 if test -z "$ac_cv_prog_STRIP"; then
2341 if test -n "$ac_tool_prefix"; then
2342 # Extract the first word of "strip", so it can be a program name with args.
2343 set dummy strip; ac_word=$2
2344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_word" >&5
2346 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2348 else
2349 if test -n "$STRIP"; then
2350 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2351 else
2352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2353 ac_dummy="$PATH"
2354 for ac_dir in $ac_dummy; do
2355 test -z "$ac_dir" && ac_dir=.
2356 if test -f $ac_dir/$ac_word; then
2357 ac_cv_prog_STRIP="strip"
2358 break
2359 fi
2360 done
2361 IFS="$ac_save_ifs"
2362 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2363 fi
2364 fi
2365 STRIP="$ac_cv_prog_STRIP"
2366 if test -n "$STRIP"; then
2367 echo "$ac_t""$STRIP" 1>&6
2368 else
2369 echo "$ac_t""no" 1>&6
2370 fi
2371
2372 else
2373 STRIP=":"
2374 fi
2375 fi
2376
2377
2378 # Check for any special flags to pass to ltconfig.
2379 libtool_flags="--cache-file=$cache_file"
2380 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2381 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2382 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2383 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2384 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2385 libtool_flags="$libtool_flags --enable-dlopen"
2386
2387 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2388 if test "${enable_libtool_lock+set}" = set; then
2389 enableval="$enable_libtool_lock"
2390 :
2391 fi
2392
2393 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2394 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2395
2396 # Check whether --with-pic or --without-pic was given.
2397 if test "${with_pic+set}" = set; then
2398 withval="$with_pic"
2399 pic_mode="$withval"
2400 else
2401 pic_mode=default
2402 fi
2403
2404 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2405 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2406
2407 # Some flags need to be propagated to the compiler or linker for good
2408 # libtool support.
2409 case $host in
2410 *-*-irix6*)
2411 # Find out which ABI we are using.
2412 echo '#line 2413 "configure"' > conftest.$ac_ext
2413 if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2414 case `/usr/bin/file conftest.$ac_objext` in
2415 *32-bit*)
2416 LD="${LD-ld} -32"
2417 ;;
2418 *N32*)
2419 LD="${LD-ld} -n32"
2420 ;;
2421 *64-bit*)
2422 LD="${LD-ld} -64"
2423 ;;
2424 esac
2425 fi
2426 rm -rf conftest*
2427 ;;
2428
2429 *-*-sco3.2v5*)
2430 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2431 SAVE_CFLAGS="$CFLAGS"
2432 CFLAGS="$CFLAGS -belf"
2433 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2434 echo "configure:2435: checking whether the C compiler needs -belf" >&5
2435 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2437 else
2438
2439 ac_ext=c
2440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2441 ac_cpp='$CPP $CPPFLAGS'
2442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2444 cross_compiling=$ac_cv_prog_cc_cross
2445
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449
2450 int main() {
2451
2452 ; return 0; }
2453 EOF
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2455 rm -rf conftest*
2456 lt_cv_cc_needs_belf=yes
2457 else
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 rm -rf conftest*
2461 lt_cv_cc_needs_belf=no
2462 fi
2463 rm -f conftest*
2464 ac_ext=c
2465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2469 cross_compiling=$ac_cv_prog_cc_cross
2470
2471 fi
2472
2473 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2474 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2475 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2476 CFLAGS="$SAVE_CFLAGS"
2477 fi
2478 ;;
2479
2480
2481 esac
2482
2483 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2484 echo "configure:2485: checking how to run the C++ preprocessor" >&5
2485 if test -z "$CXXCPP"; then
2486 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2488 else
2489 ac_ext=C
2490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2491 ac_cpp='$CXXCPP $CPPFLAGS'
2492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2494 cross_compiling=$ac_cv_prog_cxx_cross
2495 CXXCPP="${CXX-g++} -E"
2496 cat > conftest.$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2499 #include <stdlib.h>
2500 EOF
2501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2502 { (eval echo configure:2503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2504 if test -z "$ac_err"; then
2505 :
2506 else
2507 echo "$ac_err" >&5
2508 echo "configure: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2510 rm -rf conftest*
2511 CXXCPP=/lib/cpp
2512 fi
2513 rm -f conftest*
2514 ac_cv_prog_CXXCPP="$CXXCPP"
2515 ac_ext=c
2516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2520 cross_compiling=$ac_cv_prog_cc_cross
2521 fi
2522 fi
2523 CXXCPP="$ac_cv_prog_CXXCPP"
2524 echo "$ac_t""$CXXCPP" 1>&6
2525
2526
2527 # Save cache, so that ltconfig can load it
2528 cat > confcache <<\EOF
2529 # This file is a shell script that caches the results of configure
2530 # tests run on this system so they can be shared between configure
2531 # scripts and configure runs. It is not useful on other systems.
2532 # If it contains results you don't want to keep, you may remove or edit it.
2533 #
2534 # By default, configure uses ./config.cache as the cache file,
2535 # creating it if it does not exist already. You can give configure
2536 # the --cache-file=FILE option to use a different cache file; that is
2537 # what configure does when it calls configure scripts in
2538 # subdirectories, so they share the cache.
2539 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2540 # config.status only pays attention to the cache file if you give it the
2541 # --recheck option to rerun configure.
2542 #
2543 EOF
2544 # The following way of writing the cache mishandles newlines in values,
2545 # but we know of no workaround that is simple, portable, and efficient.
2546 # So, don't put newlines in cache variables' values.
2547 # Ultrix sh set writes to stderr and can't be redirected directly,
2548 # and sets the high bit in the cache file unless we assign to the vars.
2549 (set) 2>&1 |
2550 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2551 *ac_space=\ *)
2552 # `set' does not quote correctly, so add quotes (double-quote substitution
2553 # turns \\\\ into \\, and sed turns \\ into \).
2554 sed -n \
2555 -e "s/'/'\\\\''/g" \
2556 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2557 ;;
2558 *)
2559 # `set' quotes correctly as required by POSIX, so do not add quotes.
2560 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2561 ;;
2562 esac >> confcache
2563 if cmp -s $cache_file confcache; then
2564 :
2565 else
2566 if test -w $cache_file; then
2567 echo "updating cache $cache_file"
2568 cat confcache > $cache_file
2569 else
2570 echo "not updating unwritable cache $cache_file"
2571 fi
2572 fi
2573 rm -f confcache
2574
2575
2576 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2577 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2578 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2579 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2580 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2581 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2582 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2583 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2584 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2585 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2586
2587 # Reload cache, that may have been modified by ltconfig
2588 if test -r "$cache_file"; then
2589 echo "loading cache $cache_file"
2590 . $cache_file
2591 else
2592 echo "creating cache $cache_file"
2593 > $cache_file
2594 fi
2595
2596
2597 # This can be used to rebuild libtool when needed
2598 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2599
2600 # Always use our own libtool.
2601 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2602
2603 # Redirect the config.log output again, so that the ltconfig log is not
2604 # clobbered by the next message.
2605 exec 5>>./config.log
2606
2607
2608
2609 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2610 lt_save_CC="$CC"
2611 lt_save_CFLAGS="$CFLAGS"
2612 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2613 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2614 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2615 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2616 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2617 deplibs_check_method="$deplibs_check_method" \
2618 file_magic_cmd="$file_magic_cmd" \
2619 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2620 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2621 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2622 CC="$lt_save_CC"
2623 CFLAGS="$lt_save_CFLAGS"
2624
2625 # Redirect the config.log output again, so that the ltconfig log is not
2626 # clobbered by the next message.
2627 exec 5>>./config.log
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637 # Check for c++ or library specific bits that don't require linking.
2638 #GLIBCPP_CHECK_COMPILER_VERSION
2639 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2640 echo "configure:2641: checking for GNU make" >&5
2641 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2643 else
2644 _cv_gnu_make_command='' ;
2645 for a in "${MAKE-make}" make gmake gnumake ; do
2646 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2647 then
2648 _cv_gnu_make_command=$a ;
2649 break;
2650 fi
2651 done ;
2652
2653 fi
2654
2655 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2656 if test "x$_cv_gnu_make_command" != "x" ; then
2657 ifGNUmake='' ;
2658 else
2659 ifGNUmake='#' ;
2660 fi
2661
2662
2663
2664 # Enable all the variable C++ stuff. C_MBCHAR must come early.
2665 # Check whether --enable-debug or --disable-debug was given.
2666 if test "${enable_debug+set}" = set; then
2667 enableval="$enable_debug"
2668 case "${enableval}" in
2669 yes) enable_debug=yes ;;
2670 no) enable_debug=no ;;
2671 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2672 esac
2673 else
2674 enable_debug=no
2675 fi
2676
2677 case "${enable_debug}" in
2678 yes)
2679 DEBUG_FLAGS='-O0 -ggdb3'
2680 ;;
2681 no)
2682 DEBUG_FLAGS='-g'
2683 ;;
2684 esac
2685
2686
2687 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2688 echo "configure:2689: checking how to run the C preprocessor" >&5
2689 # On Suns, sometimes $CPP names a directory.
2690 if test -n "$CPP" && test -d "$CPP"; then
2691 CPP=
2692 fi
2693 if test -z "$CPP"; then
2694 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2696 else
2697 # This must be in double quotes, not single quotes, because CPP may get
2698 # substituted into the Makefile and "${CC-cc}" will confuse make.
2699 CPP="${CC-cc} -E"
2700 # On the NeXT, cc -E runs the code through the compiler's parser,
2701 # not just through cpp.
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 #include <assert.h>
2706 Syntax Error
2707 EOF
2708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2709 { (eval echo configure:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2711 if test -z "$ac_err"; then
2712 :
2713 else
2714 echo "$ac_err" >&5
2715 echo "configure: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2717 rm -rf conftest*
2718 CPP="${CC-cc} -E -traditional-cpp"
2719 cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2722 #include <assert.h>
2723 Syntax Error
2724 EOF
2725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2726 { (eval echo configure:2727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2728 if test -z "$ac_err"; then
2729 :
2730 else
2731 echo "$ac_err" >&5
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2734 rm -rf conftest*
2735 CPP="${CC-cc} -nologo -E"
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 #include <assert.h>
2740 Syntax Error
2741 EOF
2742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2746 :
2747 else
2748 echo "$ac_err" >&5
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 rm -rf conftest*
2752 CPP=/lib/cpp
2753 fi
2754 rm -f conftest*
2755 fi
2756 rm -f conftest*
2757 fi
2758 rm -f conftest*
2759 ac_cv_prog_CPP="$CPP"
2760 fi
2761 CPP="$ac_cv_prog_CPP"
2762 else
2763 ac_cv_prog_CPP="$CPP"
2764 fi
2765 echo "$ac_t""$CPP" 1>&6
2766
2767
2768 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2769 echo "configure:2770: checking for cstdio to use" >&5
2770 # Check whether --enable-cstdio or --disable-cstdio was given.
2771 if test "${enable_cstdio+set}" = set; then
2772 enableval="$enable_cstdio"
2773 if test x$enable_cstdio = xno; then
2774 enable_cstdio=stdio
2775 fi
2776 else
2777 enable_cstdio=stdio
2778 fi
2779
2780
2781 enable_cstdio_flag=$enable_cstdio
2782
2783 case x${enable_cstdio_flag} in
2784 xlibio)
2785 CSTDIO_H=config/io/c_io_libio.h
2786 BASIC_FILE_H=config/io/basic_file_libio.h
2787 BASIC_FILE_CC=config/io/basic_file_libio.cc
2788 echo "$ac_t""libio" 1>&6
2789
2790 # see if we are on a system with libio native (ie, linux)
2791 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2792 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2793 echo "configure:2794: checking for libio.h" >&5
2794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2796 else
2797 cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2800 #include <libio.h>
2801 EOF
2802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2803 { (eval echo configure:2804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2805 if test -z "$ac_err"; then
2806 rm -rf conftest*
2807 eval "ac_cv_header_$ac_safe=yes"
2808 else
2809 echo "$ac_err" >&5
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2812 rm -rf conftest*
2813 eval "ac_cv_header_$ac_safe=no"
2814 fi
2815 rm -f conftest*
2816 fi
2817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2818 echo "$ac_t""yes" 1>&6
2819 has_libio=yes
2820 else
2821 echo "$ac_t""no" 1>&6
2822 has_libio=no
2823 fi
2824
2825
2826 # Need to check and see what version of glibc is being used. If
2827 # it's not glibc-2.2 or higher, then we'll need to go ahead and
2828 # compile most of libio for linux systems.
2829 if test x$has_libio = x"yes"; then
2830 case "$target" in
2831 *-*-linux*)
2832 echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2833 echo "configure:2834: checking for glibc version >= 2.2" >&5
2834 cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837
2838 #include <features.h>
2839 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2840 ok
2841 #endif
2842
2843 EOF
2844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2845 egrep "ok" >/dev/null 2>&1; then
2846 rm -rf conftest*
2847 glibc_satisfactory=yes
2848 else
2849 rm -rf conftest*
2850 glibc_satisfactory=no
2851 fi
2852 rm -f conftest*
2853
2854 echo "$ac_t""$glibc_satisfactory" 1>&6
2855 ;;
2856 esac
2857
2858 # XXX at the moment, admit defeat and force the recompilation
2859 # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2860 glibc_satisfactory=no
2861
2862 if test x$glibc_satisfactory = x"yes"; then
2863 need_libio=no
2864 need_wlibio=no
2865 else
2866 need_libio=yes
2867 # bkoz XXX need to add checks to enable this
2868 # pme XXX here's a first pass at such a check
2869 if test x$enable_c_mbchar != xno; then
2870 need_wlibio=yes
2871 else
2872 need_wlibio=no
2873 fi
2874 fi
2875
2876 else
2877 # Using libio, but <libio.h> doesn't exist on the target system. . .
2878 need_libio=yes
2879 # bkoz XXX need to add checks to enable this
2880 # pme XXX here's a first pass at such a check
2881 if test x$enable_c_mbchar != xno; then
2882 need_wlibio=yes
2883 else
2884 need_wlibio=no
2885 fi
2886 fi
2887 ;;
2888 xstdio | x | xno | xnone | xyes)
2889 # default
2890 CSTDIO_H=config/io/c_io_stdio.h
2891 BASIC_FILE_H=config/io/basic_file_stdio.h
2892 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2893 echo "$ac_t""stdio" 1>&6
2894
2895 # We're not using stdio.
2896 need_libio=no
2897 need_wlibio=no
2898 ;;
2899 *)
2900 echo "$enable_cstdio is an unknown io package" 1>&2
2901 exit 1
2902 ;;
2903 esac
2904
2905
2906
2907
2908 # 2000-08-04 bkoz hack
2909 CCODECVT_C=config/io/c_io_libio_codecvt.c
2910
2911 # 2000-08-04 bkoz hack
2912
2913
2914
2915 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2916 GLIBCPP_BUILD_LIBIO_TRUE=
2917 GLIBCPP_BUILD_LIBIO_FALSE='#'
2918 else
2919 GLIBCPP_BUILD_LIBIO_TRUE='#'
2920 GLIBCPP_BUILD_LIBIO_FALSE=
2921 fi
2922
2923
2924 if test "$need_libio" = yes; then
2925 GLIBCPP_NEED_LIBIO_TRUE=
2926 GLIBCPP_NEED_LIBIO_FALSE='#'
2927 else
2928 GLIBCPP_NEED_LIBIO_TRUE='#'
2929 GLIBCPP_NEED_LIBIO_FALSE=
2930 fi
2931
2932
2933 if test "$need_wlibio" = yes; then
2934 GLIBCPP_NEED_WLIBIO_TRUE=
2935 GLIBCPP_NEED_WLIBIO_FALSE='#'
2936 else
2937 GLIBCPP_NEED_WLIBIO_TRUE='#'
2938 GLIBCPP_NEED_WLIBIO_FALSE=
2939 fi
2940 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2941 libio_la=../libio/libio.la
2942 else
2943 libio_la=
2944 fi
2945
2946
2947
2948 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2949 echo "configure:2950: checking for clocale to use" >&5
2950 # Check whether --enable-clocale or --disable-clocale was given.
2951 if test "${enable_clocale+set}" = set; then
2952 enableval="$enable_clocale"
2953 if test x$enable_clocale = xno; then
2954 enable_clocale=no
2955 fi
2956 else
2957 enable_clocale=no
2958 fi
2959
2960
2961 enable_clocale_flag=$enable_clocale
2962
2963 if test x$enable_clocale_flag = xno; then
2964 case x${target_os} in
2965 xlinux* | xgnu*)
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969
2970 #include <features.h>
2971 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2972 _GLIBCPP_ok
2973 #endif
2974
2975 EOF
2976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2977 egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2978 rm -rf conftest*
2979 enable_clocale_flag=gnu
2980 else
2981 rm -rf conftest*
2982 enable_clocale_flag=generic
2983 fi
2984 rm -f conftest*
2985
2986
2987 # Test for bugs early in glibc-2.2.x series
2988 if test x$enable_clocale_flag = xgnu; then
2989 if test "$cross_compiling" = yes; then
2990 enable_clocale_flag=generic
2991 else
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995
2996 #define _GNU_SOURCE 1
2997 #include <locale.h>
2998 int main()
2999 {
3000 const char __one[] = "Äuglein Augmen";
3001 const char __two[] = "Äuglein";
3002 int i;
3003 int j;
3004 __locale_t loc;
3005 __locale_t loc_dup;
3006 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3007 loc_dup = __duplocale(loc);
3008 i = __strcoll_l(__one, __two, loc);
3009 j = __strcoll_l(__one, __two, loc_dup);
3010 return 0;
3011 }
3012
3013 EOF
3014 if { (eval echo configure:3015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3015 then
3016 enable_clocale_flag=gnu
3017 else
3018 echo "configure: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3020 rm -fr conftest*
3021 enable_clocale_flag=generic
3022 fi
3023 rm -fr conftest*
3024 fi
3025
3026 fi
3027
3028 # ... at some point put __strxfrm_l tests in as well.
3029 ;;
3030 *)
3031 enable_clocale_flag=generic
3032 ;;
3033 esac
3034 fi
3035
3036 case x${enable_clocale_flag} in
3037 xgeneric)
3038 echo "$ac_t""generic" 1>&6
3039
3040 # Don't use gettext.
3041 USE_NLS=no
3042
3043 CLOCALE_H=config/locale/c_locale_generic.h
3044 CLOCALE_CC=config/locale/c_locale_generic.cc
3045 CCODECVT_H=config/locale/codecvt_specializations_generic.h
3046 CCOLLATE_CC=config/locale/collate_members_generic.cc
3047 CCTYPE_CC=config/locale/ctype_members_generic.cc
3048 CMESSAGES_H=config/locale/messages_members_generic.h
3049 CMESSAGES_CC=config/locale/messages_members_generic.cc
3050 CMONEY_CC=config/locale/moneypunct_members_generic.cc
3051 CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3052 CTIME_CC=config/locale/time_members_generic.cc
3053 ;;
3054 xgnu)
3055 echo "$ac_t""gnu" 1>&6
3056
3057 # Declare intention to use gettext, and add support for specific
3058 # languages.
3059 # For some reason, ALL_LINGUAS has to be before AM_GNU_GETTEXT
3060 ALL_LINGUAS="de fr"
3061 # Don't call AM_GNU_GETTEXT here. Instead, assume glibc.
3062 # Need to deal with MSGFMT, USE_NLS, and glibcpp_[P,M]OFILES
3063 USE_NLS=yes
3064
3065 # Export the build objects.
3066 for ling in $ALL_LINGUAS; do \
3067 glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3068 glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3069 done
3070
3071
3072
3073 CLOCALE_H=config/locale/c_locale_gnu.h
3074 CLOCALE_CC=config/locale/c_locale_gnu.cc
3075 CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3076 CCOLLATE_CC=config/locale/collate_members_gnu.cc
3077 CCTYPE_CC=config/locale/ctype_members_gnu.cc
3078 CMESSAGES_H=config/locale/messages_members_gnu.h
3079 CMESSAGES_CC=config/locale/messages_members_gnu.cc
3080 CMONEY_CC=config/locale/moneypunct_members_gnu.cc
3081 CNUMERIC_CC=config/locale/numpunct_members_gnu.cc
3082 CTIME_CC=config/locale/time_members_gnu.cc
3083 ;;
3084 xieee_1003.1)
3085 echo "$ac_t""generic" 1>&6
3086
3087 # Don't use gettext.
3088 USE_NLS=no
3089
3090 CLOCALE_H=config/locale/c_locale_ieee_1003.1-200x.h
3091 CLOCALE_CC=config/locale/c_locale_ieee_1003.1-200x.cc
3092 CCODECVT_H=config/locale/codecvt_specializations_ieee_1003.1-200x.h
3093 CCOLLATE_CC=config/locale/collate_members_generic.cc
3094 CCTYPE_CC=config/locale/ctype_members_generic.cc
3095 CMESSAGES_H=config/locale/messages_members_ieee_1003.1-200x.h
3096 CMESSAGES_CC=config/locale/messages_members_ieee_1003.1-200x.cc
3097 CMONEY_CC=config/locale/moneypunct_members_generic.cc
3098 CNUMERIC_CC=config/locale/numpunct_members_generic.cc
3099 CTIME_CC=config/locale/time_members_generic.cc
3100 ;;
3101 *)
3102 echo "$enable_clocale is an unknown locale package" 1>&2
3103 exit 1
3104 ;;
3105 esac
3106
3107 # This is where the testsuite looks for locale catalogs, using the
3108 # -DLOCALEDIR define during testsuite compilation.
3109 glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3125 if test "${enable_c_mbchar+set}" = set; then
3126 enableval="$enable_c_mbchar"
3127 case "$enableval" in
3128 yes) enable_c_mbchar=yes ;;
3129 no) enable_c_mbchar=no ;;
3130 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3131 esac
3132 else
3133 enable_c_mbchar=yes
3134 fi
3135
3136
3137 # Check whether --enable-c99 or --disable-c99 was given.
3138 if test "${enable_c99+set}" = set; then
3139 enableval="$enable_c99"
3140 case "$enableval" in
3141 yes) enable_c99=yes ;;
3142 no) enable_c99=no ;;
3143 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3144 esac
3145 else
3146 enable_c99=yes
3147 fi
3148
3149
3150 ac_ext=C
3151 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3152 ac_cpp='$CXXCPP $CPPFLAGS'
3153 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3154 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3155 cross_compiling=$ac_cv_prog_cxx_cross
3156
3157
3158 # Check for the existence of <math.h> functions used if C99 is enabled.
3159 ac_c99_math=yes;
3160 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3161 echo "configure:3162: checking for ISO C99 support in <math.h>" >&5
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 #include <math.h>
3166 int main() {
3167 fpclassify(0.0);
3168 ; return 0; }
3169 EOF
3170 if { (eval echo configure:3171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3171 :
3172 else
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -rf conftest*
3176 ac_c99_math=no
3177 fi
3178 rm -f conftest*
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 #include <math.h>
3183 int main() {
3184 isfinite(0.0);
3185 ; return 0; }
3186 EOF
3187 if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3188 :
3189 else
3190 echo "configure: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3192 rm -rf conftest*
3193 ac_c99_math=no
3194 fi
3195 rm -f conftest*
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 #include <math.h>
3200 int main() {
3201 isinf(0.0);
3202 ; return 0; }
3203 EOF
3204 if { (eval echo configure:3205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3205 :
3206 else
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3209 rm -rf conftest*
3210 ac_c99_math=no
3211 fi
3212 rm -f conftest*
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <math.h>
3217 int main() {
3218 isnan(0.0);
3219 ; return 0; }
3220 EOF
3221 if { (eval echo configure:3222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3222 :
3223 else
3224 echo "configure: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3226 rm -rf conftest*
3227 ac_c99_math=no
3228 fi
3229 rm -f conftest*
3230 cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3233 #include <math.h>
3234 int main() {
3235 isnormal(0.0);
3236 ; return 0; }
3237 EOF
3238 if { (eval echo configure:3239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3239 :
3240 else
3241 echo "configure: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3243 rm -rf conftest*
3244 ac_c99_math=no
3245 fi
3246 rm -f conftest*
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 #include <math.h>
3251 int main() {
3252 signbit(0.0);
3253 ; return 0; }
3254 EOF
3255 if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3256 :
3257 else
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3260 rm -rf conftest*
3261 ac_c99_math=no
3262 fi
3263 rm -f conftest*
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 #include <math.h>
3268 int main() {
3269 isgreater(0.0,0.0);
3270 ; return 0; }
3271 EOF
3272 if { (eval echo configure:3273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3273 :
3274 else
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3277 rm -rf conftest*
3278 ac_c99_math=no
3279 fi
3280 rm -f conftest*
3281 cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3284 #include <math.h>
3285 int main() {
3286 isgreaterequal(0.0,0.0);
3287 ; return 0; }
3288 EOF
3289 if { (eval echo configure:3290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3290 :
3291 else
3292 echo "configure: failed program was:" >&5
3293 cat conftest.$ac_ext >&5
3294 rm -rf conftest*
3295 ac_c99_math=no
3296 fi
3297 rm -f conftest*
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 #include <math.h>
3302 int main() {
3303 isless(0.0,0.0);
3304 ; return 0; }
3305 EOF
3306 if { (eval echo configure:3307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3307 :
3308 else
3309 echo "configure: failed program was:" >&5
3310 cat conftest.$ac_ext >&5
3311 rm -rf conftest*
3312 ac_c99_math=no
3313 fi
3314 rm -f conftest*
3315 cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 #include <math.h>
3319 int main() {
3320 islessequal(0.0,0.0);
3321 ; return 0; }
3322 EOF
3323 if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3324 :
3325 else
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3328 rm -rf conftest*
3329 ac_c99_math=no
3330 fi
3331 rm -f conftest*
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 #include <math.h>
3336 int main() {
3337 islessgreater(0.0,0.0);
3338 ; return 0; }
3339 EOF
3340 if { (eval echo configure:3341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3341 :
3342 else
3343 echo "configure: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3345 rm -rf conftest*
3346 ac_c99_math=no
3347 fi
3348 rm -f conftest*
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 #include <math.h>
3353 int main() {
3354 isunordered(0.0,0.0);
3355 ; return 0; }
3356 EOF
3357 if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358 :
3359 else
3360 echo "configure: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3362 rm -rf conftest*
3363 ac_c99_math=no
3364 fi
3365 rm -f conftest*
3366 echo "$ac_t""$ac_c99_math" 1>&6
3367
3368 # Check for the existence in <stdio.h> of vscanf, et. al.
3369 ac_c99_stdio=yes;
3370 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3371 echo "configure:3372: checking for ISO C99 support in <stdio.h>" >&5
3372 cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 #include <stdio.h>
3376 int main() {
3377 snprintf("12", 0, "%i");
3378 ; return 0; }
3379 EOF
3380 if { (eval echo configure:3381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3381 :
3382 else
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3385 rm -rf conftest*
3386 ac_c99_stdio=no
3387 fi
3388 rm -f conftest*
3389 cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3392 #include <stdio.h>
3393 #include <stdarg.h>
3394 void foo(char* fmt, ...)
3395 {va_list args; va_start(args, fmt);
3396 vfscanf(stderr, "%i", args);}
3397 int main() {
3398
3399 ; return 0; }
3400 EOF
3401 if { (eval echo configure:3402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3402 :
3403 else
3404 echo "configure: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3406 rm -rf conftest*
3407 ac_c99_stdio=no
3408 fi
3409 rm -f conftest*
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <stdio.h>
3414 #include <stdarg.h>
3415 void foo(char* fmt, ...)
3416 {va_list args; va_start(args, fmt);
3417 vscanf("%i", args);}
3418 int main() {
3419
3420 ; return 0; }
3421 EOF
3422 if { (eval echo configure:3423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3423 :
3424 else
3425 echo "configure: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3427 rm -rf conftest*
3428 ac_c99_stdio=no
3429 fi
3430 rm -f conftest*
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 #include <stdio.h>
3435 #include <stdarg.h>
3436 void foo(char* fmt, ...)
3437 {va_list args; va_start(args, fmt);
3438 vsnprintf(fmt, 0, "%i", args);}
3439 int main() {
3440
3441 ; return 0; }
3442 EOF
3443 if { (eval echo configure:3444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3444 :
3445 else
3446 echo "configure: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3448 rm -rf conftest*
3449 ac_c99_stdio=no
3450 fi
3451 rm -f conftest*
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 #include <stdio.h>
3456 #include <stdarg.h>
3457 void foo(char* fmt, ...)
3458 {va_list args; va_start(args, fmt);
3459 vsscanf(fmt, "%i", args);}
3460 int main() {
3461
3462 ; return 0; }
3463 EOF
3464 if { (eval echo configure:3465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3465 :
3466 else
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3469 rm -rf conftest*
3470 ac_c99_stdio=no
3471 fi
3472 rm -f conftest*
3473 echo "$ac_t""$ac_c99_stdio" 1>&6
3474
3475 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3476 ac_c99_stdlib=yes;
3477 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3478 echo "configure:3479: checking for lldiv_t declaration" >&5
3479 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3481 else
3482
3483 cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3486 #include <stdlib.h>
3487 int main() {
3488 lldiv_t mydivt;
3489 ; return 0; }
3490 EOF
3491 if { (eval echo configure:3492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3492 rm -rf conftest*
3493 ac_c99_lldiv_t=yes
3494 else
3495 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3497 rm -rf conftest*
3498 ac_c99_lldiv_t=no
3499 fi
3500 rm -f conftest*
3501
3502 fi
3503
3504 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3505
3506 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3507 echo "configure:3508: checking for ISO C99 support in <stdlib.h>" >&5
3508 cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 #include <stdlib.h>
3512 int main() {
3513 char* tmp; strtof("gnu", &tmp);
3514 ; return 0; }
3515 EOF
3516 if { (eval echo configure:3517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3517 :
3518 else
3519 echo "configure: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3521 rm -rf conftest*
3522 ac_c99_stdlib=no
3523 fi
3524 rm -f conftest*
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 #include <stdlib.h>
3529 int main() {
3530 char* tmp; strtold("gnu", &tmp);
3531 ; return 0; }
3532 EOF
3533 if { (eval echo configure:3534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3534 :
3535 else
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 rm -rf conftest*
3539 ac_c99_stdlib=no
3540 fi
3541 rm -f conftest*
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 #include <stdlib.h>
3546 int main() {
3547 llabs(10);
3548 ; return 0; }
3549 EOF
3550 if { (eval echo configure:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3551 :
3552 else
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3555 rm -rf conftest*
3556 ac_c99_stdlib=no
3557 fi
3558 rm -f conftest*
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 #include <stdlib.h>
3563 int main() {
3564 lldiv(10,1);
3565 ; return 0; }
3566 EOF
3567 if { (eval echo configure:3568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3568 :
3569 else
3570 echo "configure: failed program was:" >&5
3571 cat conftest.$ac_ext >&5
3572 rm -rf conftest*
3573 ac_c99_stdlib=no
3574 fi
3575 rm -f conftest*
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 #include <stdlib.h>
3580 int main() {
3581 atoll("10");
3582 ; return 0; }
3583 EOF
3584 if { (eval echo configure:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3585 :
3586 else
3587 echo "configure: failed program was:" >&5
3588 cat conftest.$ac_ext >&5
3589 rm -rf conftest*
3590 ac_c99_stdlib=no
3591 fi
3592 rm -f conftest*
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <stdlib.h>
3597 int main() {
3598 _Exit(0);
3599 ; return 0; }
3600 EOF
3601 if { (eval echo configure:3602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3602 :
3603 else
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3606 rm -rf conftest*
3607 ac_c99_stdlib=no
3608 fi
3609 rm -f conftest*
3610 if test x"$ac_c99_lldiv_t" = x"no"; then
3611 ac_c99_stdlib=no;
3612 fi;
3613 echo "$ac_t""$ac_c99_stdlib" 1>&6
3614
3615 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3616 # XXX the wchar.h checks should be rolled into the general C99 bits.
3617 ac_c99_wchar=yes;
3618 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3619 echo "configure:3620: checking for additional ISO C99 support in <wchar.h>" >&5
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3623 #include <wchar.h>
3624 int main() {
3625 wcstold(L"10.0", NULL);
3626 ; return 0; }
3627 EOF
3628 if { (eval echo configure:3629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3629 :
3630 else
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3633 rm -rf conftest*
3634 ac_c99_wchar=no
3635 fi
3636 rm -f conftest*
3637 cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 #include <wchar.h>
3641 int main() {
3642 wcstoll(L"10", NULL, 10);
3643 ; return 0; }
3644 EOF
3645 if { (eval echo configure:3646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3646 :
3647 else
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3650 rm -rf conftest*
3651 ac_c99_wchar=no
3652 fi
3653 rm -f conftest*
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 #include <wchar.h>
3658 int main() {
3659 wcstoull(L"10", NULL, 10);
3660 ; return 0; }
3661 EOF
3662 if { (eval echo configure:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3663 :
3664 else
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3667 rm -rf conftest*
3668 ac_c99_wchar=no
3669 fi
3670 rm -f conftest*
3671 echo "$ac_t""$ac_c99_wchar" 1>&6
3672
3673 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3674 echo "configure:3675: checking for enabled ISO C99 support" >&5
3675 if test x"$ac_c99_math" = x"no" ||
3676 test x"$ac_c99_stdio" = x"no" ||
3677 test x"$ac_c99_stdlib" = x"no" ||
3678 test x"$ac_c99_wchar" = x"no"; then
3679 enable_c99=no;
3680 fi;
3681 echo "$ac_t""$enable_c99" 1>&6
3682
3683 # Option parsed, now set things appropriately
3684 if test x"$enable_c99" = x"yes"; then
3685 cat >> confdefs.h <<\EOF
3686 #define _GLIBCPP_USE_C99 1
3687 EOF
3688
3689 fi
3690
3691 ac_ext=c
3692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3696 cross_compiling=$ac_cv_prog_cc_cross
3697
3698
3699
3700 # Check whether --enable-long-long or --disable-long-long was given.
3701 if test "${enable_long_long+set}" = set; then
3702 enableval="$enable_long_long"
3703 case "$enableval" in
3704 yes) enable_long_long=yes ;;
3705 no) enable_long_long=no ;;
3706 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3707 esac
3708 else
3709 enable_long_long=yes
3710 fi
3711
3712
3713 ac_ext=C
3714 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3715 ac_cpp='$CXXCPP $CPPFLAGS'
3716 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3717 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3718 cross_compiling=$ac_cv_prog_cxx_cross
3719
3720
3721 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3722 echo "configure:3723: checking for enabled long long I/O support" >&5
3723 # iostreams require strtoll, strtoull to compile
3724 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 #include <stdlib.h>
3728 int main() {
3729 char* tmp; strtoll("gnu", &tmp, 10);
3730 ; return 0; }
3731 EOF
3732 if { (eval echo configure:3733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3733 :
3734 else
3735 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3737 rm -rf conftest*
3738 enable_long_long=no
3739 fi
3740 rm -f conftest*
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3744 #include <stdlib.h>
3745 int main() {
3746 char* tmp; strtoull("gnu", &tmp, 10);
3747 ; return 0; }
3748 EOF
3749 if { (eval echo configure:3750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3750 :
3751 else
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3754 rm -rf conftest*
3755 enable_long_long=no
3756 fi
3757 rm -f conftest*
3758
3759 # Option parsed, now set things appropriately
3760 if test x"$enable_long_long" = xyes; then
3761 cat >> confdefs.h <<\EOF
3762 #define _GLIBCPP_USE_LONG_LONG 1
3763 EOF
3764
3765 fi
3766 echo "$ac_t""$enable_long_long" 1>&6
3767
3768 ac_ext=c
3769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3773 cross_compiling=$ac_cv_prog_cc_cross
3774
3775
3776 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3777 echo "configure:3778: checking for c header strategy to use" >&5
3778 # Check whether --enable-cheaders or --disable-cheaders was given.
3779 if test "${enable_cheaders+set}" = set; then
3780 enableval="$enable_cheaders"
3781
3782 case "$enableval" in
3783 c)
3784 enable_cheaders=c
3785 ;;
3786 c_std)
3787 enable_cheaders=c_std
3788 ;;
3789 c_shadow)
3790 enable_cheaders=c_shadow
3791 ;;
3792 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3793 ;;
3794 esac
3795 else
3796 enable_cheaders=c_std
3797 fi
3798
3799 echo "$ac_t""$enable_cheaders" 1>&6
3800
3801 case "$enable_cheaders" in
3802 c_shadow)
3803 CSHADOW_FLAGS="-fno-builtin"
3804 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3805 cat >> confdefs.h <<\EOF
3806 #define _GLIBCPP_USE_SHADOW_HEADERS 1
3807 EOF
3808
3809 ;;
3810 c_std)
3811 CSHADOW_FLAGS=""
3812 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3813 ;;
3814 c)
3815 CSHADOW_FLAGS=""
3816 C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3817 ;;
3818 esac
3819
3820
3821
3822
3823
3824 if test "$enable_cheaders" = c_shadow; then
3825 GLIBCPP_USE_CSHADOW_TRUE=
3826 GLIBCPP_USE_CSHADOW_FALSE='#'
3827 else
3828 GLIBCPP_USE_CSHADOW_TRUE='#'
3829 GLIBCPP_USE_CSHADOW_FALSE=
3830 fi
3831
3832
3833 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3834 echo "configure:3835: checking for thread model used by GCC" >&5
3835 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3836 echo "$ac_t""$target_thread_file" 1>&6
3837
3838 if test $target_thread_file != single; then
3839 cat >> confdefs.h <<\EOF
3840 #define HAVE_GTHR_DEFAULT 1
3841 EOF
3842
3843 cat >> confdefs.h <<\EOF
3844 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3845 EOF
3846
3847 fi
3848
3849 glibcpp_thread_h=gthr-$target_thread_file.h
3850
3851
3852 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3853 if test "${enable_cxx_flags+set}" = set; then
3854 enableval="$enable_cxx_flags"
3855 case "x$enableval" in
3856 xyes)
3857 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3858 xno|x)
3859 enable_cxx_flags='' ;;
3860 *)
3861 enable_cxx_flags="$enableval" ;;
3862 esac
3863 else
3864 enable_cxx_flags='none'
3865 fi
3866
3867
3868 if test "$enable_cxx_flags" = "none"; then
3869 enable_cxx_flags='';
3870 fi
3871
3872 if test -n "$enable_cxx_flags"; then
3873 for f in $enable_cxx_flags; do
3874 case "$f" in
3875 -fhonor-std) ;;
3876 -*) ;;
3877 *) # and we're trying to pass /what/ exactly?
3878 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3879 esac
3880 done
3881 fi
3882 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3883
3884
3885
3886 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3887 echo "configure:3888: checking for exception model to use" >&5
3888
3889 ac_ext=C
3890 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3891 ac_cpp='$CXXCPP $CPPFLAGS'
3892 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3893 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3894 cross_compiling=$ac_cv_prog_cxx_cross
3895
3896 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3897 if test "${enable_sjlj_exceptions+set}" = set; then
3898 enableval="$enable_sjlj_exceptions"
3899 :
3900 else
3901 cat > conftest.$ac_ext << EOF
3902 #line 3903 "configure"
3903 struct S { ~S(); };
3904 void bar();
3905 void foo()
3906 {
3907 S s;
3908 bar();
3909 }
3910 EOF
3911 old_CXXFLAGS="$CXXFLAGS"
3912 CXXFLAGS=-S
3913 if { (eval echo configure:3914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3914 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3915 enable_sjlj_exceptions=yes
3916 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3917 enable_sjlj_exceptions=no
3918 fi
3919 fi
3920 CXXFLAGS="$old_CXXFLAGS"
3921 rm -f conftest*
3922 fi
3923
3924 if test x$enable_sjlj_exceptions = xyes; then
3925 cat >> confdefs.h <<\EOF
3926 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3927 EOF
3928
3929 ac_exception_model_name=sjlj
3930 elif test x$enable_sjlj_exceptions = xno; then
3931 ac_exception_model_name="call frame"
3932 else
3933 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3934 fi
3935 ac_ext=c
3936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3940 cross_compiling=$ac_cv_prog_cc_cross
3941
3942 echo "$ac_t""$ac_exception_model_name" 1>&6
3943
3944 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3945 if test "${enable_concept_checks+set}" = set; then
3946 enableval="$enable_concept_checks"
3947 case "$enableval" in
3948 yes) enable_concept_checks=yes ;;
3949 no) enable_concept_checks=no ;;
3950 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
3951 esac
3952 else
3953 enable_concept_checks=no
3954 fi
3955 if test x"$enable_concept_checks" = xyes; then
3956 cat >> confdefs.h <<\EOF
3957 #define _GLIBCPP_CONCEPT_CHECKS 1
3958 EOF
3959
3960 fi
3961
3962
3963
3964 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
3965
3966 # This lets us hard-code the functionality we know
3967 # we'll have in the cross target environment. "Let" is a
3968 # sugar-coated word placed on an especially dull and tedious hack, actually.
3969 # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
3970 # that involve linking can't be used:
3971 # "cannot open sim-crt0.o"
3972 # "cannot open crt0.o"
3973 # etc. All this is because there currently exists no unified,
3974 # consistent way for top level CC information to be passed down
3975 # to target directories: newlib includes, newlib linking info,
3976 # libgloss versus newlib crt0.o, etc. When all of this is done, all
3977 # of this hokey, excessive AC_DEFINE junk for crosses can be removed.
3978
3979 # We are being configured with some form of cross compiler.
3980 GLIBCPP_IS_CROSS_COMPILING=1
3981
3982 # If Canadian cross, then don't pick up tools from the build
3983 # directory.
3984 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
3985 CANADIAN=yes
3986 else
3987 CANADIAN=no
3988 fi
3989
3990 # Construct crosses by hand, eliminating bits that need ld...
3991 # GLIBCPP_CHECK_COMPILER_FEATURES
3992 # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
3993 # GLIBCPP_CHECK_MATH_SUPPORT
3994
3995 case "$target_alias" in
3996 *-linux*)
3997 # Check for available headers.
3998 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
3999 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4000 fp.h locale.h float.h inttypes.h
4001 do
4002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4004 echo "configure:4005: checking for $ac_hdr" >&5
4005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4007 else
4008 cat > conftest.$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4011 #include <$ac_hdr>
4012 EOF
4013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4014 { (eval echo configure:4015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4016 if test -z "$ac_err"; then
4017 rm -rf conftest*
4018 eval "ac_cv_header_$ac_safe=yes"
4019 else
4020 echo "$ac_err" >&5
4021 echo "configure: failed program was:" >&5
4022 cat conftest.$ac_ext >&5
4023 rm -rf conftest*
4024 eval "ac_cv_header_$ac_safe=no"
4025 fi
4026 rm -f conftest*
4027 fi
4028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4029 echo "$ac_t""yes" 1>&6
4030 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4031 cat >> confdefs.h <<EOF
4032 #define $ac_tr_hdr 1
4033 EOF
4034
4035 else
4036 echo "$ac_t""no" 1>&6
4037 fi
4038 done
4039
4040 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4041
4042
4043 # If we're not using GNU ld, then there's no point in even trying these
4044 # tests. Check for that first. We should have already tested for gld
4045 # by now (in libtool), but require it now just to be safe...
4046 SECTION_LDFLAGS=''
4047 OPT_LDFLAGS=''
4048
4049
4050 # Set --gc-sections.
4051 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4052 # GNU ld it is! Joy and bunny rabbits!
4053
4054 # All these tests are for C++; save the language and the compiler flags.
4055 # Need to do this so that g++ won't try to link in libstdc++
4056 ac_test_CFLAGS="${CFLAGS+set}"
4057 ac_save_CFLAGS="$CFLAGS"
4058 CFLAGS='-x c++ -Wl,--gc-sections'
4059
4060 # Check for -Wl,--gc-sections
4061 # XXX This test is broken at the moment, as symbols required for
4062 # linking are now in libsupc++ (not built yet.....). In addition,
4063 # this test has cored on solaris in the past. In addition,
4064 # --gc-sections doesn't really work at the moment (keeps on discarding
4065 # used sections, first .eh_frame and now some of the glibc sections for
4066 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4067 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4068 echo "configure:4069: checking for ld that supports -Wl,--gc-sections" >&5
4069 if test "$cross_compiling" = yes; then
4070 ac_sectionLDflags=yes
4071 else
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075
4076 int main(void)
4077 {
4078 try { throw 1; }
4079 catch (...) { };
4080 return 0;
4081 }
4082
4083 EOF
4084 if { (eval echo configure:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4085 then
4086 ac_sectionLDflags=yes
4087 else
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4090 rm -fr conftest*
4091 ac_sectionLFflags=no
4092 fi
4093 rm -fr conftest*
4094 fi
4095
4096 if test "$ac_test_CFLAGS" = set; then
4097 CFLAGS="$ac_save_CFLAGS"
4098 else
4099 # this is the suspicious part
4100 CFLAGS=''
4101 fi
4102 if test "$ac_sectionLDflags" = "yes"; then
4103 SECTION_LDFLAGS='-Wl,--gc-sections'
4104 fi
4105 echo "$ac_t""$ac_sectionLDflags" 1>&6
4106 fi
4107
4108 # Set linker optimization flags.
4109 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4110 test x"$enable_debug" = x"no"; then
4111 OPT_LDFLAGS='-Wl,-O1'
4112 fi
4113
4114
4115
4116
4117
4118 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4119 echo "configure:4120: checking for main in -lm" >&5
4120 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4123 else
4124 ac_save_LIBS="$LIBS"
4125 LIBS="-lm $LIBS"
4126 cat > conftest.$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4129
4130 int main() {
4131 main()
4132 ; return 0; }
4133 EOF
4134 if { (eval echo configure:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4135 rm -rf conftest*
4136 eval "ac_cv_lib_$ac_lib_var=yes"
4137 else
4138 echo "configure: failed program was:" >&5
4139 cat conftest.$ac_ext >&5
4140 rm -rf conftest*
4141 eval "ac_cv_lib_$ac_lib_var=no"
4142 fi
4143 rm -f conftest*
4144 LIBS="$ac_save_LIBS"
4145
4146 fi
4147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4148 echo "$ac_t""yes" 1>&6
4149 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4150 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4151 cat >> confdefs.h <<EOF
4152 #define $ac_tr_lib 1
4153 EOF
4154
4155 LIBS="-lm $LIBS"
4156
4157 else
4158 echo "$ac_t""no" 1>&6
4159 fi
4160
4161 for ac_func in nan copysignf
4162 do
4163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4164 echo "configure:4165: checking for $ac_func" >&5
4165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4167 else
4168 cat > conftest.$ac_ext <<EOF
4169 #line 4170 "configure"
4170 #include "confdefs.h"
4171 /* System header to define __stub macros and hopefully few prototypes,
4172 which can conflict with char $ac_func(); below. */
4173 #include <assert.h>
4174 /* Override any gcc2 internal prototype to avoid an error. */
4175 /* We use char because int might match the return type of a gcc2
4176 builtin and then its argument prototype would still apply. */
4177 char $ac_func();
4178
4179 int main() {
4180
4181 /* The GNU C library defines this for functions which it implements
4182 to always fail with ENOSYS. Some functions are actually named
4183 something starting with __ and the normal name is an alias. */
4184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4185 choke me
4186 #else
4187 $ac_func();
4188 #endif
4189
4190 ; return 0; }
4191 EOF
4192 if { (eval echo configure:4193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4193 rm -rf conftest*
4194 eval "ac_cv_func_$ac_func=yes"
4195 else
4196 echo "configure: failed program was:" >&5
4197 cat conftest.$ac_ext >&5
4198 rm -rf conftest*
4199 eval "ac_cv_func_$ac_func=no"
4200 fi
4201 rm -f conftest*
4202 fi
4203
4204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4205 echo "$ac_t""yes" 1>&6
4206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4207 cat >> confdefs.h <<EOF
4208 #define $ac_tr_func 1
4209 EOF
4210
4211 else
4212 echo "$ac_t""no" 1>&6
4213 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4214 fi
4215 done
4216
4217
4218
4219 USE_COMPLEX_LONG_DOUBLE=no
4220 if test x$ac_cv_func_copysignl = x"yes"; then
4221 USE_COMPLEX_LONG_DOUBLE=yes
4222 for ac_func in signbitl
4223 do
4224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4225 echo "configure:4226: checking for $ac_func" >&5
4226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4227 echo $ac_n "(cached) $ac_c" 1>&6
4228 else
4229 cat > conftest.$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4232 /* System header to define __stub macros and hopefully few prototypes,
4233 which can conflict with char $ac_func(); below. */
4234 #include <assert.h>
4235 /* Override any gcc2 internal prototype to avoid an error. */
4236 /* We use char because int might match the return type of a gcc2
4237 builtin and then its argument prototype would still apply. */
4238 char $ac_func();
4239
4240 int main() {
4241
4242 /* The GNU C library defines this for functions which it implements
4243 to always fail with ENOSYS. Some functions are actually named
4244 something starting with __ and the normal name is an alias. */
4245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4246 choke me
4247 #else
4248 $ac_func();
4249 #endif
4250
4251 ; return 0; }
4252 EOF
4253 if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4254 rm -rf conftest*
4255 eval "ac_cv_func_$ac_func=yes"
4256 else
4257 echo "configure: failed program was:" >&5
4258 cat conftest.$ac_ext >&5
4259 rm -rf conftest*
4260 eval "ac_cv_func_$ac_func=no"
4261 fi
4262 rm -f conftest*
4263 fi
4264
4265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4266 echo "$ac_t""yes" 1>&6
4267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4268 cat >> confdefs.h <<EOF
4269 #define $ac_tr_func 1
4270 EOF
4271
4272 else
4273 echo "$ac_t""no" 1>&6
4274 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4275 fi
4276 done
4277
4278
4279 fi
4280
4281
4282
4283
4284
4285 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4286 echo "configure:4287: checking for mbstate_t" >&5
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 #include <wchar.h>
4291 int main() {
4292 mbstate_t teststate;
4293 ; return 0; }
4294 EOF
4295 if { (eval echo configure:4296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4296 rm -rf conftest*
4297 have_mbstate_t=yes
4298 else
4299 echo "configure: failed program was:" >&5
4300 cat conftest.$ac_ext >&5
4301 rm -rf conftest*
4302 have_mbstate_t=no
4303 fi
4304 rm -f conftest*
4305 echo "$ac_t""$have_mbstate_t" 1>&6
4306 if test x"$have_mbstate_t" = xyes; then
4307 cat >> confdefs.h <<\EOF
4308 #define HAVE_MBSTATE_T 1
4309 EOF
4310
4311 fi
4312
4313 for ac_hdr in wchar.h
4314 do
4315 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4317 echo "configure:4318: checking for $ac_hdr" >&5
4318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4320 else
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4324 #include <$ac_hdr>
4325 EOF
4326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4327 { (eval echo configure:4328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4329 if test -z "$ac_err"; then
4330 rm -rf conftest*
4331 eval "ac_cv_header_$ac_safe=yes"
4332 else
4333 echo "$ac_err" >&5
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4336 rm -rf conftest*
4337 eval "ac_cv_header_$ac_safe=no"
4338 fi
4339 rm -f conftest*
4340 fi
4341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4342 echo "$ac_t""yes" 1>&6
4343 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4344 cat >> confdefs.h <<EOF
4345 #define $ac_tr_hdr 1
4346 EOF
4347 ac_has_wchar_h=yes
4348 else
4349 echo "$ac_t""no" 1>&6
4350 ac_has_wchar_h=no
4351 fi
4352 done
4353
4354 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
4355 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
4356 echo "configure:4357: checking for wctype.h" >&5
4357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4359 else
4360 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4363 #include <wctype.h>
4364 EOF
4365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4366 { (eval echo configure:4367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4368 if test -z "$ac_err"; then
4369 rm -rf conftest*
4370 eval "ac_cv_header_$ac_safe=yes"
4371 else
4372 echo "$ac_err" >&5
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4375 rm -rf conftest*
4376 eval "ac_cv_header_$ac_safe=no"
4377 fi
4378 rm -f conftest*
4379 fi
4380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4381 echo "$ac_t""yes" 1>&6
4382 ac_has_wctype_h=yes
4383 else
4384 echo "$ac_t""no" 1>&6
4385 ac_has_wctype_h=no
4386 fi
4387
4388
4389 if test x"$ac_has_wchar_h" = xyes &&
4390 test x"$ac_has_wctype_h" = xyes &&
4391 test x"$enable_c_mbchar" != xno; then
4392
4393 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4394 echo "configure:4395: checking for WCHAR_MIN and WCHAR_MAX" >&5
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4398 #include <wchar.h>
4399 int main() {
4400 int i = WCHAR_MIN; int j = WCHAR_MAX;
4401 ; return 0; }
4402 EOF
4403 if { (eval echo configure:4404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4404 rm -rf conftest*
4405 has_wchar_minmax=yes
4406 else
4407 echo "configure: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4409 rm -rf conftest*
4410 has_wchar_minmax=no
4411 fi
4412 rm -f conftest*
4413 echo "$ac_t""$has_wchar_minmax" 1>&6
4414
4415 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4416 echo "configure:4417: checking for WEOF" >&5
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4420
4421 #include <wchar.h>
4422 #include <stddef.h>
4423 int main() {
4424 wint_t i = WEOF;
4425 ; return 0; }
4426 EOF
4427 if { (eval echo configure:4428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4428 rm -rf conftest*
4429 has_weof=yes
4430 else
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4433 rm -rf conftest*
4434 has_weof=no
4435 fi
4436 rm -f conftest*
4437 echo "$ac_t""$has_weof" 1>&6
4438
4439 ac_wfuncs=yes
4440 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4441 do
4442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4443 echo "configure:4444: checking for $ac_func" >&5
4444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4446 else
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 /* System header to define __stub macros and hopefully few prototypes,
4451 which can conflict with char $ac_func(); below. */
4452 #include <assert.h>
4453 /* Override any gcc2 internal prototype to avoid an error. */
4454 /* We use char because int might match the return type of a gcc2
4455 builtin and then its argument prototype would still apply. */
4456 char $ac_func();
4457
4458 int main() {
4459
4460 /* The GNU C library defines this for functions which it implements
4461 to always fail with ENOSYS. Some functions are actually named
4462 something starting with __ and the normal name is an alias. */
4463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4464 choke me
4465 #else
4466 $ac_func();
4467 #endif
4468
4469 ; return 0; }
4470 EOF
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4472 rm -rf conftest*
4473 eval "ac_cv_func_$ac_func=yes"
4474 else
4475 echo "configure: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4477 rm -rf conftest*
4478 eval "ac_cv_func_$ac_func=no"
4479 fi
4480 rm -f conftest*
4481 fi
4482
4483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4486 cat >> confdefs.h <<EOF
4487 #define $ac_tr_func 1
4488 EOF
4489
4490 else
4491 echo "$ac_t""no" 1>&6
4492 \
4493 ac_wfuncs=no
4494 fi
4495 done
4496
4497
4498 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4499 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4500 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4501 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4502 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4503 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4504 do
4505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4506 echo "configure:4507: checking for $ac_func" >&5
4507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4509 else
4510 cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 /* System header to define __stub macros and hopefully few prototypes,
4514 which can conflict with char $ac_func(); below. */
4515 #include <assert.h>
4516 /* Override any gcc2 internal prototype to avoid an error. */
4517 /* We use char because int might match the return type of a gcc2
4518 builtin and then its argument prototype would still apply. */
4519 char $ac_func();
4520
4521 int main() {
4522
4523 /* The GNU C library defines this for functions which it implements
4524 to always fail with ENOSYS. Some functions are actually named
4525 something starting with __ and the normal name is an alias. */
4526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4527 choke me
4528 #else
4529 $ac_func();
4530 #endif
4531
4532 ; return 0; }
4533 EOF
4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4535 rm -rf conftest*
4536 eval "ac_cv_func_$ac_func=yes"
4537 else
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4540 rm -rf conftest*
4541 eval "ac_cv_func_$ac_func=no"
4542 fi
4543 rm -f conftest*
4544 fi
4545
4546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4547 echo "$ac_t""yes" 1>&6
4548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4549 cat >> confdefs.h <<EOF
4550 #define $ac_tr_func 1
4551 EOF
4552
4553 else
4554 echo "$ac_t""no" 1>&6
4555 \
4556 ac_wfuncs=no
4557 fi
4558 done
4559
4560
4561 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4562 echo "configure:4563: checking for ISO C99 wchar_t support" >&5
4563 if test x"$has_weof" = xyes &&
4564 test x"$has_wchar_minmax" = xyes &&
4565 test x"$ac_wfuncs" = xyes; then
4566 ac_isoC99_wchar_t=yes
4567 else
4568 ac_isoC99_wchar_t=no
4569 fi
4570 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4571
4572 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4573 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4574 echo "configure:4575: checking for iconv.h" >&5
4575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4577 else
4578 cat > conftest.$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4581 #include <iconv.h>
4582 EOF
4583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4584 { (eval echo configure:4585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4586 if test -z "$ac_err"; then
4587 rm -rf conftest*
4588 eval "ac_cv_header_$ac_safe=yes"
4589 else
4590 echo "$ac_err" >&5
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4593 rm -rf conftest*
4594 eval "ac_cv_header_$ac_safe=no"
4595 fi
4596 rm -f conftest*
4597 fi
4598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4599 echo "$ac_t""yes" 1>&6
4600 ac_has_iconv_h=yes
4601 else
4602 echo "$ac_t""no" 1>&6
4603 ac_has_iconv_h=no
4604 fi
4605
4606 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4607 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4608 echo "configure:4609: checking for langinfo.h" >&5
4609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4610 echo $ac_n "(cached) $ac_c" 1>&6
4611 else
4612 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4615 #include <langinfo.h>
4616 EOF
4617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4618 { (eval echo configure:4619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4620 if test -z "$ac_err"; then
4621 rm -rf conftest*
4622 eval "ac_cv_header_$ac_safe=yes"
4623 else
4624 echo "$ac_err" >&5
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4627 rm -rf conftest*
4628 eval "ac_cv_header_$ac_safe=no"
4629 fi
4630 rm -f conftest*
4631 fi
4632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4633 echo "$ac_t""yes" 1>&6
4634 ac_has_langinfo_h=yes
4635 else
4636 echo "$ac_t""no" 1>&6
4637 ac_has_langinfo_h=no
4638 fi
4639
4640
4641 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4642 echo "configure:4643: checking for iconv in -liconv" >&5
4643 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4646 else
4647 ac_save_LIBS="$LIBS"
4648 LIBS="-liconv $LIBS"
4649 cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4652 /* Override any gcc2 internal prototype to avoid an error. */
4653 /* We use char because int might match the return type of a gcc2
4654 builtin and then its argument prototype would still apply. */
4655 char iconv();
4656
4657 int main() {
4658 iconv()
4659 ; return 0; }
4660 EOF
4661 if { (eval echo configure:4662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4662 rm -rf conftest*
4663 eval "ac_cv_lib_$ac_lib_var=yes"
4664 else
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4667 rm -rf conftest*
4668 eval "ac_cv_lib_$ac_lib_var=no"
4669 fi
4670 rm -f conftest*
4671 LIBS="$ac_save_LIBS"
4672
4673 fi
4674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4675 echo "$ac_t""yes" 1>&6
4676 libiconv="-liconv"
4677 else
4678 echo "$ac_t""no" 1>&6
4679 fi
4680
4681 ac_save_LIBS="$LIBS"
4682 LIBS="$LIBS $libiconv"
4683
4684 for ac_func in iconv_open iconv_close iconv nl_langinfo
4685 do
4686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4687 echo "configure:4688: checking for $ac_func" >&5
4688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4690 else
4691 cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4694 /* System header to define __stub macros and hopefully few prototypes,
4695 which can conflict with char $ac_func(); below. */
4696 #include <assert.h>
4697 /* Override any gcc2 internal prototype to avoid an error. */
4698 /* We use char because int might match the return type of a gcc2
4699 builtin and then its argument prototype would still apply. */
4700 char $ac_func();
4701
4702 int main() {
4703
4704 /* The GNU C library defines this for functions which it implements
4705 to always fail with ENOSYS. Some functions are actually named
4706 something starting with __ and the normal name is an alias. */
4707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4708 choke me
4709 #else
4710 $ac_func();
4711 #endif
4712
4713 ; return 0; }
4714 EOF
4715 if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4716 rm -rf conftest*
4717 eval "ac_cv_func_$ac_func=yes"
4718 else
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4721 rm -rf conftest*
4722 eval "ac_cv_func_$ac_func=no"
4723 fi
4724 rm -f conftest*
4725 fi
4726
4727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4728 echo "$ac_t""yes" 1>&6
4729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4730 cat >> confdefs.h <<EOF
4731 #define $ac_tr_func 1
4732 EOF
4733 \
4734 ac_XPG2funcs=yes
4735 else
4736 echo "$ac_t""no" 1>&6
4737 ac_XPG2funcs=no
4738 fi
4739 done
4740
4741
4742 LIBS="$ac_save_LIBS"
4743
4744 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4745 echo "configure:4746: checking for XPG2 wchar_t support" >&5
4746 if test x"$ac_has_iconv_h" = xyes &&
4747 test x"$ac_has_langinfo_h" = xyes &&
4748 test x"$ac_XPG2funcs" = xyes; then
4749 ac_XPG2_wchar_t=yes
4750 else
4751 ac_XPG2_wchar_t=no
4752 fi
4753 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4754
4755 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4756 echo "configure:4757: checking for enabled wchar_t specializations" >&5
4757 if test x"$ac_isoC99_wchar_t" = xyes &&
4758 test x"$ac_XPG2_wchar_t" = xyes; then
4759 cat >> confdefs.h <<\EOF
4760 #define _GLIBCPP_USE_WCHAR_T 1
4761 EOF
4762
4763 echo "$ac_t"""yes"" 1>&6
4764 else
4765 echo "$ac_t"""no"" 1>&6
4766 fi
4767 else
4768 echo "configure: warning: wchar_t support disabled." 1>&2
4769 fi
4770
4771 os_include_dir="config/os/gnu-linux"
4772 cat >> confdefs.h <<\EOF
4773 #define HAVE_COPYSIGN 1
4774 EOF
4775
4776 cat >> confdefs.h <<\EOF
4777 #define HAVE_COPYSIGNF 1
4778 EOF
4779
4780 cat >> confdefs.h <<\EOF
4781 #define HAVE_FINITEF 1
4782 EOF
4783
4784 cat >> confdefs.h <<\EOF
4785 #define HAVE_FREXPF 1
4786 EOF
4787
4788 cat >> confdefs.h <<\EOF
4789 #define HAVE_HYPOTF 1
4790 EOF
4791
4792 cat >> confdefs.h <<\EOF
4793 #define HAVE_SINCOS 1
4794 EOF
4795
4796 cat >> confdefs.h <<\EOF
4797 #define HAVE_SINCOSF 1
4798 EOF
4799
4800 if test x"long_double_math_on_this_cpu" = x"yes"; then
4801 cat >> confdefs.h <<\EOF
4802 #define HAVE_HYPOTL 1
4803 EOF
4804
4805 fi
4806 ;;
4807 *-hpux*)
4808 # Check for available headers.
4809 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4810 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4811 fp.h locale.h float.h inttypes.h
4812 do
4813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4815 echo "configure:4816: checking for $ac_hdr" >&5
4816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4818 else
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 #include <$ac_hdr>
4823 EOF
4824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4825 { (eval echo configure:4826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4827 if test -z "$ac_err"; then
4828 rm -rf conftest*
4829 eval "ac_cv_header_$ac_safe=yes"
4830 else
4831 echo "$ac_err" >&5
4832 echo "configure: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4834 rm -rf conftest*
4835 eval "ac_cv_header_$ac_safe=no"
4836 fi
4837 rm -f conftest*
4838 fi
4839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4840 echo "$ac_t""yes" 1>&6
4841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4842 cat >> confdefs.h <<EOF
4843 #define $ac_tr_hdr 1
4844 EOF
4845
4846 else
4847 echo "$ac_t""no" 1>&6
4848 fi
4849 done
4850
4851 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4852
4853
4854 # If we're not using GNU ld, then there's no point in even trying these
4855 # tests. Check for that first. We should have already tested for gld
4856 # by now (in libtool), but require it now just to be safe...
4857 SECTION_LDFLAGS=''
4858 OPT_LDFLAGS=''
4859
4860
4861 # Set --gc-sections.
4862 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
4863 # GNU ld it is! Joy and bunny rabbits!
4864
4865 # All these tests are for C++; save the language and the compiler flags.
4866 # Need to do this so that g++ won't try to link in libstdc++
4867 ac_test_CFLAGS="${CFLAGS+set}"
4868 ac_save_CFLAGS="$CFLAGS"
4869 CFLAGS='-x c++ -Wl,--gc-sections'
4870
4871 # Check for -Wl,--gc-sections
4872 # XXX This test is broken at the moment, as symbols required for
4873 # linking are now in libsupc++ (not built yet.....). In addition,
4874 # this test has cored on solaris in the past. In addition,
4875 # --gc-sections doesn't really work at the moment (keeps on discarding
4876 # used sections, first .eh_frame and now some of the glibc sections for
4877 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4878 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4879 echo "configure:4880: checking for ld that supports -Wl,--gc-sections" >&5
4880 if test "$cross_compiling" = yes; then
4881 ac_sectionLDflags=yes
4882 else
4883 cat > conftest.$ac_ext <<EOF
4884 #line 4885 "configure"
4885 #include "confdefs.h"
4886
4887 int main(void)
4888 {
4889 try { throw 1; }
4890 catch (...) { };
4891 return 0;
4892 }
4893
4894 EOF
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4896 then
4897 ac_sectionLDflags=yes
4898 else
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4901 rm -fr conftest*
4902 ac_sectionLFflags=no
4903 fi
4904 rm -fr conftest*
4905 fi
4906
4907 if test "$ac_test_CFLAGS" = set; then
4908 CFLAGS="$ac_save_CFLAGS"
4909 else
4910 # this is the suspicious part
4911 CFLAGS=''
4912 fi
4913 if test "$ac_sectionLDflags" = "yes"; then
4914 SECTION_LDFLAGS='-Wl,--gc-sections'
4915 fi
4916 echo "$ac_t""$ac_sectionLDflags" 1>&6
4917 fi
4918
4919 # Set linker optimization flags.
4920 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
4921 test x"$enable_debug" = x"no"; then
4922 OPT_LDFLAGS='-Wl,-O1'
4923 fi
4924
4925
4926
4927
4928
4929 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4930 echo "configure:4931: checking for main in -lm" >&5
4931 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4933 echo $ac_n "(cached) $ac_c" 1>&6
4934 else
4935 ac_save_LIBS="$LIBS"
4936 LIBS="-lm $LIBS"
4937 cat > conftest.$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4940
4941 int main() {
4942 main()
4943 ; return 0; }
4944 EOF
4945 if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4946 rm -rf conftest*
4947 eval "ac_cv_lib_$ac_lib_var=yes"
4948 else
4949 echo "configure: failed program was:" >&5
4950 cat conftest.$ac_ext >&5
4951 rm -rf conftest*
4952 eval "ac_cv_lib_$ac_lib_var=no"
4953 fi
4954 rm -f conftest*
4955 LIBS="$ac_save_LIBS"
4956
4957 fi
4958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4959 echo "$ac_t""yes" 1>&6
4960 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4961 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4962 cat >> confdefs.h <<EOF
4963 #define $ac_tr_lib 1
4964 EOF
4965
4966 LIBS="-lm $LIBS"
4967
4968 else
4969 echo "$ac_t""no" 1>&6
4970 fi
4971
4972 for ac_func in nan copysignf
4973 do
4974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4975 echo "configure:4976: checking for $ac_func" >&5
4976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4977 echo $ac_n "(cached) $ac_c" 1>&6
4978 else
4979 cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4982 /* System header to define __stub macros and hopefully few prototypes,
4983 which can conflict with char $ac_func(); below. */
4984 #include <assert.h>
4985 /* Override any gcc2 internal prototype to avoid an error. */
4986 /* We use char because int might match the return type of a gcc2
4987 builtin and then its argument prototype would still apply. */
4988 char $ac_func();
4989
4990 int main() {
4991
4992 /* The GNU C library defines this for functions which it implements
4993 to always fail with ENOSYS. Some functions are actually named
4994 something starting with __ and the normal name is an alias. */
4995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4996 choke me
4997 #else
4998 $ac_func();
4999 #endif
5000
5001 ; return 0; }
5002 EOF
5003 if { (eval echo configure:5004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5004 rm -rf conftest*
5005 eval "ac_cv_func_$ac_func=yes"
5006 else
5007 echo "configure: failed program was:" >&5
5008 cat conftest.$ac_ext >&5
5009 rm -rf conftest*
5010 eval "ac_cv_func_$ac_func=no"
5011 fi
5012 rm -f conftest*
5013 fi
5014
5015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5016 echo "$ac_t""yes" 1>&6
5017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5018 cat >> confdefs.h <<EOF
5019 #define $ac_tr_func 1
5020 EOF
5021
5022 else
5023 echo "$ac_t""no" 1>&6
5024 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5025 fi
5026 done
5027
5028
5029
5030 USE_COMPLEX_LONG_DOUBLE=no
5031 if test x$ac_cv_func_copysignl = x"yes"; then
5032 USE_COMPLEX_LONG_DOUBLE=yes
5033 for ac_func in signbitl
5034 do
5035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5036 echo "configure:5037: checking for $ac_func" >&5
5037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5039 else
5040 cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5043 /* System header to define __stub macros and hopefully few prototypes,
5044 which can conflict with char $ac_func(); below. */
5045 #include <assert.h>
5046 /* Override any gcc2 internal prototype to avoid an error. */
5047 /* We use char because int might match the return type of a gcc2
5048 builtin and then its argument prototype would still apply. */
5049 char $ac_func();
5050
5051 int main() {
5052
5053 /* The GNU C library defines this for functions which it implements
5054 to always fail with ENOSYS. Some functions are actually named
5055 something starting with __ and the normal name is an alias. */
5056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5057 choke me
5058 #else
5059 $ac_func();
5060 #endif
5061
5062 ; return 0; }
5063 EOF
5064 if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5065 rm -rf conftest*
5066 eval "ac_cv_func_$ac_func=yes"
5067 else
5068 echo "configure: failed program was:" >&5
5069 cat conftest.$ac_ext >&5
5070 rm -rf conftest*
5071 eval "ac_cv_func_$ac_func=no"
5072 fi
5073 rm -f conftest*
5074 fi
5075
5076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5077 echo "$ac_t""yes" 1>&6
5078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5079 cat >> confdefs.h <<EOF
5080 #define $ac_tr_func 1
5081 EOF
5082
5083 else
5084 echo "$ac_t""no" 1>&6
5085 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5086 fi
5087 done
5088
5089
5090 fi
5091
5092
5093
5094
5095
5096 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5097 echo "configure:5098: checking for mbstate_t" >&5
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 #include <wchar.h>
5102 int main() {
5103 mbstate_t teststate;
5104 ; return 0; }
5105 EOF
5106 if { (eval echo configure:5107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5107 rm -rf conftest*
5108 have_mbstate_t=yes
5109 else
5110 echo "configure: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5112 rm -rf conftest*
5113 have_mbstate_t=no
5114 fi
5115 rm -f conftest*
5116 echo "$ac_t""$have_mbstate_t" 1>&6
5117 if test x"$have_mbstate_t" = xyes; then
5118 cat >> confdefs.h <<\EOF
5119 #define HAVE_MBSTATE_T 1
5120 EOF
5121
5122 fi
5123
5124 for ac_hdr in wchar.h
5125 do
5126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5128 echo "configure:5129: checking for $ac_hdr" >&5
5129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5131 else
5132 cat > conftest.$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5135 #include <$ac_hdr>
5136 EOF
5137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5138 { (eval echo configure:5139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5140 if test -z "$ac_err"; then
5141 rm -rf conftest*
5142 eval "ac_cv_header_$ac_safe=yes"
5143 else
5144 echo "$ac_err" >&5
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 rm -rf conftest*
5148 eval "ac_cv_header_$ac_safe=no"
5149 fi
5150 rm -f conftest*
5151 fi
5152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5153 echo "$ac_t""yes" 1>&6
5154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5155 cat >> confdefs.h <<EOF
5156 #define $ac_tr_hdr 1
5157 EOF
5158 ac_has_wchar_h=yes
5159 else
5160 echo "$ac_t""no" 1>&6
5161 ac_has_wchar_h=no
5162 fi
5163 done
5164
5165 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
5166 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
5167 echo "configure:5168: checking for wctype.h" >&5
5168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5169 echo $ac_n "(cached) $ac_c" 1>&6
5170 else
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5174 #include <wctype.h>
5175 EOF
5176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5177 { (eval echo configure:5178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5179 if test -z "$ac_err"; then
5180 rm -rf conftest*
5181 eval "ac_cv_header_$ac_safe=yes"
5182 else
5183 echo "$ac_err" >&5
5184 echo "configure: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5186 rm -rf conftest*
5187 eval "ac_cv_header_$ac_safe=no"
5188 fi
5189 rm -f conftest*
5190 fi
5191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5192 echo "$ac_t""yes" 1>&6
5193 ac_has_wctype_h=yes
5194 else
5195 echo "$ac_t""no" 1>&6
5196 ac_has_wctype_h=no
5197 fi
5198
5199
5200 if test x"$ac_has_wchar_h" = xyes &&
5201 test x"$ac_has_wctype_h" = xyes &&
5202 test x"$enable_c_mbchar" != xno; then
5203
5204 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5205 echo "configure:5206: checking for WCHAR_MIN and WCHAR_MAX" >&5
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 #include <wchar.h>
5210 int main() {
5211 int i = WCHAR_MIN; int j = WCHAR_MAX;
5212 ; return 0; }
5213 EOF
5214 if { (eval echo configure:5215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5215 rm -rf conftest*
5216 has_wchar_minmax=yes
5217 else
5218 echo "configure: failed program was:" >&5
5219 cat conftest.$ac_ext >&5
5220 rm -rf conftest*
5221 has_wchar_minmax=no
5222 fi
5223 rm -f conftest*
5224 echo "$ac_t""$has_wchar_minmax" 1>&6
5225
5226 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5227 echo "configure:5228: checking for WEOF" >&5
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5231
5232 #include <wchar.h>
5233 #include <stddef.h>
5234 int main() {
5235 wint_t i = WEOF;
5236 ; return 0; }
5237 EOF
5238 if { (eval echo configure:5239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5239 rm -rf conftest*
5240 has_weof=yes
5241 else
5242 echo "configure: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5244 rm -rf conftest*
5245 has_weof=no
5246 fi
5247 rm -f conftest*
5248 echo "$ac_t""$has_weof" 1>&6
5249
5250 ac_wfuncs=yes
5251 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5252 do
5253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5254 echo "configure:5255: checking for $ac_func" >&5
5255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5256 echo $ac_n "(cached) $ac_c" 1>&6
5257 else
5258 cat > conftest.$ac_ext <<EOF
5259 #line 5260 "configure"
5260 #include "confdefs.h"
5261 /* System header to define __stub macros and hopefully few prototypes,
5262 which can conflict with char $ac_func(); below. */
5263 #include <assert.h>
5264 /* Override any gcc2 internal prototype to avoid an error. */
5265 /* We use char because int might match the return type of a gcc2
5266 builtin and then its argument prototype would still apply. */
5267 char $ac_func();
5268
5269 int main() {
5270
5271 /* The GNU C library defines this for functions which it implements
5272 to always fail with ENOSYS. Some functions are actually named
5273 something starting with __ and the normal name is an alias. */
5274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5275 choke me
5276 #else
5277 $ac_func();
5278 #endif
5279
5280 ; return 0; }
5281 EOF
5282 if { (eval echo configure:5283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5283 rm -rf conftest*
5284 eval "ac_cv_func_$ac_func=yes"
5285 else
5286 echo "configure: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5288 rm -rf conftest*
5289 eval "ac_cv_func_$ac_func=no"
5290 fi
5291 rm -f conftest*
5292 fi
5293
5294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5295 echo "$ac_t""yes" 1>&6
5296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5297 cat >> confdefs.h <<EOF
5298 #define $ac_tr_func 1
5299 EOF
5300
5301 else
5302 echo "$ac_t""no" 1>&6
5303 \
5304 ac_wfuncs=no
5305 fi
5306 done
5307
5308
5309 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5310 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5311 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5312 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5313 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5314 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5315 do
5316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5317 echo "configure:5318: checking for $ac_func" >&5
5318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5320 else
5321 cat > conftest.$ac_ext <<EOF
5322 #line 5323 "configure"
5323 #include "confdefs.h"
5324 /* System header to define __stub macros and hopefully few prototypes,
5325 which can conflict with char $ac_func(); below. */
5326 #include <assert.h>
5327 /* Override any gcc2 internal prototype to avoid an error. */
5328 /* We use char because int might match the return type of a gcc2
5329 builtin and then its argument prototype would still apply. */
5330 char $ac_func();
5331
5332 int main() {
5333
5334 /* The GNU C library defines this for functions which it implements
5335 to always fail with ENOSYS. Some functions are actually named
5336 something starting with __ and the normal name is an alias. */
5337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5338 choke me
5339 #else
5340 $ac_func();
5341 #endif
5342
5343 ; return 0; }
5344 EOF
5345 if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5346 rm -rf conftest*
5347 eval "ac_cv_func_$ac_func=yes"
5348 else
5349 echo "configure: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5351 rm -rf conftest*
5352 eval "ac_cv_func_$ac_func=no"
5353 fi
5354 rm -f conftest*
5355 fi
5356
5357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5358 echo "$ac_t""yes" 1>&6
5359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5360 cat >> confdefs.h <<EOF
5361 #define $ac_tr_func 1
5362 EOF
5363
5364 else
5365 echo "$ac_t""no" 1>&6
5366 \
5367 ac_wfuncs=no
5368 fi
5369 done
5370
5371
5372 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5373 echo "configure:5374: checking for ISO C99 wchar_t support" >&5
5374 if test x"$has_weof" = xyes &&
5375 test x"$has_wchar_minmax" = xyes &&
5376 test x"$ac_wfuncs" = xyes; then
5377 ac_isoC99_wchar_t=yes
5378 else
5379 ac_isoC99_wchar_t=no
5380 fi
5381 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5382
5383 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5384 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5385 echo "configure:5386: checking for iconv.h" >&5
5386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5387 echo $ac_n "(cached) $ac_c" 1>&6
5388 else
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5392 #include <iconv.h>
5393 EOF
5394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5395 { (eval echo configure:5396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5397 if test -z "$ac_err"; then
5398 rm -rf conftest*
5399 eval "ac_cv_header_$ac_safe=yes"
5400 else
5401 echo "$ac_err" >&5
5402 echo "configure: failed program was:" >&5
5403 cat conftest.$ac_ext >&5
5404 rm -rf conftest*
5405 eval "ac_cv_header_$ac_safe=no"
5406 fi
5407 rm -f conftest*
5408 fi
5409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5410 echo "$ac_t""yes" 1>&6
5411 ac_has_iconv_h=yes
5412 else
5413 echo "$ac_t""no" 1>&6
5414 ac_has_iconv_h=no
5415 fi
5416
5417 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5418 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5419 echo "configure:5420: checking for langinfo.h" >&5
5420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5421 echo $ac_n "(cached) $ac_c" 1>&6
5422 else
5423 cat > conftest.$ac_ext <<EOF
5424 #line 5425 "configure"
5425 #include "confdefs.h"
5426 #include <langinfo.h>
5427 EOF
5428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5429 { (eval echo configure:5430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5431 if test -z "$ac_err"; then
5432 rm -rf conftest*
5433 eval "ac_cv_header_$ac_safe=yes"
5434 else
5435 echo "$ac_err" >&5
5436 echo "configure: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5438 rm -rf conftest*
5439 eval "ac_cv_header_$ac_safe=no"
5440 fi
5441 rm -f conftest*
5442 fi
5443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5444 echo "$ac_t""yes" 1>&6
5445 ac_has_langinfo_h=yes
5446 else
5447 echo "$ac_t""no" 1>&6
5448 ac_has_langinfo_h=no
5449 fi
5450
5451
5452 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5453 echo "configure:5454: checking for iconv in -liconv" >&5
5454 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5456 echo $ac_n "(cached) $ac_c" 1>&6
5457 else
5458 ac_save_LIBS="$LIBS"
5459 LIBS="-liconv $LIBS"
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 /* Override any gcc2 internal prototype to avoid an error. */
5464 /* We use char because int might match the return type of a gcc2
5465 builtin and then its argument prototype would still apply. */
5466 char iconv();
5467
5468 int main() {
5469 iconv()
5470 ; return 0; }
5471 EOF
5472 if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5473 rm -rf conftest*
5474 eval "ac_cv_lib_$ac_lib_var=yes"
5475 else
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5478 rm -rf conftest*
5479 eval "ac_cv_lib_$ac_lib_var=no"
5480 fi
5481 rm -f conftest*
5482 LIBS="$ac_save_LIBS"
5483
5484 fi
5485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5486 echo "$ac_t""yes" 1>&6
5487 libiconv="-liconv"
5488 else
5489 echo "$ac_t""no" 1>&6
5490 fi
5491
5492 ac_save_LIBS="$LIBS"
5493 LIBS="$LIBS $libiconv"
5494
5495 for ac_func in iconv_open iconv_close iconv nl_langinfo
5496 do
5497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5498 echo "configure:5499: checking for $ac_func" >&5
5499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5500 echo $ac_n "(cached) $ac_c" 1>&6
5501 else
5502 cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 /* System header to define __stub macros and hopefully few prototypes,
5506 which can conflict with char $ac_func(); below. */
5507 #include <assert.h>
5508 /* Override any gcc2 internal prototype to avoid an error. */
5509 /* We use char because int might match the return type of a gcc2
5510 builtin and then its argument prototype would still apply. */
5511 char $ac_func();
5512
5513 int main() {
5514
5515 /* The GNU C library defines this for functions which it implements
5516 to always fail with ENOSYS. Some functions are actually named
5517 something starting with __ and the normal name is an alias. */
5518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5519 choke me
5520 #else
5521 $ac_func();
5522 #endif
5523
5524 ; return 0; }
5525 EOF
5526 if { (eval echo configure:5527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5527 rm -rf conftest*
5528 eval "ac_cv_func_$ac_func=yes"
5529 else
5530 echo "configure: failed program was:" >&5
5531 cat conftest.$ac_ext >&5
5532 rm -rf conftest*
5533 eval "ac_cv_func_$ac_func=no"
5534 fi
5535 rm -f conftest*
5536 fi
5537
5538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5539 echo "$ac_t""yes" 1>&6
5540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5541 cat >> confdefs.h <<EOF
5542 #define $ac_tr_func 1
5543 EOF
5544 \
5545 ac_XPG2funcs=yes
5546 else
5547 echo "$ac_t""no" 1>&6
5548 ac_XPG2funcs=no
5549 fi
5550 done
5551
5552
5553 LIBS="$ac_save_LIBS"
5554
5555 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5556 echo "configure:5557: checking for XPG2 wchar_t support" >&5
5557 if test x"$ac_has_iconv_h" = xyes &&
5558 test x"$ac_has_langinfo_h" = xyes &&
5559 test x"$ac_XPG2funcs" = xyes; then
5560 ac_XPG2_wchar_t=yes
5561 else
5562 ac_XPG2_wchar_t=no
5563 fi
5564 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5565
5566 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5567 echo "configure:5568: checking for enabled wchar_t specializations" >&5
5568 if test x"$ac_isoC99_wchar_t" = xyes &&
5569 test x"$ac_XPG2_wchar_t" = xyes; then
5570 cat >> confdefs.h <<\EOF
5571 #define _GLIBCPP_USE_WCHAR_T 1
5572 EOF
5573
5574 echo "$ac_t"""yes"" 1>&6
5575 else
5576 echo "$ac_t"""no"" 1>&6
5577 fi
5578 else
5579 echo "configure: warning: wchar_t support disabled." 1>&2
5580 fi
5581
5582 os_include_dir="config/os/hpux"
5583 cat >> confdefs.h <<\EOF
5584 #define HAVE_COPYSIGN 1
5585 EOF
5586
5587 cat >> confdefs.h <<\EOF
5588 #define HAVE_COPYSIGNF 1
5589 EOF
5590
5591 cat >> confdefs.h <<\EOF
5592 #define HAVE_FINITEF 1
5593 EOF
5594
5595 cat >> confdefs.h <<\EOF
5596 #define HAVE_FREXPF 1
5597 EOF
5598
5599 cat >> confdefs.h <<\EOF
5600 #define HAVE_HYPOT 1
5601 EOF
5602
5603 cat >> confdefs.h <<\EOF
5604 #define HAVE_SINCOS 1
5605 EOF
5606
5607 cat >> confdefs.h <<\EOF
5608 #define HAVE_SINCOSF 1
5609 EOF
5610
5611 ;;
5612 *-netbsd*)
5613 # Check for available headers.
5614 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5615 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5616 fp.h locale.h float.h inttypes.h
5617 do
5618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5620 echo "configure:5621: checking for $ac_hdr" >&5
5621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5622 echo $ac_n "(cached) $ac_c" 1>&6
5623 else
5624 cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure"
5626 #include "confdefs.h"
5627 #include <$ac_hdr>
5628 EOF
5629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5630 { (eval echo configure:5631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5632 if test -z "$ac_err"; then
5633 rm -rf conftest*
5634 eval "ac_cv_header_$ac_safe=yes"
5635 else
5636 echo "$ac_err" >&5
5637 echo "configure: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5639 rm -rf conftest*
5640 eval "ac_cv_header_$ac_safe=no"
5641 fi
5642 rm -f conftest*
5643 fi
5644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5645 echo "$ac_t""yes" 1>&6
5646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5647 cat >> confdefs.h <<EOF
5648 #define $ac_tr_hdr 1
5649 EOF
5650
5651 else
5652 echo "$ac_t""no" 1>&6
5653 fi
5654 done
5655
5656 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5657
5658
5659 # If we're not using GNU ld, then there's no point in even trying these
5660 # tests. Check for that first. We should have already tested for gld
5661 # by now (in libtool), but require it now just to be safe...
5662 SECTION_LDFLAGS=''
5663 OPT_LDFLAGS=''
5664
5665
5666 # Set --gc-sections.
5667 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
5668 # GNU ld it is! Joy and bunny rabbits!
5669
5670 # All these tests are for C++; save the language and the compiler flags.
5671 # Need to do this so that g++ won't try to link in libstdc++
5672 ac_test_CFLAGS="${CFLAGS+set}"
5673 ac_save_CFLAGS="$CFLAGS"
5674 CFLAGS='-x c++ -Wl,--gc-sections'
5675
5676 # Check for -Wl,--gc-sections
5677 # XXX This test is broken at the moment, as symbols required for
5678 # linking are now in libsupc++ (not built yet.....). In addition,
5679 # this test has cored on solaris in the past. In addition,
5680 # --gc-sections doesn't really work at the moment (keeps on discarding
5681 # used sections, first .eh_frame and now some of the glibc sections for
5682 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5683 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5684 echo "configure:5685: checking for ld that supports -Wl,--gc-sections" >&5
5685 if test "$cross_compiling" = yes; then
5686 ac_sectionLDflags=yes
5687 else
5688 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure"
5690 #include "confdefs.h"
5691
5692 int main(void)
5693 {
5694 try { throw 1; }
5695 catch (...) { };
5696 return 0;
5697 }
5698
5699 EOF
5700 if { (eval echo configure:5701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5701 then
5702 ac_sectionLDflags=yes
5703 else
5704 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5
5706 rm -fr conftest*
5707 ac_sectionLFflags=no
5708 fi
5709 rm -fr conftest*
5710 fi
5711
5712 if test "$ac_test_CFLAGS" = set; then
5713 CFLAGS="$ac_save_CFLAGS"
5714 else
5715 # this is the suspicious part
5716 CFLAGS=''
5717 fi
5718 if test "$ac_sectionLDflags" = "yes"; then
5719 SECTION_LDFLAGS='-Wl,--gc-sections'
5720 fi
5721 echo "$ac_t""$ac_sectionLDflags" 1>&6
5722 fi
5723
5724 # Set linker optimization flags.
5725 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
5726 test x"$enable_debug" = x"no"; then
5727 OPT_LDFLAGS='-Wl,-O1'
5728 fi
5729
5730
5731
5732
5733
5734 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5735 echo "configure:5736: checking for main in -lm" >&5
5736 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5738 echo $ac_n "(cached) $ac_c" 1>&6
5739 else
5740 ac_save_LIBS="$LIBS"
5741 LIBS="-lm $LIBS"
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5745
5746 int main() {
5747 main()
5748 ; return 0; }
5749 EOF
5750 if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5751 rm -rf conftest*
5752 eval "ac_cv_lib_$ac_lib_var=yes"
5753 else
5754 echo "configure: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5756 rm -rf conftest*
5757 eval "ac_cv_lib_$ac_lib_var=no"
5758 fi
5759 rm -f conftest*
5760 LIBS="$ac_save_LIBS"
5761
5762 fi
5763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5764 echo "$ac_t""yes" 1>&6
5765 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5766 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5767 cat >> confdefs.h <<EOF
5768 #define $ac_tr_lib 1
5769 EOF
5770
5771 LIBS="-lm $LIBS"
5772
5773 else
5774 echo "$ac_t""no" 1>&6
5775 fi
5776
5777 for ac_func in nan copysignf
5778 do
5779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5780 echo "configure:5781: checking for $ac_func" >&5
5781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5783 else
5784 cat > conftest.$ac_ext <<EOF
5785 #line 5786 "configure"
5786 #include "confdefs.h"
5787 /* System header to define __stub macros and hopefully few prototypes,
5788 which can conflict with char $ac_func(); below. */
5789 #include <assert.h>
5790 /* Override any gcc2 internal prototype to avoid an error. */
5791 /* We use char because int might match the return type of a gcc2
5792 builtin and then its argument prototype would still apply. */
5793 char $ac_func();
5794
5795 int main() {
5796
5797 /* The GNU C library defines this for functions which it implements
5798 to always fail with ENOSYS. Some functions are actually named
5799 something starting with __ and the normal name is an alias. */
5800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5801 choke me
5802 #else
5803 $ac_func();
5804 #endif
5805
5806 ; return 0; }
5807 EOF
5808 if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5809 rm -rf conftest*
5810 eval "ac_cv_func_$ac_func=yes"
5811 else
5812 echo "configure: failed program was:" >&5
5813 cat conftest.$ac_ext >&5
5814 rm -rf conftest*
5815 eval "ac_cv_func_$ac_func=no"
5816 fi
5817 rm -f conftest*
5818 fi
5819
5820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5821 echo "$ac_t""yes" 1>&6
5822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5823 cat >> confdefs.h <<EOF
5824 #define $ac_tr_func 1
5825 EOF
5826
5827 else
5828 echo "$ac_t""no" 1>&6
5829 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5830 fi
5831 done
5832
5833
5834
5835 USE_COMPLEX_LONG_DOUBLE=no
5836 if test x$ac_cv_func_copysignl = x"yes"; then
5837 USE_COMPLEX_LONG_DOUBLE=yes
5838 for ac_func in signbitl
5839 do
5840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5841 echo "configure:5842: checking for $ac_func" >&5
5842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5843 echo $ac_n "(cached) $ac_c" 1>&6
5844 else
5845 cat > conftest.$ac_ext <<EOF
5846 #line 5847 "configure"
5847 #include "confdefs.h"
5848 /* System header to define __stub macros and hopefully few prototypes,
5849 which can conflict with char $ac_func(); below. */
5850 #include <assert.h>
5851 /* Override any gcc2 internal prototype to avoid an error. */
5852 /* We use char because int might match the return type of a gcc2
5853 builtin and then its argument prototype would still apply. */
5854 char $ac_func();
5855
5856 int main() {
5857
5858 /* The GNU C library defines this for functions which it implements
5859 to always fail with ENOSYS. Some functions are actually named
5860 something starting with __ and the normal name is an alias. */
5861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5862 choke me
5863 #else
5864 $ac_func();
5865 #endif
5866
5867 ; return 0; }
5868 EOF
5869 if { (eval echo configure:5870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5870 rm -rf conftest*
5871 eval "ac_cv_func_$ac_func=yes"
5872 else
5873 echo "configure: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5875 rm -rf conftest*
5876 eval "ac_cv_func_$ac_func=no"
5877 fi
5878 rm -f conftest*
5879 fi
5880
5881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5882 echo "$ac_t""yes" 1>&6
5883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5884 cat >> confdefs.h <<EOF
5885 #define $ac_tr_func 1
5886 EOF
5887
5888 else
5889 echo "$ac_t""no" 1>&6
5890 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5891 fi
5892 done
5893
5894
5895 fi
5896
5897
5898
5899
5900
5901 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5902 echo "configure:5903: checking for mbstate_t" >&5
5903 cat > conftest.$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5906 #include <wchar.h>
5907 int main() {
5908 mbstate_t teststate;
5909 ; return 0; }
5910 EOF
5911 if { (eval echo configure:5912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5912 rm -rf conftest*
5913 have_mbstate_t=yes
5914 else
5915 echo "configure: failed program was:" >&5
5916 cat conftest.$ac_ext >&5
5917 rm -rf conftest*
5918 have_mbstate_t=no
5919 fi
5920 rm -f conftest*
5921 echo "$ac_t""$have_mbstate_t" 1>&6
5922 if test x"$have_mbstate_t" = xyes; then
5923 cat >> confdefs.h <<\EOF
5924 #define HAVE_MBSTATE_T 1
5925 EOF
5926
5927 fi
5928
5929 for ac_hdr in wchar.h
5930 do
5931 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5932 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5933 echo "configure:5934: checking for $ac_hdr" >&5
5934 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5935 echo $ac_n "(cached) $ac_c" 1>&6
5936 else
5937 cat > conftest.$ac_ext <<EOF
5938 #line 5939 "configure"
5939 #include "confdefs.h"
5940 #include <$ac_hdr>
5941 EOF
5942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5943 { (eval echo configure:5944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5945 if test -z "$ac_err"; then
5946 rm -rf conftest*
5947 eval "ac_cv_header_$ac_safe=yes"
5948 else
5949 echo "$ac_err" >&5
5950 echo "configure: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5952 rm -rf conftest*
5953 eval "ac_cv_header_$ac_safe=no"
5954 fi
5955 rm -f conftest*
5956 fi
5957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5958 echo "$ac_t""yes" 1>&6
5959 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5960 cat >> confdefs.h <<EOF
5961 #define $ac_tr_hdr 1
5962 EOF
5963 ac_has_wchar_h=yes
5964 else
5965 echo "$ac_t""no" 1>&6
5966 ac_has_wchar_h=no
5967 fi
5968 done
5969
5970 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
5971 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
5972 echo "configure:5973: checking for wctype.h" >&5
5973 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5974 echo $ac_n "(cached) $ac_c" 1>&6
5975 else
5976 cat > conftest.$ac_ext <<EOF
5977 #line 5978 "configure"
5978 #include "confdefs.h"
5979 #include <wctype.h>
5980 EOF
5981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5982 { (eval echo configure:5983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5984 if test -z "$ac_err"; then
5985 rm -rf conftest*
5986 eval "ac_cv_header_$ac_safe=yes"
5987 else
5988 echo "$ac_err" >&5
5989 echo "configure: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5991 rm -rf conftest*
5992 eval "ac_cv_header_$ac_safe=no"
5993 fi
5994 rm -f conftest*
5995 fi
5996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5997 echo "$ac_t""yes" 1>&6
5998 ac_has_wctype_h=yes
5999 else
6000 echo "$ac_t""no" 1>&6
6001 ac_has_wctype_h=no
6002 fi
6003
6004
6005 if test x"$ac_has_wchar_h" = xyes &&
6006 test x"$ac_has_wctype_h" = xyes &&
6007 test x"$enable_c_mbchar" != xno; then
6008
6009 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6010 echo "configure:6011: checking for WCHAR_MIN and WCHAR_MAX" >&5
6011 cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6014 #include <wchar.h>
6015 int main() {
6016 int i = WCHAR_MIN; int j = WCHAR_MAX;
6017 ; return 0; }
6018 EOF
6019 if { (eval echo configure:6020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6020 rm -rf conftest*
6021 has_wchar_minmax=yes
6022 else
6023 echo "configure: failed program was:" >&5
6024 cat conftest.$ac_ext >&5
6025 rm -rf conftest*
6026 has_wchar_minmax=no
6027 fi
6028 rm -f conftest*
6029 echo "$ac_t""$has_wchar_minmax" 1>&6
6030
6031 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6032 echo "configure:6033: checking for WEOF" >&5
6033 cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6036
6037 #include <wchar.h>
6038 #include <stddef.h>
6039 int main() {
6040 wint_t i = WEOF;
6041 ; return 0; }
6042 EOF
6043 if { (eval echo configure:6044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6044 rm -rf conftest*
6045 has_weof=yes
6046 else
6047 echo "configure: failed program was:" >&5
6048 cat conftest.$ac_ext >&5
6049 rm -rf conftest*
6050 has_weof=no
6051 fi
6052 rm -f conftest*
6053 echo "$ac_t""$has_weof" 1>&6
6054
6055 ac_wfuncs=yes
6056 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6057 do
6058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6059 echo "configure:6060: checking for $ac_func" >&5
6060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6061 echo $ac_n "(cached) $ac_c" 1>&6
6062 else
6063 cat > conftest.$ac_ext <<EOF
6064 #line 6065 "configure"
6065 #include "confdefs.h"
6066 /* System header to define __stub macros and hopefully few prototypes,
6067 which can conflict with char $ac_func(); below. */
6068 #include <assert.h>
6069 /* Override any gcc2 internal prototype to avoid an error. */
6070 /* We use char because int might match the return type of a gcc2
6071 builtin and then its argument prototype would still apply. */
6072 char $ac_func();
6073
6074 int main() {
6075
6076 /* The GNU C library defines this for functions which it implements
6077 to always fail with ENOSYS. Some functions are actually named
6078 something starting with __ and the normal name is an alias. */
6079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6080 choke me
6081 #else
6082 $ac_func();
6083 #endif
6084
6085 ; return 0; }
6086 EOF
6087 if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6088 rm -rf conftest*
6089 eval "ac_cv_func_$ac_func=yes"
6090 else
6091 echo "configure: failed program was:" >&5
6092 cat conftest.$ac_ext >&5
6093 rm -rf conftest*
6094 eval "ac_cv_func_$ac_func=no"
6095 fi
6096 rm -f conftest*
6097 fi
6098
6099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6100 echo "$ac_t""yes" 1>&6
6101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6102 cat >> confdefs.h <<EOF
6103 #define $ac_tr_func 1
6104 EOF
6105
6106 else
6107 echo "$ac_t""no" 1>&6
6108 \
6109 ac_wfuncs=no
6110 fi
6111 done
6112
6113
6114 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6115 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6116 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6117 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6118 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6119 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6120 do
6121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6122 echo "configure:6123: checking for $ac_func" >&5
6123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6124 echo $ac_n "(cached) $ac_c" 1>&6
6125 else
6126 cat > conftest.$ac_ext <<EOF
6127 #line 6128 "configure"
6128 #include "confdefs.h"
6129 /* System header to define __stub macros and hopefully few prototypes,
6130 which can conflict with char $ac_func(); below. */
6131 #include <assert.h>
6132 /* Override any gcc2 internal prototype to avoid an error. */
6133 /* We use char because int might match the return type of a gcc2
6134 builtin and then its argument prototype would still apply. */
6135 char $ac_func();
6136
6137 int main() {
6138
6139 /* The GNU C library defines this for functions which it implements
6140 to always fail with ENOSYS. Some functions are actually named
6141 something starting with __ and the normal name is an alias. */
6142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6143 choke me
6144 #else
6145 $ac_func();
6146 #endif
6147
6148 ; return 0; }
6149 EOF
6150 if { (eval echo configure:6151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6151 rm -rf conftest*
6152 eval "ac_cv_func_$ac_func=yes"
6153 else
6154 echo "configure: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6156 rm -rf conftest*
6157 eval "ac_cv_func_$ac_func=no"
6158 fi
6159 rm -f conftest*
6160 fi
6161
6162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6163 echo "$ac_t""yes" 1>&6
6164 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6165 cat >> confdefs.h <<EOF
6166 #define $ac_tr_func 1
6167 EOF
6168
6169 else
6170 echo "$ac_t""no" 1>&6
6171 \
6172 ac_wfuncs=no
6173 fi
6174 done
6175
6176
6177 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6178 echo "configure:6179: checking for ISO C99 wchar_t support" >&5
6179 if test x"$has_weof" = xyes &&
6180 test x"$has_wchar_minmax" = xyes &&
6181 test x"$ac_wfuncs" = xyes; then
6182 ac_isoC99_wchar_t=yes
6183 else
6184 ac_isoC99_wchar_t=no
6185 fi
6186 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6187
6188 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6189 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6190 echo "configure:6191: checking for iconv.h" >&5
6191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6192 echo $ac_n "(cached) $ac_c" 1>&6
6193 else
6194 cat > conftest.$ac_ext <<EOF
6195 #line 6196 "configure"
6196 #include "confdefs.h"
6197 #include <iconv.h>
6198 EOF
6199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6200 { (eval echo configure:6201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6202 if test -z "$ac_err"; then
6203 rm -rf conftest*
6204 eval "ac_cv_header_$ac_safe=yes"
6205 else
6206 echo "$ac_err" >&5
6207 echo "configure: failed program was:" >&5
6208 cat conftest.$ac_ext >&5
6209 rm -rf conftest*
6210 eval "ac_cv_header_$ac_safe=no"
6211 fi
6212 rm -f conftest*
6213 fi
6214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6215 echo "$ac_t""yes" 1>&6
6216 ac_has_iconv_h=yes
6217 else
6218 echo "$ac_t""no" 1>&6
6219 ac_has_iconv_h=no
6220 fi
6221
6222 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6223 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6224 echo "configure:6225: checking for langinfo.h" >&5
6225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6226 echo $ac_n "(cached) $ac_c" 1>&6
6227 else
6228 cat > conftest.$ac_ext <<EOF
6229 #line 6230 "configure"
6230 #include "confdefs.h"
6231 #include <langinfo.h>
6232 EOF
6233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6234 { (eval echo configure:6235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6236 if test -z "$ac_err"; then
6237 rm -rf conftest*
6238 eval "ac_cv_header_$ac_safe=yes"
6239 else
6240 echo "$ac_err" >&5
6241 echo "configure: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6243 rm -rf conftest*
6244 eval "ac_cv_header_$ac_safe=no"
6245 fi
6246 rm -f conftest*
6247 fi
6248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6249 echo "$ac_t""yes" 1>&6
6250 ac_has_langinfo_h=yes
6251 else
6252 echo "$ac_t""no" 1>&6
6253 ac_has_langinfo_h=no
6254 fi
6255
6256
6257 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6258 echo "configure:6259: checking for iconv in -liconv" >&5
6259 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6261 echo $ac_n "(cached) $ac_c" 1>&6
6262 else
6263 ac_save_LIBS="$LIBS"
6264 LIBS="-liconv $LIBS"
6265 cat > conftest.$ac_ext <<EOF
6266 #line 6267 "configure"
6267 #include "confdefs.h"
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6271 char iconv();
6272
6273 int main() {
6274 iconv()
6275 ; return 0; }
6276 EOF
6277 if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6278 rm -rf conftest*
6279 eval "ac_cv_lib_$ac_lib_var=yes"
6280 else
6281 echo "configure: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6283 rm -rf conftest*
6284 eval "ac_cv_lib_$ac_lib_var=no"
6285 fi
6286 rm -f conftest*
6287 LIBS="$ac_save_LIBS"
6288
6289 fi
6290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6291 echo "$ac_t""yes" 1>&6
6292 libiconv="-liconv"
6293 else
6294 echo "$ac_t""no" 1>&6
6295 fi
6296
6297 ac_save_LIBS="$LIBS"
6298 LIBS="$LIBS $libiconv"
6299
6300 for ac_func in iconv_open iconv_close iconv nl_langinfo
6301 do
6302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6303 echo "configure:6304: checking for $ac_func" >&5
6304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6305 echo $ac_n "(cached) $ac_c" 1>&6
6306 else
6307 cat > conftest.$ac_ext <<EOF
6308 #line 6309 "configure"
6309 #include "confdefs.h"
6310 /* System header to define __stub macros and hopefully few prototypes,
6311 which can conflict with char $ac_func(); below. */
6312 #include <assert.h>
6313 /* Override any gcc2 internal prototype to avoid an error. */
6314 /* We use char because int might match the return type of a gcc2
6315 builtin and then its argument prototype would still apply. */
6316 char $ac_func();
6317
6318 int main() {
6319
6320 /* The GNU C library defines this for functions which it implements
6321 to always fail with ENOSYS. Some functions are actually named
6322 something starting with __ and the normal name is an alias. */
6323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6324 choke me
6325 #else
6326 $ac_func();
6327 #endif
6328
6329 ; return 0; }
6330 EOF
6331 if { (eval echo configure:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6332 rm -rf conftest*
6333 eval "ac_cv_func_$ac_func=yes"
6334 else
6335 echo "configure: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6337 rm -rf conftest*
6338 eval "ac_cv_func_$ac_func=no"
6339 fi
6340 rm -f conftest*
6341 fi
6342
6343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6344 echo "$ac_t""yes" 1>&6
6345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6346 cat >> confdefs.h <<EOF
6347 #define $ac_tr_func 1
6348 EOF
6349 \
6350 ac_XPG2funcs=yes
6351 else
6352 echo "$ac_t""no" 1>&6
6353 ac_XPG2funcs=no
6354 fi
6355 done
6356
6357
6358 LIBS="$ac_save_LIBS"
6359
6360 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6361 echo "configure:6362: checking for XPG2 wchar_t support" >&5
6362 if test x"$ac_has_iconv_h" = xyes &&
6363 test x"$ac_has_langinfo_h" = xyes &&
6364 test x"$ac_XPG2funcs" = xyes; then
6365 ac_XPG2_wchar_t=yes
6366 else
6367 ac_XPG2_wchar_t=no
6368 fi
6369 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6370
6371 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6372 echo "configure:6373: checking for enabled wchar_t specializations" >&5
6373 if test x"$ac_isoC99_wchar_t" = xyes &&
6374 test x"$ac_XPG2_wchar_t" = xyes; then
6375 cat >> confdefs.h <<\EOF
6376 #define _GLIBCPP_USE_WCHAR_T 1
6377 EOF
6378
6379 echo "$ac_t"""yes"" 1>&6
6380 else
6381 echo "$ac_t"""no"" 1>&6
6382 fi
6383 else
6384 echo "configure: warning: wchar_t support disabled." 1>&2
6385 fi
6386
6387 os_include_dir="config/os/bsd/netbsd"
6388 cat >> confdefs.h <<\EOF
6389 #define HAVE_COPYSIGN 1
6390 EOF
6391
6392 cat >> confdefs.h <<\EOF
6393 #define HAVE_COPYSIGNF 1
6394 EOF
6395
6396 cat >> confdefs.h <<\EOF
6397 #define HAVE_FINITEF 1
6398 EOF
6399
6400 cat >> confdefs.h <<\EOF
6401 #define HAVE_FREXPF 1
6402 EOF
6403
6404 cat >> confdefs.h <<\EOF
6405 #define HAVE_HYPOTF 1
6406 EOF
6407
6408 ;;
6409 *)
6410 os_include_dir="config/os/newlib"
6411 cat >> confdefs.h <<\EOF
6412 #define HAVE_HYPOT 1
6413 EOF
6414
6415 ;;
6416 esac
6417
6418 # GLIBCPP_CHECK_STDLIB_SUPPORT
6419 cat >> confdefs.h <<\EOF
6420 #define HAVE_STRTOF 1
6421 EOF
6422
6423 cat >> confdefs.h <<\EOF
6424 #define HAVE_STRTOLD 1
6425 EOF
6426
6427 # AC_FUNC_MMAP
6428 cat >> confdefs.h <<\EOF
6429 #define HAVE_MMAP 1
6430 EOF
6431
6432
6433 cat >> confdefs.h <<\EOF
6434 #define HAVE_ACOSF 1
6435 EOF
6436
6437 cat >> confdefs.h <<\EOF
6438 #define HAVE_ASINF 1
6439 EOF
6440
6441 cat >> confdefs.h <<\EOF
6442 #define HAVE_ATAN2F 1
6443 EOF
6444
6445 cat >> confdefs.h <<\EOF
6446 #define HAVE_ATANF 1
6447 EOF
6448
6449 cat >> confdefs.h <<\EOF
6450 #define HAVE_CEILF 1
6451 EOF
6452
6453 cat >> confdefs.h <<\EOF
6454 #define HAVE_COPYSIGN 1
6455 EOF
6456
6457 cat >> confdefs.h <<\EOF
6458 #define HAVE_COPYSIGNF 1
6459 EOF
6460
6461 cat >> confdefs.h <<\EOF
6462 #define HAVE_COSF 1
6463 EOF
6464
6465 cat >> confdefs.h <<\EOF
6466 #define HAVE_COSHF 1
6467 EOF
6468
6469 cat >> confdefs.h <<\EOF
6470 #define HAVE_EXPF 1
6471 EOF
6472
6473 cat >> confdefs.h <<\EOF
6474 #define HAVE_FABSF 1
6475 EOF
6476
6477 cat >> confdefs.h <<\EOF
6478 #define HAVE_FINITE 1
6479 EOF
6480
6481 cat >> confdefs.h <<\EOF
6482 #define HAVE_FINITEF 1
6483 EOF
6484
6485 cat >> confdefs.h <<\EOF
6486 #define HAVE_FLOORF 1
6487 EOF
6488
6489 cat >> confdefs.h <<\EOF
6490 #define HAVE_FMODF 1
6491 EOF
6492
6493 cat >> confdefs.h <<\EOF
6494 #define HAVE_FREXPF 1
6495 EOF
6496
6497 cat >> confdefs.h <<\EOF
6498 #define HAVE_ISINF 1
6499 EOF
6500
6501 cat >> confdefs.h <<\EOF
6502 #define HAVE_ISINFF 1
6503 EOF
6504
6505 cat >> confdefs.h <<\EOF
6506 #define HAVE_ISNAN 1
6507 EOF
6508
6509 cat >> confdefs.h <<\EOF
6510 #define HAVE_ISNANF 1
6511 EOF
6512
6513 cat >> confdefs.h <<\EOF
6514 #define HAVE_LDEXPF 1
6515 EOF
6516
6517 cat >> confdefs.h <<\EOF
6518 #define HAVE_LOG10F 1
6519 EOF
6520
6521 cat >> confdefs.h <<\EOF
6522 #define HAVE_LOGF 1
6523 EOF
6524
6525 cat >> confdefs.h <<\EOF
6526 #define HAVE_MODFF 1
6527 EOF
6528
6529 cat >> confdefs.h <<\EOF
6530 #define HAVE_POWF 1
6531 EOF
6532
6533 cat >> confdefs.h <<\EOF
6534 #define HAVE_SINF 1
6535 EOF
6536
6537 cat >> confdefs.h <<\EOF
6538 #define HAVE_SINHF 1
6539 EOF
6540
6541 cat >> confdefs.h <<\EOF
6542 #define HAVE_SQRTF 1
6543 EOF
6544
6545 cat >> confdefs.h <<\EOF
6546 #define HAVE_TANF 1
6547 EOF
6548
6549 cat >> confdefs.h <<\EOF
6550 #define HAVE_TANHF 1
6551 EOF
6552
6553
6554 # At some point, we should differentiate between architectures
6555 # like x86, which have long double versions, and alpha/powerpc/etc.,
6556 # which don't. For the time being, punt.
6557 if test x"long_double_math_on_this_cpu" = x"yes"; then
6558 cat >> confdefs.h <<\EOF
6559 #define HAVE_ACOSL 1
6560 EOF
6561
6562 cat >> confdefs.h <<\EOF
6563 #define HAVE_ASINL 1
6564 EOF
6565
6566 cat >> confdefs.h <<\EOF
6567 #define HAVE_ATAN2L 1
6568 EOF
6569
6570 cat >> confdefs.h <<\EOF
6571 #define HAVE_ATANL 1
6572 EOF
6573
6574 cat >> confdefs.h <<\EOF
6575 #define HAVE_CEILL 1
6576 EOF
6577
6578 cat >> confdefs.h <<\EOF
6579 #define HAVE_COPYSIGNL 1
6580 EOF
6581
6582 cat >> confdefs.h <<\EOF
6583 #define HAVE_COSL 1
6584 EOF
6585
6586 cat >> confdefs.h <<\EOF
6587 #define HAVE_COSHL 1
6588 EOF
6589
6590 cat >> confdefs.h <<\EOF
6591 #define HAVE_EXPL 1
6592 EOF
6593
6594 cat >> confdefs.h <<\EOF
6595 #define HAVE_FABSL 1
6596 EOF
6597
6598 cat >> confdefs.h <<\EOF
6599 #define HAVE_FINITEL 1
6600 EOF
6601
6602 cat >> confdefs.h <<\EOF
6603 #define HAVE_FLOORL 1
6604 EOF
6605
6606 cat >> confdefs.h <<\EOF
6607 #define HAVE_FMODL 1
6608 EOF
6609
6610 cat >> confdefs.h <<\EOF
6611 #define HAVE_FREXPL 1
6612 EOF
6613
6614 cat >> confdefs.h <<\EOF
6615 #define HAVE_ISINFL 1
6616 EOF
6617
6618 cat >> confdefs.h <<\EOF
6619 #define HAVE_ISNANL 1
6620 EOF
6621
6622 cat >> confdefs.h <<\EOF
6623 #define HAVE_LDEXPL 1
6624 EOF
6625
6626 cat >> confdefs.h <<\EOF
6627 #define HAVE_LOG10L 1
6628 EOF
6629
6630 cat >> confdefs.h <<\EOF
6631 #define HAVE_LOGL 1
6632 EOF
6633
6634 cat >> confdefs.h <<\EOF
6635 #define HAVE_MODFL 1
6636 EOF
6637
6638 cat >> confdefs.h <<\EOF
6639 #define HAVE_POWL 1
6640 EOF
6641
6642 cat >> confdefs.h <<\EOF
6643 #define HAVE_SINCOSL 1
6644 EOF
6645
6646 cat >> confdefs.h <<\EOF
6647 #define HAVE_SINL 1
6648 EOF
6649
6650 cat >> confdefs.h <<\EOF
6651 #define HAVE_SINHL 1
6652 EOF
6653
6654 cat >> confdefs.h <<\EOF
6655 #define HAVE_SQRTL 1
6656 EOF
6657
6658 cat >> confdefs.h <<\EOF
6659 #define HAVE_TANL 1
6660 EOF
6661
6662 cat >> confdefs.h <<\EOF
6663 #define HAVE_TANHL 1
6664 EOF
6665
6666 fi
6667 else
6668
6669 # We are being configured natively. We can do more elaborate tests
6670 # that include AC_TRY_COMPILE now, as the linker is assumed to be
6671 # working.
6672 GLIBCPP_IS_CROSS_COMPILING=0
6673 CANADIAN=no
6674
6675 # Check for available headers.
6676 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
6677 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h
6678 do
6679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6681 echo "configure:6682: checking for $ac_hdr" >&5
6682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6683 echo $ac_n "(cached) $ac_c" 1>&6
6684 else
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 #include <$ac_hdr>
6689 EOF
6690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6691 { (eval echo configure:6692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6693 if test -z "$ac_err"; then
6694 rm -rf conftest*
6695 eval "ac_cv_header_$ac_safe=yes"
6696 else
6697 echo "$ac_err" >&5
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6700 rm -rf conftest*
6701 eval "ac_cv_header_$ac_safe=no"
6702 fi
6703 rm -f conftest*
6704 fi
6705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6706 echo "$ac_t""yes" 1>&6
6707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6708 cat >> confdefs.h <<EOF
6709 #define $ac_tr_hdr 1
6710 EOF
6711
6712 else
6713 echo "$ac_t""no" 1>&6
6714 fi
6715 done
6716
6717
6718
6719 # All these tests are for C++; save the language and the compiler flags.
6720 # The CXXFLAGS thing is suspicious, but based on similar bits previously
6721 # found in GLIBCPP_CONFIGURE.
6722
6723 ac_ext=C
6724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6725 ac_cpp='$CXXCPP $CPPFLAGS'
6726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6728 cross_compiling=$ac_cv_prog_cxx_cross
6729
6730 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6731 ac_save_CXXFLAGS="$CXXFLAGS"
6732
6733 # Check for maintainer-mode bits.
6734 if test x"$USE_MAINTAINER_MODE" = xno; then
6735 WERROR=''
6736 else
6737 WERROR='-Werror'
6738 fi
6739
6740 # Check for -ffunction-sections -fdata-sections
6741 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
6742 echo "configure:6743: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
6743 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747
6748 int main() {
6749 int foo;
6750
6751 ; return 0; }
6752 EOF
6753 if { (eval echo configure:6754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6754 rm -rf conftest*
6755 ac_fdsections=yes
6756 else
6757 echo "configure: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6759 rm -rf conftest*
6760 ac_fdsections=no
6761 fi
6762 rm -f conftest*
6763 if test "$ac_test_CXXFLAGS" = set; then
6764 CXXFLAGS="$ac_save_CXXFLAGS"
6765 else
6766 # this is the suspicious part
6767 CXXFLAGS=''
6768 fi
6769 if test x"$ac_fdsections" = x"yes" &&
6770 test x"$enable_debug" = x"no"; then
6771 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6772 fi
6773 echo "$ac_t""$ac_fdsections" 1>&6
6774
6775 ac_ext=c
6776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6777 ac_cpp='$CPP $CPPFLAGS'
6778 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6779 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6780 cross_compiling=$ac_cv_prog_cc_cross
6781
6782
6783
6784
6785
6786 # If we're not using GNU ld, then there's no point in even trying these
6787 # tests. Check for that first. We should have already tested for gld
6788 # by now (in libtool), but require it now just to be safe...
6789 SECTION_LDFLAGS=''
6790 OPT_LDFLAGS=''
6791
6792
6793 # Set --gc-sections.
6794 if test "$ac_cv_prog_gnu_ld" = "notbroken"; then
6795 # GNU ld it is! Joy and bunny rabbits!
6796
6797 # All these tests are for C++; save the language and the compiler flags.
6798 # Need to do this so that g++ won't try to link in libstdc++
6799 ac_test_CFLAGS="${CFLAGS+set}"
6800 ac_save_CFLAGS="$CFLAGS"
6801 CFLAGS='-x c++ -Wl,--gc-sections'
6802
6803 # Check for -Wl,--gc-sections
6804 # XXX This test is broken at the moment, as symbols required for
6805 # linking are now in libsupc++ (not built yet.....). In addition,
6806 # this test has cored on solaris in the past. In addition,
6807 # --gc-sections doesn't really work at the moment (keeps on discarding
6808 # used sections, first .eh_frame and now some of the glibc sections for
6809 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6810 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6811 echo "configure:6812: checking for ld that supports -Wl,--gc-sections" >&5
6812 if test "$cross_compiling" = yes; then
6813 ac_sectionLDflags=yes
6814 else
6815 cat > conftest.$ac_ext <<EOF
6816 #line 6817 "configure"
6817 #include "confdefs.h"
6818
6819 int main(void)
6820 {
6821 try { throw 1; }
6822 catch (...) { };
6823 return 0;
6824 }
6825
6826 EOF
6827 if { (eval echo configure:6828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6828 then
6829 ac_sectionLDflags=yes
6830 else
6831 echo "configure: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6833 rm -fr conftest*
6834 ac_sectionLFflags=no
6835 fi
6836 rm -fr conftest*
6837 fi
6838
6839 if test "$ac_test_CFLAGS" = set; then
6840 CFLAGS="$ac_save_CFLAGS"
6841 else
6842 # this is the suspicious part
6843 CFLAGS=''
6844 fi
6845 if test "$ac_sectionLDflags" = "yes"; then
6846 SECTION_LDFLAGS='-Wl,--gc-sections'
6847 fi
6848 echo "$ac_t""$ac_sectionLDflags" 1>&6
6849 fi
6850
6851 # Set linker optimization flags.
6852 if test x"$ac_cv_prog_gnu_ld" = x"yes" &&
6853 test x"$enable_debug" = x"no"; then
6854 OPT_LDFLAGS='-Wl,-O1'
6855 fi
6856
6857
6858
6859
6860
6861
6862 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
6863 echo "configure:6864: checking for __builtin_abs declaration" >&5
6864 if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
6865 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
6866 echo $ac_n "(cached) $ac_c" 1>&6
6867 else
6868
6869
6870 ac_ext=C
6871 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6872 ac_cpp='$CXXCPP $CPPFLAGS'
6873 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6874 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6875 cross_compiling=$ac_cv_prog_cxx_cross
6876
6877 cat > conftest.$ac_ext <<EOF
6878 #line 6879 "configure"
6879 #include "confdefs.h"
6880 #include <math.h>
6881 int main() {
6882 __builtin_abs(0);
6883 ; return 0; }
6884 EOF
6885 if { (eval echo configure:6886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6886 rm -rf conftest*
6887 glibcpp_cv_func___builtin_abs_use=yes
6888 else
6889 echo "configure: failed program was:" >&5
6890 cat conftest.$ac_ext >&5
6891 rm -rf conftest*
6892 glibcpp_cv_func___builtin_abs_use=no
6893 fi
6894 rm -f conftest*
6895 ac_ext=c
6896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6897 ac_cpp='$CPP $CPPFLAGS'
6898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6900 cross_compiling=$ac_cv_prog_cc_cross
6901
6902
6903 fi
6904
6905 fi
6906 echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
6907 if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
6908 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
6909 echo "configure:6910: checking for __builtin_abs linkage" >&5
6910 if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
6911 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6913 else
6914
6915 cat > conftest.$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6918 #include <math.h>
6919 int main() {
6920 __builtin_abs(0);
6921 ; return 0; }
6922 EOF
6923 if { (eval echo configure:6924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6924 rm -rf conftest*
6925 glibcpp_cv_func___builtin_abs_link=yes
6926 else
6927 echo "configure: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6929 rm -rf conftest*
6930 glibcpp_cv_func___builtin_abs_link=no
6931 fi
6932 rm -f conftest*
6933
6934 fi
6935
6936 fi
6937 echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
6938 if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
6939 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6940 cat >> confdefs.h <<EOF
6941 #define ${ac_tr_func} 1
6942 EOF
6943
6944 fi
6945 fi
6946
6947
6948 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
6949 echo "configure:6950: checking for __builtin_fabsf declaration" >&5
6950 if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
6951 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
6952 echo $ac_n "(cached) $ac_c" 1>&6
6953 else
6954
6955
6956 ac_ext=C
6957 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6958 ac_cpp='$CXXCPP $CPPFLAGS'
6959 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6960 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6961 cross_compiling=$ac_cv_prog_cxx_cross
6962
6963 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure"
6965 #include "confdefs.h"
6966 #include <math.h>
6967 int main() {
6968 __builtin_fabsf(0);
6969 ; return 0; }
6970 EOF
6971 if { (eval echo configure:6972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6972 rm -rf conftest*
6973 glibcpp_cv_func___builtin_fabsf_use=yes
6974 else
6975 echo "configure: failed program was:" >&5
6976 cat conftest.$ac_ext >&5
6977 rm -rf conftest*
6978 glibcpp_cv_func___builtin_fabsf_use=no
6979 fi
6980 rm -f conftest*
6981 ac_ext=c
6982 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6983 ac_cpp='$CPP $CPPFLAGS'
6984 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6985 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6986 cross_compiling=$ac_cv_prog_cc_cross
6987
6988
6989 fi
6990
6991 fi
6992 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
6993 if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
6994 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
6995 echo "configure:6996: checking for __builtin_fabsf linkage" >&5
6996 if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
6997 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
6998 echo $ac_n "(cached) $ac_c" 1>&6
6999 else
7000
7001 cat > conftest.$ac_ext <<EOF
7002 #line 7003 "configure"
7003 #include "confdefs.h"
7004 #include <math.h>
7005 int main() {
7006 __builtin_fabsf(0);
7007 ; return 0; }
7008 EOF
7009 if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7010 rm -rf conftest*
7011 glibcpp_cv_func___builtin_fabsf_link=yes
7012 else
7013 echo "configure: failed program was:" >&5
7014 cat conftest.$ac_ext >&5
7015 rm -rf conftest*
7016 glibcpp_cv_func___builtin_fabsf_link=no
7017 fi
7018 rm -f conftest*
7019
7020 fi
7021
7022 fi
7023 echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
7024 if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
7025 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7026 cat >> confdefs.h <<EOF
7027 #define ${ac_tr_func} 1
7028 EOF
7029
7030 fi
7031 fi
7032
7033
7034 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
7035 echo "configure:7036: checking for __builtin_fabs declaration" >&5
7036 if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
7037 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
7038 echo $ac_n "(cached) $ac_c" 1>&6
7039 else
7040
7041
7042 ac_ext=C
7043 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7044 ac_cpp='$CXXCPP $CPPFLAGS'
7045 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7046 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7047 cross_compiling=$ac_cv_prog_cxx_cross
7048
7049 cat > conftest.$ac_ext <<EOF
7050 #line 7051 "configure"
7051 #include "confdefs.h"
7052 #include <math.h>
7053 int main() {
7054 __builtin_fabs(0);
7055 ; return 0; }
7056 EOF
7057 if { (eval echo configure:7058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7058 rm -rf conftest*
7059 glibcpp_cv_func___builtin_fabs_use=yes
7060 else
7061 echo "configure: failed program was:" >&5
7062 cat conftest.$ac_ext >&5
7063 rm -rf conftest*
7064 glibcpp_cv_func___builtin_fabs_use=no
7065 fi
7066 rm -f conftest*
7067 ac_ext=c
7068 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7069 ac_cpp='$CPP $CPPFLAGS'
7070 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7071 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7072 cross_compiling=$ac_cv_prog_cc_cross
7073
7074
7075 fi
7076
7077 fi
7078 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
7079 if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
7080 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
7081 echo "configure:7082: checking for __builtin_fabs linkage" >&5
7082 if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
7083 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
7084 echo $ac_n "(cached) $ac_c" 1>&6
7085 else
7086
7087 cat > conftest.$ac_ext <<EOF
7088 #line 7089 "configure"
7089 #include "confdefs.h"
7090 #include <math.h>
7091 int main() {
7092 __builtin_fabs(0);
7093 ; return 0; }
7094 EOF
7095 if { (eval echo configure:7096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7096 rm -rf conftest*
7097 glibcpp_cv_func___builtin_fabs_link=yes
7098 else
7099 echo "configure: failed program was:" >&5
7100 cat conftest.$ac_ext >&5
7101 rm -rf conftest*
7102 glibcpp_cv_func___builtin_fabs_link=no
7103 fi
7104 rm -f conftest*
7105
7106 fi
7107
7108 fi
7109 echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
7110 if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
7111 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7112 cat >> confdefs.h <<EOF
7113 #define ${ac_tr_func} 1
7114 EOF
7115
7116 fi
7117 fi
7118
7119
7120 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
7121 echo "configure:7122: checking for __builtin_fabsl declaration" >&5
7122 if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
7123 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
7124 echo $ac_n "(cached) $ac_c" 1>&6
7125 else
7126
7127
7128 ac_ext=C
7129 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7130 ac_cpp='$CXXCPP $CPPFLAGS'
7131 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7132 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7133 cross_compiling=$ac_cv_prog_cxx_cross
7134
7135 cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure"
7137 #include "confdefs.h"
7138 #include <math.h>
7139 int main() {
7140 __builtin_fabsl(0);
7141 ; return 0; }
7142 EOF
7143 if { (eval echo configure:7144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7144 rm -rf conftest*
7145 glibcpp_cv_func___builtin_fabsl_use=yes
7146 else
7147 echo "configure: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7149 rm -rf conftest*
7150 glibcpp_cv_func___builtin_fabsl_use=no
7151 fi
7152 rm -f conftest*
7153 ac_ext=c
7154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7155 ac_cpp='$CPP $CPPFLAGS'
7156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7158 cross_compiling=$ac_cv_prog_cc_cross
7159
7160
7161 fi
7162
7163 fi
7164 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
7165 if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
7166 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
7167 echo "configure:7168: checking for __builtin_fabsl linkage" >&5
7168 if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
7169 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
7170 echo $ac_n "(cached) $ac_c" 1>&6
7171 else
7172
7173 cat > conftest.$ac_ext <<EOF
7174 #line 7175 "configure"
7175 #include "confdefs.h"
7176 #include <math.h>
7177 int main() {
7178 __builtin_fabsl(0);
7179 ; return 0; }
7180 EOF
7181 if { (eval echo configure:7182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7182 rm -rf conftest*
7183 glibcpp_cv_func___builtin_fabsl_link=yes
7184 else
7185 echo "configure: failed program was:" >&5
7186 cat conftest.$ac_ext >&5
7187 rm -rf conftest*
7188 glibcpp_cv_func___builtin_fabsl_link=no
7189 fi
7190 rm -f conftest*
7191
7192 fi
7193
7194 fi
7195 echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
7196 if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
7197 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7198 cat >> confdefs.h <<EOF
7199 #define ${ac_tr_func} 1
7200 EOF
7201
7202 fi
7203 fi
7204
7205
7206 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
7207 echo "configure:7208: checking for __builtin_labs declaration" >&5
7208 if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
7209 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
7210 echo $ac_n "(cached) $ac_c" 1>&6
7211 else
7212
7213
7214 ac_ext=C
7215 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7216 ac_cpp='$CXXCPP $CPPFLAGS'
7217 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7218 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7219 cross_compiling=$ac_cv_prog_cxx_cross
7220
7221 cat > conftest.$ac_ext <<EOF
7222 #line 7223 "configure"
7223 #include "confdefs.h"
7224 #include <math.h>
7225 int main() {
7226 __builtin_labs(0);
7227 ; return 0; }
7228 EOF
7229 if { (eval echo configure:7230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7230 rm -rf conftest*
7231 glibcpp_cv_func___builtin_labs_use=yes
7232 else
7233 echo "configure: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7235 rm -rf conftest*
7236 glibcpp_cv_func___builtin_labs_use=no
7237 fi
7238 rm -f conftest*
7239 ac_ext=c
7240 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7241 ac_cpp='$CPP $CPPFLAGS'
7242 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7243 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7244 cross_compiling=$ac_cv_prog_cc_cross
7245
7246
7247 fi
7248
7249 fi
7250 echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
7251 if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
7252 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
7253 echo "configure:7254: checking for __builtin_labs linkage" >&5
7254 if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
7255 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
7256 echo $ac_n "(cached) $ac_c" 1>&6
7257 else
7258
7259 cat > conftest.$ac_ext <<EOF
7260 #line 7261 "configure"
7261 #include "confdefs.h"
7262 #include <math.h>
7263 int main() {
7264 __builtin_labs(0);
7265 ; return 0; }
7266 EOF
7267 if { (eval echo configure:7268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7268 rm -rf conftest*
7269 glibcpp_cv_func___builtin_labs_link=yes
7270 else
7271 echo "configure: failed program was:" >&5
7272 cat conftest.$ac_ext >&5
7273 rm -rf conftest*
7274 glibcpp_cv_func___builtin_labs_link=no
7275 fi
7276 rm -f conftest*
7277
7278 fi
7279
7280 fi
7281 echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
7282 if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
7283 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7284 cat >> confdefs.h <<EOF
7285 #define ${ac_tr_func} 1
7286 EOF
7287
7288 fi
7289 fi
7290
7291
7292
7293 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
7294 echo "configure:7295: checking for __builtin_sqrtf declaration" >&5
7295 if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
7296 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
7297 echo $ac_n "(cached) $ac_c" 1>&6
7298 else
7299
7300
7301 ac_ext=C
7302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7303 ac_cpp='$CXXCPP $CPPFLAGS'
7304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7306 cross_compiling=$ac_cv_prog_cxx_cross
7307
7308 cat > conftest.$ac_ext <<EOF
7309 #line 7310 "configure"
7310 #include "confdefs.h"
7311 #include <math.h>
7312 int main() {
7313 __builtin_sqrtf(0);
7314 ; return 0; }
7315 EOF
7316 if { (eval echo configure:7317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7317 rm -rf conftest*
7318 glibcpp_cv_func___builtin_sqrtf_use=yes
7319 else
7320 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7322 rm -rf conftest*
7323 glibcpp_cv_func___builtin_sqrtf_use=no
7324 fi
7325 rm -f conftest*
7326 ac_ext=c
7327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7328 ac_cpp='$CPP $CPPFLAGS'
7329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7331 cross_compiling=$ac_cv_prog_cc_cross
7332
7333
7334 fi
7335
7336 fi
7337 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
7338 if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
7339 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
7340 echo "configure:7341: checking for __builtin_sqrtf linkage" >&5
7341 if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
7342 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
7343 echo $ac_n "(cached) $ac_c" 1>&6
7344 else
7345
7346 cat > conftest.$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7349 #include <math.h>
7350 int main() {
7351 __builtin_sqrtf(0);
7352 ; return 0; }
7353 EOF
7354 if { (eval echo configure:7355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7355 rm -rf conftest*
7356 glibcpp_cv_func___builtin_sqrtf_link=yes
7357 else
7358 echo "configure: failed program was:" >&5
7359 cat conftest.$ac_ext >&5
7360 rm -rf conftest*
7361 glibcpp_cv_func___builtin_sqrtf_link=no
7362 fi
7363 rm -f conftest*
7364
7365 fi
7366
7367 fi
7368 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
7369 if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
7370 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7371 cat >> confdefs.h <<EOF
7372 #define ${ac_tr_func} 1
7373 EOF
7374
7375 fi
7376 fi
7377
7378
7379 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
7380 echo "configure:7381: checking for __builtin_sqrt declaration" >&5
7381 if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
7382 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
7383 echo $ac_n "(cached) $ac_c" 1>&6
7384 else
7385
7386
7387 ac_ext=C
7388 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7389 ac_cpp='$CXXCPP $CPPFLAGS'
7390 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7391 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7392 cross_compiling=$ac_cv_prog_cxx_cross
7393
7394 cat > conftest.$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7397 #include <math.h>
7398 int main() {
7399 __builtin_sqrt(0);
7400 ; return 0; }
7401 EOF
7402 if { (eval echo configure:7403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7403 rm -rf conftest*
7404 glibcpp_cv_func___builtin_sqrt_use=yes
7405 else
7406 echo "configure: failed program was:" >&5
7407 cat conftest.$ac_ext >&5
7408 rm -rf conftest*
7409 glibcpp_cv_func___builtin_sqrt_use=no
7410 fi
7411 rm -f conftest*
7412 ac_ext=c
7413 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7414 ac_cpp='$CPP $CPPFLAGS'
7415 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7416 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7417 cross_compiling=$ac_cv_prog_cc_cross
7418
7419
7420 fi
7421
7422 fi
7423 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
7424 if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
7425 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
7426 echo "configure:7427: checking for __builtin_sqrt linkage" >&5
7427 if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
7428 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
7429 echo $ac_n "(cached) $ac_c" 1>&6
7430 else
7431
7432 cat > conftest.$ac_ext <<EOF
7433 #line 7434 "configure"
7434 #include "confdefs.h"
7435 #include <math.h>
7436 int main() {
7437 __builtin_sqrt(0);
7438 ; return 0; }
7439 EOF
7440 if { (eval echo configure:7441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7441 rm -rf conftest*
7442 glibcpp_cv_func___builtin_sqrt_link=yes
7443 else
7444 echo "configure: failed program was:" >&5
7445 cat conftest.$ac_ext >&5
7446 rm -rf conftest*
7447 glibcpp_cv_func___builtin_sqrt_link=no
7448 fi
7449 rm -f conftest*
7450
7451 fi
7452
7453 fi
7454 echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
7455 if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
7456 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7457 cat >> confdefs.h <<EOF
7458 #define ${ac_tr_func} 1
7459 EOF
7460
7461 fi
7462 fi
7463
7464
7465 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
7466 echo "configure:7467: checking for __builtin_sqrtl declaration" >&5
7467 if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
7468 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6
7470 else
7471
7472
7473 ac_ext=C
7474 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7475 ac_cpp='$CXXCPP $CPPFLAGS'
7476 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7477 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7478 cross_compiling=$ac_cv_prog_cxx_cross
7479
7480 cat > conftest.$ac_ext <<EOF
7481 #line 7482 "configure"
7482 #include "confdefs.h"
7483 #include <math.h>
7484 int main() {
7485 __builtin_sqrtl(0);
7486 ; return 0; }
7487 EOF
7488 if { (eval echo configure:7489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7489 rm -rf conftest*
7490 glibcpp_cv_func___builtin_sqrtl_use=yes
7491 else
7492 echo "configure: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7494 rm -rf conftest*
7495 glibcpp_cv_func___builtin_sqrtl_use=no
7496 fi
7497 rm -f conftest*
7498 ac_ext=c
7499 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7500 ac_cpp='$CPP $CPPFLAGS'
7501 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7502 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7503 cross_compiling=$ac_cv_prog_cc_cross
7504
7505
7506 fi
7507
7508 fi
7509 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
7510 if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
7511 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
7512 echo "configure:7513: checking for __builtin_sqrtl linkage" >&5
7513 if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
7514 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
7515 echo $ac_n "(cached) $ac_c" 1>&6
7516 else
7517
7518 cat > conftest.$ac_ext <<EOF
7519 #line 7520 "configure"
7520 #include "confdefs.h"
7521 #include <math.h>
7522 int main() {
7523 __builtin_sqrtl(0);
7524 ; return 0; }
7525 EOF
7526 if { (eval echo configure:7527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7527 rm -rf conftest*
7528 glibcpp_cv_func___builtin_sqrtl_link=yes
7529 else
7530 echo "configure: failed program was:" >&5
7531 cat conftest.$ac_ext >&5
7532 rm -rf conftest*
7533 glibcpp_cv_func___builtin_sqrtl_link=no
7534 fi
7535 rm -f conftest*
7536
7537 fi
7538
7539 fi
7540 echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
7541 if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
7542 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7543 cat >> confdefs.h <<EOF
7544 #define ${ac_tr_func} 1
7545 EOF
7546
7547 fi
7548 fi
7549
7550
7551
7552 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
7553 echo "configure:7554: checking for __builtin_sinf declaration" >&5
7554 if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
7555 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7557 else
7558
7559
7560 ac_ext=C
7561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7562 ac_cpp='$CXXCPP $CPPFLAGS'
7563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7565 cross_compiling=$ac_cv_prog_cxx_cross
7566
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7570 #include <math.h>
7571 int main() {
7572 __builtin_sinf(0);
7573 ; return 0; }
7574 EOF
7575 if { (eval echo configure:7576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7576 rm -rf conftest*
7577 glibcpp_cv_func___builtin_sinf_use=yes
7578 else
7579 echo "configure: failed program was:" >&5
7580 cat conftest.$ac_ext >&5
7581 rm -rf conftest*
7582 glibcpp_cv_func___builtin_sinf_use=no
7583 fi
7584 rm -f conftest*
7585 ac_ext=c
7586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7587 ac_cpp='$CPP $CPPFLAGS'
7588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7590 cross_compiling=$ac_cv_prog_cc_cross
7591
7592
7593 fi
7594
7595 fi
7596 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
7597 if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
7598 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
7599 echo "configure:7600: checking for __builtin_sinf linkage" >&5
7600 if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
7601 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
7602 echo $ac_n "(cached) $ac_c" 1>&6
7603 else
7604
7605 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7608 #include <math.h>
7609 int main() {
7610 __builtin_sinf(0);
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 glibcpp_cv_func___builtin_sinf_link=yes
7616 else
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7619 rm -rf conftest*
7620 glibcpp_cv_func___builtin_sinf_link=no
7621 fi
7622 rm -f conftest*
7623
7624 fi
7625
7626 fi
7627 echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
7628 if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
7629 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7630 cat >> confdefs.h <<EOF
7631 #define ${ac_tr_func} 1
7632 EOF
7633
7634 fi
7635 fi
7636
7637
7638 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
7639 echo "configure:7640: checking for __builtin_sin declaration" >&5
7640 if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
7641 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7643 else
7644
7645
7646 ac_ext=C
7647 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7648 ac_cpp='$CXXCPP $CPPFLAGS'
7649 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7650 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7651 cross_compiling=$ac_cv_prog_cxx_cross
7652
7653 cat > conftest.$ac_ext <<EOF
7654 #line 7655 "configure"
7655 #include "confdefs.h"
7656 #include <math.h>
7657 int main() {
7658 __builtin_sin(0);
7659 ; return 0; }
7660 EOF
7661 if { (eval echo configure:7662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7662 rm -rf conftest*
7663 glibcpp_cv_func___builtin_sin_use=yes
7664 else
7665 echo "configure: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7667 rm -rf conftest*
7668 glibcpp_cv_func___builtin_sin_use=no
7669 fi
7670 rm -f conftest*
7671 ac_ext=c
7672 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7673 ac_cpp='$CPP $CPPFLAGS'
7674 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7675 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7676 cross_compiling=$ac_cv_prog_cc_cross
7677
7678
7679 fi
7680
7681 fi
7682 echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
7683 if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
7684 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
7685 echo "configure:7686: checking for __builtin_sin linkage" >&5
7686 if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
7687 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
7688 echo $ac_n "(cached) $ac_c" 1>&6
7689 else
7690
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 #include <math.h>
7695 int main() {
7696 __builtin_sin(0);
7697 ; return 0; }
7698 EOF
7699 if { (eval echo configure:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7700 rm -rf conftest*
7701 glibcpp_cv_func___builtin_sin_link=yes
7702 else
7703 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7705 rm -rf conftest*
7706 glibcpp_cv_func___builtin_sin_link=no
7707 fi
7708 rm -f conftest*
7709
7710 fi
7711
7712 fi
7713 echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
7714 if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
7715 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7716 cat >> confdefs.h <<EOF
7717 #define ${ac_tr_func} 1
7718 EOF
7719
7720 fi
7721 fi
7722
7723
7724 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
7725 echo "configure:7726: checking for __builtin_sinl declaration" >&5
7726 if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
7727 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7729 else
7730
7731
7732 ac_ext=C
7733 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7734 ac_cpp='$CXXCPP $CPPFLAGS'
7735 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7736 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7737 cross_compiling=$ac_cv_prog_cxx_cross
7738
7739 cat > conftest.$ac_ext <<EOF
7740 #line 7741 "configure"
7741 #include "confdefs.h"
7742 #include <math.h>
7743 int main() {
7744 __builtin_sinl(0);
7745 ; return 0; }
7746 EOF
7747 if { (eval echo configure:7748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7748 rm -rf conftest*
7749 glibcpp_cv_func___builtin_sinl_use=yes
7750 else
7751 echo "configure: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7753 rm -rf conftest*
7754 glibcpp_cv_func___builtin_sinl_use=no
7755 fi
7756 rm -f conftest*
7757 ac_ext=c
7758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7762 cross_compiling=$ac_cv_prog_cc_cross
7763
7764
7765 fi
7766
7767 fi
7768 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
7769 if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
7770 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
7771 echo "configure:7772: checking for __builtin_sinl linkage" >&5
7772 if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
7773 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7775 else
7776
7777 cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 #include <math.h>
7781 int main() {
7782 __builtin_sinl(0);
7783 ; return 0; }
7784 EOF
7785 if { (eval echo configure:7786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7786 rm -rf conftest*
7787 glibcpp_cv_func___builtin_sinl_link=yes
7788 else
7789 echo "configure: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7791 rm -rf conftest*
7792 glibcpp_cv_func___builtin_sinl_link=no
7793 fi
7794 rm -f conftest*
7795
7796 fi
7797
7798 fi
7799 echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
7800 if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
7801 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7802 cat >> confdefs.h <<EOF
7803 #define ${ac_tr_func} 1
7804 EOF
7805
7806 fi
7807 fi
7808
7809
7810
7811 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
7812 echo "configure:7813: checking for __builtin_cosf declaration" >&5
7813 if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
7814 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
7815 echo $ac_n "(cached) $ac_c" 1>&6
7816 else
7817
7818
7819 ac_ext=C
7820 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7821 ac_cpp='$CXXCPP $CPPFLAGS'
7822 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7823 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7824 cross_compiling=$ac_cv_prog_cxx_cross
7825
7826 cat > conftest.$ac_ext <<EOF
7827 #line 7828 "configure"
7828 #include "confdefs.h"
7829 #include <math.h>
7830 int main() {
7831 __builtin_cosf(0);
7832 ; return 0; }
7833 EOF
7834 if { (eval echo configure:7835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7835 rm -rf conftest*
7836 glibcpp_cv_func___builtin_cosf_use=yes
7837 else
7838 echo "configure: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7840 rm -rf conftest*
7841 glibcpp_cv_func___builtin_cosf_use=no
7842 fi
7843 rm -f conftest*
7844 ac_ext=c
7845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7849 cross_compiling=$ac_cv_prog_cc_cross
7850
7851
7852 fi
7853
7854 fi
7855 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
7856 if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
7857 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
7858 echo "configure:7859: checking for __builtin_cosf linkage" >&5
7859 if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
7860 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7862 else
7863
7864 cat > conftest.$ac_ext <<EOF
7865 #line 7866 "configure"
7866 #include "confdefs.h"
7867 #include <math.h>
7868 int main() {
7869 __builtin_cosf(0);
7870 ; return 0; }
7871 EOF
7872 if { (eval echo configure:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7873 rm -rf conftest*
7874 glibcpp_cv_func___builtin_cosf_link=yes
7875 else
7876 echo "configure: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7878 rm -rf conftest*
7879 glibcpp_cv_func___builtin_cosf_link=no
7880 fi
7881 rm -f conftest*
7882
7883 fi
7884
7885 fi
7886 echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
7887 if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
7888 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7889 cat >> confdefs.h <<EOF
7890 #define ${ac_tr_func} 1
7891 EOF
7892
7893 fi
7894 fi
7895
7896
7897 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
7898 echo "configure:7899: checking for __builtin_cos declaration" >&5
7899 if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
7900 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
7901 echo $ac_n "(cached) $ac_c" 1>&6
7902 else
7903
7904
7905 ac_ext=C
7906 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7907 ac_cpp='$CXXCPP $CPPFLAGS'
7908 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7909 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7910 cross_compiling=$ac_cv_prog_cxx_cross
7911
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7915 #include <math.h>
7916 int main() {
7917 __builtin_cos(0);
7918 ; return 0; }
7919 EOF
7920 if { (eval echo configure:7921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7921 rm -rf conftest*
7922 glibcpp_cv_func___builtin_cos_use=yes
7923 else
7924 echo "configure: failed program was:" >&5
7925 cat conftest.$ac_ext >&5
7926 rm -rf conftest*
7927 glibcpp_cv_func___builtin_cos_use=no
7928 fi
7929 rm -f conftest*
7930 ac_ext=c
7931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7935 cross_compiling=$ac_cv_prog_cc_cross
7936
7937
7938 fi
7939
7940 fi
7941 echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
7942 if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
7943 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
7944 echo "configure:7945: checking for __builtin_cos linkage" >&5
7945 if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
7946 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
7947 echo $ac_n "(cached) $ac_c" 1>&6
7948 else
7949
7950 cat > conftest.$ac_ext <<EOF
7951 #line 7952 "configure"
7952 #include "confdefs.h"
7953 #include <math.h>
7954 int main() {
7955 __builtin_cos(0);
7956 ; return 0; }
7957 EOF
7958 if { (eval echo configure:7959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7959 rm -rf conftest*
7960 glibcpp_cv_func___builtin_cos_link=yes
7961 else
7962 echo "configure: failed program was:" >&5
7963 cat conftest.$ac_ext >&5
7964 rm -rf conftest*
7965 glibcpp_cv_func___builtin_cos_link=no
7966 fi
7967 rm -f conftest*
7968
7969 fi
7970
7971 fi
7972 echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
7973 if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
7974 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7975 cat >> confdefs.h <<EOF
7976 #define ${ac_tr_func} 1
7977 EOF
7978
7979 fi
7980 fi
7981
7982
7983 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
7984 echo "configure:7985: checking for __builtin_cosl declaration" >&5
7985 if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
7986 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
7987 echo $ac_n "(cached) $ac_c" 1>&6
7988 else
7989
7990
7991 ac_ext=C
7992 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7993 ac_cpp='$CXXCPP $CPPFLAGS'
7994 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7995 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7996 cross_compiling=$ac_cv_prog_cxx_cross
7997
7998 cat > conftest.$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8001 #include <math.h>
8002 int main() {
8003 __builtin_cosl(0);
8004 ; return 0; }
8005 EOF
8006 if { (eval echo configure:8007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8007 rm -rf conftest*
8008 glibcpp_cv_func___builtin_cosl_use=yes
8009 else
8010 echo "configure: failed program was:" >&5
8011 cat conftest.$ac_ext >&5
8012 rm -rf conftest*
8013 glibcpp_cv_func___builtin_cosl_use=no
8014 fi
8015 rm -f conftest*
8016 ac_ext=c
8017 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8018 ac_cpp='$CPP $CPPFLAGS'
8019 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8020 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8021 cross_compiling=$ac_cv_prog_cc_cross
8022
8023
8024 fi
8025
8026 fi
8027 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
8028 if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
8029 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
8030 echo "configure:8031: checking for __builtin_cosl linkage" >&5
8031 if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
8032 if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
8033 echo $ac_n "(cached) $ac_c" 1>&6
8034 else
8035
8036 cat > conftest.$ac_ext <<EOF
8037 #line 8038 "configure"
8038 #include "confdefs.h"
8039 #include <math.h>
8040 int main() {
8041 __builtin_cosl(0);
8042 ; return 0; }
8043 EOF
8044 if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8045 rm -rf conftest*
8046 glibcpp_cv_func___builtin_cosl_link=yes
8047 else
8048 echo "configure: failed program was:" >&5
8049 cat conftest.$ac_ext >&5
8050 rm -rf conftest*
8051 glibcpp_cv_func___builtin_cosl_link=no
8052 fi
8053 rm -f conftest*
8054
8055 fi
8056
8057 fi
8058 echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
8059 if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
8060 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8061 cat >> confdefs.h <<EOF
8062 #define ${ac_tr_func} 1
8063 EOF
8064
8065 fi
8066 fi
8067
8068
8069 dummyvar=no
8070 if test x$dummyvar = x"yes"; then
8071 cat >> confdefs.h <<\EOF
8072 #define HAVE___BUILTIN_ABS 1
8073 EOF
8074
8075 cat >> confdefs.h <<\EOF
8076 #define HAVE___BUILTIN_LABS 1
8077 EOF
8078
8079 cat >> confdefs.h <<\EOF
8080 #define HAVE___BUILTIN_COS 1
8081 EOF
8082
8083 cat >> confdefs.h <<\EOF
8084 #define HAVE___BUILTIN_COSF 1
8085 EOF
8086
8087 cat >> confdefs.h <<\EOF
8088 #define HAVE___BUILTIN_COSL 1
8089 EOF
8090
8091 cat >> confdefs.h <<\EOF
8092 #define HAVE___BUILTIN_FABS 1
8093 EOF
8094
8095 cat >> confdefs.h <<\EOF
8096 #define HAVE___BUILTIN_FABSF 1
8097 EOF
8098
8099 cat >> confdefs.h <<\EOF
8100 #define HAVE___BUILTIN_FABSL 1
8101 EOF
8102
8103 cat >> confdefs.h <<\EOF
8104 #define HAVE___BUILTIN_SIN 1
8105 EOF
8106
8107 cat >> confdefs.h <<\EOF
8108 #define HAVE___BUILTIN_SINF 1
8109 EOF
8110
8111 cat >> confdefs.h <<\EOF
8112 #define HAVE___BUILTIN_SINL 1
8113 EOF
8114
8115 cat >> confdefs.h <<\EOF
8116 #define HAVE___BUILTIN_SQRT 1
8117 EOF
8118
8119 cat >> confdefs.h <<\EOF
8120 #define HAVE___BUILTIN_SQRTF 1
8121 EOF
8122
8123 cat >> confdefs.h <<\EOF
8124 #define HAVE___BUILTIN_SQRTL 1
8125 EOF
8126
8127 fi
8128
8129
8130 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8131 ac_save_CXXFLAGS="$CXXFLAGS"
8132 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
8133
8134 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
8135 echo "configure:8136: checking for sin in -lm" >&5
8136 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
8137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8138 echo $ac_n "(cached) $ac_c" 1>&6
8139 else
8140 ac_save_LIBS="$LIBS"
8141 LIBS="-lm $LIBS"
8142 cat > conftest.$ac_ext <<EOF
8143 #line 8144 "configure"
8144 #include "confdefs.h"
8145 /* Override any gcc2 internal prototype to avoid an error. */
8146 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8148 char sin();
8149
8150 int main() {
8151 sin()
8152 ; return 0; }
8153 EOF
8154 if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8155 rm -rf conftest*
8156 eval "ac_cv_lib_$ac_lib_var=yes"
8157 else
8158 echo "configure: failed program was:" >&5
8159 cat conftest.$ac_ext >&5
8160 rm -rf conftest*
8161 eval "ac_cv_lib_$ac_lib_var=no"
8162 fi
8163 rm -f conftest*
8164 LIBS="$ac_save_LIBS"
8165
8166 fi
8167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8168 echo "$ac_t""yes" 1>&6
8169 libm="-lm"
8170 else
8171 echo "$ac_t""no" 1>&6
8172 fi
8173
8174 ac_save_LIBS="$LIBS"
8175 LIBS="$LIBS $libm"
8176
8177
8178
8179 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
8180 echo "configure:8181: checking for isinf declaration" >&5
8181 if test x${glibcpp_cv_func_isinf_use+set} != xset; then
8182 if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
8183 echo $ac_n "(cached) $ac_c" 1>&6
8184 else
8185
8186
8187 ac_ext=C
8188 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8189 ac_cpp='$CXXCPP $CPPFLAGS'
8190 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8191 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8192 cross_compiling=$ac_cv_prog_cxx_cross
8193
8194 cat > conftest.$ac_ext <<EOF
8195 #line 8196 "configure"
8196 #include "confdefs.h"
8197 #include <math.h>
8198 #ifdef HAVE_IEEEFP_H
8199 #include <ieeefp.h>
8200 #endif
8201
8202 int main() {
8203 isinf(0);
8204 ; return 0; }
8205 EOF
8206 if { (eval echo configure:8207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8207 rm -rf conftest*
8208 glibcpp_cv_func_isinf_use=yes
8209 else
8210 echo "configure: failed program was:" >&5
8211 cat conftest.$ac_ext >&5
8212 rm -rf conftest*
8213 glibcpp_cv_func_isinf_use=no
8214 fi
8215 rm -f conftest*
8216 ac_ext=c
8217 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8218 ac_cpp='$CPP $CPPFLAGS'
8219 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8220 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8221 cross_compiling=$ac_cv_prog_cc_cross
8222
8223
8224 fi
8225
8226 fi
8227 echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
8228
8229 if test x$glibcpp_cv_func_isinf_use = x"yes"; then
8230 for ac_func in isinf
8231 do
8232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8233 echo "configure:8234: checking for $ac_func" >&5
8234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8235 echo $ac_n "(cached) $ac_c" 1>&6
8236 else
8237 cat > conftest.$ac_ext <<EOF
8238 #line 8239 "configure"
8239 #include "confdefs.h"
8240 /* System header to define __stub macros and hopefully few prototypes,
8241 which can conflict with char $ac_func(); below. */
8242 #include <assert.h>
8243 /* Override any gcc2 internal prototype to avoid an error. */
8244 /* We use char because int might match the return type of a gcc2
8245 builtin and then its argument prototype would still apply. */
8246 char $ac_func();
8247
8248 int main() {
8249
8250 /* The GNU C library defines this for functions which it implements
8251 to always fail with ENOSYS. Some functions are actually named
8252 something starting with __ and the normal name is an alias. */
8253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8254 choke me
8255 #else
8256 $ac_func();
8257 #endif
8258
8259 ; return 0; }
8260 EOF
8261 if { (eval echo configure:8262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8262 rm -rf conftest*
8263 eval "ac_cv_func_$ac_func=yes"
8264 else
8265 echo "configure: failed program was:" >&5
8266 cat conftest.$ac_ext >&5
8267 rm -rf conftest*
8268 eval "ac_cv_func_$ac_func=no"
8269 fi
8270 rm -f conftest*
8271 fi
8272
8273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8274 echo "$ac_t""yes" 1>&6
8275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8276 cat >> confdefs.h <<EOF
8277 #define $ac_tr_func 1
8278 EOF
8279
8280 else
8281 echo "$ac_t""no" 1>&6
8282 fi
8283 done
8284
8285 else
8286
8287 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
8288 echo "configure:8289: checking for _isinf declaration" >&5
8289 if test x${glibcpp_cv_func__isinf_use+set} != xset; then
8290 if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
8291 echo $ac_n "(cached) $ac_c" 1>&6
8292 else
8293
8294
8295 ac_ext=C
8296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8297 ac_cpp='$CXXCPP $CPPFLAGS'
8298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8300 cross_compiling=$ac_cv_prog_cxx_cross
8301
8302 cat > conftest.$ac_ext <<EOF
8303 #line 8304 "configure"
8304 #include "confdefs.h"
8305 #include <math.h>
8306 #ifdef HAVE_IEEEFP_H
8307 #include <ieeefp.h>
8308 #endif
8309
8310 int main() {
8311 _isinf(0);
8312 ; return 0; }
8313 EOF
8314 if { (eval echo configure:8315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8315 rm -rf conftest*
8316 glibcpp_cv_func__isinf_use=yes
8317 else
8318 echo "configure: failed program was:" >&5
8319 cat conftest.$ac_ext >&5
8320 rm -rf conftest*
8321 glibcpp_cv_func__isinf_use=no
8322 fi
8323 rm -f conftest*
8324 ac_ext=c
8325 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8326 ac_cpp='$CPP $CPPFLAGS'
8327 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8328 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8329 cross_compiling=$ac_cv_prog_cc_cross
8330
8331
8332 fi
8333
8334 fi
8335 echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
8336
8337 if test x$glibcpp_cv_func__isinf_use = x"yes"; then
8338 for ac_func in _isinf
8339 do
8340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8341 echo "configure:8342: checking for $ac_func" >&5
8342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8343 echo $ac_n "(cached) $ac_c" 1>&6
8344 else
8345 cat > conftest.$ac_ext <<EOF
8346 #line 8347 "configure"
8347 #include "confdefs.h"
8348 /* System header to define __stub macros and hopefully few prototypes,
8349 which can conflict with char $ac_func(); below. */
8350 #include <assert.h>
8351 /* Override any gcc2 internal prototype to avoid an error. */
8352 /* We use char because int might match the return type of a gcc2
8353 builtin and then its argument prototype would still apply. */
8354 char $ac_func();
8355
8356 int main() {
8357
8358 /* The GNU C library defines this for functions which it implements
8359 to always fail with ENOSYS. Some functions are actually named
8360 something starting with __ and the normal name is an alias. */
8361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8362 choke me
8363 #else
8364 $ac_func();
8365 #endif
8366
8367 ; return 0; }
8368 EOF
8369 if { (eval echo configure:8370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8370 rm -rf conftest*
8371 eval "ac_cv_func_$ac_func=yes"
8372 else
8373 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8375 rm -rf conftest*
8376 eval "ac_cv_func_$ac_func=no"
8377 fi
8378 rm -f conftest*
8379 fi
8380
8381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8382 echo "$ac_t""yes" 1>&6
8383 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8384 cat >> confdefs.h <<EOF
8385 #define $ac_tr_func 1
8386 EOF
8387
8388 else
8389 echo "$ac_t""no" 1>&6
8390 fi
8391 done
8392
8393 fi
8394 fi
8395
8396
8397
8398 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
8399 echo "configure:8400: checking for isnan declaration" >&5
8400 if test x${glibcpp_cv_func_isnan_use+set} != xset; then
8401 if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
8402 echo $ac_n "(cached) $ac_c" 1>&6
8403 else
8404
8405
8406 ac_ext=C
8407 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8408 ac_cpp='$CXXCPP $CPPFLAGS'
8409 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8410 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8411 cross_compiling=$ac_cv_prog_cxx_cross
8412
8413 cat > conftest.$ac_ext <<EOF
8414 #line 8415 "configure"
8415 #include "confdefs.h"
8416 #include <math.h>
8417 #ifdef HAVE_IEEEFP_H
8418 #include <ieeefp.h>
8419 #endif
8420
8421 int main() {
8422 isnan(0);
8423 ; return 0; }
8424 EOF
8425 if { (eval echo configure:8426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8426 rm -rf conftest*
8427 glibcpp_cv_func_isnan_use=yes
8428 else
8429 echo "configure: failed program was:" >&5
8430 cat conftest.$ac_ext >&5
8431 rm -rf conftest*
8432 glibcpp_cv_func_isnan_use=no
8433 fi
8434 rm -f conftest*
8435 ac_ext=c
8436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8437 ac_cpp='$CPP $CPPFLAGS'
8438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8440 cross_compiling=$ac_cv_prog_cc_cross
8441
8442
8443 fi
8444
8445 fi
8446 echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
8447
8448 if test x$glibcpp_cv_func_isnan_use = x"yes"; then
8449 for ac_func in isnan
8450 do
8451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8452 echo "configure:8453: checking for $ac_func" >&5
8453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8454 echo $ac_n "(cached) $ac_c" 1>&6
8455 else
8456 cat > conftest.$ac_ext <<EOF
8457 #line 8458 "configure"
8458 #include "confdefs.h"
8459 /* System header to define __stub macros and hopefully few prototypes,
8460 which can conflict with char $ac_func(); below. */
8461 #include <assert.h>
8462 /* Override any gcc2 internal prototype to avoid an error. */
8463 /* We use char because int might match the return type of a gcc2
8464 builtin and then its argument prototype would still apply. */
8465 char $ac_func();
8466
8467 int main() {
8468
8469 /* The GNU C library defines this for functions which it implements
8470 to always fail with ENOSYS. Some functions are actually named
8471 something starting with __ and the normal name is an alias. */
8472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8473 choke me
8474 #else
8475 $ac_func();
8476 #endif
8477
8478 ; return 0; }
8479 EOF
8480 if { (eval echo configure:8481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8481 rm -rf conftest*
8482 eval "ac_cv_func_$ac_func=yes"
8483 else
8484 echo "configure: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8486 rm -rf conftest*
8487 eval "ac_cv_func_$ac_func=no"
8488 fi
8489 rm -f conftest*
8490 fi
8491
8492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8493 echo "$ac_t""yes" 1>&6
8494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8495 cat >> confdefs.h <<EOF
8496 #define $ac_tr_func 1
8497 EOF
8498
8499 else
8500 echo "$ac_t""no" 1>&6
8501 fi
8502 done
8503
8504 else
8505
8506 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
8507 echo "configure:8508: checking for _isnan declaration" >&5
8508 if test x${glibcpp_cv_func__isnan_use+set} != xset; then
8509 if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
8510 echo $ac_n "(cached) $ac_c" 1>&6
8511 else
8512
8513
8514 ac_ext=C
8515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8516 ac_cpp='$CXXCPP $CPPFLAGS'
8517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8519 cross_compiling=$ac_cv_prog_cxx_cross
8520
8521 cat > conftest.$ac_ext <<EOF
8522 #line 8523 "configure"
8523 #include "confdefs.h"
8524 #include <math.h>
8525 #ifdef HAVE_IEEEFP_H
8526 #include <ieeefp.h>
8527 #endif
8528
8529 int main() {
8530 _isnan(0);
8531 ; return 0; }
8532 EOF
8533 if { (eval echo configure:8534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8534 rm -rf conftest*
8535 glibcpp_cv_func__isnan_use=yes
8536 else
8537 echo "configure: failed program was:" >&5
8538 cat conftest.$ac_ext >&5
8539 rm -rf conftest*
8540 glibcpp_cv_func__isnan_use=no
8541 fi
8542 rm -f conftest*
8543 ac_ext=c
8544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8545 ac_cpp='$CPP $CPPFLAGS'
8546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8548 cross_compiling=$ac_cv_prog_cc_cross
8549
8550
8551 fi
8552
8553 fi
8554 echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
8555
8556 if test x$glibcpp_cv_func__isnan_use = x"yes"; then
8557 for ac_func in _isnan
8558 do
8559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8560 echo "configure:8561: checking for $ac_func" >&5
8561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8562 echo $ac_n "(cached) $ac_c" 1>&6
8563 else
8564 cat > conftest.$ac_ext <<EOF
8565 #line 8566 "configure"
8566 #include "confdefs.h"
8567 /* System header to define __stub macros and hopefully few prototypes,
8568 which can conflict with char $ac_func(); below. */
8569 #include <assert.h>
8570 /* Override any gcc2 internal prototype to avoid an error. */
8571 /* We use char because int might match the return type of a gcc2
8572 builtin and then its argument prototype would still apply. */
8573 char $ac_func();
8574
8575 int main() {
8576
8577 /* The GNU C library defines this for functions which it implements
8578 to always fail with ENOSYS. Some functions are actually named
8579 something starting with __ and the normal name is an alias. */
8580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8581 choke me
8582 #else
8583 $ac_func();
8584 #endif
8585
8586 ; return 0; }
8587 EOF
8588 if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8589 rm -rf conftest*
8590 eval "ac_cv_func_$ac_func=yes"
8591 else
8592 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8594 rm -rf conftest*
8595 eval "ac_cv_func_$ac_func=no"
8596 fi
8597 rm -f conftest*
8598 fi
8599
8600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8601 echo "$ac_t""yes" 1>&6
8602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8603 cat >> confdefs.h <<EOF
8604 #define $ac_tr_func 1
8605 EOF
8606
8607 else
8608 echo "$ac_t""no" 1>&6
8609 fi
8610 done
8611
8612 fi
8613 fi
8614
8615
8616
8617 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
8618 echo "configure:8619: checking for finite declaration" >&5
8619 if test x${glibcpp_cv_func_finite_use+set} != xset; then
8620 if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
8621 echo $ac_n "(cached) $ac_c" 1>&6
8622 else
8623
8624
8625 ac_ext=C
8626 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8627 ac_cpp='$CXXCPP $CPPFLAGS'
8628 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8629 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8630 cross_compiling=$ac_cv_prog_cxx_cross
8631
8632 cat > conftest.$ac_ext <<EOF
8633 #line 8634 "configure"
8634 #include "confdefs.h"
8635 #include <math.h>
8636 #ifdef HAVE_IEEEFP_H
8637 #include <ieeefp.h>
8638 #endif
8639
8640 int main() {
8641 finite(0);
8642 ; return 0; }
8643 EOF
8644 if { (eval echo configure:8645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8645 rm -rf conftest*
8646 glibcpp_cv_func_finite_use=yes
8647 else
8648 echo "configure: failed program was:" >&5
8649 cat conftest.$ac_ext >&5
8650 rm -rf conftest*
8651 glibcpp_cv_func_finite_use=no
8652 fi
8653 rm -f conftest*
8654 ac_ext=c
8655 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8656 ac_cpp='$CPP $CPPFLAGS'
8657 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8658 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8659 cross_compiling=$ac_cv_prog_cc_cross
8660
8661
8662 fi
8663
8664 fi
8665 echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
8666
8667 if test x$glibcpp_cv_func_finite_use = x"yes"; then
8668 for ac_func in finite
8669 do
8670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8671 echo "configure:8672: checking for $ac_func" >&5
8672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8673 echo $ac_n "(cached) $ac_c" 1>&6
8674 else
8675 cat > conftest.$ac_ext <<EOF
8676 #line 8677 "configure"
8677 #include "confdefs.h"
8678 /* System header to define __stub macros and hopefully few prototypes,
8679 which can conflict with char $ac_func(); below. */
8680 #include <assert.h>
8681 /* Override any gcc2 internal prototype to avoid an error. */
8682 /* We use char because int might match the return type of a gcc2
8683 builtin and then its argument prototype would still apply. */
8684 char $ac_func();
8685
8686 int main() {
8687
8688 /* The GNU C library defines this for functions which it implements
8689 to always fail with ENOSYS. Some functions are actually named
8690 something starting with __ and the normal name is an alias. */
8691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8692 choke me
8693 #else
8694 $ac_func();
8695 #endif
8696
8697 ; return 0; }
8698 EOF
8699 if { (eval echo configure:8700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8700 rm -rf conftest*
8701 eval "ac_cv_func_$ac_func=yes"
8702 else
8703 echo "configure: failed program was:" >&5
8704 cat conftest.$ac_ext >&5
8705 rm -rf conftest*
8706 eval "ac_cv_func_$ac_func=no"
8707 fi
8708 rm -f conftest*
8709 fi
8710
8711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8712 echo "$ac_t""yes" 1>&6
8713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8714 cat >> confdefs.h <<EOF
8715 #define $ac_tr_func 1
8716 EOF
8717
8718 else
8719 echo "$ac_t""no" 1>&6
8720 fi
8721 done
8722
8723 else
8724
8725 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
8726 echo "configure:8727: checking for _finite declaration" >&5
8727 if test x${glibcpp_cv_func__finite_use+set} != xset; then
8728 if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
8729 echo $ac_n "(cached) $ac_c" 1>&6
8730 else
8731
8732
8733 ac_ext=C
8734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8735 ac_cpp='$CXXCPP $CPPFLAGS'
8736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8738 cross_compiling=$ac_cv_prog_cxx_cross
8739
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8743 #include <math.h>
8744 #ifdef HAVE_IEEEFP_H
8745 #include <ieeefp.h>
8746 #endif
8747
8748 int main() {
8749 _finite(0);
8750 ; return 0; }
8751 EOF
8752 if { (eval echo configure:8753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8753 rm -rf conftest*
8754 glibcpp_cv_func__finite_use=yes
8755 else
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8758 rm -rf conftest*
8759 glibcpp_cv_func__finite_use=no
8760 fi
8761 rm -f conftest*
8762 ac_ext=c
8763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8764 ac_cpp='$CPP $CPPFLAGS'
8765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8767 cross_compiling=$ac_cv_prog_cc_cross
8768
8769
8770 fi
8771
8772 fi
8773 echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
8774
8775 if test x$glibcpp_cv_func__finite_use = x"yes"; then
8776 for ac_func in _finite
8777 do
8778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8779 echo "configure:8780: checking for $ac_func" >&5
8780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8782 else
8783 cat > conftest.$ac_ext <<EOF
8784 #line 8785 "configure"
8785 #include "confdefs.h"
8786 /* System header to define __stub macros and hopefully few prototypes,
8787 which can conflict with char $ac_func(); below. */
8788 #include <assert.h>
8789 /* Override any gcc2 internal prototype to avoid an error. */
8790 /* We use char because int might match the return type of a gcc2
8791 builtin and then its argument prototype would still apply. */
8792 char $ac_func();
8793
8794 int main() {
8795
8796 /* The GNU C library defines this for functions which it implements
8797 to always fail with ENOSYS. Some functions are actually named
8798 something starting with __ and the normal name is an alias. */
8799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8800 choke me
8801 #else
8802 $ac_func();
8803 #endif
8804
8805 ; return 0; }
8806 EOF
8807 if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8808 rm -rf conftest*
8809 eval "ac_cv_func_$ac_func=yes"
8810 else
8811 echo "configure: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8813 rm -rf conftest*
8814 eval "ac_cv_func_$ac_func=no"
8815 fi
8816 rm -f conftest*
8817 fi
8818
8819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8820 echo "$ac_t""yes" 1>&6
8821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8822 cat >> confdefs.h <<EOF
8823 #define $ac_tr_func 1
8824 EOF
8825
8826 else
8827 echo "$ac_t""no" 1>&6
8828 fi
8829 done
8830
8831 fi
8832 fi
8833
8834
8835
8836 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
8837 echo "configure:8838: checking for copysign declaration" >&5
8838 if test x${glibcpp_cv_func_copysign_use+set} != xset; then
8839 if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
8841 else
8842
8843
8844 ac_ext=C
8845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8846 ac_cpp='$CXXCPP $CPPFLAGS'
8847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8849 cross_compiling=$ac_cv_prog_cxx_cross
8850
8851 cat > conftest.$ac_ext <<EOF
8852 #line 8853 "configure"
8853 #include "confdefs.h"
8854 #include <math.h>
8855 int main() {
8856 copysign(0, 0);
8857 ; return 0; }
8858 EOF
8859 if { (eval echo configure:8860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8860 rm -rf conftest*
8861 glibcpp_cv_func_copysign_use=yes
8862 else
8863 echo "configure: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8865 rm -rf conftest*
8866 glibcpp_cv_func_copysign_use=no
8867 fi
8868 rm -f conftest*
8869 ac_ext=c
8870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8871 ac_cpp='$CPP $CPPFLAGS'
8872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8874 cross_compiling=$ac_cv_prog_cc_cross
8875
8876
8877 fi
8878
8879 fi
8880 echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
8881
8882 if test x$glibcpp_cv_func_copysign_use = x"yes"; then
8883 for ac_func in copysign
8884 do
8885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8886 echo "configure:8887: checking for $ac_func" >&5
8887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8888 echo $ac_n "(cached) $ac_c" 1>&6
8889 else
8890 cat > conftest.$ac_ext <<EOF
8891 #line 8892 "configure"
8892 #include "confdefs.h"
8893 /* System header to define __stub macros and hopefully few prototypes,
8894 which can conflict with char $ac_func(); below. */
8895 #include <assert.h>
8896 /* Override any gcc2 internal prototype to avoid an error. */
8897 /* We use char because int might match the return type of a gcc2
8898 builtin and then its argument prototype would still apply. */
8899 char $ac_func();
8900
8901 int main() {
8902
8903 /* The GNU C library defines this for functions which it implements
8904 to always fail with ENOSYS. Some functions are actually named
8905 something starting with __ and the normal name is an alias. */
8906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8907 choke me
8908 #else
8909 $ac_func();
8910 #endif
8911
8912 ; return 0; }
8913 EOF
8914 if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8915 rm -rf conftest*
8916 eval "ac_cv_func_$ac_func=yes"
8917 else
8918 echo "configure: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8920 rm -rf conftest*
8921 eval "ac_cv_func_$ac_func=no"
8922 fi
8923 rm -f conftest*
8924 fi
8925
8926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8927 echo "$ac_t""yes" 1>&6
8928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8929 cat >> confdefs.h <<EOF
8930 #define $ac_tr_func 1
8931 EOF
8932
8933 else
8934 echo "$ac_t""no" 1>&6
8935 fi
8936 done
8937
8938 else
8939
8940 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
8941 echo "configure:8942: checking for _copysign declaration" >&5
8942 if test x${glibcpp_cv_func__copysign_use+set} != xset; then
8943 if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
8944 echo $ac_n "(cached) $ac_c" 1>&6
8945 else
8946
8947
8948 ac_ext=C
8949 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8950 ac_cpp='$CXXCPP $CPPFLAGS'
8951 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8952 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8953 cross_compiling=$ac_cv_prog_cxx_cross
8954
8955 cat > conftest.$ac_ext <<EOF
8956 #line 8957 "configure"
8957 #include "confdefs.h"
8958 #include <math.h>
8959 int main() {
8960 _copysign(0, 0);
8961 ; return 0; }
8962 EOF
8963 if { (eval echo configure:8964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8964 rm -rf conftest*
8965 glibcpp_cv_func__copysign_use=yes
8966 else
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 rm -rf conftest*
8970 glibcpp_cv_func__copysign_use=no
8971 fi
8972 rm -f conftest*
8973 ac_ext=c
8974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8975 ac_cpp='$CPP $CPPFLAGS'
8976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8978 cross_compiling=$ac_cv_prog_cc_cross
8979
8980
8981 fi
8982
8983 fi
8984 echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
8985
8986 if test x$glibcpp_cv_func__copysign_use = x"yes"; then
8987 for ac_func in _copysign
8988 do
8989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8990 echo "configure:8991: checking for $ac_func" >&5
8991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8992 echo $ac_n "(cached) $ac_c" 1>&6
8993 else
8994 cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure"
8996 #include "confdefs.h"
8997 /* System header to define __stub macros and hopefully few prototypes,
8998 which can conflict with char $ac_func(); below. */
8999 #include <assert.h>
9000 /* Override any gcc2 internal prototype to avoid an error. */
9001 /* We use char because int might match the return type of a gcc2
9002 builtin and then its argument prototype would still apply. */
9003 char $ac_func();
9004
9005 int main() {
9006
9007 /* The GNU C library defines this for functions which it implements
9008 to always fail with ENOSYS. Some functions are actually named
9009 something starting with __ and the normal name is an alias. */
9010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9011 choke me
9012 #else
9013 $ac_func();
9014 #endif
9015
9016 ; return 0; }
9017 EOF
9018 if { (eval echo configure:9019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9019 rm -rf conftest*
9020 eval "ac_cv_func_$ac_func=yes"
9021 else
9022 echo "configure: failed program was:" >&5
9023 cat conftest.$ac_ext >&5
9024 rm -rf conftest*
9025 eval "ac_cv_func_$ac_func=no"
9026 fi
9027 rm -f conftest*
9028 fi
9029
9030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9031 echo "$ac_t""yes" 1>&6
9032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9033 cat >> confdefs.h <<EOF
9034 #define $ac_tr_func 1
9035 EOF
9036
9037 else
9038 echo "$ac_t""no" 1>&6
9039 fi
9040 done
9041
9042 fi
9043 fi
9044
9045
9046
9047 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
9048 echo "configure:9049: checking for sincos declaration" >&5
9049 if test x${glibcpp_cv_func_sincos_use+set} != xset; then
9050 if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
9051 echo $ac_n "(cached) $ac_c" 1>&6
9052 else
9053
9054
9055 ac_ext=C
9056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9057 ac_cpp='$CXXCPP $CPPFLAGS'
9058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9060 cross_compiling=$ac_cv_prog_cxx_cross
9061
9062 cat > conftest.$ac_ext <<EOF
9063 #line 9064 "configure"
9064 #include "confdefs.h"
9065 #include <math.h>
9066 int main() {
9067 sincos(0, 0, 0);
9068 ; return 0; }
9069 EOF
9070 if { (eval echo configure:9071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9071 rm -rf conftest*
9072 glibcpp_cv_func_sincos_use=yes
9073 else
9074 echo "configure: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9076 rm -rf conftest*
9077 glibcpp_cv_func_sincos_use=no
9078 fi
9079 rm -f conftest*
9080 ac_ext=c
9081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9082 ac_cpp='$CPP $CPPFLAGS'
9083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9085 cross_compiling=$ac_cv_prog_cc_cross
9086
9087
9088 fi
9089
9090 fi
9091 echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
9092
9093 if test x$glibcpp_cv_func_sincos_use = x"yes"; then
9094 for ac_func in sincos
9095 do
9096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9097 echo "configure:9098: checking for $ac_func" >&5
9098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9099 echo $ac_n "(cached) $ac_c" 1>&6
9100 else
9101 cat > conftest.$ac_ext <<EOF
9102 #line 9103 "configure"
9103 #include "confdefs.h"
9104 /* System header to define __stub macros and hopefully few prototypes,
9105 which can conflict with char $ac_func(); below. */
9106 #include <assert.h>
9107 /* Override any gcc2 internal prototype to avoid an error. */
9108 /* We use char because int might match the return type of a gcc2
9109 builtin and then its argument prototype would still apply. */
9110 char $ac_func();
9111
9112 int main() {
9113
9114 /* The GNU C library defines this for functions which it implements
9115 to always fail with ENOSYS. Some functions are actually named
9116 something starting with __ and the normal name is an alias. */
9117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9118 choke me
9119 #else
9120 $ac_func();
9121 #endif
9122
9123 ; return 0; }
9124 EOF
9125 if { (eval echo configure:9126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9126 rm -rf conftest*
9127 eval "ac_cv_func_$ac_func=yes"
9128 else
9129 echo "configure: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9131 rm -rf conftest*
9132 eval "ac_cv_func_$ac_func=no"
9133 fi
9134 rm -f conftest*
9135 fi
9136
9137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9138 echo "$ac_t""yes" 1>&6
9139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9140 cat >> confdefs.h <<EOF
9141 #define $ac_tr_func 1
9142 EOF
9143
9144 else
9145 echo "$ac_t""no" 1>&6
9146 fi
9147 done
9148
9149 else
9150
9151 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
9152 echo "configure:9153: checking for _sincos declaration" >&5
9153 if test x${glibcpp_cv_func__sincos_use+set} != xset; then
9154 if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
9155 echo $ac_n "(cached) $ac_c" 1>&6
9156 else
9157
9158
9159 ac_ext=C
9160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9161 ac_cpp='$CXXCPP $CPPFLAGS'
9162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9164 cross_compiling=$ac_cv_prog_cxx_cross
9165
9166 cat > conftest.$ac_ext <<EOF
9167 #line 9168 "configure"
9168 #include "confdefs.h"
9169 #include <math.h>
9170 int main() {
9171 _sincos(0, 0, 0);
9172 ; return 0; }
9173 EOF
9174 if { (eval echo configure:9175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9175 rm -rf conftest*
9176 glibcpp_cv_func__sincos_use=yes
9177 else
9178 echo "configure: failed program was:" >&5
9179 cat conftest.$ac_ext >&5
9180 rm -rf conftest*
9181 glibcpp_cv_func__sincos_use=no
9182 fi
9183 rm -f conftest*
9184 ac_ext=c
9185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9186 ac_cpp='$CPP $CPPFLAGS'
9187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9189 cross_compiling=$ac_cv_prog_cc_cross
9190
9191
9192 fi
9193
9194 fi
9195 echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
9196
9197 if test x$glibcpp_cv_func__sincos_use = x"yes"; then
9198 for ac_func in _sincos
9199 do
9200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9201 echo "configure:9202: checking for $ac_func" >&5
9202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9204 else
9205 cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9208 /* System header to define __stub macros and hopefully few prototypes,
9209 which can conflict with char $ac_func(); below. */
9210 #include <assert.h>
9211 /* Override any gcc2 internal prototype to avoid an error. */
9212 /* We use char because int might match the return type of a gcc2
9213 builtin and then its argument prototype would still apply. */
9214 char $ac_func();
9215
9216 int main() {
9217
9218 /* The GNU C library defines this for functions which it implements
9219 to always fail with ENOSYS. Some functions are actually named
9220 something starting with __ and the normal name is an alias. */
9221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9222 choke me
9223 #else
9224 $ac_func();
9225 #endif
9226
9227 ; return 0; }
9228 EOF
9229 if { (eval echo configure:9230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9230 rm -rf conftest*
9231 eval "ac_cv_func_$ac_func=yes"
9232 else
9233 echo "configure: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9235 rm -rf conftest*
9236 eval "ac_cv_func_$ac_func=no"
9237 fi
9238 rm -f conftest*
9239 fi
9240
9241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9242 echo "$ac_t""yes" 1>&6
9243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9244 cat >> confdefs.h <<EOF
9245 #define $ac_tr_func 1
9246 EOF
9247
9248 else
9249 echo "$ac_t""no" 1>&6
9250 fi
9251 done
9252
9253 fi
9254 fi
9255
9256
9257
9258 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
9259 echo "configure:9260: checking for fpclass declaration" >&5
9260 if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
9261 if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
9262 echo $ac_n "(cached) $ac_c" 1>&6
9263 else
9264
9265
9266 ac_ext=C
9267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9268 ac_cpp='$CXXCPP $CPPFLAGS'
9269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9271 cross_compiling=$ac_cv_prog_cxx_cross
9272
9273 cat > conftest.$ac_ext <<EOF
9274 #line 9275 "configure"
9275 #include "confdefs.h"
9276 #include <math.h>
9277 #ifdef HAVE_IEEEFP_H
9278 #include <ieeefp.h>
9279 #endif
9280
9281 int main() {
9282 fpclass(0);
9283 ; return 0; }
9284 EOF
9285 if { (eval echo configure:9286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9286 rm -rf conftest*
9287 glibcpp_cv_func_fpclass_use=yes
9288 else
9289 echo "configure: failed program was:" >&5
9290 cat conftest.$ac_ext >&5
9291 rm -rf conftest*
9292 glibcpp_cv_func_fpclass_use=no
9293 fi
9294 rm -f conftest*
9295 ac_ext=c
9296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9297 ac_cpp='$CPP $CPPFLAGS'
9298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9300 cross_compiling=$ac_cv_prog_cc_cross
9301
9302
9303 fi
9304
9305 fi
9306 echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
9307
9308 if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
9309 for ac_func in fpclass
9310 do
9311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9312 echo "configure:9313: checking for $ac_func" >&5
9313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9314 echo $ac_n "(cached) $ac_c" 1>&6
9315 else
9316 cat > conftest.$ac_ext <<EOF
9317 #line 9318 "configure"
9318 #include "confdefs.h"
9319 /* System header to define __stub macros and hopefully few prototypes,
9320 which can conflict with char $ac_func(); below. */
9321 #include <assert.h>
9322 /* Override any gcc2 internal prototype to avoid an error. */
9323 /* We use char because int might match the return type of a gcc2
9324 builtin and then its argument prototype would still apply. */
9325 char $ac_func();
9326
9327 int main() {
9328
9329 /* The GNU C library defines this for functions which it implements
9330 to always fail with ENOSYS. Some functions are actually named
9331 something starting with __ and the normal name is an alias. */
9332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9333 choke me
9334 #else
9335 $ac_func();
9336 #endif
9337
9338 ; return 0; }
9339 EOF
9340 if { (eval echo configure:9341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9341 rm -rf conftest*
9342 eval "ac_cv_func_$ac_func=yes"
9343 else
9344 echo "configure: failed program was:" >&5
9345 cat conftest.$ac_ext >&5
9346 rm -rf conftest*
9347 eval "ac_cv_func_$ac_func=no"
9348 fi
9349 rm -f conftest*
9350 fi
9351
9352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9353 echo "$ac_t""yes" 1>&6
9354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9355 cat >> confdefs.h <<EOF
9356 #define $ac_tr_func 1
9357 EOF
9358
9359 else
9360 echo "$ac_t""no" 1>&6
9361 fi
9362 done
9363
9364 else
9365
9366 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
9367 echo "configure:9368: checking for _fpclass declaration" >&5
9368 if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
9369 if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9371 else
9372
9373
9374 ac_ext=C
9375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9376 ac_cpp='$CXXCPP $CPPFLAGS'
9377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9379 cross_compiling=$ac_cv_prog_cxx_cross
9380
9381 cat > conftest.$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9384 #include <math.h>
9385 #ifdef HAVE_IEEEFP_H
9386 #include <ieeefp.h>
9387 #endif
9388
9389 int main() {
9390 _fpclass(0);
9391 ; return 0; }
9392 EOF
9393 if { (eval echo configure:9394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9394 rm -rf conftest*
9395 glibcpp_cv_func__fpclass_use=yes
9396 else
9397 echo "configure: failed program was:" >&5
9398 cat conftest.$ac_ext >&5
9399 rm -rf conftest*
9400 glibcpp_cv_func__fpclass_use=no
9401 fi
9402 rm -f conftest*
9403 ac_ext=c
9404 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9405 ac_cpp='$CPP $CPPFLAGS'
9406 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9407 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9408 cross_compiling=$ac_cv_prog_cc_cross
9409
9410
9411 fi
9412
9413 fi
9414 echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
9415
9416 if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
9417 for ac_func in _fpclass
9418 do
9419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9420 echo "configure:9421: checking for $ac_func" >&5
9421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9422 echo $ac_n "(cached) $ac_c" 1>&6
9423 else
9424 cat > conftest.$ac_ext <<EOF
9425 #line 9426 "configure"
9426 #include "confdefs.h"
9427 /* System header to define __stub macros and hopefully few prototypes,
9428 which can conflict with char $ac_func(); below. */
9429 #include <assert.h>
9430 /* Override any gcc2 internal prototype to avoid an error. */
9431 /* We use char because int might match the return type of a gcc2
9432 builtin and then its argument prototype would still apply. */
9433 char $ac_func();
9434
9435 int main() {
9436
9437 /* The GNU C library defines this for functions which it implements
9438 to always fail with ENOSYS. Some functions are actually named
9439 something starting with __ and the normal name is an alias. */
9440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9441 choke me
9442 #else
9443 $ac_func();
9444 #endif
9445
9446 ; return 0; }
9447 EOF
9448 if { (eval echo configure:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9449 rm -rf conftest*
9450 eval "ac_cv_func_$ac_func=yes"
9451 else
9452 echo "configure: failed program was:" >&5
9453 cat conftest.$ac_ext >&5
9454 rm -rf conftest*
9455 eval "ac_cv_func_$ac_func=no"
9456 fi
9457 rm -f conftest*
9458 fi
9459
9460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9461 echo "$ac_t""yes" 1>&6
9462 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9463 cat >> confdefs.h <<EOF
9464 #define $ac_tr_func 1
9465 EOF
9466
9467 else
9468 echo "$ac_t""no" 1>&6
9469 fi
9470 done
9471
9472 fi
9473 fi
9474
9475
9476
9477 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
9478 echo "configure:9479: checking for qfpclass declaration" >&5
9479 if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
9480 if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
9481 echo $ac_n "(cached) $ac_c" 1>&6
9482 else
9483
9484
9485 ac_ext=C
9486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9487 ac_cpp='$CXXCPP $CPPFLAGS'
9488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9490 cross_compiling=$ac_cv_prog_cxx_cross
9491
9492 cat > conftest.$ac_ext <<EOF
9493 #line 9494 "configure"
9494 #include "confdefs.h"
9495 #include <math.h>
9496 #ifdef HAVE_IEEEFP_H
9497 #include <ieeefp.h>
9498 #endif
9499
9500 int main() {
9501 qfpclass(0);
9502 ; return 0; }
9503 EOF
9504 if { (eval echo configure:9505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9505 rm -rf conftest*
9506 glibcpp_cv_func_qfpclass_use=yes
9507 else
9508 echo "configure: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9510 rm -rf conftest*
9511 glibcpp_cv_func_qfpclass_use=no
9512 fi
9513 rm -f conftest*
9514 ac_ext=c
9515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9516 ac_cpp='$CPP $CPPFLAGS'
9517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9519 cross_compiling=$ac_cv_prog_cc_cross
9520
9521
9522 fi
9523
9524 fi
9525 echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
9526
9527 if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
9528 for ac_func in qfpclass
9529 do
9530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9531 echo "configure:9532: checking for $ac_func" >&5
9532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9533 echo $ac_n "(cached) $ac_c" 1>&6
9534 else
9535 cat > conftest.$ac_ext <<EOF
9536 #line 9537 "configure"
9537 #include "confdefs.h"
9538 /* System header to define __stub macros and hopefully few prototypes,
9539 which can conflict with char $ac_func(); below. */
9540 #include <assert.h>
9541 /* Override any gcc2 internal prototype to avoid an error. */
9542 /* We use char because int might match the return type of a gcc2
9543 builtin and then its argument prototype would still apply. */
9544 char $ac_func();
9545
9546 int main() {
9547
9548 /* The GNU C library defines this for functions which it implements
9549 to always fail with ENOSYS. Some functions are actually named
9550 something starting with __ and the normal name is an alias. */
9551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9552 choke me
9553 #else
9554 $ac_func();
9555 #endif
9556
9557 ; return 0; }
9558 EOF
9559 if { (eval echo configure:9560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9560 rm -rf conftest*
9561 eval "ac_cv_func_$ac_func=yes"
9562 else
9563 echo "configure: failed program was:" >&5
9564 cat conftest.$ac_ext >&5
9565 rm -rf conftest*
9566 eval "ac_cv_func_$ac_func=no"
9567 fi
9568 rm -f conftest*
9569 fi
9570
9571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9572 echo "$ac_t""yes" 1>&6
9573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9574 cat >> confdefs.h <<EOF
9575 #define $ac_tr_func 1
9576 EOF
9577
9578 else
9579 echo "$ac_t""no" 1>&6
9580 fi
9581 done
9582
9583 else
9584
9585 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
9586 echo "configure:9587: checking for _qfpclass declaration" >&5
9587 if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
9588 if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
9589 echo $ac_n "(cached) $ac_c" 1>&6
9590 else
9591
9592
9593 ac_ext=C
9594 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9595 ac_cpp='$CXXCPP $CPPFLAGS'
9596 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9597 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9598 cross_compiling=$ac_cv_prog_cxx_cross
9599
9600 cat > conftest.$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9603 #include <math.h>
9604 #ifdef HAVE_IEEEFP_H
9605 #include <ieeefp.h>
9606 #endif
9607
9608 int main() {
9609 _qfpclass(0);
9610 ; return 0; }
9611 EOF
9612 if { (eval echo configure:9613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9613 rm -rf conftest*
9614 glibcpp_cv_func__qfpclass_use=yes
9615 else
9616 echo "configure: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9618 rm -rf conftest*
9619 glibcpp_cv_func__qfpclass_use=no
9620 fi
9621 rm -f conftest*
9622 ac_ext=c
9623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9624 ac_cpp='$CPP $CPPFLAGS'
9625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9627 cross_compiling=$ac_cv_prog_cc_cross
9628
9629
9630 fi
9631
9632 fi
9633 echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
9634
9635 if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
9636 for ac_func in _qfpclass
9637 do
9638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9639 echo "configure:9640: checking for $ac_func" >&5
9640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9641 echo $ac_n "(cached) $ac_c" 1>&6
9642 else
9643 cat > conftest.$ac_ext <<EOF
9644 #line 9645 "configure"
9645 #include "confdefs.h"
9646 /* System header to define __stub macros and hopefully few prototypes,
9647 which can conflict with char $ac_func(); below. */
9648 #include <assert.h>
9649 /* Override any gcc2 internal prototype to avoid an error. */
9650 /* We use char because int might match the return type of a gcc2
9651 builtin and then its argument prototype would still apply. */
9652 char $ac_func();
9653
9654 int main() {
9655
9656 /* The GNU C library defines this for functions which it implements
9657 to always fail with ENOSYS. Some functions are actually named
9658 something starting with __ and the normal name is an alias. */
9659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9660 choke me
9661 #else
9662 $ac_func();
9663 #endif
9664
9665 ; return 0; }
9666 EOF
9667 if { (eval echo configure:9668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9668 rm -rf conftest*
9669 eval "ac_cv_func_$ac_func=yes"
9670 else
9671 echo "configure: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9673 rm -rf conftest*
9674 eval "ac_cv_func_$ac_func=no"
9675 fi
9676 rm -f conftest*
9677 fi
9678
9679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9680 echo "$ac_t""yes" 1>&6
9681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9682 cat >> confdefs.h <<EOF
9683 #define $ac_tr_func 1
9684 EOF
9685
9686 else
9687 echo "$ac_t""no" 1>&6
9688 fi
9689 done
9690
9691 fi
9692 fi
9693
9694
9695
9696 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
9697 echo "configure:9698: checking for hypot declaration" >&5
9698 if test x${glibcpp_cv_func_hypot_use+set} != xset; then
9699 if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
9700 echo $ac_n "(cached) $ac_c" 1>&6
9701 else
9702
9703
9704 ac_ext=C
9705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9706 ac_cpp='$CXXCPP $CPPFLAGS'
9707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9709 cross_compiling=$ac_cv_prog_cxx_cross
9710
9711 cat > conftest.$ac_ext <<EOF
9712 #line 9713 "configure"
9713 #include "confdefs.h"
9714 #include <math.h>
9715 int main() {
9716 hypot(0, 0);
9717 ; return 0; }
9718 EOF
9719 if { (eval echo configure:9720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9720 rm -rf conftest*
9721 glibcpp_cv_func_hypot_use=yes
9722 else
9723 echo "configure: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9725 rm -rf conftest*
9726 glibcpp_cv_func_hypot_use=no
9727 fi
9728 rm -f conftest*
9729 ac_ext=c
9730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9731 ac_cpp='$CPP $CPPFLAGS'
9732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9734 cross_compiling=$ac_cv_prog_cc_cross
9735
9736
9737 fi
9738
9739 fi
9740 echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
9741
9742 if test x$glibcpp_cv_func_hypot_use = x"yes"; then
9743 for ac_func in hypot
9744 do
9745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9746 echo "configure:9747: checking for $ac_func" >&5
9747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9748 echo $ac_n "(cached) $ac_c" 1>&6
9749 else
9750 cat > conftest.$ac_ext <<EOF
9751 #line 9752 "configure"
9752 #include "confdefs.h"
9753 /* System header to define __stub macros and hopefully few prototypes,
9754 which can conflict with char $ac_func(); below. */
9755 #include <assert.h>
9756 /* Override any gcc2 internal prototype to avoid an error. */
9757 /* We use char because int might match the return type of a gcc2
9758 builtin and then its argument prototype would still apply. */
9759 char $ac_func();
9760
9761 int main() {
9762
9763 /* The GNU C library defines this for functions which it implements
9764 to always fail with ENOSYS. Some functions are actually named
9765 something starting with __ and the normal name is an alias. */
9766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9767 choke me
9768 #else
9769 $ac_func();
9770 #endif
9771
9772 ; return 0; }
9773 EOF
9774 if { (eval echo configure:9775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9775 rm -rf conftest*
9776 eval "ac_cv_func_$ac_func=yes"
9777 else
9778 echo "configure: failed program was:" >&5
9779 cat conftest.$ac_ext >&5
9780 rm -rf conftest*
9781 eval "ac_cv_func_$ac_func=no"
9782 fi
9783 rm -f conftest*
9784 fi
9785
9786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9787 echo "$ac_t""yes" 1>&6
9788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9789 cat >> confdefs.h <<EOF
9790 #define $ac_tr_func 1
9791 EOF
9792
9793 else
9794 echo "$ac_t""no" 1>&6
9795 fi
9796 done
9797
9798 else
9799
9800 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
9801 echo "configure:9802: checking for _hypot declaration" >&5
9802 if test x${glibcpp_cv_func__hypot_use+set} != xset; then
9803 if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9805 else
9806
9807
9808 ac_ext=C
9809 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9810 ac_cpp='$CXXCPP $CPPFLAGS'
9811 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9812 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9813 cross_compiling=$ac_cv_prog_cxx_cross
9814
9815 cat > conftest.$ac_ext <<EOF
9816 #line 9817 "configure"
9817 #include "confdefs.h"
9818 #include <math.h>
9819 int main() {
9820 _hypot(0, 0);
9821 ; return 0; }
9822 EOF
9823 if { (eval echo configure:9824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9824 rm -rf conftest*
9825 glibcpp_cv_func__hypot_use=yes
9826 else
9827 echo "configure: failed program was:" >&5
9828 cat conftest.$ac_ext >&5
9829 rm -rf conftest*
9830 glibcpp_cv_func__hypot_use=no
9831 fi
9832 rm -f conftest*
9833 ac_ext=c
9834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9835 ac_cpp='$CPP $CPPFLAGS'
9836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9838 cross_compiling=$ac_cv_prog_cc_cross
9839
9840
9841 fi
9842
9843 fi
9844 echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
9845
9846 if test x$glibcpp_cv_func__hypot_use = x"yes"; then
9847 for ac_func in _hypot
9848 do
9849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9850 echo "configure:9851: checking for $ac_func" >&5
9851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9853 else
9854 cat > conftest.$ac_ext <<EOF
9855 #line 9856 "configure"
9856 #include "confdefs.h"
9857 /* System header to define __stub macros and hopefully few prototypes,
9858 which can conflict with char $ac_func(); below. */
9859 #include <assert.h>
9860 /* Override any gcc2 internal prototype to avoid an error. */
9861 /* We use char because int might match the return type of a gcc2
9862 builtin and then its argument prototype would still apply. */
9863 char $ac_func();
9864
9865 int main() {
9866
9867 /* The GNU C library defines this for functions which it implements
9868 to always fail with ENOSYS. Some functions are actually named
9869 something starting with __ and the normal name is an alias. */
9870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9871 choke me
9872 #else
9873 $ac_func();
9874 #endif
9875
9876 ; return 0; }
9877 EOF
9878 if { (eval echo configure:9879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9879 rm -rf conftest*
9880 eval "ac_cv_func_$ac_func=yes"
9881 else
9882 echo "configure: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
9884 rm -rf conftest*
9885 eval "ac_cv_func_$ac_func=no"
9886 fi
9887 rm -f conftest*
9888 fi
9889
9890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9891 echo "$ac_t""yes" 1>&6
9892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9893 cat >> confdefs.h <<EOF
9894 #define $ac_tr_func 1
9895 EOF
9896
9897 else
9898 echo "$ac_t""no" 1>&6
9899 fi
9900 done
9901
9902 fi
9903 fi
9904
9905
9906
9907 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
9908 echo "configure:9909: checking for float trig functions" >&5
9909 if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
9910 echo $ac_n "(cached) $ac_c" 1>&6
9911 else
9912
9913
9914 ac_ext=C
9915 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9916 ac_cpp='$CXXCPP $CPPFLAGS'
9917 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9918 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9919 cross_compiling=$ac_cv_prog_cxx_cross
9920
9921 cat > conftest.$ac_ext <<EOF
9922 #line 9923 "configure"
9923 #include "confdefs.h"
9924 #include <math.h>
9925 int main() {
9926 `for x in acosf asinf atanf \
9927 cosf sinf tanf \
9928 coshf sinhf tanhf; do echo "$x (0);"; done`
9929 ; return 0; }
9930 EOF
9931 if { (eval echo configure:9932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9932 rm -rf conftest*
9933 glibcpp_cv_func_float_trig_use=yes
9934 else
9935 echo "configure: failed program was:" >&5
9936 cat conftest.$ac_ext >&5
9937 rm -rf conftest*
9938 glibcpp_cv_func_float_trig_use=no
9939 fi
9940 rm -f conftest*
9941 ac_ext=c
9942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9943 ac_cpp='$CPP $CPPFLAGS'
9944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9946 cross_compiling=$ac_cv_prog_cc_cross
9947
9948 fi
9949
9950 echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
9951 if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
9952 for ac_func in acosf asinf atanf \
9953 cosf sinf tanf \
9954 coshf sinhf tanhf
9955 do
9956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9957 echo "configure:9958: checking for $ac_func" >&5
9958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9959 echo $ac_n "(cached) $ac_c" 1>&6
9960 else
9961 cat > conftest.$ac_ext <<EOF
9962 #line 9963 "configure"
9963 #include "confdefs.h"
9964 /* System header to define __stub macros and hopefully few prototypes,
9965 which can conflict with char $ac_func(); below. */
9966 #include <assert.h>
9967 /* Override any gcc2 internal prototype to avoid an error. */
9968 /* We use char because int might match the return type of a gcc2
9969 builtin and then its argument prototype would still apply. */
9970 char $ac_func();
9971
9972 int main() {
9973
9974 /* The GNU C library defines this for functions which it implements
9975 to always fail with ENOSYS. Some functions are actually named
9976 something starting with __ and the normal name is an alias. */
9977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9978 choke me
9979 #else
9980 $ac_func();
9981 #endif
9982
9983 ; return 0; }
9984 EOF
9985 if { (eval echo configure:9986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9986 rm -rf conftest*
9987 eval "ac_cv_func_$ac_func=yes"
9988 else
9989 echo "configure: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9991 rm -rf conftest*
9992 eval "ac_cv_func_$ac_func=no"
9993 fi
9994 rm -f conftest*
9995 fi
9996
9997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9998 echo "$ac_t""yes" 1>&6
9999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10000 cat >> confdefs.h <<EOF
10001 #define $ac_tr_func 1
10002 EOF
10003
10004 else
10005 echo "$ac_t""no" 1>&6
10006 fi
10007 done
10008
10009 fi
10010
10011
10012 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
10013 echo "configure:10014: checking for float round functions" >&5
10014 if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
10015 echo $ac_n "(cached) $ac_c" 1>&6
10016 else
10017
10018
10019 ac_ext=C
10020 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10021 ac_cpp='$CXXCPP $CPPFLAGS'
10022 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10023 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10024 cross_compiling=$ac_cv_prog_cxx_cross
10025
10026 cat > conftest.$ac_ext <<EOF
10027 #line 10028 "configure"
10028 #include "confdefs.h"
10029 #include <math.h>
10030 int main() {
10031 `for x in ceilf floorf; do echo "$x (0);"; done`
10032 ; return 0; }
10033 EOF
10034 if { (eval echo configure:10035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10035 rm -rf conftest*
10036 glibcpp_cv_func_float_round_use=yes
10037 else
10038 echo "configure: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10040 rm -rf conftest*
10041 glibcpp_cv_func_float_round_use=no
10042 fi
10043 rm -f conftest*
10044 ac_ext=c
10045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10046 ac_cpp='$CPP $CPPFLAGS'
10047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10049 cross_compiling=$ac_cv_prog_cc_cross
10050
10051 fi
10052
10053 echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
10054 if test x$glibcpp_cv_func_float_round_use = x"yes"; then
10055 for ac_func in ceilf floorf
10056 do
10057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10058 echo "configure:10059: checking for $ac_func" >&5
10059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10060 echo $ac_n "(cached) $ac_c" 1>&6
10061 else
10062 cat > conftest.$ac_ext <<EOF
10063 #line 10064 "configure"
10064 #include "confdefs.h"
10065 /* System header to define __stub macros and hopefully few prototypes,
10066 which can conflict with char $ac_func(); below. */
10067 #include <assert.h>
10068 /* Override any gcc2 internal prototype to avoid an error. */
10069 /* We use char because int might match the return type of a gcc2
10070 builtin and then its argument prototype would still apply. */
10071 char $ac_func();
10072
10073 int main() {
10074
10075 /* The GNU C library defines this for functions which it implements
10076 to always fail with ENOSYS. Some functions are actually named
10077 something starting with __ and the normal name is an alias. */
10078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10079 choke me
10080 #else
10081 $ac_func();
10082 #endif
10083
10084 ; return 0; }
10085 EOF
10086 if { (eval echo configure:10087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10087 rm -rf conftest*
10088 eval "ac_cv_func_$ac_func=yes"
10089 else
10090 echo "configure: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10092 rm -rf conftest*
10093 eval "ac_cv_func_$ac_func=no"
10094 fi
10095 rm -f conftest*
10096 fi
10097
10098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10099 echo "$ac_t""yes" 1>&6
10100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10101 cat >> confdefs.h <<EOF
10102 #define $ac_tr_func 1
10103 EOF
10104
10105 else
10106 echo "$ac_t""no" 1>&6
10107 fi
10108 done
10109
10110 fi
10111
10112
10113
10114 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
10115 echo "configure:10116: checking for isnanf declaration" >&5
10116 if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
10117 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
10118 echo $ac_n "(cached) $ac_c" 1>&6
10119 else
10120
10121
10122 ac_ext=C
10123 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10124 ac_cpp='$CXXCPP $CPPFLAGS'
10125 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10126 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10127 cross_compiling=$ac_cv_prog_cxx_cross
10128
10129 cat > conftest.$ac_ext <<EOF
10130 #line 10131 "configure"
10131 #include "confdefs.h"
10132 #include <math.h>
10133 #ifdef HAVE_IEEEFP_H
10134 #include <ieeefp.h>
10135 #endif
10136
10137 int main() {
10138 isnanf(0);
10139 ; return 0; }
10140 EOF
10141 if { (eval echo configure:10142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10142 rm -rf conftest*
10143 glibcpp_cv_func_isnanf_use=yes
10144 else
10145 echo "configure: failed program was:" >&5
10146 cat conftest.$ac_ext >&5
10147 rm -rf conftest*
10148 glibcpp_cv_func_isnanf_use=no
10149 fi
10150 rm -f conftest*
10151 ac_ext=c
10152 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10153 ac_cpp='$CPP $CPPFLAGS'
10154 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10155 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10156 cross_compiling=$ac_cv_prog_cc_cross
10157
10158
10159 fi
10160
10161 fi
10162 echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
10163
10164 if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
10165 for ac_func in isnanf
10166 do
10167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10168 echo "configure:10169: checking for $ac_func" >&5
10169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10170 echo $ac_n "(cached) $ac_c" 1>&6
10171 else
10172 cat > conftest.$ac_ext <<EOF
10173 #line 10174 "configure"
10174 #include "confdefs.h"
10175 /* System header to define __stub macros and hopefully few prototypes,
10176 which can conflict with char $ac_func(); below. */
10177 #include <assert.h>
10178 /* Override any gcc2 internal prototype to avoid an error. */
10179 /* We use char because int might match the return type of a gcc2
10180 builtin and then its argument prototype would still apply. */
10181 char $ac_func();
10182
10183 int main() {
10184
10185 /* The GNU C library defines this for functions which it implements
10186 to always fail with ENOSYS. Some functions are actually named
10187 something starting with __ and the normal name is an alias. */
10188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10189 choke me
10190 #else
10191 $ac_func();
10192 #endif
10193
10194 ; return 0; }
10195 EOF
10196 if { (eval echo configure:10197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10197 rm -rf conftest*
10198 eval "ac_cv_func_$ac_func=yes"
10199 else
10200 echo "configure: failed program was:" >&5
10201 cat conftest.$ac_ext >&5
10202 rm -rf conftest*
10203 eval "ac_cv_func_$ac_func=no"
10204 fi
10205 rm -f conftest*
10206 fi
10207
10208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10209 echo "$ac_t""yes" 1>&6
10210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10211 cat >> confdefs.h <<EOF
10212 #define $ac_tr_func 1
10213 EOF
10214
10215 else
10216 echo "$ac_t""no" 1>&6
10217 fi
10218 done
10219
10220 else
10221
10222 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
10223 echo "configure:10224: checking for _isnanf declaration" >&5
10224 if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
10225 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10227 else
10228
10229
10230 ac_ext=C
10231 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10232 ac_cpp='$CXXCPP $CPPFLAGS'
10233 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10234 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10235 cross_compiling=$ac_cv_prog_cxx_cross
10236
10237 cat > conftest.$ac_ext <<EOF
10238 #line 10239 "configure"
10239 #include "confdefs.h"
10240 #include <math.h>
10241 #ifdef HAVE_IEEEFP_H
10242 #include <ieeefp.h>
10243 #endif
10244
10245 int main() {
10246 _isnanf(0);
10247 ; return 0; }
10248 EOF
10249 if { (eval echo configure:10250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10250 rm -rf conftest*
10251 glibcpp_cv_func__isnanf_use=yes
10252 else
10253 echo "configure: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10255 rm -rf conftest*
10256 glibcpp_cv_func__isnanf_use=no
10257 fi
10258 rm -f conftest*
10259 ac_ext=c
10260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10261 ac_cpp='$CPP $CPPFLAGS'
10262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10264 cross_compiling=$ac_cv_prog_cc_cross
10265
10266
10267 fi
10268
10269 fi
10270 echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
10271
10272 if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
10273 for ac_func in _isnanf
10274 do
10275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10276 echo "configure:10277: checking for $ac_func" >&5
10277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10278 echo $ac_n "(cached) $ac_c" 1>&6
10279 else
10280 cat > conftest.$ac_ext <<EOF
10281 #line 10282 "configure"
10282 #include "confdefs.h"
10283 /* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char $ac_func(); below. */
10285 #include <assert.h>
10286 /* Override any gcc2 internal prototype to avoid an error. */
10287 /* We use char because int might match the return type of a gcc2
10288 builtin and then its argument prototype would still apply. */
10289 char $ac_func();
10290
10291 int main() {
10292
10293 /* The GNU C library defines this for functions which it implements
10294 to always fail with ENOSYS. Some functions are actually named
10295 something starting with __ and the normal name is an alias. */
10296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10297 choke me
10298 #else
10299 $ac_func();
10300 #endif
10301
10302 ; return 0; }
10303 EOF
10304 if { (eval echo configure:10305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10305 rm -rf conftest*
10306 eval "ac_cv_func_$ac_func=yes"
10307 else
10308 echo "configure: failed program was:" >&5
10309 cat conftest.$ac_ext >&5
10310 rm -rf conftest*
10311 eval "ac_cv_func_$ac_func=no"
10312 fi
10313 rm -f conftest*
10314 fi
10315
10316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10317 echo "$ac_t""yes" 1>&6
10318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10319 cat >> confdefs.h <<EOF
10320 #define $ac_tr_func 1
10321 EOF
10322
10323 else
10324 echo "$ac_t""no" 1>&6
10325 fi
10326 done
10327
10328 fi
10329 fi
10330
10331
10332
10333 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
10334 echo "configure:10335: checking for isinff declaration" >&5
10335 if test x${glibcpp_cv_func_isinff_use+set} != xset; then
10336 if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10338 else
10339
10340
10341 ac_ext=C
10342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10343 ac_cpp='$CXXCPP $CPPFLAGS'
10344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10346 cross_compiling=$ac_cv_prog_cxx_cross
10347
10348 cat > conftest.$ac_ext <<EOF
10349 #line 10350 "configure"
10350 #include "confdefs.h"
10351 #include <math.h>
10352 #ifdef HAVE_IEEEFP_H
10353 #include <ieeefp.h>
10354 #endif
10355
10356 int main() {
10357 isinff(0);
10358 ; return 0; }
10359 EOF
10360 if { (eval echo configure:10361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10361 rm -rf conftest*
10362 glibcpp_cv_func_isinff_use=yes
10363 else
10364 echo "configure: failed program was:" >&5
10365 cat conftest.$ac_ext >&5
10366 rm -rf conftest*
10367 glibcpp_cv_func_isinff_use=no
10368 fi
10369 rm -f conftest*
10370 ac_ext=c
10371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10372 ac_cpp='$CPP $CPPFLAGS'
10373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10375 cross_compiling=$ac_cv_prog_cc_cross
10376
10377
10378 fi
10379
10380 fi
10381 echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
10382
10383 if test x$glibcpp_cv_func_isinff_use = x"yes"; then
10384 for ac_func in isinff
10385 do
10386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10387 echo "configure:10388: checking for $ac_func" >&5
10388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10389 echo $ac_n "(cached) $ac_c" 1>&6
10390 else
10391 cat > conftest.$ac_ext <<EOF
10392 #line 10393 "configure"
10393 #include "confdefs.h"
10394 /* System header to define __stub macros and hopefully few prototypes,
10395 which can conflict with char $ac_func(); below. */
10396 #include <assert.h>
10397 /* Override any gcc2 internal prototype to avoid an error. */
10398 /* We use char because int might match the return type of a gcc2
10399 builtin and then its argument prototype would still apply. */
10400 char $ac_func();
10401
10402 int main() {
10403
10404 /* The GNU C library defines this for functions which it implements
10405 to always fail with ENOSYS. Some functions are actually named
10406 something starting with __ and the normal name is an alias. */
10407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10408 choke me
10409 #else
10410 $ac_func();
10411 #endif
10412
10413 ; return 0; }
10414 EOF
10415 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10416 rm -rf conftest*
10417 eval "ac_cv_func_$ac_func=yes"
10418 else
10419 echo "configure: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10421 rm -rf conftest*
10422 eval "ac_cv_func_$ac_func=no"
10423 fi
10424 rm -f conftest*
10425 fi
10426
10427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10428 echo "$ac_t""yes" 1>&6
10429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10430 cat >> confdefs.h <<EOF
10431 #define $ac_tr_func 1
10432 EOF
10433
10434 else
10435 echo "$ac_t""no" 1>&6
10436 fi
10437 done
10438
10439 else
10440
10441 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
10442 echo "configure:10443: checking for _isinff declaration" >&5
10443 if test x${glibcpp_cv_func__isinff_use+set} != xset; then
10444 if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
10445 echo $ac_n "(cached) $ac_c" 1>&6
10446 else
10447
10448
10449 ac_ext=C
10450 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10451 ac_cpp='$CXXCPP $CPPFLAGS'
10452 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10453 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10454 cross_compiling=$ac_cv_prog_cxx_cross
10455
10456 cat > conftest.$ac_ext <<EOF
10457 #line 10458 "configure"
10458 #include "confdefs.h"
10459 #include <math.h>
10460 #ifdef HAVE_IEEEFP_H
10461 #include <ieeefp.h>
10462 #endif
10463
10464 int main() {
10465 _isinff(0);
10466 ; return 0; }
10467 EOF
10468 if { (eval echo configure:10469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10469 rm -rf conftest*
10470 glibcpp_cv_func__isinff_use=yes
10471 else
10472 echo "configure: failed program was:" >&5
10473 cat conftest.$ac_ext >&5
10474 rm -rf conftest*
10475 glibcpp_cv_func__isinff_use=no
10476 fi
10477 rm -f conftest*
10478 ac_ext=c
10479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10480 ac_cpp='$CPP $CPPFLAGS'
10481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10483 cross_compiling=$ac_cv_prog_cc_cross
10484
10485
10486 fi
10487
10488 fi
10489 echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
10490
10491 if test x$glibcpp_cv_func__isinff_use = x"yes"; then
10492 for ac_func in _isinff
10493 do
10494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10495 echo "configure:10496: checking for $ac_func" >&5
10496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10497 echo $ac_n "(cached) $ac_c" 1>&6
10498 else
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10502 /* System header to define __stub macros and hopefully few prototypes,
10503 which can conflict with char $ac_func(); below. */
10504 #include <assert.h>
10505 /* Override any gcc2 internal prototype to avoid an error. */
10506 /* We use char because int might match the return type of a gcc2
10507 builtin and then its argument prototype would still apply. */
10508 char $ac_func();
10509
10510 int main() {
10511
10512 /* The GNU C library defines this for functions which it implements
10513 to always fail with ENOSYS. Some functions are actually named
10514 something starting with __ and the normal name is an alias. */
10515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10516 choke me
10517 #else
10518 $ac_func();
10519 #endif
10520
10521 ; return 0; }
10522 EOF
10523 if { (eval echo configure:10524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10524 rm -rf conftest*
10525 eval "ac_cv_func_$ac_func=yes"
10526 else
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10529 rm -rf conftest*
10530 eval "ac_cv_func_$ac_func=no"
10531 fi
10532 rm -f conftest*
10533 fi
10534
10535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10536 echo "$ac_t""yes" 1>&6
10537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10538 cat >> confdefs.h <<EOF
10539 #define $ac_tr_func 1
10540 EOF
10541
10542 else
10543 echo "$ac_t""no" 1>&6
10544 fi
10545 done
10546
10547 fi
10548 fi
10549
10550
10551
10552 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
10553 echo "configure:10554: checking for atan2f declaration" >&5
10554 if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
10555 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
10556 echo $ac_n "(cached) $ac_c" 1>&6
10557 else
10558
10559
10560 ac_ext=C
10561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10562 ac_cpp='$CXXCPP $CPPFLAGS'
10563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10565 cross_compiling=$ac_cv_prog_cxx_cross
10566
10567 cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10570 #include <math.h>
10571 int main() {
10572 atan2f(0, 0);
10573 ; return 0; }
10574 EOF
10575 if { (eval echo configure:10576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10576 rm -rf conftest*
10577 glibcpp_cv_func_atan2f_use=yes
10578 else
10579 echo "configure: failed program was:" >&5
10580 cat conftest.$ac_ext >&5
10581 rm -rf conftest*
10582 glibcpp_cv_func_atan2f_use=no
10583 fi
10584 rm -f conftest*
10585 ac_ext=c
10586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10587 ac_cpp='$CPP $CPPFLAGS'
10588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10590 cross_compiling=$ac_cv_prog_cc_cross
10591
10592
10593 fi
10594
10595 fi
10596 echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
10597
10598 if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
10599 for ac_func in atan2f
10600 do
10601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10602 echo "configure:10603: checking for $ac_func" >&5
10603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10604 echo $ac_n "(cached) $ac_c" 1>&6
10605 else
10606 cat > conftest.$ac_ext <<EOF
10607 #line 10608 "configure"
10608 #include "confdefs.h"
10609 /* System header to define __stub macros and hopefully few prototypes,
10610 which can conflict with char $ac_func(); below. */
10611 #include <assert.h>
10612 /* Override any gcc2 internal prototype to avoid an error. */
10613 /* We use char because int might match the return type of a gcc2
10614 builtin and then its argument prototype would still apply. */
10615 char $ac_func();
10616
10617 int main() {
10618
10619 /* The GNU C library defines this for functions which it implements
10620 to always fail with ENOSYS. Some functions are actually named
10621 something starting with __ and the normal name is an alias. */
10622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10623 choke me
10624 #else
10625 $ac_func();
10626 #endif
10627
10628 ; return 0; }
10629 EOF
10630 if { (eval echo configure:10631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10631 rm -rf conftest*
10632 eval "ac_cv_func_$ac_func=yes"
10633 else
10634 echo "configure: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10636 rm -rf conftest*
10637 eval "ac_cv_func_$ac_func=no"
10638 fi
10639 rm -f conftest*
10640 fi
10641
10642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10643 echo "$ac_t""yes" 1>&6
10644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10645 cat >> confdefs.h <<EOF
10646 #define $ac_tr_func 1
10647 EOF
10648
10649 else
10650 echo "$ac_t""no" 1>&6
10651 fi
10652 done
10653
10654 else
10655
10656 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
10657 echo "configure:10658: checking for _atan2f declaration" >&5
10658 if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
10659 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
10660 echo $ac_n "(cached) $ac_c" 1>&6
10661 else
10662
10663
10664 ac_ext=C
10665 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10666 ac_cpp='$CXXCPP $CPPFLAGS'
10667 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10668 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10669 cross_compiling=$ac_cv_prog_cxx_cross
10670
10671 cat > conftest.$ac_ext <<EOF
10672 #line 10673 "configure"
10673 #include "confdefs.h"
10674 #include <math.h>
10675 int main() {
10676 _atan2f(0, 0);
10677 ; return 0; }
10678 EOF
10679 if { (eval echo configure:10680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10680 rm -rf conftest*
10681 glibcpp_cv_func__atan2f_use=yes
10682 else
10683 echo "configure: failed program was:" >&5
10684 cat conftest.$ac_ext >&5
10685 rm -rf conftest*
10686 glibcpp_cv_func__atan2f_use=no
10687 fi
10688 rm -f conftest*
10689 ac_ext=c
10690 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10691 ac_cpp='$CPP $CPPFLAGS'
10692 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10693 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10694 cross_compiling=$ac_cv_prog_cc_cross
10695
10696
10697 fi
10698
10699 fi
10700 echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
10701
10702 if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
10703 for ac_func in _atan2f
10704 do
10705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10706 echo "configure:10707: checking for $ac_func" >&5
10707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10708 echo $ac_n "(cached) $ac_c" 1>&6
10709 else
10710 cat > conftest.$ac_ext <<EOF
10711 #line 10712 "configure"
10712 #include "confdefs.h"
10713 /* System header to define __stub macros and hopefully few prototypes,
10714 which can conflict with char $ac_func(); below. */
10715 #include <assert.h>
10716 /* Override any gcc2 internal prototype to avoid an error. */
10717 /* We use char because int might match the return type of a gcc2
10718 builtin and then its argument prototype would still apply. */
10719 char $ac_func();
10720
10721 int main() {
10722
10723 /* The GNU C library defines this for functions which it implements
10724 to always fail with ENOSYS. Some functions are actually named
10725 something starting with __ and the normal name is an alias. */
10726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10727 choke me
10728 #else
10729 $ac_func();
10730 #endif
10731
10732 ; return 0; }
10733 EOF
10734 if { (eval echo configure:10735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10735 rm -rf conftest*
10736 eval "ac_cv_func_$ac_func=yes"
10737 else
10738 echo "configure: failed program was:" >&5
10739 cat conftest.$ac_ext >&5
10740 rm -rf conftest*
10741 eval "ac_cv_func_$ac_func=no"
10742 fi
10743 rm -f conftest*
10744 fi
10745
10746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10747 echo "$ac_t""yes" 1>&6
10748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10749 cat >> confdefs.h <<EOF
10750 #define $ac_tr_func 1
10751 EOF
10752
10753 else
10754 echo "$ac_t""no" 1>&6
10755 fi
10756 done
10757
10758 fi
10759 fi
10760
10761
10762
10763 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
10764 echo "configure:10765: checking for fabsf declaration" >&5
10765 if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
10766 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
10767 echo $ac_n "(cached) $ac_c" 1>&6
10768 else
10769
10770
10771 ac_ext=C
10772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10773 ac_cpp='$CXXCPP $CPPFLAGS'
10774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10776 cross_compiling=$ac_cv_prog_cxx_cross
10777
10778 cat > conftest.$ac_ext <<EOF
10779 #line 10780 "configure"
10780 #include "confdefs.h"
10781 #include <math.h>
10782 #ifdef HAVE_IEEEFP_H
10783 #include <ieeefp.h>
10784 #endif
10785
10786 int main() {
10787 fabsf(0);
10788 ; return 0; }
10789 EOF
10790 if { (eval echo configure:10791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10791 rm -rf conftest*
10792 glibcpp_cv_func_fabsf_use=yes
10793 else
10794 echo "configure: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 rm -rf conftest*
10797 glibcpp_cv_func_fabsf_use=no
10798 fi
10799 rm -f conftest*
10800 ac_ext=c
10801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10802 ac_cpp='$CPP $CPPFLAGS'
10803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10805 cross_compiling=$ac_cv_prog_cc_cross
10806
10807
10808 fi
10809
10810 fi
10811 echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
10812
10813 if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
10814 for ac_func in fabsf
10815 do
10816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10817 echo "configure:10818: checking for $ac_func" >&5
10818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10819 echo $ac_n "(cached) $ac_c" 1>&6
10820 else
10821 cat > conftest.$ac_ext <<EOF
10822 #line 10823 "configure"
10823 #include "confdefs.h"
10824 /* System header to define __stub macros and hopefully few prototypes,
10825 which can conflict with char $ac_func(); below. */
10826 #include <assert.h>
10827 /* Override any gcc2 internal prototype to avoid an error. */
10828 /* We use char because int might match the return type of a gcc2
10829 builtin and then its argument prototype would still apply. */
10830 char $ac_func();
10831
10832 int main() {
10833
10834 /* The GNU C library defines this for functions which it implements
10835 to always fail with ENOSYS. Some functions are actually named
10836 something starting with __ and the normal name is an alias. */
10837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10838 choke me
10839 #else
10840 $ac_func();
10841 #endif
10842
10843 ; return 0; }
10844 EOF
10845 if { (eval echo configure:10846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10846 rm -rf conftest*
10847 eval "ac_cv_func_$ac_func=yes"
10848 else
10849 echo "configure: failed program was:" >&5
10850 cat conftest.$ac_ext >&5
10851 rm -rf conftest*
10852 eval "ac_cv_func_$ac_func=no"
10853 fi
10854 rm -f conftest*
10855 fi
10856
10857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10858 echo "$ac_t""yes" 1>&6
10859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10860 cat >> confdefs.h <<EOF
10861 #define $ac_tr_func 1
10862 EOF
10863
10864 else
10865 echo "$ac_t""no" 1>&6
10866 fi
10867 done
10868
10869 else
10870
10871 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
10872 echo "configure:10873: checking for _fabsf declaration" >&5
10873 if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
10874 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
10875 echo $ac_n "(cached) $ac_c" 1>&6
10876 else
10877
10878
10879 ac_ext=C
10880 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10881 ac_cpp='$CXXCPP $CPPFLAGS'
10882 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10883 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10884 cross_compiling=$ac_cv_prog_cxx_cross
10885
10886 cat > conftest.$ac_ext <<EOF
10887 #line 10888 "configure"
10888 #include "confdefs.h"
10889 #include <math.h>
10890 #ifdef HAVE_IEEEFP_H
10891 #include <ieeefp.h>
10892 #endif
10893
10894 int main() {
10895 _fabsf(0);
10896 ; return 0; }
10897 EOF
10898 if { (eval echo configure:10899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10899 rm -rf conftest*
10900 glibcpp_cv_func__fabsf_use=yes
10901 else
10902 echo "configure: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10904 rm -rf conftest*
10905 glibcpp_cv_func__fabsf_use=no
10906 fi
10907 rm -f conftest*
10908 ac_ext=c
10909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10910 ac_cpp='$CPP $CPPFLAGS'
10911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10913 cross_compiling=$ac_cv_prog_cc_cross
10914
10915
10916 fi
10917
10918 fi
10919 echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
10920
10921 if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
10922 for ac_func in _fabsf
10923 do
10924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10925 echo "configure:10926: checking for $ac_func" >&5
10926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10927 echo $ac_n "(cached) $ac_c" 1>&6
10928 else
10929 cat > conftest.$ac_ext <<EOF
10930 #line 10931 "configure"
10931 #include "confdefs.h"
10932 /* System header to define __stub macros and hopefully few prototypes,
10933 which can conflict with char $ac_func(); below. */
10934 #include <assert.h>
10935 /* Override any gcc2 internal prototype to avoid an error. */
10936 /* We use char because int might match the return type of a gcc2
10937 builtin and then its argument prototype would still apply. */
10938 char $ac_func();
10939
10940 int main() {
10941
10942 /* The GNU C library defines this for functions which it implements
10943 to always fail with ENOSYS. Some functions are actually named
10944 something starting with __ and the normal name is an alias. */
10945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10946 choke me
10947 #else
10948 $ac_func();
10949 #endif
10950
10951 ; return 0; }
10952 EOF
10953 if { (eval echo configure:10954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10954 rm -rf conftest*
10955 eval "ac_cv_func_$ac_func=yes"
10956 else
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10959 rm -rf conftest*
10960 eval "ac_cv_func_$ac_func=no"
10961 fi
10962 rm -f conftest*
10963 fi
10964
10965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10966 echo "$ac_t""yes" 1>&6
10967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10968 cat >> confdefs.h <<EOF
10969 #define $ac_tr_func 1
10970 EOF
10971
10972 else
10973 echo "$ac_t""no" 1>&6
10974 fi
10975 done
10976
10977 fi
10978 fi
10979
10980
10981
10982 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
10983 echo "configure:10984: checking for fmodf declaration" >&5
10984 if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
10985 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
10986 echo $ac_n "(cached) $ac_c" 1>&6
10987 else
10988
10989
10990 ac_ext=C
10991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10992 ac_cpp='$CXXCPP $CPPFLAGS'
10993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10995 cross_compiling=$ac_cv_prog_cxx_cross
10996
10997 cat > conftest.$ac_ext <<EOF
10998 #line 10999 "configure"
10999 #include "confdefs.h"
11000 #include <math.h>
11001 int main() {
11002 fmodf(0, 0);
11003 ; return 0; }
11004 EOF
11005 if { (eval echo configure:11006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11006 rm -rf conftest*
11007 glibcpp_cv_func_fmodf_use=yes
11008 else
11009 echo "configure: failed program was:" >&5
11010 cat conftest.$ac_ext >&5
11011 rm -rf conftest*
11012 glibcpp_cv_func_fmodf_use=no
11013 fi
11014 rm -f conftest*
11015 ac_ext=c
11016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11017 ac_cpp='$CPP $CPPFLAGS'
11018 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11019 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11020 cross_compiling=$ac_cv_prog_cc_cross
11021
11022
11023 fi
11024
11025 fi
11026 echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
11027
11028 if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
11029 for ac_func in fmodf
11030 do
11031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11032 echo "configure:11033: checking for $ac_func" >&5
11033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11034 echo $ac_n "(cached) $ac_c" 1>&6
11035 else
11036 cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure"
11038 #include "confdefs.h"
11039 /* System header to define __stub macros and hopefully few prototypes,
11040 which can conflict with char $ac_func(); below. */
11041 #include <assert.h>
11042 /* Override any gcc2 internal prototype to avoid an error. */
11043 /* We use char because int might match the return type of a gcc2
11044 builtin and then its argument prototype would still apply. */
11045 char $ac_func();
11046
11047 int main() {
11048
11049 /* The GNU C library defines this for functions which it implements
11050 to always fail with ENOSYS. Some functions are actually named
11051 something starting with __ and the normal name is an alias. */
11052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11053 choke me
11054 #else
11055 $ac_func();
11056 #endif
11057
11058 ; return 0; }
11059 EOF
11060 if { (eval echo configure:11061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11061 rm -rf conftest*
11062 eval "ac_cv_func_$ac_func=yes"
11063 else
11064 echo "configure: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11066 rm -rf conftest*
11067 eval "ac_cv_func_$ac_func=no"
11068 fi
11069 rm -f conftest*
11070 fi
11071
11072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11073 echo "$ac_t""yes" 1>&6
11074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11075 cat >> confdefs.h <<EOF
11076 #define $ac_tr_func 1
11077 EOF
11078
11079 else
11080 echo "$ac_t""no" 1>&6
11081 fi
11082 done
11083
11084 else
11085
11086 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
11087 echo "configure:11088: checking for _fmodf declaration" >&5
11088 if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
11089 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
11090 echo $ac_n "(cached) $ac_c" 1>&6
11091 else
11092
11093
11094 ac_ext=C
11095 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11096 ac_cpp='$CXXCPP $CPPFLAGS'
11097 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11098 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11099 cross_compiling=$ac_cv_prog_cxx_cross
11100
11101 cat > conftest.$ac_ext <<EOF
11102 #line 11103 "configure"
11103 #include "confdefs.h"
11104 #include <math.h>
11105 int main() {
11106 _fmodf(0, 0);
11107 ; return 0; }
11108 EOF
11109 if { (eval echo configure:11110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11110 rm -rf conftest*
11111 glibcpp_cv_func__fmodf_use=yes
11112 else
11113 echo "configure: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 rm -rf conftest*
11116 glibcpp_cv_func__fmodf_use=no
11117 fi
11118 rm -f conftest*
11119 ac_ext=c
11120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11121 ac_cpp='$CPP $CPPFLAGS'
11122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11124 cross_compiling=$ac_cv_prog_cc_cross
11125
11126
11127 fi
11128
11129 fi
11130 echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
11131
11132 if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
11133 for ac_func in _fmodf
11134 do
11135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11136 echo "configure:11137: checking for $ac_func" >&5
11137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11138 echo $ac_n "(cached) $ac_c" 1>&6
11139 else
11140 cat > conftest.$ac_ext <<EOF
11141 #line 11142 "configure"
11142 #include "confdefs.h"
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char $ac_func(); below. */
11145 #include <assert.h>
11146 /* Override any gcc2 internal prototype to avoid an error. */
11147 /* We use char because int might match the return type of a gcc2
11148 builtin and then its argument prototype would still apply. */
11149 char $ac_func();
11150
11151 int main() {
11152
11153 /* The GNU C library defines this for functions which it implements
11154 to always fail with ENOSYS. Some functions are actually named
11155 something starting with __ and the normal name is an alias. */
11156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11157 choke me
11158 #else
11159 $ac_func();
11160 #endif
11161
11162 ; return 0; }
11163 EOF
11164 if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11165 rm -rf conftest*
11166 eval "ac_cv_func_$ac_func=yes"
11167 else
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11170 rm -rf conftest*
11171 eval "ac_cv_func_$ac_func=no"
11172 fi
11173 rm -f conftest*
11174 fi
11175
11176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11177 echo "$ac_t""yes" 1>&6
11178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11179 cat >> confdefs.h <<EOF
11180 #define $ac_tr_func 1
11181 EOF
11182
11183 else
11184 echo "$ac_t""no" 1>&6
11185 fi
11186 done
11187
11188 fi
11189 fi
11190
11191
11192
11193 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
11194 echo "configure:11195: checking for frexpf declaration" >&5
11195 if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
11196 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
11197 echo $ac_n "(cached) $ac_c" 1>&6
11198 else
11199
11200
11201 ac_ext=C
11202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11203 ac_cpp='$CXXCPP $CPPFLAGS'
11204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11206 cross_compiling=$ac_cv_prog_cxx_cross
11207
11208 cat > conftest.$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 #include <math.h>
11212 int main() {
11213 frexpf(0, 0);
11214 ; return 0; }
11215 EOF
11216 if { (eval echo configure:11217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11217 rm -rf conftest*
11218 glibcpp_cv_func_frexpf_use=yes
11219 else
11220 echo "configure: failed program was:" >&5
11221 cat conftest.$ac_ext >&5
11222 rm -rf conftest*
11223 glibcpp_cv_func_frexpf_use=no
11224 fi
11225 rm -f conftest*
11226 ac_ext=c
11227 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11228 ac_cpp='$CPP $CPPFLAGS'
11229 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11230 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11231 cross_compiling=$ac_cv_prog_cc_cross
11232
11233
11234 fi
11235
11236 fi
11237 echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
11238
11239 if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
11240 for ac_func in frexpf
11241 do
11242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11243 echo "configure:11244: checking for $ac_func" >&5
11244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11245 echo $ac_n "(cached) $ac_c" 1>&6
11246 else
11247 cat > conftest.$ac_ext <<EOF
11248 #line 11249 "configure"
11249 #include "confdefs.h"
11250 /* System header to define __stub macros and hopefully few prototypes,
11251 which can conflict with char $ac_func(); below. */
11252 #include <assert.h>
11253 /* Override any gcc2 internal prototype to avoid an error. */
11254 /* We use char because int might match the return type of a gcc2
11255 builtin and then its argument prototype would still apply. */
11256 char $ac_func();
11257
11258 int main() {
11259
11260 /* The GNU C library defines this for functions which it implements
11261 to always fail with ENOSYS. Some functions are actually named
11262 something starting with __ and the normal name is an alias. */
11263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11264 choke me
11265 #else
11266 $ac_func();
11267 #endif
11268
11269 ; return 0; }
11270 EOF
11271 if { (eval echo configure:11272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11272 rm -rf conftest*
11273 eval "ac_cv_func_$ac_func=yes"
11274 else
11275 echo "configure: failed program was:" >&5
11276 cat conftest.$ac_ext >&5
11277 rm -rf conftest*
11278 eval "ac_cv_func_$ac_func=no"
11279 fi
11280 rm -f conftest*
11281 fi
11282
11283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11284 echo "$ac_t""yes" 1>&6
11285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11286 cat >> confdefs.h <<EOF
11287 #define $ac_tr_func 1
11288 EOF
11289
11290 else
11291 echo "$ac_t""no" 1>&6
11292 fi
11293 done
11294
11295 else
11296
11297 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
11298 echo "configure:11299: checking for _frexpf declaration" >&5
11299 if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
11300 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
11301 echo $ac_n "(cached) $ac_c" 1>&6
11302 else
11303
11304
11305 ac_ext=C
11306 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11307 ac_cpp='$CXXCPP $CPPFLAGS'
11308 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11309 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11310 cross_compiling=$ac_cv_prog_cxx_cross
11311
11312 cat > conftest.$ac_ext <<EOF
11313 #line 11314 "configure"
11314 #include "confdefs.h"
11315 #include <math.h>
11316 int main() {
11317 _frexpf(0, 0);
11318 ; return 0; }
11319 EOF
11320 if { (eval echo configure:11321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11321 rm -rf conftest*
11322 glibcpp_cv_func__frexpf_use=yes
11323 else
11324 echo "configure: failed program was:" >&5
11325 cat conftest.$ac_ext >&5
11326 rm -rf conftest*
11327 glibcpp_cv_func__frexpf_use=no
11328 fi
11329 rm -f conftest*
11330 ac_ext=c
11331 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11332 ac_cpp='$CPP $CPPFLAGS'
11333 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11334 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11335 cross_compiling=$ac_cv_prog_cc_cross
11336
11337
11338 fi
11339
11340 fi
11341 echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
11342
11343 if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
11344 for ac_func in _frexpf
11345 do
11346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11347 echo "configure:11348: checking for $ac_func" >&5
11348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11349 echo $ac_n "(cached) $ac_c" 1>&6
11350 else
11351 cat > conftest.$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11354 /* System header to define __stub macros and hopefully few prototypes,
11355 which can conflict with char $ac_func(); below. */
11356 #include <assert.h>
11357 /* Override any gcc2 internal prototype to avoid an error. */
11358 /* We use char because int might match the return type of a gcc2
11359 builtin and then its argument prototype would still apply. */
11360 char $ac_func();
11361
11362 int main() {
11363
11364 /* The GNU C library defines this for functions which it implements
11365 to always fail with ENOSYS. Some functions are actually named
11366 something starting with __ and the normal name is an alias. */
11367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11368 choke me
11369 #else
11370 $ac_func();
11371 #endif
11372
11373 ; return 0; }
11374 EOF
11375 if { (eval echo configure:11376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11376 rm -rf conftest*
11377 eval "ac_cv_func_$ac_func=yes"
11378 else
11379 echo "configure: failed program was:" >&5
11380 cat conftest.$ac_ext >&5
11381 rm -rf conftest*
11382 eval "ac_cv_func_$ac_func=no"
11383 fi
11384 rm -f conftest*
11385 fi
11386
11387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11388 echo "$ac_t""yes" 1>&6
11389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11390 cat >> confdefs.h <<EOF
11391 #define $ac_tr_func 1
11392 EOF
11393
11394 else
11395 echo "$ac_t""no" 1>&6
11396 fi
11397 done
11398
11399 fi
11400 fi
11401
11402
11403
11404 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
11405 echo "configure:11406: checking for hypotf declaration" >&5
11406 if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
11407 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
11408 echo $ac_n "(cached) $ac_c" 1>&6
11409 else
11410
11411
11412 ac_ext=C
11413 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11414 ac_cpp='$CXXCPP $CPPFLAGS'
11415 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11416 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11417 cross_compiling=$ac_cv_prog_cxx_cross
11418
11419 cat > conftest.$ac_ext <<EOF
11420 #line 11421 "configure"
11421 #include "confdefs.h"
11422 #include <math.h>
11423 int main() {
11424 hypotf(0, 0);
11425 ; return 0; }
11426 EOF
11427 if { (eval echo configure:11428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11428 rm -rf conftest*
11429 glibcpp_cv_func_hypotf_use=yes
11430 else
11431 echo "configure: failed program was:" >&5
11432 cat conftest.$ac_ext >&5
11433 rm -rf conftest*
11434 glibcpp_cv_func_hypotf_use=no
11435 fi
11436 rm -f conftest*
11437 ac_ext=c
11438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11439 ac_cpp='$CPP $CPPFLAGS'
11440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11442 cross_compiling=$ac_cv_prog_cc_cross
11443
11444
11445 fi
11446
11447 fi
11448 echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
11449
11450 if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
11451 for ac_func in hypotf
11452 do
11453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11454 echo "configure:11455: checking for $ac_func" >&5
11455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11456 echo $ac_n "(cached) $ac_c" 1>&6
11457 else
11458 cat > conftest.$ac_ext <<EOF
11459 #line 11460 "configure"
11460 #include "confdefs.h"
11461 /* System header to define __stub macros and hopefully few prototypes,
11462 which can conflict with char $ac_func(); below. */
11463 #include <assert.h>
11464 /* Override any gcc2 internal prototype to avoid an error. */
11465 /* We use char because int might match the return type of a gcc2
11466 builtin and then its argument prototype would still apply. */
11467 char $ac_func();
11468
11469 int main() {
11470
11471 /* The GNU C library defines this for functions which it implements
11472 to always fail with ENOSYS. Some functions are actually named
11473 something starting with __ and the normal name is an alias. */
11474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11475 choke me
11476 #else
11477 $ac_func();
11478 #endif
11479
11480 ; return 0; }
11481 EOF
11482 if { (eval echo configure:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11483 rm -rf conftest*
11484 eval "ac_cv_func_$ac_func=yes"
11485 else
11486 echo "configure: failed program was:" >&5
11487 cat conftest.$ac_ext >&5
11488 rm -rf conftest*
11489 eval "ac_cv_func_$ac_func=no"
11490 fi
11491 rm -f conftest*
11492 fi
11493
11494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11495 echo "$ac_t""yes" 1>&6
11496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11497 cat >> confdefs.h <<EOF
11498 #define $ac_tr_func 1
11499 EOF
11500
11501 else
11502 echo "$ac_t""no" 1>&6
11503 fi
11504 done
11505
11506 else
11507
11508 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
11509 echo "configure:11510: checking for _hypotf declaration" >&5
11510 if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
11511 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
11512 echo $ac_n "(cached) $ac_c" 1>&6
11513 else
11514
11515
11516 ac_ext=C
11517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11518 ac_cpp='$CXXCPP $CPPFLAGS'
11519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11521 cross_compiling=$ac_cv_prog_cxx_cross
11522
11523 cat > conftest.$ac_ext <<EOF
11524 #line 11525 "configure"
11525 #include "confdefs.h"
11526 #include <math.h>
11527 int main() {
11528 _hypotf(0, 0);
11529 ; return 0; }
11530 EOF
11531 if { (eval echo configure:11532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11532 rm -rf conftest*
11533 glibcpp_cv_func__hypotf_use=yes
11534 else
11535 echo "configure: failed program was:" >&5
11536 cat conftest.$ac_ext >&5
11537 rm -rf conftest*
11538 glibcpp_cv_func__hypotf_use=no
11539 fi
11540 rm -f conftest*
11541 ac_ext=c
11542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11543 ac_cpp='$CPP $CPPFLAGS'
11544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11546 cross_compiling=$ac_cv_prog_cc_cross
11547
11548
11549 fi
11550
11551 fi
11552 echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
11553
11554 if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
11555 for ac_func in _hypotf
11556 do
11557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11558 echo "configure:11559: checking for $ac_func" >&5
11559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11560 echo $ac_n "(cached) $ac_c" 1>&6
11561 else
11562 cat > conftest.$ac_ext <<EOF
11563 #line 11564 "configure"
11564 #include "confdefs.h"
11565 /* System header to define __stub macros and hopefully few prototypes,
11566 which can conflict with char $ac_func(); below. */
11567 #include <assert.h>
11568 /* Override any gcc2 internal prototype to avoid an error. */
11569 /* We use char because int might match the return type of a gcc2
11570 builtin and then its argument prototype would still apply. */
11571 char $ac_func();
11572
11573 int main() {
11574
11575 /* The GNU C library defines this for functions which it implements
11576 to always fail with ENOSYS. Some functions are actually named
11577 something starting with __ and the normal name is an alias. */
11578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11579 choke me
11580 #else
11581 $ac_func();
11582 #endif
11583
11584 ; return 0; }
11585 EOF
11586 if { (eval echo configure:11587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11587 rm -rf conftest*
11588 eval "ac_cv_func_$ac_func=yes"
11589 else
11590 echo "configure: failed program was:" >&5
11591 cat conftest.$ac_ext >&5
11592 rm -rf conftest*
11593 eval "ac_cv_func_$ac_func=no"
11594 fi
11595 rm -f conftest*
11596 fi
11597
11598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11599 echo "$ac_t""yes" 1>&6
11600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11601 cat >> confdefs.h <<EOF
11602 #define $ac_tr_func 1
11603 EOF
11604
11605 else
11606 echo "$ac_t""no" 1>&6
11607 fi
11608 done
11609
11610 fi
11611 fi
11612
11613
11614
11615 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
11616 echo "configure:11617: checking for ldexpf declaration" >&5
11617 if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
11618 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
11619 echo $ac_n "(cached) $ac_c" 1>&6
11620 else
11621
11622
11623 ac_ext=C
11624 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11625 ac_cpp='$CXXCPP $CPPFLAGS'
11626 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11627 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11628 cross_compiling=$ac_cv_prog_cxx_cross
11629
11630 cat > conftest.$ac_ext <<EOF
11631 #line 11632 "configure"
11632 #include "confdefs.h"
11633 #include <math.h>
11634 int main() {
11635 ldexpf(0, 0);
11636 ; return 0; }
11637 EOF
11638 if { (eval echo configure:11639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11639 rm -rf conftest*
11640 glibcpp_cv_func_ldexpf_use=yes
11641 else
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11644 rm -rf conftest*
11645 glibcpp_cv_func_ldexpf_use=no
11646 fi
11647 rm -f conftest*
11648 ac_ext=c
11649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11650 ac_cpp='$CPP $CPPFLAGS'
11651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11653 cross_compiling=$ac_cv_prog_cc_cross
11654
11655
11656 fi
11657
11658 fi
11659 echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
11660
11661 if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
11662 for ac_func in ldexpf
11663 do
11664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11665 echo "configure:11666: checking for $ac_func" >&5
11666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11667 echo $ac_n "(cached) $ac_c" 1>&6
11668 else
11669 cat > conftest.$ac_ext <<EOF
11670 #line 11671 "configure"
11671 #include "confdefs.h"
11672 /* System header to define __stub macros and hopefully few prototypes,
11673 which can conflict with char $ac_func(); below. */
11674 #include <assert.h>
11675 /* Override any gcc2 internal prototype to avoid an error. */
11676 /* We use char because int might match the return type of a gcc2
11677 builtin and then its argument prototype would still apply. */
11678 char $ac_func();
11679
11680 int main() {
11681
11682 /* The GNU C library defines this for functions which it implements
11683 to always fail with ENOSYS. Some functions are actually named
11684 something starting with __ and the normal name is an alias. */
11685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11686 choke me
11687 #else
11688 $ac_func();
11689 #endif
11690
11691 ; return 0; }
11692 EOF
11693 if { (eval echo configure:11694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11694 rm -rf conftest*
11695 eval "ac_cv_func_$ac_func=yes"
11696 else
11697 echo "configure: failed program was:" >&5
11698 cat conftest.$ac_ext >&5
11699 rm -rf conftest*
11700 eval "ac_cv_func_$ac_func=no"
11701 fi
11702 rm -f conftest*
11703 fi
11704
11705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11706 echo "$ac_t""yes" 1>&6
11707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11708 cat >> confdefs.h <<EOF
11709 #define $ac_tr_func 1
11710 EOF
11711
11712 else
11713 echo "$ac_t""no" 1>&6
11714 fi
11715 done
11716
11717 else
11718
11719 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
11720 echo "configure:11721: checking for _ldexpf declaration" >&5
11721 if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
11722 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
11723 echo $ac_n "(cached) $ac_c" 1>&6
11724 else
11725
11726
11727 ac_ext=C
11728 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11729 ac_cpp='$CXXCPP $CPPFLAGS'
11730 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11731 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11732 cross_compiling=$ac_cv_prog_cxx_cross
11733
11734 cat > conftest.$ac_ext <<EOF
11735 #line 11736 "configure"
11736 #include "confdefs.h"
11737 #include <math.h>
11738 int main() {
11739 _ldexpf(0, 0);
11740 ; return 0; }
11741 EOF
11742 if { (eval echo configure:11743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11743 rm -rf conftest*
11744 glibcpp_cv_func__ldexpf_use=yes
11745 else
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11748 rm -rf conftest*
11749 glibcpp_cv_func__ldexpf_use=no
11750 fi
11751 rm -f conftest*
11752 ac_ext=c
11753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11754 ac_cpp='$CPP $CPPFLAGS'
11755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11757 cross_compiling=$ac_cv_prog_cc_cross
11758
11759
11760 fi
11761
11762 fi
11763 echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
11764
11765 if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
11766 for ac_func in _ldexpf
11767 do
11768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11769 echo "configure:11770: checking for $ac_func" >&5
11770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11771 echo $ac_n "(cached) $ac_c" 1>&6
11772 else
11773 cat > conftest.$ac_ext <<EOF
11774 #line 11775 "configure"
11775 #include "confdefs.h"
11776 /* System header to define __stub macros and hopefully few prototypes,
11777 which can conflict with char $ac_func(); below. */
11778 #include <assert.h>
11779 /* Override any gcc2 internal prototype to avoid an error. */
11780 /* We use char because int might match the return type of a gcc2
11781 builtin and then its argument prototype would still apply. */
11782 char $ac_func();
11783
11784 int main() {
11785
11786 /* The GNU C library defines this for functions which it implements
11787 to always fail with ENOSYS. Some functions are actually named
11788 something starting with __ and the normal name is an alias. */
11789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11790 choke me
11791 #else
11792 $ac_func();
11793 #endif
11794
11795 ; return 0; }
11796 EOF
11797 if { (eval echo configure:11798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11798 rm -rf conftest*
11799 eval "ac_cv_func_$ac_func=yes"
11800 else
11801 echo "configure: failed program was:" >&5
11802 cat conftest.$ac_ext >&5
11803 rm -rf conftest*
11804 eval "ac_cv_func_$ac_func=no"
11805 fi
11806 rm -f conftest*
11807 fi
11808
11809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11810 echo "$ac_t""yes" 1>&6
11811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11812 cat >> confdefs.h <<EOF
11813 #define $ac_tr_func 1
11814 EOF
11815
11816 else
11817 echo "$ac_t""no" 1>&6
11818 fi
11819 done
11820
11821 fi
11822 fi
11823
11824
11825
11826 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
11827 echo "configure:11828: checking for logf declaration" >&5
11828 if test x${glibcpp_cv_func_logf_use+set} != xset; then
11829 if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
11830 echo $ac_n "(cached) $ac_c" 1>&6
11831 else
11832
11833
11834 ac_ext=C
11835 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11836 ac_cpp='$CXXCPP $CPPFLAGS'
11837 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11838 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11839 cross_compiling=$ac_cv_prog_cxx_cross
11840
11841 cat > conftest.$ac_ext <<EOF
11842 #line 11843 "configure"
11843 #include "confdefs.h"
11844 #include <math.h>
11845 #ifdef HAVE_IEEEFP_H
11846 #include <ieeefp.h>
11847 #endif
11848
11849 int main() {
11850 logf(0);
11851 ; return 0; }
11852 EOF
11853 if { (eval echo configure:11854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11854 rm -rf conftest*
11855 glibcpp_cv_func_logf_use=yes
11856 else
11857 echo "configure: failed program was:" >&5
11858 cat conftest.$ac_ext >&5
11859 rm -rf conftest*
11860 glibcpp_cv_func_logf_use=no
11861 fi
11862 rm -f conftest*
11863 ac_ext=c
11864 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11865 ac_cpp='$CPP $CPPFLAGS'
11866 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11867 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11868 cross_compiling=$ac_cv_prog_cc_cross
11869
11870
11871 fi
11872
11873 fi
11874 echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
11875
11876 if test x$glibcpp_cv_func_logf_use = x"yes"; then
11877 for ac_func in logf
11878 do
11879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11880 echo "configure:11881: checking for $ac_func" >&5
11881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11882 echo $ac_n "(cached) $ac_c" 1>&6
11883 else
11884 cat > conftest.$ac_ext <<EOF
11885 #line 11886 "configure"
11886 #include "confdefs.h"
11887 /* System header to define __stub macros and hopefully few prototypes,
11888 which can conflict with char $ac_func(); below. */
11889 #include <assert.h>
11890 /* Override any gcc2 internal prototype to avoid an error. */
11891 /* We use char because int might match the return type of a gcc2
11892 builtin and then its argument prototype would still apply. */
11893 char $ac_func();
11894
11895 int main() {
11896
11897 /* The GNU C library defines this for functions which it implements
11898 to always fail with ENOSYS. Some functions are actually named
11899 something starting with __ and the normal name is an alias. */
11900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11901 choke me
11902 #else
11903 $ac_func();
11904 #endif
11905
11906 ; return 0; }
11907 EOF
11908 if { (eval echo configure:11909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11909 rm -rf conftest*
11910 eval "ac_cv_func_$ac_func=yes"
11911 else
11912 echo "configure: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11914 rm -rf conftest*
11915 eval "ac_cv_func_$ac_func=no"
11916 fi
11917 rm -f conftest*
11918 fi
11919
11920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11921 echo "$ac_t""yes" 1>&6
11922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11923 cat >> confdefs.h <<EOF
11924 #define $ac_tr_func 1
11925 EOF
11926
11927 else
11928 echo "$ac_t""no" 1>&6
11929 fi
11930 done
11931
11932 else
11933
11934 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
11935 echo "configure:11936: checking for _logf declaration" >&5
11936 if test x${glibcpp_cv_func__logf_use+set} != xset; then
11937 if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
11938 echo $ac_n "(cached) $ac_c" 1>&6
11939 else
11940
11941
11942 ac_ext=C
11943 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11944 ac_cpp='$CXXCPP $CPPFLAGS'
11945 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11946 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11947 cross_compiling=$ac_cv_prog_cxx_cross
11948
11949 cat > conftest.$ac_ext <<EOF
11950 #line 11951 "configure"
11951 #include "confdefs.h"
11952 #include <math.h>
11953 #ifdef HAVE_IEEEFP_H
11954 #include <ieeefp.h>
11955 #endif
11956
11957 int main() {
11958 _logf(0);
11959 ; return 0; }
11960 EOF
11961 if { (eval echo configure:11962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11962 rm -rf conftest*
11963 glibcpp_cv_func__logf_use=yes
11964 else
11965 echo "configure: failed program was:" >&5
11966 cat conftest.$ac_ext >&5
11967 rm -rf conftest*
11968 glibcpp_cv_func__logf_use=no
11969 fi
11970 rm -f conftest*
11971 ac_ext=c
11972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11973 ac_cpp='$CPP $CPPFLAGS'
11974 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11975 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11976 cross_compiling=$ac_cv_prog_cc_cross
11977
11978
11979 fi
11980
11981 fi
11982 echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
11983
11984 if test x$glibcpp_cv_func__logf_use = x"yes"; then
11985 for ac_func in _logf
11986 do
11987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11988 echo "configure:11989: checking for $ac_func" >&5
11989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11990 echo $ac_n "(cached) $ac_c" 1>&6
11991 else
11992 cat > conftest.$ac_ext <<EOF
11993 #line 11994 "configure"
11994 #include "confdefs.h"
11995 /* System header to define __stub macros and hopefully few prototypes,
11996 which can conflict with char $ac_func(); below. */
11997 #include <assert.h>
11998 /* Override any gcc2 internal prototype to avoid an error. */
11999 /* We use char because int might match the return type of a gcc2
12000 builtin and then its argument prototype would still apply. */
12001 char $ac_func();
12002
12003 int main() {
12004
12005 /* The GNU C library defines this for functions which it implements
12006 to always fail with ENOSYS. Some functions are actually named
12007 something starting with __ and the normal name is an alias. */
12008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12009 choke me
12010 #else
12011 $ac_func();
12012 #endif
12013
12014 ; return 0; }
12015 EOF
12016 if { (eval echo configure:12017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12017 rm -rf conftest*
12018 eval "ac_cv_func_$ac_func=yes"
12019 else
12020 echo "configure: failed program was:" >&5
12021 cat conftest.$ac_ext >&5
12022 rm -rf conftest*
12023 eval "ac_cv_func_$ac_func=no"
12024 fi
12025 rm -f conftest*
12026 fi
12027
12028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12029 echo "$ac_t""yes" 1>&6
12030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12031 cat >> confdefs.h <<EOF
12032 #define $ac_tr_func 1
12033 EOF
12034
12035 else
12036 echo "$ac_t""no" 1>&6
12037 fi
12038 done
12039
12040 fi
12041 fi
12042
12043
12044
12045 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
12046 echo "configure:12047: checking for log10f declaration" >&5
12047 if test x${glibcpp_cv_func_log10f_use+set} != xset; then
12048 if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
12049 echo $ac_n "(cached) $ac_c" 1>&6
12050 else
12051
12052
12053 ac_ext=C
12054 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12055 ac_cpp='$CXXCPP $CPPFLAGS'
12056 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12057 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12058 cross_compiling=$ac_cv_prog_cxx_cross
12059
12060 cat > conftest.$ac_ext <<EOF
12061 #line 12062 "configure"
12062 #include "confdefs.h"
12063 #include <math.h>
12064 #ifdef HAVE_IEEEFP_H
12065 #include <ieeefp.h>
12066 #endif
12067
12068 int main() {
12069 log10f(0);
12070 ; return 0; }
12071 EOF
12072 if { (eval echo configure:12073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12073 rm -rf conftest*
12074 glibcpp_cv_func_log10f_use=yes
12075 else
12076 echo "configure: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 rm -rf conftest*
12079 glibcpp_cv_func_log10f_use=no
12080 fi
12081 rm -f conftest*
12082 ac_ext=c
12083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12084 ac_cpp='$CPP $CPPFLAGS'
12085 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12086 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12087 cross_compiling=$ac_cv_prog_cc_cross
12088
12089
12090 fi
12091
12092 fi
12093 echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
12094
12095 if test x$glibcpp_cv_func_log10f_use = x"yes"; then
12096 for ac_func in log10f
12097 do
12098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12099 echo "configure:12100: checking for $ac_func" >&5
12100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12101 echo $ac_n "(cached) $ac_c" 1>&6
12102 else
12103 cat > conftest.$ac_ext <<EOF
12104 #line 12105 "configure"
12105 #include "confdefs.h"
12106 /* System header to define __stub macros and hopefully few prototypes,
12107 which can conflict with char $ac_func(); below. */
12108 #include <assert.h>
12109 /* Override any gcc2 internal prototype to avoid an error. */
12110 /* We use char because int might match the return type of a gcc2
12111 builtin and then its argument prototype would still apply. */
12112 char $ac_func();
12113
12114 int main() {
12115
12116 /* The GNU C library defines this for functions which it implements
12117 to always fail with ENOSYS. Some functions are actually named
12118 something starting with __ and the normal name is an alias. */
12119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12120 choke me
12121 #else
12122 $ac_func();
12123 #endif
12124
12125 ; return 0; }
12126 EOF
12127 if { (eval echo configure:12128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12128 rm -rf conftest*
12129 eval "ac_cv_func_$ac_func=yes"
12130 else
12131 echo "configure: failed program was:" >&5
12132 cat conftest.$ac_ext >&5
12133 rm -rf conftest*
12134 eval "ac_cv_func_$ac_func=no"
12135 fi
12136 rm -f conftest*
12137 fi
12138
12139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12140 echo "$ac_t""yes" 1>&6
12141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12142 cat >> confdefs.h <<EOF
12143 #define $ac_tr_func 1
12144 EOF
12145
12146 else
12147 echo "$ac_t""no" 1>&6
12148 fi
12149 done
12150
12151 else
12152
12153 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
12154 echo "configure:12155: checking for _log10f declaration" >&5
12155 if test x${glibcpp_cv_func__log10f_use+set} != xset; then
12156 if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
12157 echo $ac_n "(cached) $ac_c" 1>&6
12158 else
12159
12160
12161 ac_ext=C
12162 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12163 ac_cpp='$CXXCPP $CPPFLAGS'
12164 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12165 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12166 cross_compiling=$ac_cv_prog_cxx_cross
12167
12168 cat > conftest.$ac_ext <<EOF
12169 #line 12170 "configure"
12170 #include "confdefs.h"
12171 #include <math.h>
12172 #ifdef HAVE_IEEEFP_H
12173 #include <ieeefp.h>
12174 #endif
12175
12176 int main() {
12177 _log10f(0);
12178 ; return 0; }
12179 EOF
12180 if { (eval echo configure:12181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12181 rm -rf conftest*
12182 glibcpp_cv_func__log10f_use=yes
12183 else
12184 echo "configure: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12186 rm -rf conftest*
12187 glibcpp_cv_func__log10f_use=no
12188 fi
12189 rm -f conftest*
12190 ac_ext=c
12191 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12192 ac_cpp='$CPP $CPPFLAGS'
12193 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12194 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12195 cross_compiling=$ac_cv_prog_cc_cross
12196
12197
12198 fi
12199
12200 fi
12201 echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
12202
12203 if test x$glibcpp_cv_func__log10f_use = x"yes"; then
12204 for ac_func in _log10f
12205 do
12206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12207 echo "configure:12208: checking for $ac_func" >&5
12208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12209 echo $ac_n "(cached) $ac_c" 1>&6
12210 else
12211 cat > conftest.$ac_ext <<EOF
12212 #line 12213 "configure"
12213 #include "confdefs.h"
12214 /* System header to define __stub macros and hopefully few prototypes,
12215 which can conflict with char $ac_func(); below. */
12216 #include <assert.h>
12217 /* Override any gcc2 internal prototype to avoid an error. */
12218 /* We use char because int might match the return type of a gcc2
12219 builtin and then its argument prototype would still apply. */
12220 char $ac_func();
12221
12222 int main() {
12223
12224 /* The GNU C library defines this for functions which it implements
12225 to always fail with ENOSYS. Some functions are actually named
12226 something starting with __ and the normal name is an alias. */
12227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12228 choke me
12229 #else
12230 $ac_func();
12231 #endif
12232
12233 ; return 0; }
12234 EOF
12235 if { (eval echo configure:12236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12236 rm -rf conftest*
12237 eval "ac_cv_func_$ac_func=yes"
12238 else
12239 echo "configure: failed program was:" >&5
12240 cat conftest.$ac_ext >&5
12241 rm -rf conftest*
12242 eval "ac_cv_func_$ac_func=no"
12243 fi
12244 rm -f conftest*
12245 fi
12246
12247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12248 echo "$ac_t""yes" 1>&6
12249 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12250 cat >> confdefs.h <<EOF
12251 #define $ac_tr_func 1
12252 EOF
12253
12254 else
12255 echo "$ac_t""no" 1>&6
12256 fi
12257 done
12258
12259 fi
12260 fi
12261
12262
12263
12264 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
12265 echo "configure:12266: checking for modff declaration" >&5
12266 if test x${glibcpp_cv_func_modff_use+set} != xset; then
12267 if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
12268 echo $ac_n "(cached) $ac_c" 1>&6
12269 else
12270
12271
12272 ac_ext=C
12273 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12274 ac_cpp='$CXXCPP $CPPFLAGS'
12275 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12276 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12277 cross_compiling=$ac_cv_prog_cxx_cross
12278
12279 cat > conftest.$ac_ext <<EOF
12280 #line 12281 "configure"
12281 #include "confdefs.h"
12282 #include <math.h>
12283 int main() {
12284 modff(0, 0);
12285 ; return 0; }
12286 EOF
12287 if { (eval echo configure:12288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12288 rm -rf conftest*
12289 glibcpp_cv_func_modff_use=yes
12290 else
12291 echo "configure: failed program was:" >&5
12292 cat conftest.$ac_ext >&5
12293 rm -rf conftest*
12294 glibcpp_cv_func_modff_use=no
12295 fi
12296 rm -f conftest*
12297 ac_ext=c
12298 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12299 ac_cpp='$CPP $CPPFLAGS'
12300 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12301 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12302 cross_compiling=$ac_cv_prog_cc_cross
12303
12304
12305 fi
12306
12307 fi
12308 echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
12309
12310 if test x$glibcpp_cv_func_modff_use = x"yes"; then
12311 for ac_func in modff
12312 do
12313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12314 echo "configure:12315: checking for $ac_func" >&5
12315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12316 echo $ac_n "(cached) $ac_c" 1>&6
12317 else
12318 cat > conftest.$ac_ext <<EOF
12319 #line 12320 "configure"
12320 #include "confdefs.h"
12321 /* System header to define __stub macros and hopefully few prototypes,
12322 which can conflict with char $ac_func(); below. */
12323 #include <assert.h>
12324 /* Override any gcc2 internal prototype to avoid an error. */
12325 /* We use char because int might match the return type of a gcc2
12326 builtin and then its argument prototype would still apply. */
12327 char $ac_func();
12328
12329 int main() {
12330
12331 /* The GNU C library defines this for functions which it implements
12332 to always fail with ENOSYS. Some functions are actually named
12333 something starting with __ and the normal name is an alias. */
12334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12335 choke me
12336 #else
12337 $ac_func();
12338 #endif
12339
12340 ; return 0; }
12341 EOF
12342 if { (eval echo configure:12343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12343 rm -rf conftest*
12344 eval "ac_cv_func_$ac_func=yes"
12345 else
12346 echo "configure: failed program was:" >&5
12347 cat conftest.$ac_ext >&5
12348 rm -rf conftest*
12349 eval "ac_cv_func_$ac_func=no"
12350 fi
12351 rm -f conftest*
12352 fi
12353
12354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12355 echo "$ac_t""yes" 1>&6
12356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12357 cat >> confdefs.h <<EOF
12358 #define $ac_tr_func 1
12359 EOF
12360
12361 else
12362 echo "$ac_t""no" 1>&6
12363 fi
12364 done
12365
12366 else
12367
12368 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
12369 echo "configure:12370: checking for _modff declaration" >&5
12370 if test x${glibcpp_cv_func__modff_use+set} != xset; then
12371 if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
12372 echo $ac_n "(cached) $ac_c" 1>&6
12373 else
12374
12375
12376 ac_ext=C
12377 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12378 ac_cpp='$CXXCPP $CPPFLAGS'
12379 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12380 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12381 cross_compiling=$ac_cv_prog_cxx_cross
12382
12383 cat > conftest.$ac_ext <<EOF
12384 #line 12385 "configure"
12385 #include "confdefs.h"
12386 #include <math.h>
12387 int main() {
12388 _modff(0, 0);
12389 ; return 0; }
12390 EOF
12391 if { (eval echo configure:12392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12392 rm -rf conftest*
12393 glibcpp_cv_func__modff_use=yes
12394 else
12395 echo "configure: failed program was:" >&5
12396 cat conftest.$ac_ext >&5
12397 rm -rf conftest*
12398 glibcpp_cv_func__modff_use=no
12399 fi
12400 rm -f conftest*
12401 ac_ext=c
12402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12403 ac_cpp='$CPP $CPPFLAGS'
12404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12406 cross_compiling=$ac_cv_prog_cc_cross
12407
12408
12409 fi
12410
12411 fi
12412 echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
12413
12414 if test x$glibcpp_cv_func__modff_use = x"yes"; then
12415 for ac_func in _modff
12416 do
12417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12418 echo "configure:12419: checking for $ac_func" >&5
12419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12420 echo $ac_n "(cached) $ac_c" 1>&6
12421 else
12422 cat > conftest.$ac_ext <<EOF
12423 #line 12424 "configure"
12424 #include "confdefs.h"
12425 /* System header to define __stub macros and hopefully few prototypes,
12426 which can conflict with char $ac_func(); below. */
12427 #include <assert.h>
12428 /* Override any gcc2 internal prototype to avoid an error. */
12429 /* We use char because int might match the return type of a gcc2
12430 builtin and then its argument prototype would still apply. */
12431 char $ac_func();
12432
12433 int main() {
12434
12435 /* The GNU C library defines this for functions which it implements
12436 to always fail with ENOSYS. Some functions are actually named
12437 something starting with __ and the normal name is an alias. */
12438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12439 choke me
12440 #else
12441 $ac_func();
12442 #endif
12443
12444 ; return 0; }
12445 EOF
12446 if { (eval echo configure:12447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12447 rm -rf conftest*
12448 eval "ac_cv_func_$ac_func=yes"
12449 else
12450 echo "configure: failed program was:" >&5
12451 cat conftest.$ac_ext >&5
12452 rm -rf conftest*
12453 eval "ac_cv_func_$ac_func=no"
12454 fi
12455 rm -f conftest*
12456 fi
12457
12458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12459 echo "$ac_t""yes" 1>&6
12460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12461 cat >> confdefs.h <<EOF
12462 #define $ac_tr_func 1
12463 EOF
12464
12465 else
12466 echo "$ac_t""no" 1>&6
12467 fi
12468 done
12469
12470 fi
12471 fi
12472
12473
12474
12475 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
12476 echo "configure:12477: checking for powf declaration" >&5
12477 if test x${glibcpp_cv_func_powf_use+set} != xset; then
12478 if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
12479 echo $ac_n "(cached) $ac_c" 1>&6
12480 else
12481
12482
12483 ac_ext=C
12484 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12485 ac_cpp='$CXXCPP $CPPFLAGS'
12486 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12487 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12488 cross_compiling=$ac_cv_prog_cxx_cross
12489
12490 cat > conftest.$ac_ext <<EOF
12491 #line 12492 "configure"
12492 #include "confdefs.h"
12493 #include <math.h>
12494 int main() {
12495 powf(0, 0);
12496 ; return 0; }
12497 EOF
12498 if { (eval echo configure:12499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12499 rm -rf conftest*
12500 glibcpp_cv_func_powf_use=yes
12501 else
12502 echo "configure: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12504 rm -rf conftest*
12505 glibcpp_cv_func_powf_use=no
12506 fi
12507 rm -f conftest*
12508 ac_ext=c
12509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12510 ac_cpp='$CPP $CPPFLAGS'
12511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12513 cross_compiling=$ac_cv_prog_cc_cross
12514
12515
12516 fi
12517
12518 fi
12519 echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
12520
12521 if test x$glibcpp_cv_func_powf_use = x"yes"; then
12522 for ac_func in powf
12523 do
12524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12525 echo "configure:12526: checking for $ac_func" >&5
12526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12527 echo $ac_n "(cached) $ac_c" 1>&6
12528 else
12529 cat > conftest.$ac_ext <<EOF
12530 #line 12531 "configure"
12531 #include "confdefs.h"
12532 /* System header to define __stub macros and hopefully few prototypes,
12533 which can conflict with char $ac_func(); below. */
12534 #include <assert.h>
12535 /* Override any gcc2 internal prototype to avoid an error. */
12536 /* We use char because int might match the return type of a gcc2
12537 builtin and then its argument prototype would still apply. */
12538 char $ac_func();
12539
12540 int main() {
12541
12542 /* The GNU C library defines this for functions which it implements
12543 to always fail with ENOSYS. Some functions are actually named
12544 something starting with __ and the normal name is an alias. */
12545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12546 choke me
12547 #else
12548 $ac_func();
12549 #endif
12550
12551 ; return 0; }
12552 EOF
12553 if { (eval echo configure:12554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12554 rm -rf conftest*
12555 eval "ac_cv_func_$ac_func=yes"
12556 else
12557 echo "configure: failed program was:" >&5
12558 cat conftest.$ac_ext >&5
12559 rm -rf conftest*
12560 eval "ac_cv_func_$ac_func=no"
12561 fi
12562 rm -f conftest*
12563 fi
12564
12565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12566 echo "$ac_t""yes" 1>&6
12567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12568 cat >> confdefs.h <<EOF
12569 #define $ac_tr_func 1
12570 EOF
12571
12572 else
12573 echo "$ac_t""no" 1>&6
12574 fi
12575 done
12576
12577 else
12578
12579 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
12580 echo "configure:12581: checking for _powf declaration" >&5
12581 if test x${glibcpp_cv_func__powf_use+set} != xset; then
12582 if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
12583 echo $ac_n "(cached) $ac_c" 1>&6
12584 else
12585
12586
12587 ac_ext=C
12588 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12589 ac_cpp='$CXXCPP $CPPFLAGS'
12590 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12591 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12592 cross_compiling=$ac_cv_prog_cxx_cross
12593
12594 cat > conftest.$ac_ext <<EOF
12595 #line 12596 "configure"
12596 #include "confdefs.h"
12597 #include <math.h>
12598 int main() {
12599 _powf(0, 0);
12600 ; return 0; }
12601 EOF
12602 if { (eval echo configure:12603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12603 rm -rf conftest*
12604 glibcpp_cv_func__powf_use=yes
12605 else
12606 echo "configure: failed program was:" >&5
12607 cat conftest.$ac_ext >&5
12608 rm -rf conftest*
12609 glibcpp_cv_func__powf_use=no
12610 fi
12611 rm -f conftest*
12612 ac_ext=c
12613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12614 ac_cpp='$CPP $CPPFLAGS'
12615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12617 cross_compiling=$ac_cv_prog_cc_cross
12618
12619
12620 fi
12621
12622 fi
12623 echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
12624
12625 if test x$glibcpp_cv_func__powf_use = x"yes"; then
12626 for ac_func in _powf
12627 do
12628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12629 echo "configure:12630: checking for $ac_func" >&5
12630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12631 echo $ac_n "(cached) $ac_c" 1>&6
12632 else
12633 cat > conftest.$ac_ext <<EOF
12634 #line 12635 "configure"
12635 #include "confdefs.h"
12636 /* System header to define __stub macros and hopefully few prototypes,
12637 which can conflict with char $ac_func(); below. */
12638 #include <assert.h>
12639 /* Override any gcc2 internal prototype to avoid an error. */
12640 /* We use char because int might match the return type of a gcc2
12641 builtin and then its argument prototype would still apply. */
12642 char $ac_func();
12643
12644 int main() {
12645
12646 /* The GNU C library defines this for functions which it implements
12647 to always fail with ENOSYS. Some functions are actually named
12648 something starting with __ and the normal name is an alias. */
12649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12650 choke me
12651 #else
12652 $ac_func();
12653 #endif
12654
12655 ; return 0; }
12656 EOF
12657 if { (eval echo configure:12658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12658 rm -rf conftest*
12659 eval "ac_cv_func_$ac_func=yes"
12660 else
12661 echo "configure: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12663 rm -rf conftest*
12664 eval "ac_cv_func_$ac_func=no"
12665 fi
12666 rm -f conftest*
12667 fi
12668
12669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12670 echo "$ac_t""yes" 1>&6
12671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12672 cat >> confdefs.h <<EOF
12673 #define $ac_tr_func 1
12674 EOF
12675
12676 else
12677 echo "$ac_t""no" 1>&6
12678 fi
12679 done
12680
12681 fi
12682 fi
12683
12684
12685
12686 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
12687 echo "configure:12688: checking for sqrtf declaration" >&5
12688 if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
12689 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
12690 echo $ac_n "(cached) $ac_c" 1>&6
12691 else
12692
12693
12694 ac_ext=C
12695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12696 ac_cpp='$CXXCPP $CPPFLAGS'
12697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12699 cross_compiling=$ac_cv_prog_cxx_cross
12700
12701 cat > conftest.$ac_ext <<EOF
12702 #line 12703 "configure"
12703 #include "confdefs.h"
12704 #include <math.h>
12705 #ifdef HAVE_IEEEFP_H
12706 #include <ieeefp.h>
12707 #endif
12708
12709 int main() {
12710 sqrtf(0);
12711 ; return 0; }
12712 EOF
12713 if { (eval echo configure:12714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12714 rm -rf conftest*
12715 glibcpp_cv_func_sqrtf_use=yes
12716 else
12717 echo "configure: failed program was:" >&5
12718 cat conftest.$ac_ext >&5
12719 rm -rf conftest*
12720 glibcpp_cv_func_sqrtf_use=no
12721 fi
12722 rm -f conftest*
12723 ac_ext=c
12724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12725 ac_cpp='$CPP $CPPFLAGS'
12726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12728 cross_compiling=$ac_cv_prog_cc_cross
12729
12730
12731 fi
12732
12733 fi
12734 echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
12735
12736 if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
12737 for ac_func in sqrtf
12738 do
12739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12740 echo "configure:12741: checking for $ac_func" >&5
12741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12742 echo $ac_n "(cached) $ac_c" 1>&6
12743 else
12744 cat > conftest.$ac_ext <<EOF
12745 #line 12746 "configure"
12746 #include "confdefs.h"
12747 /* System header to define __stub macros and hopefully few prototypes,
12748 which can conflict with char $ac_func(); below. */
12749 #include <assert.h>
12750 /* Override any gcc2 internal prototype to avoid an error. */
12751 /* We use char because int might match the return type of a gcc2
12752 builtin and then its argument prototype would still apply. */
12753 char $ac_func();
12754
12755 int main() {
12756
12757 /* The GNU C library defines this for functions which it implements
12758 to always fail with ENOSYS. Some functions are actually named
12759 something starting with __ and the normal name is an alias. */
12760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12761 choke me
12762 #else
12763 $ac_func();
12764 #endif
12765
12766 ; return 0; }
12767 EOF
12768 if { (eval echo configure:12769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12769 rm -rf conftest*
12770 eval "ac_cv_func_$ac_func=yes"
12771 else
12772 echo "configure: failed program was:" >&5
12773 cat conftest.$ac_ext >&5
12774 rm -rf conftest*
12775 eval "ac_cv_func_$ac_func=no"
12776 fi
12777 rm -f conftest*
12778 fi
12779
12780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12781 echo "$ac_t""yes" 1>&6
12782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12783 cat >> confdefs.h <<EOF
12784 #define $ac_tr_func 1
12785 EOF
12786
12787 else
12788 echo "$ac_t""no" 1>&6
12789 fi
12790 done
12791
12792 else
12793
12794 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
12795 echo "configure:12796: checking for _sqrtf declaration" >&5
12796 if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
12797 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
12798 echo $ac_n "(cached) $ac_c" 1>&6
12799 else
12800
12801
12802 ac_ext=C
12803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12804 ac_cpp='$CXXCPP $CPPFLAGS'
12805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12807 cross_compiling=$ac_cv_prog_cxx_cross
12808
12809 cat > conftest.$ac_ext <<EOF
12810 #line 12811 "configure"
12811 #include "confdefs.h"
12812 #include <math.h>
12813 #ifdef HAVE_IEEEFP_H
12814 #include <ieeefp.h>
12815 #endif
12816
12817 int main() {
12818 _sqrtf(0);
12819 ; return 0; }
12820 EOF
12821 if { (eval echo configure:12822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12822 rm -rf conftest*
12823 glibcpp_cv_func__sqrtf_use=yes
12824 else
12825 echo "configure: failed program was:" >&5
12826 cat conftest.$ac_ext >&5
12827 rm -rf conftest*
12828 glibcpp_cv_func__sqrtf_use=no
12829 fi
12830 rm -f conftest*
12831 ac_ext=c
12832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12833 ac_cpp='$CPP $CPPFLAGS'
12834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12836 cross_compiling=$ac_cv_prog_cc_cross
12837
12838
12839 fi
12840
12841 fi
12842 echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
12843
12844 if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
12845 for ac_func in _sqrtf
12846 do
12847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12848 echo "configure:12849: checking for $ac_func" >&5
12849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12850 echo $ac_n "(cached) $ac_c" 1>&6
12851 else
12852 cat > conftest.$ac_ext <<EOF
12853 #line 12854 "configure"
12854 #include "confdefs.h"
12855 /* System header to define __stub macros and hopefully few prototypes,
12856 which can conflict with char $ac_func(); below. */
12857 #include <assert.h>
12858 /* Override any gcc2 internal prototype to avoid an error. */
12859 /* We use char because int might match the return type of a gcc2
12860 builtin and then its argument prototype would still apply. */
12861 char $ac_func();
12862
12863 int main() {
12864
12865 /* The GNU C library defines this for functions which it implements
12866 to always fail with ENOSYS. Some functions are actually named
12867 something starting with __ and the normal name is an alias. */
12868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12869 choke me
12870 #else
12871 $ac_func();
12872 #endif
12873
12874 ; return 0; }
12875 EOF
12876 if { (eval echo configure:12877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12877 rm -rf conftest*
12878 eval "ac_cv_func_$ac_func=yes"
12879 else
12880 echo "configure: failed program was:" >&5
12881 cat conftest.$ac_ext >&5
12882 rm -rf conftest*
12883 eval "ac_cv_func_$ac_func=no"
12884 fi
12885 rm -f conftest*
12886 fi
12887
12888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12889 echo "$ac_t""yes" 1>&6
12890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12891 cat >> confdefs.h <<EOF
12892 #define $ac_tr_func 1
12893 EOF
12894
12895 else
12896 echo "$ac_t""no" 1>&6
12897 fi
12898 done
12899
12900 fi
12901 fi
12902
12903
12904
12905 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
12906 echo "configure:12907: checking for sincosf declaration" >&5
12907 if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
12908 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
12909 echo $ac_n "(cached) $ac_c" 1>&6
12910 else
12911
12912
12913 ac_ext=C
12914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12915 ac_cpp='$CXXCPP $CPPFLAGS'
12916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12918 cross_compiling=$ac_cv_prog_cxx_cross
12919
12920 cat > conftest.$ac_ext <<EOF
12921 #line 12922 "configure"
12922 #include "confdefs.h"
12923 #include <math.h>
12924 int main() {
12925 sincosf(0, 0, 0);
12926 ; return 0; }
12927 EOF
12928 if { (eval echo configure:12929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12929 rm -rf conftest*
12930 glibcpp_cv_func_sincosf_use=yes
12931 else
12932 echo "configure: failed program was:" >&5
12933 cat conftest.$ac_ext >&5
12934 rm -rf conftest*
12935 glibcpp_cv_func_sincosf_use=no
12936 fi
12937 rm -f conftest*
12938 ac_ext=c
12939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12940 ac_cpp='$CPP $CPPFLAGS'
12941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12943 cross_compiling=$ac_cv_prog_cc_cross
12944
12945
12946 fi
12947
12948 fi
12949 echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
12950
12951 if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
12952 for ac_func in sincosf
12953 do
12954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12955 echo "configure:12956: checking for $ac_func" >&5
12956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12957 echo $ac_n "(cached) $ac_c" 1>&6
12958 else
12959 cat > conftest.$ac_ext <<EOF
12960 #line 12961 "configure"
12961 #include "confdefs.h"
12962 /* System header to define __stub macros and hopefully few prototypes,
12963 which can conflict with char $ac_func(); below. */
12964 #include <assert.h>
12965 /* Override any gcc2 internal prototype to avoid an error. */
12966 /* We use char because int might match the return type of a gcc2
12967 builtin and then its argument prototype would still apply. */
12968 char $ac_func();
12969
12970 int main() {
12971
12972 /* The GNU C library defines this for functions which it implements
12973 to always fail with ENOSYS. Some functions are actually named
12974 something starting with __ and the normal name is an alias. */
12975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12976 choke me
12977 #else
12978 $ac_func();
12979 #endif
12980
12981 ; return 0; }
12982 EOF
12983 if { (eval echo configure:12984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12984 rm -rf conftest*
12985 eval "ac_cv_func_$ac_func=yes"
12986 else
12987 echo "configure: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12989 rm -rf conftest*
12990 eval "ac_cv_func_$ac_func=no"
12991 fi
12992 rm -f conftest*
12993 fi
12994
12995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12996 echo "$ac_t""yes" 1>&6
12997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12998 cat >> confdefs.h <<EOF
12999 #define $ac_tr_func 1
13000 EOF
13001
13002 else
13003 echo "$ac_t""no" 1>&6
13004 fi
13005 done
13006
13007 else
13008
13009 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
13010 echo "configure:13011: checking for _sincosf declaration" >&5
13011 if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
13012 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
13013 echo $ac_n "(cached) $ac_c" 1>&6
13014 else
13015
13016
13017 ac_ext=C
13018 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13019 ac_cpp='$CXXCPP $CPPFLAGS'
13020 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13021 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13022 cross_compiling=$ac_cv_prog_cxx_cross
13023
13024 cat > conftest.$ac_ext <<EOF
13025 #line 13026 "configure"
13026 #include "confdefs.h"
13027 #include <math.h>
13028 int main() {
13029 _sincosf(0, 0, 0);
13030 ; return 0; }
13031 EOF
13032 if { (eval echo configure:13033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13033 rm -rf conftest*
13034 glibcpp_cv_func__sincosf_use=yes
13035 else
13036 echo "configure: failed program was:" >&5
13037 cat conftest.$ac_ext >&5
13038 rm -rf conftest*
13039 glibcpp_cv_func__sincosf_use=no
13040 fi
13041 rm -f conftest*
13042 ac_ext=c
13043 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13044 ac_cpp='$CPP $CPPFLAGS'
13045 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13046 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13047 cross_compiling=$ac_cv_prog_cc_cross
13048
13049
13050 fi
13051
13052 fi
13053 echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
13054
13055 if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
13056 for ac_func in _sincosf
13057 do
13058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13059 echo "configure:13060: checking for $ac_func" >&5
13060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13061 echo $ac_n "(cached) $ac_c" 1>&6
13062 else
13063 cat > conftest.$ac_ext <<EOF
13064 #line 13065 "configure"
13065 #include "confdefs.h"
13066 /* System header to define __stub macros and hopefully few prototypes,
13067 which can conflict with char $ac_func(); below. */
13068 #include <assert.h>
13069 /* Override any gcc2 internal prototype to avoid an error. */
13070 /* We use char because int might match the return type of a gcc2
13071 builtin and then its argument prototype would still apply. */
13072 char $ac_func();
13073
13074 int main() {
13075
13076 /* The GNU C library defines this for functions which it implements
13077 to always fail with ENOSYS. Some functions are actually named
13078 something starting with __ and the normal name is an alias. */
13079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13080 choke me
13081 #else
13082 $ac_func();
13083 #endif
13084
13085 ; return 0; }
13086 EOF
13087 if { (eval echo configure:13088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13088 rm -rf conftest*
13089 eval "ac_cv_func_$ac_func=yes"
13090 else
13091 echo "configure: failed program was:" >&5
13092 cat conftest.$ac_ext >&5
13093 rm -rf conftest*
13094 eval "ac_cv_func_$ac_func=no"
13095 fi
13096 rm -f conftest*
13097 fi
13098
13099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13100 echo "$ac_t""yes" 1>&6
13101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13102 cat >> confdefs.h <<EOF
13103 #define $ac_tr_func 1
13104 EOF
13105
13106 else
13107 echo "$ac_t""no" 1>&6
13108 fi
13109 done
13110
13111 fi
13112 fi
13113
13114
13115
13116 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
13117 echo "configure:13118: checking for finitef declaration" >&5
13118 if test x${glibcpp_cv_func_finitef_use+set} != xset; then
13119 if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
13120 echo $ac_n "(cached) $ac_c" 1>&6
13121 else
13122
13123
13124 ac_ext=C
13125 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13126 ac_cpp='$CXXCPP $CPPFLAGS'
13127 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13128 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13129 cross_compiling=$ac_cv_prog_cxx_cross
13130
13131 cat > conftest.$ac_ext <<EOF
13132 #line 13133 "configure"
13133 #include "confdefs.h"
13134 #include <math.h>
13135 #ifdef HAVE_IEEEFP_H
13136 #include <ieeefp.h>
13137 #endif
13138
13139 int main() {
13140 finitef(0);
13141 ; return 0; }
13142 EOF
13143 if { (eval echo configure:13144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13144 rm -rf conftest*
13145 glibcpp_cv_func_finitef_use=yes
13146 else
13147 echo "configure: failed program was:" >&5
13148 cat conftest.$ac_ext >&5
13149 rm -rf conftest*
13150 glibcpp_cv_func_finitef_use=no
13151 fi
13152 rm -f conftest*
13153 ac_ext=c
13154 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13155 ac_cpp='$CPP $CPPFLAGS'
13156 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13157 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13158 cross_compiling=$ac_cv_prog_cc_cross
13159
13160
13161 fi
13162
13163 fi
13164 echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
13165
13166 if test x$glibcpp_cv_func_finitef_use = x"yes"; then
13167 for ac_func in finitef
13168 do
13169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13170 echo "configure:13171: checking for $ac_func" >&5
13171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13172 echo $ac_n "(cached) $ac_c" 1>&6
13173 else
13174 cat > conftest.$ac_ext <<EOF
13175 #line 13176 "configure"
13176 #include "confdefs.h"
13177 /* System header to define __stub macros and hopefully few prototypes,
13178 which can conflict with char $ac_func(); below. */
13179 #include <assert.h>
13180 /* Override any gcc2 internal prototype to avoid an error. */
13181 /* We use char because int might match the return type of a gcc2
13182 builtin and then its argument prototype would still apply. */
13183 char $ac_func();
13184
13185 int main() {
13186
13187 /* The GNU C library defines this for functions which it implements
13188 to always fail with ENOSYS. Some functions are actually named
13189 something starting with __ and the normal name is an alias. */
13190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13191 choke me
13192 #else
13193 $ac_func();
13194 #endif
13195
13196 ; return 0; }
13197 EOF
13198 if { (eval echo configure:13199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13199 rm -rf conftest*
13200 eval "ac_cv_func_$ac_func=yes"
13201 else
13202 echo "configure: failed program was:" >&5
13203 cat conftest.$ac_ext >&5
13204 rm -rf conftest*
13205 eval "ac_cv_func_$ac_func=no"
13206 fi
13207 rm -f conftest*
13208 fi
13209
13210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13211 echo "$ac_t""yes" 1>&6
13212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13213 cat >> confdefs.h <<EOF
13214 #define $ac_tr_func 1
13215 EOF
13216
13217 else
13218 echo "$ac_t""no" 1>&6
13219 fi
13220 done
13221
13222 else
13223
13224 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
13225 echo "configure:13226: checking for _finitef declaration" >&5
13226 if test x${glibcpp_cv_func__finitef_use+set} != xset; then
13227 if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
13228 echo $ac_n "(cached) $ac_c" 1>&6
13229 else
13230
13231
13232 ac_ext=C
13233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13234 ac_cpp='$CXXCPP $CPPFLAGS'
13235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13237 cross_compiling=$ac_cv_prog_cxx_cross
13238
13239 cat > conftest.$ac_ext <<EOF
13240 #line 13241 "configure"
13241 #include "confdefs.h"
13242 #include <math.h>
13243 #ifdef HAVE_IEEEFP_H
13244 #include <ieeefp.h>
13245 #endif
13246
13247 int main() {
13248 _finitef(0);
13249 ; return 0; }
13250 EOF
13251 if { (eval echo configure:13252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13252 rm -rf conftest*
13253 glibcpp_cv_func__finitef_use=yes
13254 else
13255 echo "configure: failed program was:" >&5
13256 cat conftest.$ac_ext >&5
13257 rm -rf conftest*
13258 glibcpp_cv_func__finitef_use=no
13259 fi
13260 rm -f conftest*
13261 ac_ext=c
13262 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13263 ac_cpp='$CPP $CPPFLAGS'
13264 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13265 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13266 cross_compiling=$ac_cv_prog_cc_cross
13267
13268
13269 fi
13270
13271 fi
13272 echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
13273
13274 if test x$glibcpp_cv_func__finitef_use = x"yes"; then
13275 for ac_func in _finitef
13276 do
13277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13278 echo "configure:13279: checking for $ac_func" >&5
13279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13280 echo $ac_n "(cached) $ac_c" 1>&6
13281 else
13282 cat > conftest.$ac_ext <<EOF
13283 #line 13284 "configure"
13284 #include "confdefs.h"
13285 /* System header to define __stub macros and hopefully few prototypes,
13286 which can conflict with char $ac_func(); below. */
13287 #include <assert.h>
13288 /* Override any gcc2 internal prototype to avoid an error. */
13289 /* We use char because int might match the return type of a gcc2
13290 builtin and then its argument prototype would still apply. */
13291 char $ac_func();
13292
13293 int main() {
13294
13295 /* The GNU C library defines this for functions which it implements
13296 to always fail with ENOSYS. Some functions are actually named
13297 something starting with __ and the normal name is an alias. */
13298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13299 choke me
13300 #else
13301 $ac_func();
13302 #endif
13303
13304 ; return 0; }
13305 EOF
13306 if { (eval echo configure:13307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13307 rm -rf conftest*
13308 eval "ac_cv_func_$ac_func=yes"
13309 else
13310 echo "configure: failed program was:" >&5
13311 cat conftest.$ac_ext >&5
13312 rm -rf conftest*
13313 eval "ac_cv_func_$ac_func=no"
13314 fi
13315 rm -f conftest*
13316 fi
13317
13318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13319 echo "$ac_t""yes" 1>&6
13320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13321 cat >> confdefs.h <<EOF
13322 #define $ac_tr_func 1
13323 EOF
13324
13325 else
13326 echo "$ac_t""no" 1>&6
13327 fi
13328 done
13329
13330 fi
13331 fi
13332
13333
13334
13335 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
13336 echo "configure:13337: checking for long double trig functions" >&5
13337 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
13338 echo $ac_n "(cached) $ac_c" 1>&6
13339 else
13340
13341
13342 ac_ext=C
13343 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13344 ac_cpp='$CXXCPP $CPPFLAGS'
13345 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13346 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13347 cross_compiling=$ac_cv_prog_cxx_cross
13348
13349 cat > conftest.$ac_ext <<EOF
13350 #line 13351 "configure"
13351 #include "confdefs.h"
13352 #include <math.h>
13353 int main() {
13354 `for x in acosl asinl atanl \
13355 cosl sinl tanl \
13356 coshl sinhl tanhl; do echo "$x (0);"; done`
13357 ; return 0; }
13358 EOF
13359 if { (eval echo configure:13360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13360 rm -rf conftest*
13361 glibcpp_cv_func_long_double_trig_use=yes
13362 else
13363 echo "configure: failed program was:" >&5
13364 cat conftest.$ac_ext >&5
13365 rm -rf conftest*
13366 glibcpp_cv_func_long_double_trig_use=no
13367 fi
13368 rm -f conftest*
13369 ac_ext=c
13370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13371 ac_cpp='$CPP $CPPFLAGS'
13372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13374 cross_compiling=$ac_cv_prog_cc_cross
13375
13376 fi
13377
13378 echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
13379 if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
13380 for ac_func in acosl asinl atanl \
13381 cosl sinl tanl \
13382 coshl sinhl tanhl
13383 do
13384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13385 echo "configure:13386: checking for $ac_func" >&5
13386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13387 echo $ac_n "(cached) $ac_c" 1>&6
13388 else
13389 cat > conftest.$ac_ext <<EOF
13390 #line 13391 "configure"
13391 #include "confdefs.h"
13392 /* System header to define __stub macros and hopefully few prototypes,
13393 which can conflict with char $ac_func(); below. */
13394 #include <assert.h>
13395 /* Override any gcc2 internal prototype to avoid an error. */
13396 /* We use char because int might match the return type of a gcc2
13397 builtin and then its argument prototype would still apply. */
13398 char $ac_func();
13399
13400 int main() {
13401
13402 /* The GNU C library defines this for functions which it implements
13403 to always fail with ENOSYS. Some functions are actually named
13404 something starting with __ and the normal name is an alias. */
13405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13406 choke me
13407 #else
13408 $ac_func();
13409 #endif
13410
13411 ; return 0; }
13412 EOF
13413 if { (eval echo configure:13414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13414 rm -rf conftest*
13415 eval "ac_cv_func_$ac_func=yes"
13416 else
13417 echo "configure: failed program was:" >&5
13418 cat conftest.$ac_ext >&5
13419 rm -rf conftest*
13420 eval "ac_cv_func_$ac_func=no"
13421 fi
13422 rm -f conftest*
13423 fi
13424
13425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13426 echo "$ac_t""yes" 1>&6
13427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13428 cat >> confdefs.h <<EOF
13429 #define $ac_tr_func 1
13430 EOF
13431
13432 else
13433 echo "$ac_t""no" 1>&6
13434 fi
13435 done
13436
13437 fi
13438
13439
13440 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
13441 echo "configure:13442: checking for long double round functions" >&5
13442 if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
13443 echo $ac_n "(cached) $ac_c" 1>&6
13444 else
13445
13446
13447 ac_ext=C
13448 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13449 ac_cpp='$CXXCPP $CPPFLAGS'
13450 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13451 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13452 cross_compiling=$ac_cv_prog_cxx_cross
13453
13454 cat > conftest.$ac_ext <<EOF
13455 #line 13456 "configure"
13456 #include "confdefs.h"
13457 #include <math.h>
13458 int main() {
13459 `for x in ceill floorl; do echo "$x (0);"; done`
13460 ; return 0; }
13461 EOF
13462 if { (eval echo configure:13463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13463 rm -rf conftest*
13464 glibcpp_cv_func_long_double_round_use=yes
13465 else
13466 echo "configure: failed program was:" >&5
13467 cat conftest.$ac_ext >&5
13468 rm -rf conftest*
13469 glibcpp_cv_func_long_double_round_use=no
13470 fi
13471 rm -f conftest*
13472 ac_ext=c
13473 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13474 ac_cpp='$CPP $CPPFLAGS'
13475 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13476 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13477 cross_compiling=$ac_cv_prog_cc_cross
13478
13479 fi
13480
13481 echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
13482 if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
13483 for ac_func in ceill floorl
13484 do
13485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13486 echo "configure:13487: checking for $ac_func" >&5
13487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13488 echo $ac_n "(cached) $ac_c" 1>&6
13489 else
13490 cat > conftest.$ac_ext <<EOF
13491 #line 13492 "configure"
13492 #include "confdefs.h"
13493 /* System header to define __stub macros and hopefully few prototypes,
13494 which can conflict with char $ac_func(); below. */
13495 #include <assert.h>
13496 /* Override any gcc2 internal prototype to avoid an error. */
13497 /* We use char because int might match the return type of a gcc2
13498 builtin and then its argument prototype would still apply. */
13499 char $ac_func();
13500
13501 int main() {
13502
13503 /* The GNU C library defines this for functions which it implements
13504 to always fail with ENOSYS. Some functions are actually named
13505 something starting with __ and the normal name is an alias. */
13506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13507 choke me
13508 #else
13509 $ac_func();
13510 #endif
13511
13512 ; return 0; }
13513 EOF
13514 if { (eval echo configure:13515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13515 rm -rf conftest*
13516 eval "ac_cv_func_$ac_func=yes"
13517 else
13518 echo "configure: failed program was:" >&5
13519 cat conftest.$ac_ext >&5
13520 rm -rf conftest*
13521 eval "ac_cv_func_$ac_func=no"
13522 fi
13523 rm -f conftest*
13524 fi
13525
13526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13527 echo "$ac_t""yes" 1>&6
13528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13529 cat >> confdefs.h <<EOF
13530 #define $ac_tr_func 1
13531 EOF
13532
13533 else
13534 echo "$ac_t""no" 1>&6
13535 fi
13536 done
13537
13538 fi
13539
13540
13541
13542 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
13543 echo "configure:13544: checking for isnanl declaration" >&5
13544 if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
13545 if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
13546 echo $ac_n "(cached) $ac_c" 1>&6
13547 else
13548
13549
13550 ac_ext=C
13551 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13552 ac_cpp='$CXXCPP $CPPFLAGS'
13553 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13554 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13555 cross_compiling=$ac_cv_prog_cxx_cross
13556
13557 cat > conftest.$ac_ext <<EOF
13558 #line 13559 "configure"
13559 #include "confdefs.h"
13560 #include <math.h>
13561 #ifdef HAVE_IEEEFP_H
13562 #include <ieeefp.h>
13563 #endif
13564
13565 int main() {
13566 isnanl(0);
13567 ; return 0; }
13568 EOF
13569 if { (eval echo configure:13570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13570 rm -rf conftest*
13571 glibcpp_cv_func_isnanl_use=yes
13572 else
13573 echo "configure: failed program was:" >&5
13574 cat conftest.$ac_ext >&5
13575 rm -rf conftest*
13576 glibcpp_cv_func_isnanl_use=no
13577 fi
13578 rm -f conftest*
13579 ac_ext=c
13580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13581 ac_cpp='$CPP $CPPFLAGS'
13582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13584 cross_compiling=$ac_cv_prog_cc_cross
13585
13586
13587 fi
13588
13589 fi
13590 echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
13591
13592 if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
13593 for ac_func in isnanl
13594 do
13595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13596 echo "configure:13597: checking for $ac_func" >&5
13597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13598 echo $ac_n "(cached) $ac_c" 1>&6
13599 else
13600 cat > conftest.$ac_ext <<EOF
13601 #line 13602 "configure"
13602 #include "confdefs.h"
13603 /* System header to define __stub macros and hopefully few prototypes,
13604 which can conflict with char $ac_func(); below. */
13605 #include <assert.h>
13606 /* Override any gcc2 internal prototype to avoid an error. */
13607 /* We use char because int might match the return type of a gcc2
13608 builtin and then its argument prototype would still apply. */
13609 char $ac_func();
13610
13611 int main() {
13612
13613 /* The GNU C library defines this for functions which it implements
13614 to always fail with ENOSYS. Some functions are actually named
13615 something starting with __ and the normal name is an alias. */
13616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13617 choke me
13618 #else
13619 $ac_func();
13620 #endif
13621
13622 ; return 0; }
13623 EOF
13624 if { (eval echo configure:13625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13625 rm -rf conftest*
13626 eval "ac_cv_func_$ac_func=yes"
13627 else
13628 echo "configure: failed program was:" >&5
13629 cat conftest.$ac_ext >&5
13630 rm -rf conftest*
13631 eval "ac_cv_func_$ac_func=no"
13632 fi
13633 rm -f conftest*
13634 fi
13635
13636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13637 echo "$ac_t""yes" 1>&6
13638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13639 cat >> confdefs.h <<EOF
13640 #define $ac_tr_func 1
13641 EOF
13642
13643 else
13644 echo "$ac_t""no" 1>&6
13645 fi
13646 done
13647
13648 else
13649
13650 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
13651 echo "configure:13652: checking for _isnanl declaration" >&5
13652 if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
13653 if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
13654 echo $ac_n "(cached) $ac_c" 1>&6
13655 else
13656
13657
13658 ac_ext=C
13659 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13660 ac_cpp='$CXXCPP $CPPFLAGS'
13661 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13662 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13663 cross_compiling=$ac_cv_prog_cxx_cross
13664
13665 cat > conftest.$ac_ext <<EOF
13666 #line 13667 "configure"
13667 #include "confdefs.h"
13668 #include <math.h>
13669 #ifdef HAVE_IEEEFP_H
13670 #include <ieeefp.h>
13671 #endif
13672
13673 int main() {
13674 _isnanl(0);
13675 ; return 0; }
13676 EOF
13677 if { (eval echo configure:13678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13678 rm -rf conftest*
13679 glibcpp_cv_func__isnanl_use=yes
13680 else
13681 echo "configure: failed program was:" >&5
13682 cat conftest.$ac_ext >&5
13683 rm -rf conftest*
13684 glibcpp_cv_func__isnanl_use=no
13685 fi
13686 rm -f conftest*
13687 ac_ext=c
13688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13689 ac_cpp='$CPP $CPPFLAGS'
13690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13692 cross_compiling=$ac_cv_prog_cc_cross
13693
13694
13695 fi
13696
13697 fi
13698 echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
13699
13700 if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
13701 for ac_func in _isnanl
13702 do
13703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13704 echo "configure:13705: checking for $ac_func" >&5
13705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13706 echo $ac_n "(cached) $ac_c" 1>&6
13707 else
13708 cat > conftest.$ac_ext <<EOF
13709 #line 13710 "configure"
13710 #include "confdefs.h"
13711 /* System header to define __stub macros and hopefully few prototypes,
13712 which can conflict with char $ac_func(); below. */
13713 #include <assert.h>
13714 /* Override any gcc2 internal prototype to avoid an error. */
13715 /* We use char because int might match the return type of a gcc2
13716 builtin and then its argument prototype would still apply. */
13717 char $ac_func();
13718
13719 int main() {
13720
13721 /* The GNU C library defines this for functions which it implements
13722 to always fail with ENOSYS. Some functions are actually named
13723 something starting with __ and the normal name is an alias. */
13724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13725 choke me
13726 #else
13727 $ac_func();
13728 #endif
13729
13730 ; return 0; }
13731 EOF
13732 if { (eval echo configure:13733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13733 rm -rf conftest*
13734 eval "ac_cv_func_$ac_func=yes"
13735 else
13736 echo "configure: failed program was:" >&5
13737 cat conftest.$ac_ext >&5
13738 rm -rf conftest*
13739 eval "ac_cv_func_$ac_func=no"
13740 fi
13741 rm -f conftest*
13742 fi
13743
13744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13745 echo "$ac_t""yes" 1>&6
13746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13747 cat >> confdefs.h <<EOF
13748 #define $ac_tr_func 1
13749 EOF
13750
13751 else
13752 echo "$ac_t""no" 1>&6
13753 fi
13754 done
13755
13756 fi
13757 fi
13758
13759
13760
13761 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
13762 echo "configure:13763: checking for isinfl declaration" >&5
13763 if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
13764 if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
13765 echo $ac_n "(cached) $ac_c" 1>&6
13766 else
13767
13768
13769 ac_ext=C
13770 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13771 ac_cpp='$CXXCPP $CPPFLAGS'
13772 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13773 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13774 cross_compiling=$ac_cv_prog_cxx_cross
13775
13776 cat > conftest.$ac_ext <<EOF
13777 #line 13778 "configure"
13778 #include "confdefs.h"
13779 #include <math.h>
13780 #ifdef HAVE_IEEEFP_H
13781 #include <ieeefp.h>
13782 #endif
13783
13784 int main() {
13785 isinfl(0);
13786 ; return 0; }
13787 EOF
13788 if { (eval echo configure:13789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13789 rm -rf conftest*
13790 glibcpp_cv_func_isinfl_use=yes
13791 else
13792 echo "configure: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13794 rm -rf conftest*
13795 glibcpp_cv_func_isinfl_use=no
13796 fi
13797 rm -f conftest*
13798 ac_ext=c
13799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13800 ac_cpp='$CPP $CPPFLAGS'
13801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13803 cross_compiling=$ac_cv_prog_cc_cross
13804
13805
13806 fi
13807
13808 fi
13809 echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
13810
13811 if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
13812 for ac_func in isinfl
13813 do
13814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13815 echo "configure:13816: checking for $ac_func" >&5
13816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13817 echo $ac_n "(cached) $ac_c" 1>&6
13818 else
13819 cat > conftest.$ac_ext <<EOF
13820 #line 13821 "configure"
13821 #include "confdefs.h"
13822 /* System header to define __stub macros and hopefully few prototypes,
13823 which can conflict with char $ac_func(); below. */
13824 #include <assert.h>
13825 /* Override any gcc2 internal prototype to avoid an error. */
13826 /* We use char because int might match the return type of a gcc2
13827 builtin and then its argument prototype would still apply. */
13828 char $ac_func();
13829
13830 int main() {
13831
13832 /* The GNU C library defines this for functions which it implements
13833 to always fail with ENOSYS. Some functions are actually named
13834 something starting with __ and the normal name is an alias. */
13835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13836 choke me
13837 #else
13838 $ac_func();
13839 #endif
13840
13841 ; return 0; }
13842 EOF
13843 if { (eval echo configure:13844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13844 rm -rf conftest*
13845 eval "ac_cv_func_$ac_func=yes"
13846 else
13847 echo "configure: failed program was:" >&5
13848 cat conftest.$ac_ext >&5
13849 rm -rf conftest*
13850 eval "ac_cv_func_$ac_func=no"
13851 fi
13852 rm -f conftest*
13853 fi
13854
13855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13856 echo "$ac_t""yes" 1>&6
13857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13858 cat >> confdefs.h <<EOF
13859 #define $ac_tr_func 1
13860 EOF
13861
13862 else
13863 echo "$ac_t""no" 1>&6
13864 fi
13865 done
13866
13867 else
13868
13869 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
13870 echo "configure:13871: checking for _isinfl declaration" >&5
13871 if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
13872 if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
13873 echo $ac_n "(cached) $ac_c" 1>&6
13874 else
13875
13876
13877 ac_ext=C
13878 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13879 ac_cpp='$CXXCPP $CPPFLAGS'
13880 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13881 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13882 cross_compiling=$ac_cv_prog_cxx_cross
13883
13884 cat > conftest.$ac_ext <<EOF
13885 #line 13886 "configure"
13886 #include "confdefs.h"
13887 #include <math.h>
13888 #ifdef HAVE_IEEEFP_H
13889 #include <ieeefp.h>
13890 #endif
13891
13892 int main() {
13893 _isinfl(0);
13894 ; return 0; }
13895 EOF
13896 if { (eval echo configure:13897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13897 rm -rf conftest*
13898 glibcpp_cv_func__isinfl_use=yes
13899 else
13900 echo "configure: failed program was:" >&5
13901 cat conftest.$ac_ext >&5
13902 rm -rf conftest*
13903 glibcpp_cv_func__isinfl_use=no
13904 fi
13905 rm -f conftest*
13906 ac_ext=c
13907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13908 ac_cpp='$CPP $CPPFLAGS'
13909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13911 cross_compiling=$ac_cv_prog_cc_cross
13912
13913
13914 fi
13915
13916 fi
13917 echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
13918
13919 if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
13920 for ac_func in _isinfl
13921 do
13922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13923 echo "configure:13924: checking for $ac_func" >&5
13924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13925 echo $ac_n "(cached) $ac_c" 1>&6
13926 else
13927 cat > conftest.$ac_ext <<EOF
13928 #line 13929 "configure"
13929 #include "confdefs.h"
13930 /* System header to define __stub macros and hopefully few prototypes,
13931 which can conflict with char $ac_func(); below. */
13932 #include <assert.h>
13933 /* Override any gcc2 internal prototype to avoid an error. */
13934 /* We use char because int might match the return type of a gcc2
13935 builtin and then its argument prototype would still apply. */
13936 char $ac_func();
13937
13938 int main() {
13939
13940 /* The GNU C library defines this for functions which it implements
13941 to always fail with ENOSYS. Some functions are actually named
13942 something starting with __ and the normal name is an alias. */
13943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13944 choke me
13945 #else
13946 $ac_func();
13947 #endif
13948
13949 ; return 0; }
13950 EOF
13951 if { (eval echo configure:13952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13952 rm -rf conftest*
13953 eval "ac_cv_func_$ac_func=yes"
13954 else
13955 echo "configure: failed program was:" >&5
13956 cat conftest.$ac_ext >&5
13957 rm -rf conftest*
13958 eval "ac_cv_func_$ac_func=no"
13959 fi
13960 rm -f conftest*
13961 fi
13962
13963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13964 echo "$ac_t""yes" 1>&6
13965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13966 cat >> confdefs.h <<EOF
13967 #define $ac_tr_func 1
13968 EOF
13969
13970 else
13971 echo "$ac_t""no" 1>&6
13972 fi
13973 done
13974
13975 fi
13976 fi
13977
13978
13979
13980 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
13981 echo "configure:13982: checking for copysignl declaration" >&5
13982 if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
13983 if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
13984 echo $ac_n "(cached) $ac_c" 1>&6
13985 else
13986
13987
13988 ac_ext=C
13989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13990 ac_cpp='$CXXCPP $CPPFLAGS'
13991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13993 cross_compiling=$ac_cv_prog_cxx_cross
13994
13995 cat > conftest.$ac_ext <<EOF
13996 #line 13997 "configure"
13997 #include "confdefs.h"
13998 #include <math.h>
13999 int main() {
14000 copysignl(0, 0);
14001 ; return 0; }
14002 EOF
14003 if { (eval echo configure:14004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14004 rm -rf conftest*
14005 glibcpp_cv_func_copysignl_use=yes
14006 else
14007 echo "configure: failed program was:" >&5
14008 cat conftest.$ac_ext >&5
14009 rm -rf conftest*
14010 glibcpp_cv_func_copysignl_use=no
14011 fi
14012 rm -f conftest*
14013 ac_ext=c
14014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14015 ac_cpp='$CPP $CPPFLAGS'
14016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14018 cross_compiling=$ac_cv_prog_cc_cross
14019
14020
14021 fi
14022
14023 fi
14024 echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
14025
14026 if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
14027 for ac_func in copysignl
14028 do
14029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14030 echo "configure:14031: checking for $ac_func" >&5
14031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14032 echo $ac_n "(cached) $ac_c" 1>&6
14033 else
14034 cat > conftest.$ac_ext <<EOF
14035 #line 14036 "configure"
14036 #include "confdefs.h"
14037 /* System header to define __stub macros and hopefully few prototypes,
14038 which can conflict with char $ac_func(); below. */
14039 #include <assert.h>
14040 /* Override any gcc2 internal prototype to avoid an error. */
14041 /* We use char because int might match the return type of a gcc2
14042 builtin and then its argument prototype would still apply. */
14043 char $ac_func();
14044
14045 int main() {
14046
14047 /* The GNU C library defines this for functions which it implements
14048 to always fail with ENOSYS. Some functions are actually named
14049 something starting with __ and the normal name is an alias. */
14050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14051 choke me
14052 #else
14053 $ac_func();
14054 #endif
14055
14056 ; return 0; }
14057 EOF
14058 if { (eval echo configure:14059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14059 rm -rf conftest*
14060 eval "ac_cv_func_$ac_func=yes"
14061 else
14062 echo "configure: failed program was:" >&5
14063 cat conftest.$ac_ext >&5
14064 rm -rf conftest*
14065 eval "ac_cv_func_$ac_func=no"
14066 fi
14067 rm -f conftest*
14068 fi
14069
14070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14071 echo "$ac_t""yes" 1>&6
14072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14073 cat >> confdefs.h <<EOF
14074 #define $ac_tr_func 1
14075 EOF
14076
14077 else
14078 echo "$ac_t""no" 1>&6
14079 fi
14080 done
14081
14082 else
14083
14084 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
14085 echo "configure:14086: checking for _copysignl declaration" >&5
14086 if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
14087 if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
14088 echo $ac_n "(cached) $ac_c" 1>&6
14089 else
14090
14091
14092 ac_ext=C
14093 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14094 ac_cpp='$CXXCPP $CPPFLAGS'
14095 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14096 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14097 cross_compiling=$ac_cv_prog_cxx_cross
14098
14099 cat > conftest.$ac_ext <<EOF
14100 #line 14101 "configure"
14101 #include "confdefs.h"
14102 #include <math.h>
14103 int main() {
14104 _copysignl(0, 0);
14105 ; return 0; }
14106 EOF
14107 if { (eval echo configure:14108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14108 rm -rf conftest*
14109 glibcpp_cv_func__copysignl_use=yes
14110 else
14111 echo "configure: failed program was:" >&5
14112 cat conftest.$ac_ext >&5
14113 rm -rf conftest*
14114 glibcpp_cv_func__copysignl_use=no
14115 fi
14116 rm -f conftest*
14117 ac_ext=c
14118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14119 ac_cpp='$CPP $CPPFLAGS'
14120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14121 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14122 cross_compiling=$ac_cv_prog_cc_cross
14123
14124
14125 fi
14126
14127 fi
14128 echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
14129
14130 if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
14131 for ac_func in _copysignl
14132 do
14133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14134 echo "configure:14135: checking for $ac_func" >&5
14135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14136 echo $ac_n "(cached) $ac_c" 1>&6
14137 else
14138 cat > conftest.$ac_ext <<EOF
14139 #line 14140 "configure"
14140 #include "confdefs.h"
14141 /* System header to define __stub macros and hopefully few prototypes,
14142 which can conflict with char $ac_func(); below. */
14143 #include <assert.h>
14144 /* Override any gcc2 internal prototype to avoid an error. */
14145 /* We use char because int might match the return type of a gcc2
14146 builtin and then its argument prototype would still apply. */
14147 char $ac_func();
14148
14149 int main() {
14150
14151 /* The GNU C library defines this for functions which it implements
14152 to always fail with ENOSYS. Some functions are actually named
14153 something starting with __ and the normal name is an alias. */
14154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14155 choke me
14156 #else
14157 $ac_func();
14158 #endif
14159
14160 ; return 0; }
14161 EOF
14162 if { (eval echo configure:14163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14163 rm -rf conftest*
14164 eval "ac_cv_func_$ac_func=yes"
14165 else
14166 echo "configure: failed program was:" >&5
14167 cat conftest.$ac_ext >&5
14168 rm -rf conftest*
14169 eval "ac_cv_func_$ac_func=no"
14170 fi
14171 rm -f conftest*
14172 fi
14173
14174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14175 echo "$ac_t""yes" 1>&6
14176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14177 cat >> confdefs.h <<EOF
14178 #define $ac_tr_func 1
14179 EOF
14180
14181 else
14182 echo "$ac_t""no" 1>&6
14183 fi
14184 done
14185
14186 fi
14187 fi
14188
14189
14190
14191 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
14192 echo "configure:14193: checking for atan2l declaration" >&5
14193 if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
14194 if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
14195 echo $ac_n "(cached) $ac_c" 1>&6
14196 else
14197
14198
14199 ac_ext=C
14200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14201 ac_cpp='$CXXCPP $CPPFLAGS'
14202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14204 cross_compiling=$ac_cv_prog_cxx_cross
14205
14206 cat > conftest.$ac_ext <<EOF
14207 #line 14208 "configure"
14208 #include "confdefs.h"
14209 #include <math.h>
14210 int main() {
14211 atan2l(0, 0);
14212 ; return 0; }
14213 EOF
14214 if { (eval echo configure:14215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14215 rm -rf conftest*
14216 glibcpp_cv_func_atan2l_use=yes
14217 else
14218 echo "configure: failed program was:" >&5
14219 cat conftest.$ac_ext >&5
14220 rm -rf conftest*
14221 glibcpp_cv_func_atan2l_use=no
14222 fi
14223 rm -f conftest*
14224 ac_ext=c
14225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14226 ac_cpp='$CPP $CPPFLAGS'
14227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14229 cross_compiling=$ac_cv_prog_cc_cross
14230
14231
14232 fi
14233
14234 fi
14235 echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
14236
14237 if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
14238 for ac_func in atan2l
14239 do
14240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14241 echo "configure:14242: checking for $ac_func" >&5
14242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14243 echo $ac_n "(cached) $ac_c" 1>&6
14244 else
14245 cat > conftest.$ac_ext <<EOF
14246 #line 14247 "configure"
14247 #include "confdefs.h"
14248 /* System header to define __stub macros and hopefully few prototypes,
14249 which can conflict with char $ac_func(); below. */
14250 #include <assert.h>
14251 /* Override any gcc2 internal prototype to avoid an error. */
14252 /* We use char because int might match the return type of a gcc2
14253 builtin and then its argument prototype would still apply. */
14254 char $ac_func();
14255
14256 int main() {
14257
14258 /* The GNU C library defines this for functions which it implements
14259 to always fail with ENOSYS. Some functions are actually named
14260 something starting with __ and the normal name is an alias. */
14261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14262 choke me
14263 #else
14264 $ac_func();
14265 #endif
14266
14267 ; return 0; }
14268 EOF
14269 if { (eval echo configure:14270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14270 rm -rf conftest*
14271 eval "ac_cv_func_$ac_func=yes"
14272 else
14273 echo "configure: failed program was:" >&5
14274 cat conftest.$ac_ext >&5
14275 rm -rf conftest*
14276 eval "ac_cv_func_$ac_func=no"
14277 fi
14278 rm -f conftest*
14279 fi
14280
14281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14282 echo "$ac_t""yes" 1>&6
14283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14284 cat >> confdefs.h <<EOF
14285 #define $ac_tr_func 1
14286 EOF
14287
14288 else
14289 echo "$ac_t""no" 1>&6
14290 fi
14291 done
14292
14293 else
14294
14295 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
14296 echo "configure:14297: checking for _atan2l declaration" >&5
14297 if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
14298 if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
14299 echo $ac_n "(cached) $ac_c" 1>&6
14300 else
14301
14302
14303 ac_ext=C
14304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14305 ac_cpp='$CXXCPP $CPPFLAGS'
14306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14308 cross_compiling=$ac_cv_prog_cxx_cross
14309
14310 cat > conftest.$ac_ext <<EOF
14311 #line 14312 "configure"
14312 #include "confdefs.h"
14313 #include <math.h>
14314 int main() {
14315 _atan2l(0, 0);
14316 ; return 0; }
14317 EOF
14318 if { (eval echo configure:14319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14319 rm -rf conftest*
14320 glibcpp_cv_func__atan2l_use=yes
14321 else
14322 echo "configure: failed program was:" >&5
14323 cat conftest.$ac_ext >&5
14324 rm -rf conftest*
14325 glibcpp_cv_func__atan2l_use=no
14326 fi
14327 rm -f conftest*
14328 ac_ext=c
14329 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14330 ac_cpp='$CPP $CPPFLAGS'
14331 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14332 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14333 cross_compiling=$ac_cv_prog_cc_cross
14334
14335
14336 fi
14337
14338 fi
14339 echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
14340
14341 if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
14342 for ac_func in _atan2l
14343 do
14344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14345 echo "configure:14346: checking for $ac_func" >&5
14346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14347 echo $ac_n "(cached) $ac_c" 1>&6
14348 else
14349 cat > conftest.$ac_ext <<EOF
14350 #line 14351 "configure"
14351 #include "confdefs.h"
14352 /* System header to define __stub macros and hopefully few prototypes,
14353 which can conflict with char $ac_func(); below. */
14354 #include <assert.h>
14355 /* Override any gcc2 internal prototype to avoid an error. */
14356 /* We use char because int might match the return type of a gcc2
14357 builtin and then its argument prototype would still apply. */
14358 char $ac_func();
14359
14360 int main() {
14361
14362 /* The GNU C library defines this for functions which it implements
14363 to always fail with ENOSYS. Some functions are actually named
14364 something starting with __ and the normal name is an alias. */
14365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14366 choke me
14367 #else
14368 $ac_func();
14369 #endif
14370
14371 ; return 0; }
14372 EOF
14373 if { (eval echo configure:14374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14374 rm -rf conftest*
14375 eval "ac_cv_func_$ac_func=yes"
14376 else
14377 echo "configure: failed program was:" >&5
14378 cat conftest.$ac_ext >&5
14379 rm -rf conftest*
14380 eval "ac_cv_func_$ac_func=no"
14381 fi
14382 rm -f conftest*
14383 fi
14384
14385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14386 echo "$ac_t""yes" 1>&6
14387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14388 cat >> confdefs.h <<EOF
14389 #define $ac_tr_func 1
14390 EOF
14391
14392 else
14393 echo "$ac_t""no" 1>&6
14394 fi
14395 done
14396
14397 fi
14398 fi
14399
14400
14401
14402 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
14403 echo "configure:14404: checking for expl declaration" >&5
14404 if test x${glibcpp_cv_func_expl_use+set} != xset; then
14405 if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
14406 echo $ac_n "(cached) $ac_c" 1>&6
14407 else
14408
14409
14410 ac_ext=C
14411 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14412 ac_cpp='$CXXCPP $CPPFLAGS'
14413 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14414 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14415 cross_compiling=$ac_cv_prog_cxx_cross
14416
14417 cat > conftest.$ac_ext <<EOF
14418 #line 14419 "configure"
14419 #include "confdefs.h"
14420 #include <math.h>
14421 #ifdef HAVE_IEEEFP_H
14422 #include <ieeefp.h>
14423 #endif
14424
14425 int main() {
14426 expl(0);
14427 ; return 0; }
14428 EOF
14429 if { (eval echo configure:14430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14430 rm -rf conftest*
14431 glibcpp_cv_func_expl_use=yes
14432 else
14433 echo "configure: failed program was:" >&5
14434 cat conftest.$ac_ext >&5
14435 rm -rf conftest*
14436 glibcpp_cv_func_expl_use=no
14437 fi
14438 rm -f conftest*
14439 ac_ext=c
14440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14441 ac_cpp='$CPP $CPPFLAGS'
14442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14444 cross_compiling=$ac_cv_prog_cc_cross
14445
14446
14447 fi
14448
14449 fi
14450 echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
14451
14452 if test x$glibcpp_cv_func_expl_use = x"yes"; then
14453 for ac_func in expl
14454 do
14455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14456 echo "configure:14457: checking for $ac_func" >&5
14457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14458 echo $ac_n "(cached) $ac_c" 1>&6
14459 else
14460 cat > conftest.$ac_ext <<EOF
14461 #line 14462 "configure"
14462 #include "confdefs.h"
14463 /* System header to define __stub macros and hopefully few prototypes,
14464 which can conflict with char $ac_func(); below. */
14465 #include <assert.h>
14466 /* Override any gcc2 internal prototype to avoid an error. */
14467 /* We use char because int might match the return type of a gcc2
14468 builtin and then its argument prototype would still apply. */
14469 char $ac_func();
14470
14471 int main() {
14472
14473 /* The GNU C library defines this for functions which it implements
14474 to always fail with ENOSYS. Some functions are actually named
14475 something starting with __ and the normal name is an alias. */
14476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14477 choke me
14478 #else
14479 $ac_func();
14480 #endif
14481
14482 ; return 0; }
14483 EOF
14484 if { (eval echo configure:14485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14485 rm -rf conftest*
14486 eval "ac_cv_func_$ac_func=yes"
14487 else
14488 echo "configure: failed program was:" >&5
14489 cat conftest.$ac_ext >&5
14490 rm -rf conftest*
14491 eval "ac_cv_func_$ac_func=no"
14492 fi
14493 rm -f conftest*
14494 fi
14495
14496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14497 echo "$ac_t""yes" 1>&6
14498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14499 cat >> confdefs.h <<EOF
14500 #define $ac_tr_func 1
14501 EOF
14502
14503 else
14504 echo "$ac_t""no" 1>&6
14505 fi
14506 done
14507
14508 else
14509
14510 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
14511 echo "configure:14512: checking for _expl declaration" >&5
14512 if test x${glibcpp_cv_func__expl_use+set} != xset; then
14513 if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
14514 echo $ac_n "(cached) $ac_c" 1>&6
14515 else
14516
14517
14518 ac_ext=C
14519 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14520 ac_cpp='$CXXCPP $CPPFLAGS'
14521 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14522 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14523 cross_compiling=$ac_cv_prog_cxx_cross
14524
14525 cat > conftest.$ac_ext <<EOF
14526 #line 14527 "configure"
14527 #include "confdefs.h"
14528 #include <math.h>
14529 #ifdef HAVE_IEEEFP_H
14530 #include <ieeefp.h>
14531 #endif
14532
14533 int main() {
14534 _expl(0);
14535 ; return 0; }
14536 EOF
14537 if { (eval echo configure:14538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14538 rm -rf conftest*
14539 glibcpp_cv_func__expl_use=yes
14540 else
14541 echo "configure: failed program was:" >&5
14542 cat conftest.$ac_ext >&5
14543 rm -rf conftest*
14544 glibcpp_cv_func__expl_use=no
14545 fi
14546 rm -f conftest*
14547 ac_ext=c
14548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14549 ac_cpp='$CPP $CPPFLAGS'
14550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14552 cross_compiling=$ac_cv_prog_cc_cross
14553
14554
14555 fi
14556
14557 fi
14558 echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
14559
14560 if test x$glibcpp_cv_func__expl_use = x"yes"; then
14561 for ac_func in _expl
14562 do
14563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14564 echo "configure:14565: checking for $ac_func" >&5
14565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14566 echo $ac_n "(cached) $ac_c" 1>&6
14567 else
14568 cat > conftest.$ac_ext <<EOF
14569 #line 14570 "configure"
14570 #include "confdefs.h"
14571 /* System header to define __stub macros and hopefully few prototypes,
14572 which can conflict with char $ac_func(); below. */
14573 #include <assert.h>
14574 /* Override any gcc2 internal prototype to avoid an error. */
14575 /* We use char because int might match the return type of a gcc2
14576 builtin and then its argument prototype would still apply. */
14577 char $ac_func();
14578
14579 int main() {
14580
14581 /* The GNU C library defines this for functions which it implements
14582 to always fail with ENOSYS. Some functions are actually named
14583 something starting with __ and the normal name is an alias. */
14584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14585 choke me
14586 #else
14587 $ac_func();
14588 #endif
14589
14590 ; return 0; }
14591 EOF
14592 if { (eval echo configure:14593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14593 rm -rf conftest*
14594 eval "ac_cv_func_$ac_func=yes"
14595 else
14596 echo "configure: failed program was:" >&5
14597 cat conftest.$ac_ext >&5
14598 rm -rf conftest*
14599 eval "ac_cv_func_$ac_func=no"
14600 fi
14601 rm -f conftest*
14602 fi
14603
14604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14605 echo "$ac_t""yes" 1>&6
14606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14607 cat >> confdefs.h <<EOF
14608 #define $ac_tr_func 1
14609 EOF
14610
14611 else
14612 echo "$ac_t""no" 1>&6
14613 fi
14614 done
14615
14616 fi
14617 fi
14618
14619
14620
14621 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
14622 echo "configure:14623: checking for fabsl declaration" >&5
14623 if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
14624 if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
14625 echo $ac_n "(cached) $ac_c" 1>&6
14626 else
14627
14628
14629 ac_ext=C
14630 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14631 ac_cpp='$CXXCPP $CPPFLAGS'
14632 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14633 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14634 cross_compiling=$ac_cv_prog_cxx_cross
14635
14636 cat > conftest.$ac_ext <<EOF
14637 #line 14638 "configure"
14638 #include "confdefs.h"
14639 #include <math.h>
14640 #ifdef HAVE_IEEEFP_H
14641 #include <ieeefp.h>
14642 #endif
14643
14644 int main() {
14645 fabsl(0);
14646 ; return 0; }
14647 EOF
14648 if { (eval echo configure:14649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14649 rm -rf conftest*
14650 glibcpp_cv_func_fabsl_use=yes
14651 else
14652 echo "configure: failed program was:" >&5
14653 cat conftest.$ac_ext >&5
14654 rm -rf conftest*
14655 glibcpp_cv_func_fabsl_use=no
14656 fi
14657 rm -f conftest*
14658 ac_ext=c
14659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14660 ac_cpp='$CPP $CPPFLAGS'
14661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14663 cross_compiling=$ac_cv_prog_cc_cross
14664
14665
14666 fi
14667
14668 fi
14669 echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
14670
14671 if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
14672 for ac_func in fabsl
14673 do
14674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14675 echo "configure:14676: checking for $ac_func" >&5
14676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14677 echo $ac_n "(cached) $ac_c" 1>&6
14678 else
14679 cat > conftest.$ac_ext <<EOF
14680 #line 14681 "configure"
14681 #include "confdefs.h"
14682 /* System header to define __stub macros and hopefully few prototypes,
14683 which can conflict with char $ac_func(); below. */
14684 #include <assert.h>
14685 /* Override any gcc2 internal prototype to avoid an error. */
14686 /* We use char because int might match the return type of a gcc2
14687 builtin and then its argument prototype would still apply. */
14688 char $ac_func();
14689
14690 int main() {
14691
14692 /* The GNU C library defines this for functions which it implements
14693 to always fail with ENOSYS. Some functions are actually named
14694 something starting with __ and the normal name is an alias. */
14695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14696 choke me
14697 #else
14698 $ac_func();
14699 #endif
14700
14701 ; return 0; }
14702 EOF
14703 if { (eval echo configure:14704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14704 rm -rf conftest*
14705 eval "ac_cv_func_$ac_func=yes"
14706 else
14707 echo "configure: failed program was:" >&5
14708 cat conftest.$ac_ext >&5
14709 rm -rf conftest*
14710 eval "ac_cv_func_$ac_func=no"
14711 fi
14712 rm -f conftest*
14713 fi
14714
14715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14716 echo "$ac_t""yes" 1>&6
14717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14718 cat >> confdefs.h <<EOF
14719 #define $ac_tr_func 1
14720 EOF
14721
14722 else
14723 echo "$ac_t""no" 1>&6
14724 fi
14725 done
14726
14727 else
14728
14729 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
14730 echo "configure:14731: checking for _fabsl declaration" >&5
14731 if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
14732 if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
14733 echo $ac_n "(cached) $ac_c" 1>&6
14734 else
14735
14736
14737 ac_ext=C
14738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14739 ac_cpp='$CXXCPP $CPPFLAGS'
14740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14742 cross_compiling=$ac_cv_prog_cxx_cross
14743
14744 cat > conftest.$ac_ext <<EOF
14745 #line 14746 "configure"
14746 #include "confdefs.h"
14747 #include <math.h>
14748 #ifdef HAVE_IEEEFP_H
14749 #include <ieeefp.h>
14750 #endif
14751
14752 int main() {
14753 _fabsl(0);
14754 ; return 0; }
14755 EOF
14756 if { (eval echo configure:14757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14757 rm -rf conftest*
14758 glibcpp_cv_func__fabsl_use=yes
14759 else
14760 echo "configure: failed program was:" >&5
14761 cat conftest.$ac_ext >&5
14762 rm -rf conftest*
14763 glibcpp_cv_func__fabsl_use=no
14764 fi
14765 rm -f conftest*
14766 ac_ext=c
14767 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14768 ac_cpp='$CPP $CPPFLAGS'
14769 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14770 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14771 cross_compiling=$ac_cv_prog_cc_cross
14772
14773
14774 fi
14775
14776 fi
14777 echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
14778
14779 if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
14780 for ac_func in _fabsl
14781 do
14782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14783 echo "configure:14784: checking for $ac_func" >&5
14784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14785 echo $ac_n "(cached) $ac_c" 1>&6
14786 else
14787 cat > conftest.$ac_ext <<EOF
14788 #line 14789 "configure"
14789 #include "confdefs.h"
14790 /* System header to define __stub macros and hopefully few prototypes,
14791 which can conflict with char $ac_func(); below. */
14792 #include <assert.h>
14793 /* Override any gcc2 internal prototype to avoid an error. */
14794 /* We use char because int might match the return type of a gcc2
14795 builtin and then its argument prototype would still apply. */
14796 char $ac_func();
14797
14798 int main() {
14799
14800 /* The GNU C library defines this for functions which it implements
14801 to always fail with ENOSYS. Some functions are actually named
14802 something starting with __ and the normal name is an alias. */
14803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14804 choke me
14805 #else
14806 $ac_func();
14807 #endif
14808
14809 ; return 0; }
14810 EOF
14811 if { (eval echo configure:14812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14812 rm -rf conftest*
14813 eval "ac_cv_func_$ac_func=yes"
14814 else
14815 echo "configure: failed program was:" >&5
14816 cat conftest.$ac_ext >&5
14817 rm -rf conftest*
14818 eval "ac_cv_func_$ac_func=no"
14819 fi
14820 rm -f conftest*
14821 fi
14822
14823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14824 echo "$ac_t""yes" 1>&6
14825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14826 cat >> confdefs.h <<EOF
14827 #define $ac_tr_func 1
14828 EOF
14829
14830 else
14831 echo "$ac_t""no" 1>&6
14832 fi
14833 done
14834
14835 fi
14836 fi
14837
14838
14839
14840 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
14841 echo "configure:14842: checking for fmodl declaration" >&5
14842 if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
14843 if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
14844 echo $ac_n "(cached) $ac_c" 1>&6
14845 else
14846
14847
14848 ac_ext=C
14849 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14850 ac_cpp='$CXXCPP $CPPFLAGS'
14851 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14852 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14853 cross_compiling=$ac_cv_prog_cxx_cross
14854
14855 cat > conftest.$ac_ext <<EOF
14856 #line 14857 "configure"
14857 #include "confdefs.h"
14858 #include <math.h>
14859 int main() {
14860 fmodl(0, 0);
14861 ; return 0; }
14862 EOF
14863 if { (eval echo configure:14864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14864 rm -rf conftest*
14865 glibcpp_cv_func_fmodl_use=yes
14866 else
14867 echo "configure: failed program was:" >&5
14868 cat conftest.$ac_ext >&5
14869 rm -rf conftest*
14870 glibcpp_cv_func_fmodl_use=no
14871 fi
14872 rm -f conftest*
14873 ac_ext=c
14874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14875 ac_cpp='$CPP $CPPFLAGS'
14876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14878 cross_compiling=$ac_cv_prog_cc_cross
14879
14880
14881 fi
14882
14883 fi
14884 echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
14885
14886 if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
14887 for ac_func in fmodl
14888 do
14889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14890 echo "configure:14891: checking for $ac_func" >&5
14891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14892 echo $ac_n "(cached) $ac_c" 1>&6
14893 else
14894 cat > conftest.$ac_ext <<EOF
14895 #line 14896 "configure"
14896 #include "confdefs.h"
14897 /* System header to define __stub macros and hopefully few prototypes,
14898 which can conflict with char $ac_func(); below. */
14899 #include <assert.h>
14900 /* Override any gcc2 internal prototype to avoid an error. */
14901 /* We use char because int might match the return type of a gcc2
14902 builtin and then its argument prototype would still apply. */
14903 char $ac_func();
14904
14905 int main() {
14906
14907 /* The GNU C library defines this for functions which it implements
14908 to always fail with ENOSYS. Some functions are actually named
14909 something starting with __ and the normal name is an alias. */
14910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14911 choke me
14912 #else
14913 $ac_func();
14914 #endif
14915
14916 ; return 0; }
14917 EOF
14918 if { (eval echo configure:14919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14919 rm -rf conftest*
14920 eval "ac_cv_func_$ac_func=yes"
14921 else
14922 echo "configure: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14924 rm -rf conftest*
14925 eval "ac_cv_func_$ac_func=no"
14926 fi
14927 rm -f conftest*
14928 fi
14929
14930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14931 echo "$ac_t""yes" 1>&6
14932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14933 cat >> confdefs.h <<EOF
14934 #define $ac_tr_func 1
14935 EOF
14936
14937 else
14938 echo "$ac_t""no" 1>&6
14939 fi
14940 done
14941
14942 else
14943
14944 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
14945 echo "configure:14946: checking for _fmodl declaration" >&5
14946 if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
14947 if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
14948 echo $ac_n "(cached) $ac_c" 1>&6
14949 else
14950
14951
14952 ac_ext=C
14953 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14954 ac_cpp='$CXXCPP $CPPFLAGS'
14955 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14956 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14957 cross_compiling=$ac_cv_prog_cxx_cross
14958
14959 cat > conftest.$ac_ext <<EOF
14960 #line 14961 "configure"
14961 #include "confdefs.h"
14962 #include <math.h>
14963 int main() {
14964 _fmodl(0, 0);
14965 ; return 0; }
14966 EOF
14967 if { (eval echo configure:14968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14968 rm -rf conftest*
14969 glibcpp_cv_func__fmodl_use=yes
14970 else
14971 echo "configure: failed program was:" >&5
14972 cat conftest.$ac_ext >&5
14973 rm -rf conftest*
14974 glibcpp_cv_func__fmodl_use=no
14975 fi
14976 rm -f conftest*
14977 ac_ext=c
14978 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14979 ac_cpp='$CPP $CPPFLAGS'
14980 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14981 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14982 cross_compiling=$ac_cv_prog_cc_cross
14983
14984
14985 fi
14986
14987 fi
14988 echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
14989
14990 if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
14991 for ac_func in _fmodl
14992 do
14993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14994 echo "configure:14995: checking for $ac_func" >&5
14995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14996 echo $ac_n "(cached) $ac_c" 1>&6
14997 else
14998 cat > conftest.$ac_ext <<EOF
14999 #line 15000 "configure"
15000 #include "confdefs.h"
15001 /* System header to define __stub macros and hopefully few prototypes,
15002 which can conflict with char $ac_func(); below. */
15003 #include <assert.h>
15004 /* Override any gcc2 internal prototype to avoid an error. */
15005 /* We use char because int might match the return type of a gcc2
15006 builtin and then its argument prototype would still apply. */
15007 char $ac_func();
15008
15009 int main() {
15010
15011 /* The GNU C library defines this for functions which it implements
15012 to always fail with ENOSYS. Some functions are actually named
15013 something starting with __ and the normal name is an alias. */
15014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15015 choke me
15016 #else
15017 $ac_func();
15018 #endif
15019
15020 ; return 0; }
15021 EOF
15022 if { (eval echo configure:15023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15023 rm -rf conftest*
15024 eval "ac_cv_func_$ac_func=yes"
15025 else
15026 echo "configure: failed program was:" >&5
15027 cat conftest.$ac_ext >&5
15028 rm -rf conftest*
15029 eval "ac_cv_func_$ac_func=no"
15030 fi
15031 rm -f conftest*
15032 fi
15033
15034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15035 echo "$ac_t""yes" 1>&6
15036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15037 cat >> confdefs.h <<EOF
15038 #define $ac_tr_func 1
15039 EOF
15040
15041 else
15042 echo "$ac_t""no" 1>&6
15043 fi
15044 done
15045
15046 fi
15047 fi
15048
15049
15050
15051 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
15052 echo "configure:15053: checking for frexpl declaration" >&5
15053 if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
15054 if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
15055 echo $ac_n "(cached) $ac_c" 1>&6
15056 else
15057
15058
15059 ac_ext=C
15060 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15061 ac_cpp='$CXXCPP $CPPFLAGS'
15062 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15063 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15064 cross_compiling=$ac_cv_prog_cxx_cross
15065
15066 cat > conftest.$ac_ext <<EOF
15067 #line 15068 "configure"
15068 #include "confdefs.h"
15069 #include <math.h>
15070 int main() {
15071 frexpl(0, 0);
15072 ; return 0; }
15073 EOF
15074 if { (eval echo configure:15075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15075 rm -rf conftest*
15076 glibcpp_cv_func_frexpl_use=yes
15077 else
15078 echo "configure: failed program was:" >&5
15079 cat conftest.$ac_ext >&5
15080 rm -rf conftest*
15081 glibcpp_cv_func_frexpl_use=no
15082 fi
15083 rm -f conftest*
15084 ac_ext=c
15085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15086 ac_cpp='$CPP $CPPFLAGS'
15087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15089 cross_compiling=$ac_cv_prog_cc_cross
15090
15091
15092 fi
15093
15094 fi
15095 echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
15096
15097 if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
15098 for ac_func in frexpl
15099 do
15100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15101 echo "configure:15102: checking for $ac_func" >&5
15102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15103 echo $ac_n "(cached) $ac_c" 1>&6
15104 else
15105 cat > conftest.$ac_ext <<EOF
15106 #line 15107 "configure"
15107 #include "confdefs.h"
15108 /* System header to define __stub macros and hopefully few prototypes,
15109 which can conflict with char $ac_func(); below. */
15110 #include <assert.h>
15111 /* Override any gcc2 internal prototype to avoid an error. */
15112 /* We use char because int might match the return type of a gcc2
15113 builtin and then its argument prototype would still apply. */
15114 char $ac_func();
15115
15116 int main() {
15117
15118 /* The GNU C library defines this for functions which it implements
15119 to always fail with ENOSYS. Some functions are actually named
15120 something starting with __ and the normal name is an alias. */
15121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15122 choke me
15123 #else
15124 $ac_func();
15125 #endif
15126
15127 ; return 0; }
15128 EOF
15129 if { (eval echo configure:15130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15130 rm -rf conftest*
15131 eval "ac_cv_func_$ac_func=yes"
15132 else
15133 echo "configure: failed program was:" >&5
15134 cat conftest.$ac_ext >&5
15135 rm -rf conftest*
15136 eval "ac_cv_func_$ac_func=no"
15137 fi
15138 rm -f conftest*
15139 fi
15140
15141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15142 echo "$ac_t""yes" 1>&6
15143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15144 cat >> confdefs.h <<EOF
15145 #define $ac_tr_func 1
15146 EOF
15147
15148 else
15149 echo "$ac_t""no" 1>&6
15150 fi
15151 done
15152
15153 else
15154
15155 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
15156 echo "configure:15157: checking for _frexpl declaration" >&5
15157 if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
15158 if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
15159 echo $ac_n "(cached) $ac_c" 1>&6
15160 else
15161
15162
15163 ac_ext=C
15164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15165 ac_cpp='$CXXCPP $CPPFLAGS'
15166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15168 cross_compiling=$ac_cv_prog_cxx_cross
15169
15170 cat > conftest.$ac_ext <<EOF
15171 #line 15172 "configure"
15172 #include "confdefs.h"
15173 #include <math.h>
15174 int main() {
15175 _frexpl(0, 0);
15176 ; return 0; }
15177 EOF
15178 if { (eval echo configure:15179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15179 rm -rf conftest*
15180 glibcpp_cv_func__frexpl_use=yes
15181 else
15182 echo "configure: failed program was:" >&5
15183 cat conftest.$ac_ext >&5
15184 rm -rf conftest*
15185 glibcpp_cv_func__frexpl_use=no
15186 fi
15187 rm -f conftest*
15188 ac_ext=c
15189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15190 ac_cpp='$CPP $CPPFLAGS'
15191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15193 cross_compiling=$ac_cv_prog_cc_cross
15194
15195
15196 fi
15197
15198 fi
15199 echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
15200
15201 if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
15202 for ac_func in _frexpl
15203 do
15204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15205 echo "configure:15206: checking for $ac_func" >&5
15206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15207 echo $ac_n "(cached) $ac_c" 1>&6
15208 else
15209 cat > conftest.$ac_ext <<EOF
15210 #line 15211 "configure"
15211 #include "confdefs.h"
15212 /* System header to define __stub macros and hopefully few prototypes,
15213 which can conflict with char $ac_func(); below. */
15214 #include <assert.h>
15215 /* Override any gcc2 internal prototype to avoid an error. */
15216 /* We use char because int might match the return type of a gcc2
15217 builtin and then its argument prototype would still apply. */
15218 char $ac_func();
15219
15220 int main() {
15221
15222 /* The GNU C library defines this for functions which it implements
15223 to always fail with ENOSYS. Some functions are actually named
15224 something starting with __ and the normal name is an alias. */
15225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15226 choke me
15227 #else
15228 $ac_func();
15229 #endif
15230
15231 ; return 0; }
15232 EOF
15233 if { (eval echo configure:15234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15234 rm -rf conftest*
15235 eval "ac_cv_func_$ac_func=yes"
15236 else
15237 echo "configure: failed program was:" >&5
15238 cat conftest.$ac_ext >&5
15239 rm -rf conftest*
15240 eval "ac_cv_func_$ac_func=no"
15241 fi
15242 rm -f conftest*
15243 fi
15244
15245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15246 echo "$ac_t""yes" 1>&6
15247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15248 cat >> confdefs.h <<EOF
15249 #define $ac_tr_func 1
15250 EOF
15251
15252 else
15253 echo "$ac_t""no" 1>&6
15254 fi
15255 done
15256
15257 fi
15258 fi
15259
15260
15261
15262 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
15263 echo "configure:15264: checking for hypotl declaration" >&5
15264 if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
15265 if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
15266 echo $ac_n "(cached) $ac_c" 1>&6
15267 else
15268
15269
15270 ac_ext=C
15271 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15272 ac_cpp='$CXXCPP $CPPFLAGS'
15273 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15274 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15275 cross_compiling=$ac_cv_prog_cxx_cross
15276
15277 cat > conftest.$ac_ext <<EOF
15278 #line 15279 "configure"
15279 #include "confdefs.h"
15280 #include <math.h>
15281 int main() {
15282 hypotl(0, 0);
15283 ; return 0; }
15284 EOF
15285 if { (eval echo configure:15286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15286 rm -rf conftest*
15287 glibcpp_cv_func_hypotl_use=yes
15288 else
15289 echo "configure: failed program was:" >&5
15290 cat conftest.$ac_ext >&5
15291 rm -rf conftest*
15292 glibcpp_cv_func_hypotl_use=no
15293 fi
15294 rm -f conftest*
15295 ac_ext=c
15296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15297 ac_cpp='$CPP $CPPFLAGS'
15298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15300 cross_compiling=$ac_cv_prog_cc_cross
15301
15302
15303 fi
15304
15305 fi
15306 echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
15307
15308 if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
15309 for ac_func in hypotl
15310 do
15311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15312 echo "configure:15313: checking for $ac_func" >&5
15313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15314 echo $ac_n "(cached) $ac_c" 1>&6
15315 else
15316 cat > conftest.$ac_ext <<EOF
15317 #line 15318 "configure"
15318 #include "confdefs.h"
15319 /* System header to define __stub macros and hopefully few prototypes,
15320 which can conflict with char $ac_func(); below. */
15321 #include <assert.h>
15322 /* Override any gcc2 internal prototype to avoid an error. */
15323 /* We use char because int might match the return type of a gcc2
15324 builtin and then its argument prototype would still apply. */
15325 char $ac_func();
15326
15327 int main() {
15328
15329 /* The GNU C library defines this for functions which it implements
15330 to always fail with ENOSYS. Some functions are actually named
15331 something starting with __ and the normal name is an alias. */
15332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15333 choke me
15334 #else
15335 $ac_func();
15336 #endif
15337
15338 ; return 0; }
15339 EOF
15340 if { (eval echo configure:15341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15341 rm -rf conftest*
15342 eval "ac_cv_func_$ac_func=yes"
15343 else
15344 echo "configure: failed program was:" >&5
15345 cat conftest.$ac_ext >&5
15346 rm -rf conftest*
15347 eval "ac_cv_func_$ac_func=no"
15348 fi
15349 rm -f conftest*
15350 fi
15351
15352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15353 echo "$ac_t""yes" 1>&6
15354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15355 cat >> confdefs.h <<EOF
15356 #define $ac_tr_func 1
15357 EOF
15358
15359 else
15360 echo "$ac_t""no" 1>&6
15361 fi
15362 done
15363
15364 else
15365
15366 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
15367 echo "configure:15368: checking for _hypotl declaration" >&5
15368 if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
15369 if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
15370 echo $ac_n "(cached) $ac_c" 1>&6
15371 else
15372
15373
15374 ac_ext=C
15375 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15376 ac_cpp='$CXXCPP $CPPFLAGS'
15377 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15378 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15379 cross_compiling=$ac_cv_prog_cxx_cross
15380
15381 cat > conftest.$ac_ext <<EOF
15382 #line 15383 "configure"
15383 #include "confdefs.h"
15384 #include <math.h>
15385 int main() {
15386 _hypotl(0, 0);
15387 ; return 0; }
15388 EOF
15389 if { (eval echo configure:15390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15390 rm -rf conftest*
15391 glibcpp_cv_func__hypotl_use=yes
15392 else
15393 echo "configure: failed program was:" >&5
15394 cat conftest.$ac_ext >&5
15395 rm -rf conftest*
15396 glibcpp_cv_func__hypotl_use=no
15397 fi
15398 rm -f conftest*
15399 ac_ext=c
15400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15401 ac_cpp='$CPP $CPPFLAGS'
15402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15404 cross_compiling=$ac_cv_prog_cc_cross
15405
15406
15407 fi
15408
15409 fi
15410 echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
15411
15412 if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
15413 for ac_func in _hypotl
15414 do
15415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15416 echo "configure:15417: checking for $ac_func" >&5
15417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15418 echo $ac_n "(cached) $ac_c" 1>&6
15419 else
15420 cat > conftest.$ac_ext <<EOF
15421 #line 15422 "configure"
15422 #include "confdefs.h"
15423 /* System header to define __stub macros and hopefully few prototypes,
15424 which can conflict with char $ac_func(); below. */
15425 #include <assert.h>
15426 /* Override any gcc2 internal prototype to avoid an error. */
15427 /* We use char because int might match the return type of a gcc2
15428 builtin and then its argument prototype would still apply. */
15429 char $ac_func();
15430
15431 int main() {
15432
15433 /* The GNU C library defines this for functions which it implements
15434 to always fail with ENOSYS. Some functions are actually named
15435 something starting with __ and the normal name is an alias. */
15436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15437 choke me
15438 #else
15439 $ac_func();
15440 #endif
15441
15442 ; return 0; }
15443 EOF
15444 if { (eval echo configure:15445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15445 rm -rf conftest*
15446 eval "ac_cv_func_$ac_func=yes"
15447 else
15448 echo "configure: failed program was:" >&5
15449 cat conftest.$ac_ext >&5
15450 rm -rf conftest*
15451 eval "ac_cv_func_$ac_func=no"
15452 fi
15453 rm -f conftest*
15454 fi
15455
15456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15457 echo "$ac_t""yes" 1>&6
15458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15459 cat >> confdefs.h <<EOF
15460 #define $ac_tr_func 1
15461 EOF
15462
15463 else
15464 echo "$ac_t""no" 1>&6
15465 fi
15466 done
15467
15468 fi
15469 fi
15470
15471
15472
15473 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
15474 echo "configure:15475: checking for ldexpl declaration" >&5
15475 if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
15476 if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
15477 echo $ac_n "(cached) $ac_c" 1>&6
15478 else
15479
15480
15481 ac_ext=C
15482 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15483 ac_cpp='$CXXCPP $CPPFLAGS'
15484 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15485 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15486 cross_compiling=$ac_cv_prog_cxx_cross
15487
15488 cat > conftest.$ac_ext <<EOF
15489 #line 15490 "configure"
15490 #include "confdefs.h"
15491 #include <math.h>
15492 int main() {
15493 ldexpl(0, 0);
15494 ; return 0; }
15495 EOF
15496 if { (eval echo configure:15497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15497 rm -rf conftest*
15498 glibcpp_cv_func_ldexpl_use=yes
15499 else
15500 echo "configure: failed program was:" >&5
15501 cat conftest.$ac_ext >&5
15502 rm -rf conftest*
15503 glibcpp_cv_func_ldexpl_use=no
15504 fi
15505 rm -f conftest*
15506 ac_ext=c
15507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15508 ac_cpp='$CPP $CPPFLAGS'
15509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15511 cross_compiling=$ac_cv_prog_cc_cross
15512
15513
15514 fi
15515
15516 fi
15517 echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
15518
15519 if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
15520 for ac_func in ldexpl
15521 do
15522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15523 echo "configure:15524: checking for $ac_func" >&5
15524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15525 echo $ac_n "(cached) $ac_c" 1>&6
15526 else
15527 cat > conftest.$ac_ext <<EOF
15528 #line 15529 "configure"
15529 #include "confdefs.h"
15530 /* System header to define __stub macros and hopefully few prototypes,
15531 which can conflict with char $ac_func(); below. */
15532 #include <assert.h>
15533 /* Override any gcc2 internal prototype to avoid an error. */
15534 /* We use char because int might match the return type of a gcc2
15535 builtin and then its argument prototype would still apply. */
15536 char $ac_func();
15537
15538 int main() {
15539
15540 /* The GNU C library defines this for functions which it implements
15541 to always fail with ENOSYS. Some functions are actually named
15542 something starting with __ and the normal name is an alias. */
15543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15544 choke me
15545 #else
15546 $ac_func();
15547 #endif
15548
15549 ; return 0; }
15550 EOF
15551 if { (eval echo configure:15552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15552 rm -rf conftest*
15553 eval "ac_cv_func_$ac_func=yes"
15554 else
15555 echo "configure: failed program was:" >&5
15556 cat conftest.$ac_ext >&5
15557 rm -rf conftest*
15558 eval "ac_cv_func_$ac_func=no"
15559 fi
15560 rm -f conftest*
15561 fi
15562
15563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15564 echo "$ac_t""yes" 1>&6
15565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15566 cat >> confdefs.h <<EOF
15567 #define $ac_tr_func 1
15568 EOF
15569
15570 else
15571 echo "$ac_t""no" 1>&6
15572 fi
15573 done
15574
15575 else
15576
15577 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
15578 echo "configure:15579: checking for _ldexpl declaration" >&5
15579 if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
15580 if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
15581 echo $ac_n "(cached) $ac_c" 1>&6
15582 else
15583
15584
15585 ac_ext=C
15586 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15587 ac_cpp='$CXXCPP $CPPFLAGS'
15588 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15589 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15590 cross_compiling=$ac_cv_prog_cxx_cross
15591
15592 cat > conftest.$ac_ext <<EOF
15593 #line 15594 "configure"
15594 #include "confdefs.h"
15595 #include <math.h>
15596 int main() {
15597 _ldexpl(0, 0);
15598 ; return 0; }
15599 EOF
15600 if { (eval echo configure:15601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15601 rm -rf conftest*
15602 glibcpp_cv_func__ldexpl_use=yes
15603 else
15604 echo "configure: failed program was:" >&5
15605 cat conftest.$ac_ext >&5
15606 rm -rf conftest*
15607 glibcpp_cv_func__ldexpl_use=no
15608 fi
15609 rm -f conftest*
15610 ac_ext=c
15611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15612 ac_cpp='$CPP $CPPFLAGS'
15613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15615 cross_compiling=$ac_cv_prog_cc_cross
15616
15617
15618 fi
15619
15620 fi
15621 echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
15622
15623 if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
15624 for ac_func in _ldexpl
15625 do
15626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15627 echo "configure:15628: checking for $ac_func" >&5
15628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15629 echo $ac_n "(cached) $ac_c" 1>&6
15630 else
15631 cat > conftest.$ac_ext <<EOF
15632 #line 15633 "configure"
15633 #include "confdefs.h"
15634 /* System header to define __stub macros and hopefully few prototypes,
15635 which can conflict with char $ac_func(); below. */
15636 #include <assert.h>
15637 /* Override any gcc2 internal prototype to avoid an error. */
15638 /* We use char because int might match the return type of a gcc2
15639 builtin and then its argument prototype would still apply. */
15640 char $ac_func();
15641
15642 int main() {
15643
15644 /* The GNU C library defines this for functions which it implements
15645 to always fail with ENOSYS. Some functions are actually named
15646 something starting with __ and the normal name is an alias. */
15647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15648 choke me
15649 #else
15650 $ac_func();
15651 #endif
15652
15653 ; return 0; }
15654 EOF
15655 if { (eval echo configure:15656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15656 rm -rf conftest*
15657 eval "ac_cv_func_$ac_func=yes"
15658 else
15659 echo "configure: failed program was:" >&5
15660 cat conftest.$ac_ext >&5
15661 rm -rf conftest*
15662 eval "ac_cv_func_$ac_func=no"
15663 fi
15664 rm -f conftest*
15665 fi
15666
15667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15668 echo "$ac_t""yes" 1>&6
15669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15670 cat >> confdefs.h <<EOF
15671 #define $ac_tr_func 1
15672 EOF
15673
15674 else
15675 echo "$ac_t""no" 1>&6
15676 fi
15677 done
15678
15679 fi
15680 fi
15681
15682
15683
15684 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
15685 echo "configure:15686: checking for logl declaration" >&5
15686 if test x${glibcpp_cv_func_logl_use+set} != xset; then
15687 if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
15688 echo $ac_n "(cached) $ac_c" 1>&6
15689 else
15690
15691
15692 ac_ext=C
15693 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15694 ac_cpp='$CXXCPP $CPPFLAGS'
15695 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15696 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15697 cross_compiling=$ac_cv_prog_cxx_cross
15698
15699 cat > conftest.$ac_ext <<EOF
15700 #line 15701 "configure"
15701 #include "confdefs.h"
15702 #include <math.h>
15703 #ifdef HAVE_IEEEFP_H
15704 #include <ieeefp.h>
15705 #endif
15706
15707 int main() {
15708 logl(0);
15709 ; return 0; }
15710 EOF
15711 if { (eval echo configure:15712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15712 rm -rf conftest*
15713 glibcpp_cv_func_logl_use=yes
15714 else
15715 echo "configure: failed program was:" >&5
15716 cat conftest.$ac_ext >&5
15717 rm -rf conftest*
15718 glibcpp_cv_func_logl_use=no
15719 fi
15720 rm -f conftest*
15721 ac_ext=c
15722 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15723 ac_cpp='$CPP $CPPFLAGS'
15724 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15725 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15726 cross_compiling=$ac_cv_prog_cc_cross
15727
15728
15729 fi
15730
15731 fi
15732 echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
15733
15734 if test x$glibcpp_cv_func_logl_use = x"yes"; then
15735 for ac_func in logl
15736 do
15737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15738 echo "configure:15739: checking for $ac_func" >&5
15739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15740 echo $ac_n "(cached) $ac_c" 1>&6
15741 else
15742 cat > conftest.$ac_ext <<EOF
15743 #line 15744 "configure"
15744 #include "confdefs.h"
15745 /* System header to define __stub macros and hopefully few prototypes,
15746 which can conflict with char $ac_func(); below. */
15747 #include <assert.h>
15748 /* Override any gcc2 internal prototype to avoid an error. */
15749 /* We use char because int might match the return type of a gcc2
15750 builtin and then its argument prototype would still apply. */
15751 char $ac_func();
15752
15753 int main() {
15754
15755 /* The GNU C library defines this for functions which it implements
15756 to always fail with ENOSYS. Some functions are actually named
15757 something starting with __ and the normal name is an alias. */
15758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15759 choke me
15760 #else
15761 $ac_func();
15762 #endif
15763
15764 ; return 0; }
15765 EOF
15766 if { (eval echo configure:15767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15767 rm -rf conftest*
15768 eval "ac_cv_func_$ac_func=yes"
15769 else
15770 echo "configure: failed program was:" >&5
15771 cat conftest.$ac_ext >&5
15772 rm -rf conftest*
15773 eval "ac_cv_func_$ac_func=no"
15774 fi
15775 rm -f conftest*
15776 fi
15777
15778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15779 echo "$ac_t""yes" 1>&6
15780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15781 cat >> confdefs.h <<EOF
15782 #define $ac_tr_func 1
15783 EOF
15784
15785 else
15786 echo "$ac_t""no" 1>&6
15787 fi
15788 done
15789
15790 else
15791
15792 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
15793 echo "configure:15794: checking for _logl declaration" >&5
15794 if test x${glibcpp_cv_func__logl_use+set} != xset; then
15795 if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
15796 echo $ac_n "(cached) $ac_c" 1>&6
15797 else
15798
15799
15800 ac_ext=C
15801 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15802 ac_cpp='$CXXCPP $CPPFLAGS'
15803 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15804 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15805 cross_compiling=$ac_cv_prog_cxx_cross
15806
15807 cat > conftest.$ac_ext <<EOF
15808 #line 15809 "configure"
15809 #include "confdefs.h"
15810 #include <math.h>
15811 #ifdef HAVE_IEEEFP_H
15812 #include <ieeefp.h>
15813 #endif
15814
15815 int main() {
15816 _logl(0);
15817 ; return 0; }
15818 EOF
15819 if { (eval echo configure:15820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15820 rm -rf conftest*
15821 glibcpp_cv_func__logl_use=yes
15822 else
15823 echo "configure: failed program was:" >&5
15824 cat conftest.$ac_ext >&5
15825 rm -rf conftest*
15826 glibcpp_cv_func__logl_use=no
15827 fi
15828 rm -f conftest*
15829 ac_ext=c
15830 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15831 ac_cpp='$CPP $CPPFLAGS'
15832 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15833 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15834 cross_compiling=$ac_cv_prog_cc_cross
15835
15836
15837 fi
15838
15839 fi
15840 echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
15841
15842 if test x$glibcpp_cv_func__logl_use = x"yes"; then
15843 for ac_func in _logl
15844 do
15845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15846 echo "configure:15847: checking for $ac_func" >&5
15847 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15848 echo $ac_n "(cached) $ac_c" 1>&6
15849 else
15850 cat > conftest.$ac_ext <<EOF
15851 #line 15852 "configure"
15852 #include "confdefs.h"
15853 /* System header to define __stub macros and hopefully few prototypes,
15854 which can conflict with char $ac_func(); below. */
15855 #include <assert.h>
15856 /* Override any gcc2 internal prototype to avoid an error. */
15857 /* We use char because int might match the return type of a gcc2
15858 builtin and then its argument prototype would still apply. */
15859 char $ac_func();
15860
15861 int main() {
15862
15863 /* The GNU C library defines this for functions which it implements
15864 to always fail with ENOSYS. Some functions are actually named
15865 something starting with __ and the normal name is an alias. */
15866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15867 choke me
15868 #else
15869 $ac_func();
15870 #endif
15871
15872 ; return 0; }
15873 EOF
15874 if { (eval echo configure:15875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15875 rm -rf conftest*
15876 eval "ac_cv_func_$ac_func=yes"
15877 else
15878 echo "configure: failed program was:" >&5
15879 cat conftest.$ac_ext >&5
15880 rm -rf conftest*
15881 eval "ac_cv_func_$ac_func=no"
15882 fi
15883 rm -f conftest*
15884 fi
15885
15886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15887 echo "$ac_t""yes" 1>&6
15888 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15889 cat >> confdefs.h <<EOF
15890 #define $ac_tr_func 1
15891 EOF
15892
15893 else
15894 echo "$ac_t""no" 1>&6
15895 fi
15896 done
15897
15898 fi
15899 fi
15900
15901
15902
15903 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
15904 echo "configure:15905: checking for log10l declaration" >&5
15905 if test x${glibcpp_cv_func_log10l_use+set} != xset; then
15906 if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
15907 echo $ac_n "(cached) $ac_c" 1>&6
15908 else
15909
15910
15911 ac_ext=C
15912 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15913 ac_cpp='$CXXCPP $CPPFLAGS'
15914 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15915 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15916 cross_compiling=$ac_cv_prog_cxx_cross
15917
15918 cat > conftest.$ac_ext <<EOF
15919 #line 15920 "configure"
15920 #include "confdefs.h"
15921 #include <math.h>
15922 #ifdef HAVE_IEEEFP_H
15923 #include <ieeefp.h>
15924 #endif
15925
15926 int main() {
15927 log10l(0);
15928 ; return 0; }
15929 EOF
15930 if { (eval echo configure:15931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15931 rm -rf conftest*
15932 glibcpp_cv_func_log10l_use=yes
15933 else
15934 echo "configure: failed program was:" >&5
15935 cat conftest.$ac_ext >&5
15936 rm -rf conftest*
15937 glibcpp_cv_func_log10l_use=no
15938 fi
15939 rm -f conftest*
15940 ac_ext=c
15941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15942 ac_cpp='$CPP $CPPFLAGS'
15943 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15944 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15945 cross_compiling=$ac_cv_prog_cc_cross
15946
15947
15948 fi
15949
15950 fi
15951 echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
15952
15953 if test x$glibcpp_cv_func_log10l_use = x"yes"; then
15954 for ac_func in log10l
15955 do
15956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15957 echo "configure:15958: checking for $ac_func" >&5
15958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15959 echo $ac_n "(cached) $ac_c" 1>&6
15960 else
15961 cat > conftest.$ac_ext <<EOF
15962 #line 15963 "configure"
15963 #include "confdefs.h"
15964 /* System header to define __stub macros and hopefully few prototypes,
15965 which can conflict with char $ac_func(); below. */
15966 #include <assert.h>
15967 /* Override any gcc2 internal prototype to avoid an error. */
15968 /* We use char because int might match the return type of a gcc2
15969 builtin and then its argument prototype would still apply. */
15970 char $ac_func();
15971
15972 int main() {
15973
15974 /* The GNU C library defines this for functions which it implements
15975 to always fail with ENOSYS. Some functions are actually named
15976 something starting with __ and the normal name is an alias. */
15977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15978 choke me
15979 #else
15980 $ac_func();
15981 #endif
15982
15983 ; return 0; }
15984 EOF
15985 if { (eval echo configure:15986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15986 rm -rf conftest*
15987 eval "ac_cv_func_$ac_func=yes"
15988 else
15989 echo "configure: failed program was:" >&5
15990 cat conftest.$ac_ext >&5
15991 rm -rf conftest*
15992 eval "ac_cv_func_$ac_func=no"
15993 fi
15994 rm -f conftest*
15995 fi
15996
15997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15998 echo "$ac_t""yes" 1>&6
15999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16000 cat >> confdefs.h <<EOF
16001 #define $ac_tr_func 1
16002 EOF
16003
16004 else
16005 echo "$ac_t""no" 1>&6
16006 fi
16007 done
16008
16009 else
16010
16011 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
16012 echo "configure:16013: checking for _log10l declaration" >&5
16013 if test x${glibcpp_cv_func__log10l_use+set} != xset; then
16014 if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
16015 echo $ac_n "(cached) $ac_c" 1>&6
16016 else
16017
16018
16019 ac_ext=C
16020 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16021 ac_cpp='$CXXCPP $CPPFLAGS'
16022 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16023 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16024 cross_compiling=$ac_cv_prog_cxx_cross
16025
16026 cat > conftest.$ac_ext <<EOF
16027 #line 16028 "configure"
16028 #include "confdefs.h"
16029 #include <math.h>
16030 #ifdef HAVE_IEEEFP_H
16031 #include <ieeefp.h>
16032 #endif
16033
16034 int main() {
16035 _log10l(0);
16036 ; return 0; }
16037 EOF
16038 if { (eval echo configure:16039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16039 rm -rf conftest*
16040 glibcpp_cv_func__log10l_use=yes
16041 else
16042 echo "configure: failed program was:" >&5
16043 cat conftest.$ac_ext >&5
16044 rm -rf conftest*
16045 glibcpp_cv_func__log10l_use=no
16046 fi
16047 rm -f conftest*
16048 ac_ext=c
16049 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16050 ac_cpp='$CPP $CPPFLAGS'
16051 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16052 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16053 cross_compiling=$ac_cv_prog_cc_cross
16054
16055
16056 fi
16057
16058 fi
16059 echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
16060
16061 if test x$glibcpp_cv_func__log10l_use = x"yes"; then
16062 for ac_func in _log10l
16063 do
16064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16065 echo "configure:16066: checking for $ac_func" >&5
16066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16067 echo $ac_n "(cached) $ac_c" 1>&6
16068 else
16069 cat > conftest.$ac_ext <<EOF
16070 #line 16071 "configure"
16071 #include "confdefs.h"
16072 /* System header to define __stub macros and hopefully few prototypes,
16073 which can conflict with char $ac_func(); below. */
16074 #include <assert.h>
16075 /* Override any gcc2 internal prototype to avoid an error. */
16076 /* We use char because int might match the return type of a gcc2
16077 builtin and then its argument prototype would still apply. */
16078 char $ac_func();
16079
16080 int main() {
16081
16082 /* The GNU C library defines this for functions which it implements
16083 to always fail with ENOSYS. Some functions are actually named
16084 something starting with __ and the normal name is an alias. */
16085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16086 choke me
16087 #else
16088 $ac_func();
16089 #endif
16090
16091 ; return 0; }
16092 EOF
16093 if { (eval echo configure:16094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16094 rm -rf conftest*
16095 eval "ac_cv_func_$ac_func=yes"
16096 else
16097 echo "configure: failed program was:" >&5
16098 cat conftest.$ac_ext >&5
16099 rm -rf conftest*
16100 eval "ac_cv_func_$ac_func=no"
16101 fi
16102 rm -f conftest*
16103 fi
16104
16105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16106 echo "$ac_t""yes" 1>&6
16107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16108 cat >> confdefs.h <<EOF
16109 #define $ac_tr_func 1
16110 EOF
16111
16112 else
16113 echo "$ac_t""no" 1>&6
16114 fi
16115 done
16116
16117 fi
16118 fi
16119
16120
16121
16122 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
16123 echo "configure:16124: checking for modfl declaration" >&5
16124 if test x${glibcpp_cv_func_modfl_use+set} != xset; then
16125 if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
16126 echo $ac_n "(cached) $ac_c" 1>&6
16127 else
16128
16129
16130 ac_ext=C
16131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16132 ac_cpp='$CXXCPP $CPPFLAGS'
16133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16135 cross_compiling=$ac_cv_prog_cxx_cross
16136
16137 cat > conftest.$ac_ext <<EOF
16138 #line 16139 "configure"
16139 #include "confdefs.h"
16140 #include <math.h>
16141 int main() {
16142 modfl(0, 0);
16143 ; return 0; }
16144 EOF
16145 if { (eval echo configure:16146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16146 rm -rf conftest*
16147 glibcpp_cv_func_modfl_use=yes
16148 else
16149 echo "configure: failed program was:" >&5
16150 cat conftest.$ac_ext >&5
16151 rm -rf conftest*
16152 glibcpp_cv_func_modfl_use=no
16153 fi
16154 rm -f conftest*
16155 ac_ext=c
16156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16157 ac_cpp='$CPP $CPPFLAGS'
16158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16160 cross_compiling=$ac_cv_prog_cc_cross
16161
16162
16163 fi
16164
16165 fi
16166 echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
16167
16168 if test x$glibcpp_cv_func_modfl_use = x"yes"; then
16169 for ac_func in modfl
16170 do
16171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16172 echo "configure:16173: checking for $ac_func" >&5
16173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16174 echo $ac_n "(cached) $ac_c" 1>&6
16175 else
16176 cat > conftest.$ac_ext <<EOF
16177 #line 16178 "configure"
16178 #include "confdefs.h"
16179 /* System header to define __stub macros and hopefully few prototypes,
16180 which can conflict with char $ac_func(); below. */
16181 #include <assert.h>
16182 /* Override any gcc2 internal prototype to avoid an error. */
16183 /* We use char because int might match the return type of a gcc2
16184 builtin and then its argument prototype would still apply. */
16185 char $ac_func();
16186
16187 int main() {
16188
16189 /* The GNU C library defines this for functions which it implements
16190 to always fail with ENOSYS. Some functions are actually named
16191 something starting with __ and the normal name is an alias. */
16192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16193 choke me
16194 #else
16195 $ac_func();
16196 #endif
16197
16198 ; return 0; }
16199 EOF
16200 if { (eval echo configure:16201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16201 rm -rf conftest*
16202 eval "ac_cv_func_$ac_func=yes"
16203 else
16204 echo "configure: failed program was:" >&5
16205 cat conftest.$ac_ext >&5
16206 rm -rf conftest*
16207 eval "ac_cv_func_$ac_func=no"
16208 fi
16209 rm -f conftest*
16210 fi
16211
16212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16213 echo "$ac_t""yes" 1>&6
16214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16215 cat >> confdefs.h <<EOF
16216 #define $ac_tr_func 1
16217 EOF
16218
16219 else
16220 echo "$ac_t""no" 1>&6
16221 fi
16222 done
16223
16224 else
16225
16226 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
16227 echo "configure:16228: checking for _modfl declaration" >&5
16228 if test x${glibcpp_cv_func__modfl_use+set} != xset; then
16229 if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
16230 echo $ac_n "(cached) $ac_c" 1>&6
16231 else
16232
16233
16234 ac_ext=C
16235 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16236 ac_cpp='$CXXCPP $CPPFLAGS'
16237 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16238 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16239 cross_compiling=$ac_cv_prog_cxx_cross
16240
16241 cat > conftest.$ac_ext <<EOF
16242 #line 16243 "configure"
16243 #include "confdefs.h"
16244 #include <math.h>
16245 int main() {
16246 _modfl(0, 0);
16247 ; return 0; }
16248 EOF
16249 if { (eval echo configure:16250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16250 rm -rf conftest*
16251 glibcpp_cv_func__modfl_use=yes
16252 else
16253 echo "configure: failed program was:" >&5
16254 cat conftest.$ac_ext >&5
16255 rm -rf conftest*
16256 glibcpp_cv_func__modfl_use=no
16257 fi
16258 rm -f conftest*
16259 ac_ext=c
16260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16261 ac_cpp='$CPP $CPPFLAGS'
16262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16264 cross_compiling=$ac_cv_prog_cc_cross
16265
16266
16267 fi
16268
16269 fi
16270 echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
16271
16272 if test x$glibcpp_cv_func__modfl_use = x"yes"; then
16273 for ac_func in _modfl
16274 do
16275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16276 echo "configure:16277: checking for $ac_func" >&5
16277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16278 echo $ac_n "(cached) $ac_c" 1>&6
16279 else
16280 cat > conftest.$ac_ext <<EOF
16281 #line 16282 "configure"
16282 #include "confdefs.h"
16283 /* System header to define __stub macros and hopefully few prototypes,
16284 which can conflict with char $ac_func(); below. */
16285 #include <assert.h>
16286 /* Override any gcc2 internal prototype to avoid an error. */
16287 /* We use char because int might match the return type of a gcc2
16288 builtin and then its argument prototype would still apply. */
16289 char $ac_func();
16290
16291 int main() {
16292
16293 /* The GNU C library defines this for functions which it implements
16294 to always fail with ENOSYS. Some functions are actually named
16295 something starting with __ and the normal name is an alias. */
16296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16297 choke me
16298 #else
16299 $ac_func();
16300 #endif
16301
16302 ; return 0; }
16303 EOF
16304 if { (eval echo configure:16305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16305 rm -rf conftest*
16306 eval "ac_cv_func_$ac_func=yes"
16307 else
16308 echo "configure: failed program was:" >&5
16309 cat conftest.$ac_ext >&5
16310 rm -rf conftest*
16311 eval "ac_cv_func_$ac_func=no"
16312 fi
16313 rm -f conftest*
16314 fi
16315
16316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16317 echo "$ac_t""yes" 1>&6
16318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16319 cat >> confdefs.h <<EOF
16320 #define $ac_tr_func 1
16321 EOF
16322
16323 else
16324 echo "$ac_t""no" 1>&6
16325 fi
16326 done
16327
16328 fi
16329 fi
16330
16331
16332
16333 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
16334 echo "configure:16335: checking for powl declaration" >&5
16335 if test x${glibcpp_cv_func_powl_use+set} != xset; then
16336 if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
16337 echo $ac_n "(cached) $ac_c" 1>&6
16338 else
16339
16340
16341 ac_ext=C
16342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16343 ac_cpp='$CXXCPP $CPPFLAGS'
16344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16346 cross_compiling=$ac_cv_prog_cxx_cross
16347
16348 cat > conftest.$ac_ext <<EOF
16349 #line 16350 "configure"
16350 #include "confdefs.h"
16351 #include <math.h>
16352 int main() {
16353 powl(0, 0);
16354 ; return 0; }
16355 EOF
16356 if { (eval echo configure:16357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16357 rm -rf conftest*
16358 glibcpp_cv_func_powl_use=yes
16359 else
16360 echo "configure: failed program was:" >&5
16361 cat conftest.$ac_ext >&5
16362 rm -rf conftest*
16363 glibcpp_cv_func_powl_use=no
16364 fi
16365 rm -f conftest*
16366 ac_ext=c
16367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16368 ac_cpp='$CPP $CPPFLAGS'
16369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16371 cross_compiling=$ac_cv_prog_cc_cross
16372
16373
16374 fi
16375
16376 fi
16377 echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
16378
16379 if test x$glibcpp_cv_func_powl_use = x"yes"; then
16380 for ac_func in powl
16381 do
16382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16383 echo "configure:16384: checking for $ac_func" >&5
16384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16385 echo $ac_n "(cached) $ac_c" 1>&6
16386 else
16387 cat > conftest.$ac_ext <<EOF
16388 #line 16389 "configure"
16389 #include "confdefs.h"
16390 /* System header to define __stub macros and hopefully few prototypes,
16391 which can conflict with char $ac_func(); below. */
16392 #include <assert.h>
16393 /* Override any gcc2 internal prototype to avoid an error. */
16394 /* We use char because int might match the return type of a gcc2
16395 builtin and then its argument prototype would still apply. */
16396 char $ac_func();
16397
16398 int main() {
16399
16400 /* The GNU C library defines this for functions which it implements
16401 to always fail with ENOSYS. Some functions are actually named
16402 something starting with __ and the normal name is an alias. */
16403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16404 choke me
16405 #else
16406 $ac_func();
16407 #endif
16408
16409 ; return 0; }
16410 EOF
16411 if { (eval echo configure:16412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16412 rm -rf conftest*
16413 eval "ac_cv_func_$ac_func=yes"
16414 else
16415 echo "configure: failed program was:" >&5
16416 cat conftest.$ac_ext >&5
16417 rm -rf conftest*
16418 eval "ac_cv_func_$ac_func=no"
16419 fi
16420 rm -f conftest*
16421 fi
16422
16423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16424 echo "$ac_t""yes" 1>&6
16425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16426 cat >> confdefs.h <<EOF
16427 #define $ac_tr_func 1
16428 EOF
16429
16430 else
16431 echo "$ac_t""no" 1>&6
16432 fi
16433 done
16434
16435 else
16436
16437 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
16438 echo "configure:16439: checking for _powl declaration" >&5
16439 if test x${glibcpp_cv_func__powl_use+set} != xset; then
16440 if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
16441 echo $ac_n "(cached) $ac_c" 1>&6
16442 else
16443
16444
16445 ac_ext=C
16446 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16447 ac_cpp='$CXXCPP $CPPFLAGS'
16448 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16449 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16450 cross_compiling=$ac_cv_prog_cxx_cross
16451
16452 cat > conftest.$ac_ext <<EOF
16453 #line 16454 "configure"
16454 #include "confdefs.h"
16455 #include <math.h>
16456 int main() {
16457 _powl(0, 0);
16458 ; return 0; }
16459 EOF
16460 if { (eval echo configure:16461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16461 rm -rf conftest*
16462 glibcpp_cv_func__powl_use=yes
16463 else
16464 echo "configure: failed program was:" >&5
16465 cat conftest.$ac_ext >&5
16466 rm -rf conftest*
16467 glibcpp_cv_func__powl_use=no
16468 fi
16469 rm -f conftest*
16470 ac_ext=c
16471 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16472 ac_cpp='$CPP $CPPFLAGS'
16473 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16474 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16475 cross_compiling=$ac_cv_prog_cc_cross
16476
16477
16478 fi
16479
16480 fi
16481 echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
16482
16483 if test x$glibcpp_cv_func__powl_use = x"yes"; then
16484 for ac_func in _powl
16485 do
16486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16487 echo "configure:16488: checking for $ac_func" >&5
16488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16489 echo $ac_n "(cached) $ac_c" 1>&6
16490 else
16491 cat > conftest.$ac_ext <<EOF
16492 #line 16493 "configure"
16493 #include "confdefs.h"
16494 /* System header to define __stub macros and hopefully few prototypes,
16495 which can conflict with char $ac_func(); below. */
16496 #include <assert.h>
16497 /* Override any gcc2 internal prototype to avoid an error. */
16498 /* We use char because int might match the return type of a gcc2
16499 builtin and then its argument prototype would still apply. */
16500 char $ac_func();
16501
16502 int main() {
16503
16504 /* The GNU C library defines this for functions which it implements
16505 to always fail with ENOSYS. Some functions are actually named
16506 something starting with __ and the normal name is an alias. */
16507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16508 choke me
16509 #else
16510 $ac_func();
16511 #endif
16512
16513 ; return 0; }
16514 EOF
16515 if { (eval echo configure:16516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16516 rm -rf conftest*
16517 eval "ac_cv_func_$ac_func=yes"
16518 else
16519 echo "configure: failed program was:" >&5
16520 cat conftest.$ac_ext >&5
16521 rm -rf conftest*
16522 eval "ac_cv_func_$ac_func=no"
16523 fi
16524 rm -f conftest*
16525 fi
16526
16527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16528 echo "$ac_t""yes" 1>&6
16529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16530 cat >> confdefs.h <<EOF
16531 #define $ac_tr_func 1
16532 EOF
16533
16534 else
16535 echo "$ac_t""no" 1>&6
16536 fi
16537 done
16538
16539 fi
16540 fi
16541
16542
16543
16544 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
16545 echo "configure:16546: checking for sqrtl declaration" >&5
16546 if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
16547 if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
16548 echo $ac_n "(cached) $ac_c" 1>&6
16549 else
16550
16551
16552 ac_ext=C
16553 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16554 ac_cpp='$CXXCPP $CPPFLAGS'
16555 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16556 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16557 cross_compiling=$ac_cv_prog_cxx_cross
16558
16559 cat > conftest.$ac_ext <<EOF
16560 #line 16561 "configure"
16561 #include "confdefs.h"
16562 #include <math.h>
16563 #ifdef HAVE_IEEEFP_H
16564 #include <ieeefp.h>
16565 #endif
16566
16567 int main() {
16568 sqrtl(0);
16569 ; return 0; }
16570 EOF
16571 if { (eval echo configure:16572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16572 rm -rf conftest*
16573 glibcpp_cv_func_sqrtl_use=yes
16574 else
16575 echo "configure: failed program was:" >&5
16576 cat conftest.$ac_ext >&5
16577 rm -rf conftest*
16578 glibcpp_cv_func_sqrtl_use=no
16579 fi
16580 rm -f conftest*
16581 ac_ext=c
16582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16583 ac_cpp='$CPP $CPPFLAGS'
16584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16586 cross_compiling=$ac_cv_prog_cc_cross
16587
16588
16589 fi
16590
16591 fi
16592 echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
16593
16594 if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
16595 for ac_func in sqrtl
16596 do
16597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16598 echo "configure:16599: checking for $ac_func" >&5
16599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16600 echo $ac_n "(cached) $ac_c" 1>&6
16601 else
16602 cat > conftest.$ac_ext <<EOF
16603 #line 16604 "configure"
16604 #include "confdefs.h"
16605 /* System header to define __stub macros and hopefully few prototypes,
16606 which can conflict with char $ac_func(); below. */
16607 #include <assert.h>
16608 /* Override any gcc2 internal prototype to avoid an error. */
16609 /* We use char because int might match the return type of a gcc2
16610 builtin and then its argument prototype would still apply. */
16611 char $ac_func();
16612
16613 int main() {
16614
16615 /* The GNU C library defines this for functions which it implements
16616 to always fail with ENOSYS. Some functions are actually named
16617 something starting with __ and the normal name is an alias. */
16618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16619 choke me
16620 #else
16621 $ac_func();
16622 #endif
16623
16624 ; return 0; }
16625 EOF
16626 if { (eval echo configure:16627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16627 rm -rf conftest*
16628 eval "ac_cv_func_$ac_func=yes"
16629 else
16630 echo "configure: failed program was:" >&5
16631 cat conftest.$ac_ext >&5
16632 rm -rf conftest*
16633 eval "ac_cv_func_$ac_func=no"
16634 fi
16635 rm -f conftest*
16636 fi
16637
16638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16639 echo "$ac_t""yes" 1>&6
16640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16641 cat >> confdefs.h <<EOF
16642 #define $ac_tr_func 1
16643 EOF
16644
16645 else
16646 echo "$ac_t""no" 1>&6
16647 fi
16648 done
16649
16650 else
16651
16652 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
16653 echo "configure:16654: checking for _sqrtl declaration" >&5
16654 if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
16655 if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
16656 echo $ac_n "(cached) $ac_c" 1>&6
16657 else
16658
16659
16660 ac_ext=C
16661 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16662 ac_cpp='$CXXCPP $CPPFLAGS'
16663 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16664 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16665 cross_compiling=$ac_cv_prog_cxx_cross
16666
16667 cat > conftest.$ac_ext <<EOF
16668 #line 16669 "configure"
16669 #include "confdefs.h"
16670 #include <math.h>
16671 #ifdef HAVE_IEEEFP_H
16672 #include <ieeefp.h>
16673 #endif
16674
16675 int main() {
16676 _sqrtl(0);
16677 ; return 0; }
16678 EOF
16679 if { (eval echo configure:16680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16680 rm -rf conftest*
16681 glibcpp_cv_func__sqrtl_use=yes
16682 else
16683 echo "configure: failed program was:" >&5
16684 cat conftest.$ac_ext >&5
16685 rm -rf conftest*
16686 glibcpp_cv_func__sqrtl_use=no
16687 fi
16688 rm -f conftest*
16689 ac_ext=c
16690 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16691 ac_cpp='$CPP $CPPFLAGS'
16692 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16693 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16694 cross_compiling=$ac_cv_prog_cc_cross
16695
16696
16697 fi
16698
16699 fi
16700 echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
16701
16702 if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
16703 for ac_func in _sqrtl
16704 do
16705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16706 echo "configure:16707: checking for $ac_func" >&5
16707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16708 echo $ac_n "(cached) $ac_c" 1>&6
16709 else
16710 cat > conftest.$ac_ext <<EOF
16711 #line 16712 "configure"
16712 #include "confdefs.h"
16713 /* System header to define __stub macros and hopefully few prototypes,
16714 which can conflict with char $ac_func(); below. */
16715 #include <assert.h>
16716 /* Override any gcc2 internal prototype to avoid an error. */
16717 /* We use char because int might match the return type of a gcc2
16718 builtin and then its argument prototype would still apply. */
16719 char $ac_func();
16720
16721 int main() {
16722
16723 /* The GNU C library defines this for functions which it implements
16724 to always fail with ENOSYS. Some functions are actually named
16725 something starting with __ and the normal name is an alias. */
16726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16727 choke me
16728 #else
16729 $ac_func();
16730 #endif
16731
16732 ; return 0; }
16733 EOF
16734 if { (eval echo configure:16735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16735 rm -rf conftest*
16736 eval "ac_cv_func_$ac_func=yes"
16737 else
16738 echo "configure: failed program was:" >&5
16739 cat conftest.$ac_ext >&5
16740 rm -rf conftest*
16741 eval "ac_cv_func_$ac_func=no"
16742 fi
16743 rm -f conftest*
16744 fi
16745
16746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16747 echo "$ac_t""yes" 1>&6
16748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16749 cat >> confdefs.h <<EOF
16750 #define $ac_tr_func 1
16751 EOF
16752
16753 else
16754 echo "$ac_t""no" 1>&6
16755 fi
16756 done
16757
16758 fi
16759 fi
16760
16761
16762
16763 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
16764 echo "configure:16765: checking for sincosl declaration" >&5
16765 if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
16766 if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
16767 echo $ac_n "(cached) $ac_c" 1>&6
16768 else
16769
16770
16771 ac_ext=C
16772 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16773 ac_cpp='$CXXCPP $CPPFLAGS'
16774 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16775 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16776 cross_compiling=$ac_cv_prog_cxx_cross
16777
16778 cat > conftest.$ac_ext <<EOF
16779 #line 16780 "configure"
16780 #include "confdefs.h"
16781 #include <math.h>
16782 int main() {
16783 sincosl(0, 0, 0);
16784 ; return 0; }
16785 EOF
16786 if { (eval echo configure:16787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16787 rm -rf conftest*
16788 glibcpp_cv_func_sincosl_use=yes
16789 else
16790 echo "configure: failed program was:" >&5
16791 cat conftest.$ac_ext >&5
16792 rm -rf conftest*
16793 glibcpp_cv_func_sincosl_use=no
16794 fi
16795 rm -f conftest*
16796 ac_ext=c
16797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16798 ac_cpp='$CPP $CPPFLAGS'
16799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16801 cross_compiling=$ac_cv_prog_cc_cross
16802
16803
16804 fi
16805
16806 fi
16807 echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
16808
16809 if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
16810 for ac_func in sincosl
16811 do
16812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16813 echo "configure:16814: checking for $ac_func" >&5
16814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16815 echo $ac_n "(cached) $ac_c" 1>&6
16816 else
16817 cat > conftest.$ac_ext <<EOF
16818 #line 16819 "configure"
16819 #include "confdefs.h"
16820 /* System header to define __stub macros and hopefully few prototypes,
16821 which can conflict with char $ac_func(); below. */
16822 #include <assert.h>
16823 /* Override any gcc2 internal prototype to avoid an error. */
16824 /* We use char because int might match the return type of a gcc2
16825 builtin and then its argument prototype would still apply. */
16826 char $ac_func();
16827
16828 int main() {
16829
16830 /* The GNU C library defines this for functions which it implements
16831 to always fail with ENOSYS. Some functions are actually named
16832 something starting with __ and the normal name is an alias. */
16833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16834 choke me
16835 #else
16836 $ac_func();
16837 #endif
16838
16839 ; return 0; }
16840 EOF
16841 if { (eval echo configure:16842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16842 rm -rf conftest*
16843 eval "ac_cv_func_$ac_func=yes"
16844 else
16845 echo "configure: failed program was:" >&5
16846 cat conftest.$ac_ext >&5
16847 rm -rf conftest*
16848 eval "ac_cv_func_$ac_func=no"
16849 fi
16850 rm -f conftest*
16851 fi
16852
16853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16854 echo "$ac_t""yes" 1>&6
16855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16856 cat >> confdefs.h <<EOF
16857 #define $ac_tr_func 1
16858 EOF
16859
16860 else
16861 echo "$ac_t""no" 1>&6
16862 fi
16863 done
16864
16865 else
16866
16867 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
16868 echo "configure:16869: checking for _sincosl declaration" >&5
16869 if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
16870 if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
16871 echo $ac_n "(cached) $ac_c" 1>&6
16872 else
16873
16874
16875 ac_ext=C
16876 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16877 ac_cpp='$CXXCPP $CPPFLAGS'
16878 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16879 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16880 cross_compiling=$ac_cv_prog_cxx_cross
16881
16882 cat > conftest.$ac_ext <<EOF
16883 #line 16884 "configure"
16884 #include "confdefs.h"
16885 #include <math.h>
16886 int main() {
16887 _sincosl(0, 0, 0);
16888 ; return 0; }
16889 EOF
16890 if { (eval echo configure:16891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16891 rm -rf conftest*
16892 glibcpp_cv_func__sincosl_use=yes
16893 else
16894 echo "configure: failed program was:" >&5
16895 cat conftest.$ac_ext >&5
16896 rm -rf conftest*
16897 glibcpp_cv_func__sincosl_use=no
16898 fi
16899 rm -f conftest*
16900 ac_ext=c
16901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16902 ac_cpp='$CPP $CPPFLAGS'
16903 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16904 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16905 cross_compiling=$ac_cv_prog_cc_cross
16906
16907
16908 fi
16909
16910 fi
16911 echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
16912
16913 if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
16914 for ac_func in _sincosl
16915 do
16916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16917 echo "configure:16918: checking for $ac_func" >&5
16918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16919 echo $ac_n "(cached) $ac_c" 1>&6
16920 else
16921 cat > conftest.$ac_ext <<EOF
16922 #line 16923 "configure"
16923 #include "confdefs.h"
16924 /* System header to define __stub macros and hopefully few prototypes,
16925 which can conflict with char $ac_func(); below. */
16926 #include <assert.h>
16927 /* Override any gcc2 internal prototype to avoid an error. */
16928 /* We use char because int might match the return type of a gcc2
16929 builtin and then its argument prototype would still apply. */
16930 char $ac_func();
16931
16932 int main() {
16933
16934 /* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16938 choke me
16939 #else
16940 $ac_func();
16941 #endif
16942
16943 ; return 0; }
16944 EOF
16945 if { (eval echo configure:16946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16946 rm -rf conftest*
16947 eval "ac_cv_func_$ac_func=yes"
16948 else
16949 echo "configure: failed program was:" >&5
16950 cat conftest.$ac_ext >&5
16951 rm -rf conftest*
16952 eval "ac_cv_func_$ac_func=no"
16953 fi
16954 rm -f conftest*
16955 fi
16956
16957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16958 echo "$ac_t""yes" 1>&6
16959 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16960 cat >> confdefs.h <<EOF
16961 #define $ac_tr_func 1
16962 EOF
16963
16964 else
16965 echo "$ac_t""no" 1>&6
16966 fi
16967 done
16968
16969 fi
16970 fi
16971
16972
16973
16974 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
16975 echo "configure:16976: checking for finitel declaration" >&5
16976 if test x${glibcpp_cv_func_finitel_use+set} != xset; then
16977 if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
16978 echo $ac_n "(cached) $ac_c" 1>&6
16979 else
16980
16981
16982 ac_ext=C
16983 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16984 ac_cpp='$CXXCPP $CPPFLAGS'
16985 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16986 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16987 cross_compiling=$ac_cv_prog_cxx_cross
16988
16989 cat > conftest.$ac_ext <<EOF
16990 #line 16991 "configure"
16991 #include "confdefs.h"
16992 #include <math.h>
16993 #ifdef HAVE_IEEEFP_H
16994 #include <ieeefp.h>
16995 #endif
16996
16997 int main() {
16998 finitel(0);
16999 ; return 0; }
17000 EOF
17001 if { (eval echo configure:17002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17002 rm -rf conftest*
17003 glibcpp_cv_func_finitel_use=yes
17004 else
17005 echo "configure: failed program was:" >&5
17006 cat conftest.$ac_ext >&5
17007 rm -rf conftest*
17008 glibcpp_cv_func_finitel_use=no
17009 fi
17010 rm -f conftest*
17011 ac_ext=c
17012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17013 ac_cpp='$CPP $CPPFLAGS'
17014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17016 cross_compiling=$ac_cv_prog_cc_cross
17017
17018
17019 fi
17020
17021 fi
17022 echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
17023
17024 if test x$glibcpp_cv_func_finitel_use = x"yes"; then
17025 for ac_func in finitel
17026 do
17027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17028 echo "configure:17029: checking for $ac_func" >&5
17029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17030 echo $ac_n "(cached) $ac_c" 1>&6
17031 else
17032 cat > conftest.$ac_ext <<EOF
17033 #line 17034 "configure"
17034 #include "confdefs.h"
17035 /* System header to define __stub macros and hopefully few prototypes,
17036 which can conflict with char $ac_func(); below. */
17037 #include <assert.h>
17038 /* Override any gcc2 internal prototype to avoid an error. */
17039 /* We use char because int might match the return type of a gcc2
17040 builtin and then its argument prototype would still apply. */
17041 char $ac_func();
17042
17043 int main() {
17044
17045 /* The GNU C library defines this for functions which it implements
17046 to always fail with ENOSYS. Some functions are actually named
17047 something starting with __ and the normal name is an alias. */
17048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17049 choke me
17050 #else
17051 $ac_func();
17052 #endif
17053
17054 ; return 0; }
17055 EOF
17056 if { (eval echo configure:17057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17057 rm -rf conftest*
17058 eval "ac_cv_func_$ac_func=yes"
17059 else
17060 echo "configure: failed program was:" >&5
17061 cat conftest.$ac_ext >&5
17062 rm -rf conftest*
17063 eval "ac_cv_func_$ac_func=no"
17064 fi
17065 rm -f conftest*
17066 fi
17067
17068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17069 echo "$ac_t""yes" 1>&6
17070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17071 cat >> confdefs.h <<EOF
17072 #define $ac_tr_func 1
17073 EOF
17074
17075 else
17076 echo "$ac_t""no" 1>&6
17077 fi
17078 done
17079
17080 else
17081
17082 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
17083 echo "configure:17084: checking for _finitel declaration" >&5
17084 if test x${glibcpp_cv_func__finitel_use+set} != xset; then
17085 if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
17086 echo $ac_n "(cached) $ac_c" 1>&6
17087 else
17088
17089
17090 ac_ext=C
17091 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17092 ac_cpp='$CXXCPP $CPPFLAGS'
17093 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17094 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17095 cross_compiling=$ac_cv_prog_cxx_cross
17096
17097 cat > conftest.$ac_ext <<EOF
17098 #line 17099 "configure"
17099 #include "confdefs.h"
17100 #include <math.h>
17101 #ifdef HAVE_IEEEFP_H
17102 #include <ieeefp.h>
17103 #endif
17104
17105 int main() {
17106 _finitel(0);
17107 ; return 0; }
17108 EOF
17109 if { (eval echo configure:17110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17110 rm -rf conftest*
17111 glibcpp_cv_func__finitel_use=yes
17112 else
17113 echo "configure: failed program was:" >&5
17114 cat conftest.$ac_ext >&5
17115 rm -rf conftest*
17116 glibcpp_cv_func__finitel_use=no
17117 fi
17118 rm -f conftest*
17119 ac_ext=c
17120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17121 ac_cpp='$CPP $CPPFLAGS'
17122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17124 cross_compiling=$ac_cv_prog_cc_cross
17125
17126
17127 fi
17128
17129 fi
17130 echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
17131
17132 if test x$glibcpp_cv_func__finitel_use = x"yes"; then
17133 for ac_func in _finitel
17134 do
17135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17136 echo "configure:17137: checking for $ac_func" >&5
17137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17138 echo $ac_n "(cached) $ac_c" 1>&6
17139 else
17140 cat > conftest.$ac_ext <<EOF
17141 #line 17142 "configure"
17142 #include "confdefs.h"
17143 /* System header to define __stub macros and hopefully few prototypes,
17144 which can conflict with char $ac_func(); below. */
17145 #include <assert.h>
17146 /* Override any gcc2 internal prototype to avoid an error. */
17147 /* We use char because int might match the return type of a gcc2
17148 builtin and then its argument prototype would still apply. */
17149 char $ac_func();
17150
17151 int main() {
17152
17153 /* The GNU C library defines this for functions which it implements
17154 to always fail with ENOSYS. Some functions are actually named
17155 something starting with __ and the normal name is an alias. */
17156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17157 choke me
17158 #else
17159 $ac_func();
17160 #endif
17161
17162 ; return 0; }
17163 EOF
17164 if { (eval echo configure:17165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17165 rm -rf conftest*
17166 eval "ac_cv_func_$ac_func=yes"
17167 else
17168 echo "configure: failed program was:" >&5
17169 cat conftest.$ac_ext >&5
17170 rm -rf conftest*
17171 eval "ac_cv_func_$ac_func=no"
17172 fi
17173 rm -f conftest*
17174 fi
17175
17176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17177 echo "$ac_t""yes" 1>&6
17178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17179 cat >> confdefs.h <<EOF
17180 #define $ac_tr_func 1
17181 EOF
17182
17183 else
17184 echo "$ac_t""no" 1>&6
17185 fi
17186 done
17187
17188 fi
17189 fi
17190
17191
17192
17193
17194 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
17195 echo "configure:17196: checking for _float trig functions" >&5
17196 if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
17197 echo $ac_n "(cached) $ac_c" 1>&6
17198 else
17199
17200
17201 ac_ext=C
17202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17203 ac_cpp='$CXXCPP $CPPFLAGS'
17204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17206 cross_compiling=$ac_cv_prog_cxx_cross
17207
17208 cat > conftest.$ac_ext <<EOF
17209 #line 17210 "configure"
17210 #include "confdefs.h"
17211 #include <math.h>
17212 int main() {
17213 `for x in _acosf _asinf _atanf \
17214 _cosf _sinf _tanf \
17215 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
17216 ; return 0; }
17217 EOF
17218 if { (eval echo configure:17219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17219 rm -rf conftest*
17220 glibcpp_cv_func__float_trig_use=yes
17221 else
17222 echo "configure: failed program was:" >&5
17223 cat conftest.$ac_ext >&5
17224 rm -rf conftest*
17225 glibcpp_cv_func__float_trig_use=no
17226 fi
17227 rm -f conftest*
17228 ac_ext=c
17229 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17230 ac_cpp='$CPP $CPPFLAGS'
17231 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17232 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17233 cross_compiling=$ac_cv_prog_cc_cross
17234
17235 fi
17236
17237 echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
17238 if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
17239 for ac_func in _acosf _asinf _atanf \
17240 _cosf _sinf _tanf \
17241 _coshf _sinhf _tanhf
17242 do
17243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17244 echo "configure:17245: checking for $ac_func" >&5
17245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17246 echo $ac_n "(cached) $ac_c" 1>&6
17247 else
17248 cat > conftest.$ac_ext <<EOF
17249 #line 17250 "configure"
17250 #include "confdefs.h"
17251 /* System header to define __stub macros and hopefully few prototypes,
17252 which can conflict with char $ac_func(); below. */
17253 #include <assert.h>
17254 /* Override any gcc2 internal prototype to avoid an error. */
17255 /* We use char because int might match the return type of a gcc2
17256 builtin and then its argument prototype would still apply. */
17257 char $ac_func();
17258
17259 int main() {
17260
17261 /* The GNU C library defines this for functions which it implements
17262 to always fail with ENOSYS. Some functions are actually named
17263 something starting with __ and the normal name is an alias. */
17264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17265 choke me
17266 #else
17267 $ac_func();
17268 #endif
17269
17270 ; return 0; }
17271 EOF
17272 if { (eval echo configure:17273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17273 rm -rf conftest*
17274 eval "ac_cv_func_$ac_func=yes"
17275 else
17276 echo "configure: failed program was:" >&5
17277 cat conftest.$ac_ext >&5
17278 rm -rf conftest*
17279 eval "ac_cv_func_$ac_func=no"
17280 fi
17281 rm -f conftest*
17282 fi
17283
17284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17285 echo "$ac_t""yes" 1>&6
17286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17287 cat >> confdefs.h <<EOF
17288 #define $ac_tr_func 1
17289 EOF
17290
17291 else
17292 echo "$ac_t""no" 1>&6
17293 fi
17294 done
17295
17296 fi
17297
17298
17299 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
17300 echo "configure:17301: checking for _float round functions" >&5
17301 if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
17302 echo $ac_n "(cached) $ac_c" 1>&6
17303 else
17304
17305
17306 ac_ext=C
17307 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17308 ac_cpp='$CXXCPP $CPPFLAGS'
17309 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17310 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17311 cross_compiling=$ac_cv_prog_cxx_cross
17312
17313 cat > conftest.$ac_ext <<EOF
17314 #line 17315 "configure"
17315 #include "confdefs.h"
17316 #include <math.h>
17317 int main() {
17318 `for x in _ceilf _floorf; do echo "$x (0);"; done`
17319 ; return 0; }
17320 EOF
17321 if { (eval echo configure:17322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17322 rm -rf conftest*
17323 glibcpp_cv_func__float_round_use=yes
17324 else
17325 echo "configure: failed program was:" >&5
17326 cat conftest.$ac_ext >&5
17327 rm -rf conftest*
17328 glibcpp_cv_func__float_round_use=no
17329 fi
17330 rm -f conftest*
17331 ac_ext=c
17332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17333 ac_cpp='$CPP $CPPFLAGS'
17334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17336 cross_compiling=$ac_cv_prog_cc_cross
17337
17338 fi
17339
17340 echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
17341 if test x$glibcpp_cv_func__float_round_use = x"yes"; then
17342 for ac_func in _ceilf _floorf
17343 do
17344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17345 echo "configure:17346: checking for $ac_func" >&5
17346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17347 echo $ac_n "(cached) $ac_c" 1>&6
17348 else
17349 cat > conftest.$ac_ext <<EOF
17350 #line 17351 "configure"
17351 #include "confdefs.h"
17352 /* System header to define __stub macros and hopefully few prototypes,
17353 which can conflict with char $ac_func(); below. */
17354 #include <assert.h>
17355 /* Override any gcc2 internal prototype to avoid an error. */
17356 /* We use char because int might match the return type of a gcc2
17357 builtin and then its argument prototype would still apply. */
17358 char $ac_func();
17359
17360 int main() {
17361
17362 /* The GNU C library defines this for functions which it implements
17363 to always fail with ENOSYS. Some functions are actually named
17364 something starting with __ and the normal name is an alias. */
17365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17366 choke me
17367 #else
17368 $ac_func();
17369 #endif
17370
17371 ; return 0; }
17372 EOF
17373 if { (eval echo configure:17374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17374 rm -rf conftest*
17375 eval "ac_cv_func_$ac_func=yes"
17376 else
17377 echo "configure: failed program was:" >&5
17378 cat conftest.$ac_ext >&5
17379 rm -rf conftest*
17380 eval "ac_cv_func_$ac_func=no"
17381 fi
17382 rm -f conftest*
17383 fi
17384
17385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17386 echo "$ac_t""yes" 1>&6
17387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17388 cat >> confdefs.h <<EOF
17389 #define $ac_tr_func 1
17390 EOF
17391
17392 else
17393 echo "$ac_t""no" 1>&6
17394 fi
17395 done
17396
17397 fi
17398
17399
17400
17401 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
17402 echo "configure:17403: checking for _long double trig functions" >&5
17403 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
17404 echo $ac_n "(cached) $ac_c" 1>&6
17405 else
17406
17407
17408 ac_ext=C
17409 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17410 ac_cpp='$CXXCPP $CPPFLAGS'
17411 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17412 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17413 cross_compiling=$ac_cv_prog_cxx_cross
17414
17415 cat > conftest.$ac_ext <<EOF
17416 #line 17417 "configure"
17417 #include "confdefs.h"
17418 #include <math.h>
17419 int main() {
17420 `for x in _acosl _asinl _atanl \
17421 _cosl _sinl _tanl \
17422 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
17423 ; return 0; }
17424 EOF
17425 if { (eval echo configure:17426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17426 rm -rf conftest*
17427 glibcpp_cv_func__long_double_trig_use=yes
17428 else
17429 echo "configure: failed program was:" >&5
17430 cat conftest.$ac_ext >&5
17431 rm -rf conftest*
17432 glibcpp_cv_func__long_double_trig_use=no
17433 fi
17434 rm -f conftest*
17435 ac_ext=c
17436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17437 ac_cpp='$CPP $CPPFLAGS'
17438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17440 cross_compiling=$ac_cv_prog_cc_cross
17441
17442 fi
17443
17444 echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
17445 if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
17446 for ac_func in _acosl _asinl _atanl \
17447 _cosl _sinl _tanl \
17448 _coshl _sinhl _tanhl
17449 do
17450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17451 echo "configure:17452: checking for $ac_func" >&5
17452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17453 echo $ac_n "(cached) $ac_c" 1>&6
17454 else
17455 cat > conftest.$ac_ext <<EOF
17456 #line 17457 "configure"
17457 #include "confdefs.h"
17458 /* System header to define __stub macros and hopefully few prototypes,
17459 which can conflict with char $ac_func(); below. */
17460 #include <assert.h>
17461 /* Override any gcc2 internal prototype to avoid an error. */
17462 /* We use char because int might match the return type of a gcc2
17463 builtin and then its argument prototype would still apply. */
17464 char $ac_func();
17465
17466 int main() {
17467
17468 /* The GNU C library defines this for functions which it implements
17469 to always fail with ENOSYS. Some functions are actually named
17470 something starting with __ and the normal name is an alias. */
17471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17472 choke me
17473 #else
17474 $ac_func();
17475 #endif
17476
17477 ; return 0; }
17478 EOF
17479 if { (eval echo configure:17480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17480 rm -rf conftest*
17481 eval "ac_cv_func_$ac_func=yes"
17482 else
17483 echo "configure: failed program was:" >&5
17484 cat conftest.$ac_ext >&5
17485 rm -rf conftest*
17486 eval "ac_cv_func_$ac_func=no"
17487 fi
17488 rm -f conftest*
17489 fi
17490
17491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17492 echo "$ac_t""yes" 1>&6
17493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17494 cat >> confdefs.h <<EOF
17495 #define $ac_tr_func 1
17496 EOF
17497
17498 else
17499 echo "$ac_t""no" 1>&6
17500 fi
17501 done
17502
17503 fi
17504
17505
17506 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
17507 echo "configure:17508: checking for _long double round functions" >&5
17508 if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
17509 echo $ac_n "(cached) $ac_c" 1>&6
17510 else
17511
17512
17513 ac_ext=C
17514 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17515 ac_cpp='$CXXCPP $CPPFLAGS'
17516 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17517 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17518 cross_compiling=$ac_cv_prog_cxx_cross
17519
17520 cat > conftest.$ac_ext <<EOF
17521 #line 17522 "configure"
17522 #include "confdefs.h"
17523 #include <math.h>
17524 int main() {
17525 `for x in _ceill _floorl; do echo "$x (0);"; done`
17526 ; return 0; }
17527 EOF
17528 if { (eval echo configure:17529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17529 rm -rf conftest*
17530 glibcpp_cv_func__long_double_round_use=yes
17531 else
17532 echo "configure: failed program was:" >&5
17533 cat conftest.$ac_ext >&5
17534 rm -rf conftest*
17535 glibcpp_cv_func__long_double_round_use=no
17536 fi
17537 rm -f conftest*
17538 ac_ext=c
17539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17540 ac_cpp='$CPP $CPPFLAGS'
17541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17543 cross_compiling=$ac_cv_prog_cc_cross
17544
17545 fi
17546
17547 echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
17548 if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
17549 for ac_func in _ceill _floorl
17550 do
17551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17552 echo "configure:17553: checking for $ac_func" >&5
17553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17554 echo $ac_n "(cached) $ac_c" 1>&6
17555 else
17556 cat > conftest.$ac_ext <<EOF
17557 #line 17558 "configure"
17558 #include "confdefs.h"
17559 /* System header to define __stub macros and hopefully few prototypes,
17560 which can conflict with char $ac_func(); below. */
17561 #include <assert.h>
17562 /* Override any gcc2 internal prototype to avoid an error. */
17563 /* We use char because int might match the return type of a gcc2
17564 builtin and then its argument prototype would still apply. */
17565 char $ac_func();
17566
17567 int main() {
17568
17569 /* The GNU C library defines this for functions which it implements
17570 to always fail with ENOSYS. Some functions are actually named
17571 something starting with __ and the normal name is an alias. */
17572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17573 choke me
17574 #else
17575 $ac_func();
17576 #endif
17577
17578 ; return 0; }
17579 EOF
17580 if { (eval echo configure:17581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17581 rm -rf conftest*
17582 eval "ac_cv_func_$ac_func=yes"
17583 else
17584 echo "configure: failed program was:" >&5
17585 cat conftest.$ac_ext >&5
17586 rm -rf conftest*
17587 eval "ac_cv_func_$ac_func=no"
17588 fi
17589 rm -f conftest*
17590 fi
17591
17592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17593 echo "$ac_t""yes" 1>&6
17594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17595 cat >> confdefs.h <<EOF
17596 #define $ac_tr_func 1
17597 EOF
17598
17599 else
17600 echo "$ac_t""no" 1>&6
17601 fi
17602 done
17603
17604 fi
17605
17606
17607 LIBS="$ac_save_LIBS"
17608 CXXFLAGS="$ac_save_CXXFLAGS"
17609
17610
17611 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
17612 echo "configure:17613: checking for main in -lm" >&5
17613 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
17614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17615 echo $ac_n "(cached) $ac_c" 1>&6
17616 else
17617 ac_save_LIBS="$LIBS"
17618 LIBS="-lm $LIBS"
17619 cat > conftest.$ac_ext <<EOF
17620 #line 17621 "configure"
17621 #include "confdefs.h"
17622
17623 int main() {
17624 main()
17625 ; return 0; }
17626 EOF
17627 if { (eval echo configure:17628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17628 rm -rf conftest*
17629 eval "ac_cv_lib_$ac_lib_var=yes"
17630 else
17631 echo "configure: failed program was:" >&5
17632 cat conftest.$ac_ext >&5
17633 rm -rf conftest*
17634 eval "ac_cv_lib_$ac_lib_var=no"
17635 fi
17636 rm -f conftest*
17637 LIBS="$ac_save_LIBS"
17638
17639 fi
17640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17641 echo "$ac_t""yes" 1>&6
17642 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
17643 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
17644 cat >> confdefs.h <<EOF
17645 #define $ac_tr_lib 1
17646 EOF
17647
17648 LIBS="-lm $LIBS"
17649
17650 else
17651 echo "$ac_t""no" 1>&6
17652 fi
17653
17654 for ac_func in nan copysignf
17655 do
17656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17657 echo "configure:17658: checking for $ac_func" >&5
17658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17659 echo $ac_n "(cached) $ac_c" 1>&6
17660 else
17661 cat > conftest.$ac_ext <<EOF
17662 #line 17663 "configure"
17663 #include "confdefs.h"
17664 /* System header to define __stub macros and hopefully few prototypes,
17665 which can conflict with char $ac_func(); below. */
17666 #include <assert.h>
17667 /* Override any gcc2 internal prototype to avoid an error. */
17668 /* We use char because int might match the return type of a gcc2
17669 builtin and then its argument prototype would still apply. */
17670 char $ac_func();
17671
17672 int main() {
17673
17674 /* The GNU C library defines this for functions which it implements
17675 to always fail with ENOSYS. Some functions are actually named
17676 something starting with __ and the normal name is an alias. */
17677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17678 choke me
17679 #else
17680 $ac_func();
17681 #endif
17682
17683 ; return 0; }
17684 EOF
17685 if { (eval echo configure:17686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17686 rm -rf conftest*
17687 eval "ac_cv_func_$ac_func=yes"
17688 else
17689 echo "configure: failed program was:" >&5
17690 cat conftest.$ac_ext >&5
17691 rm -rf conftest*
17692 eval "ac_cv_func_$ac_func=no"
17693 fi
17694 rm -f conftest*
17695 fi
17696
17697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17698 echo "$ac_t""yes" 1>&6
17699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17700 cat >> confdefs.h <<EOF
17701 #define $ac_tr_func 1
17702 EOF
17703
17704 else
17705 echo "$ac_t""no" 1>&6
17706 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
17707 fi
17708 done
17709
17710
17711
17712 USE_COMPLEX_LONG_DOUBLE=no
17713 if test x$ac_cv_func_copysignl = x"yes"; then
17714 USE_COMPLEX_LONG_DOUBLE=yes
17715 for ac_func in signbitl
17716 do
17717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17718 echo "configure:17719: checking for $ac_func" >&5
17719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17720 echo $ac_n "(cached) $ac_c" 1>&6
17721 else
17722 cat > conftest.$ac_ext <<EOF
17723 #line 17724 "configure"
17724 #include "confdefs.h"
17725 /* System header to define __stub macros and hopefully few prototypes,
17726 which can conflict with char $ac_func(); below. */
17727 #include <assert.h>
17728 /* Override any gcc2 internal prototype to avoid an error. */
17729 /* We use char because int might match the return type of a gcc2
17730 builtin and then its argument prototype would still apply. */
17731 char $ac_func();
17732
17733 int main() {
17734
17735 /* The GNU C library defines this for functions which it implements
17736 to always fail with ENOSYS. Some functions are actually named
17737 something starting with __ and the normal name is an alias. */
17738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17739 choke me
17740 #else
17741 $ac_func();
17742 #endif
17743
17744 ; return 0; }
17745 EOF
17746 if { (eval echo configure:17747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17747 rm -rf conftest*
17748 eval "ac_cv_func_$ac_func=yes"
17749 else
17750 echo "configure: failed program was:" >&5
17751 cat conftest.$ac_ext >&5
17752 rm -rf conftest*
17753 eval "ac_cv_func_$ac_func=no"
17754 fi
17755 rm -f conftest*
17756 fi
17757
17758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17759 echo "$ac_t""yes" 1>&6
17760 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17761 cat >> confdefs.h <<EOF
17762 #define $ac_tr_func 1
17763 EOF
17764
17765 else
17766 echo "$ac_t""no" 1>&6
17767 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
17768 fi
17769 done
17770
17771
17772 fi
17773
17774
17775
17776
17777
17778 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
17779 echo "configure:17780: checking for mbstate_t" >&5
17780 cat > conftest.$ac_ext <<EOF
17781 #line 17782 "configure"
17782 #include "confdefs.h"
17783 #include <wchar.h>
17784 int main() {
17785 mbstate_t teststate;
17786 ; return 0; }
17787 EOF
17788 if { (eval echo configure:17789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17789 rm -rf conftest*
17790 have_mbstate_t=yes
17791 else
17792 echo "configure: failed program was:" >&5
17793 cat conftest.$ac_ext >&5
17794 rm -rf conftest*
17795 have_mbstate_t=no
17796 fi
17797 rm -f conftest*
17798 echo "$ac_t""$have_mbstate_t" 1>&6
17799 if test x"$have_mbstate_t" = xyes; then
17800 cat >> confdefs.h <<\EOF
17801 #define HAVE_MBSTATE_T 1
17802 EOF
17803
17804 fi
17805
17806 for ac_hdr in wchar.h
17807 do
17808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17810 echo "configure:17811: checking for $ac_hdr" >&5
17811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17812 echo $ac_n "(cached) $ac_c" 1>&6
17813 else
17814 cat > conftest.$ac_ext <<EOF
17815 #line 17816 "configure"
17816 #include "confdefs.h"
17817 #include <$ac_hdr>
17818 EOF
17819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17820 { (eval echo configure:17821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17822 if test -z "$ac_err"; then
17823 rm -rf conftest*
17824 eval "ac_cv_header_$ac_safe=yes"
17825 else
17826 echo "$ac_err" >&5
17827 echo "configure: failed program was:" >&5
17828 cat conftest.$ac_ext >&5
17829 rm -rf conftest*
17830 eval "ac_cv_header_$ac_safe=no"
17831 fi
17832 rm -f conftest*
17833 fi
17834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17835 echo "$ac_t""yes" 1>&6
17836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17837 cat >> confdefs.h <<EOF
17838 #define $ac_tr_hdr 1
17839 EOF
17840 ac_has_wchar_h=yes
17841 else
17842 echo "$ac_t""no" 1>&6
17843 ac_has_wchar_h=no
17844 fi
17845 done
17846
17847 ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'`
17848 echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
17849 echo "configure:17850: checking for wctype.h" >&5
17850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17851 echo $ac_n "(cached) $ac_c" 1>&6
17852 else
17853 cat > conftest.$ac_ext <<EOF
17854 #line 17855 "configure"
17855 #include "confdefs.h"
17856 #include <wctype.h>
17857 EOF
17858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17859 { (eval echo configure:17860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17861 if test -z "$ac_err"; then
17862 rm -rf conftest*
17863 eval "ac_cv_header_$ac_safe=yes"
17864 else
17865 echo "$ac_err" >&5
17866 echo "configure: failed program was:" >&5
17867 cat conftest.$ac_ext >&5
17868 rm -rf conftest*
17869 eval "ac_cv_header_$ac_safe=no"
17870 fi
17871 rm -f conftest*
17872 fi
17873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17874 echo "$ac_t""yes" 1>&6
17875 ac_has_wctype_h=yes
17876 else
17877 echo "$ac_t""no" 1>&6
17878 ac_has_wctype_h=no
17879 fi
17880
17881
17882 if test x"$ac_has_wchar_h" = xyes &&
17883 test x"$ac_has_wctype_h" = xyes &&
17884 test x"$enable_c_mbchar" != xno; then
17885
17886 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
17887 echo "configure:17888: checking for WCHAR_MIN and WCHAR_MAX" >&5
17888 cat > conftest.$ac_ext <<EOF
17889 #line 17890 "configure"
17890 #include "confdefs.h"
17891 #include <wchar.h>
17892 int main() {
17893 int i = WCHAR_MIN; int j = WCHAR_MAX;
17894 ; return 0; }
17895 EOF
17896 if { (eval echo configure:17897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17897 rm -rf conftest*
17898 has_wchar_minmax=yes
17899 else
17900 echo "configure: failed program was:" >&5
17901 cat conftest.$ac_ext >&5
17902 rm -rf conftest*
17903 has_wchar_minmax=no
17904 fi
17905 rm -f conftest*
17906 echo "$ac_t""$has_wchar_minmax" 1>&6
17907
17908 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
17909 echo "configure:17910: checking for WEOF" >&5
17910 cat > conftest.$ac_ext <<EOF
17911 #line 17912 "configure"
17912 #include "confdefs.h"
17913
17914 #include <wchar.h>
17915 #include <stddef.h>
17916 int main() {
17917 wint_t i = WEOF;
17918 ; return 0; }
17919 EOF
17920 if { (eval echo configure:17921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17921 rm -rf conftest*
17922 has_weof=yes
17923 else
17924 echo "configure: failed program was:" >&5
17925 cat conftest.$ac_ext >&5
17926 rm -rf conftest*
17927 has_weof=no
17928 fi
17929 rm -f conftest*
17930 echo "$ac_t""$has_weof" 1>&6
17931
17932 ac_wfuncs=yes
17933 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
17934 do
17935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17936 echo "configure:17937: checking for $ac_func" >&5
17937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17938 echo $ac_n "(cached) $ac_c" 1>&6
17939 else
17940 cat > conftest.$ac_ext <<EOF
17941 #line 17942 "configure"
17942 #include "confdefs.h"
17943 /* System header to define __stub macros and hopefully few prototypes,
17944 which can conflict with char $ac_func(); below. */
17945 #include <assert.h>
17946 /* Override any gcc2 internal prototype to avoid an error. */
17947 /* We use char because int might match the return type of a gcc2
17948 builtin and then its argument prototype would still apply. */
17949 char $ac_func();
17950
17951 int main() {
17952
17953 /* The GNU C library defines this for functions which it implements
17954 to always fail with ENOSYS. Some functions are actually named
17955 something starting with __ and the normal name is an alias. */
17956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17957 choke me
17958 #else
17959 $ac_func();
17960 #endif
17961
17962 ; return 0; }
17963 EOF
17964 if { (eval echo configure:17965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17965 rm -rf conftest*
17966 eval "ac_cv_func_$ac_func=yes"
17967 else
17968 echo "configure: failed program was:" >&5
17969 cat conftest.$ac_ext >&5
17970 rm -rf conftest*
17971 eval "ac_cv_func_$ac_func=no"
17972 fi
17973 rm -f conftest*
17974 fi
17975
17976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17977 echo "$ac_t""yes" 1>&6
17978 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17979 cat >> confdefs.h <<EOF
17980 #define $ac_tr_func 1
17981 EOF
17982
17983 else
17984 echo "$ac_t""no" 1>&6
17985 \
17986 ac_wfuncs=no
17987 fi
17988 done
17989
17990
17991 for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
17992 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
17993 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
17994 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
17995 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
17996 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
17997 do
17998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17999 echo "configure:18000: checking for $ac_func" >&5
18000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18001 echo $ac_n "(cached) $ac_c" 1>&6
18002 else
18003 cat > conftest.$ac_ext <<EOF
18004 #line 18005 "configure"
18005 #include "confdefs.h"
18006 /* System header to define __stub macros and hopefully few prototypes,
18007 which can conflict with char $ac_func(); below. */
18008 #include <assert.h>
18009 /* Override any gcc2 internal prototype to avoid an error. */
18010 /* We use char because int might match the return type of a gcc2
18011 builtin and then its argument prototype would still apply. */
18012 char $ac_func();
18013
18014 int main() {
18015
18016 /* The GNU C library defines this for functions which it implements
18017 to always fail with ENOSYS. Some functions are actually named
18018 something starting with __ and the normal name is an alias. */
18019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18020 choke me
18021 #else
18022 $ac_func();
18023 #endif
18024
18025 ; return 0; }
18026 EOF
18027 if { (eval echo configure:18028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18028 rm -rf conftest*
18029 eval "ac_cv_func_$ac_func=yes"
18030 else
18031 echo "configure: failed program was:" >&5
18032 cat conftest.$ac_ext >&5
18033 rm -rf conftest*
18034 eval "ac_cv_func_$ac_func=no"
18035 fi
18036 rm -f conftest*
18037 fi
18038
18039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18040 echo "$ac_t""yes" 1>&6
18041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18042 cat >> confdefs.h <<EOF
18043 #define $ac_tr_func 1
18044 EOF
18045
18046 else
18047 echo "$ac_t""no" 1>&6
18048 \
18049 ac_wfuncs=no
18050 fi
18051 done
18052
18053
18054 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
18055 echo "configure:18056: checking for ISO C99 wchar_t support" >&5
18056 if test x"$has_weof" = xyes &&
18057 test x"$has_wchar_minmax" = xyes &&
18058 test x"$ac_wfuncs" = xyes; then
18059 ac_isoC99_wchar_t=yes
18060 else
18061 ac_isoC99_wchar_t=no
18062 fi
18063 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
18064
18065 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
18066 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
18067 echo "configure:18068: checking for iconv.h" >&5
18068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18069 echo $ac_n "(cached) $ac_c" 1>&6
18070 else
18071 cat > conftest.$ac_ext <<EOF
18072 #line 18073 "configure"
18073 #include "confdefs.h"
18074 #include <iconv.h>
18075 EOF
18076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18077 { (eval echo configure:18078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18079 if test -z "$ac_err"; then
18080 rm -rf conftest*
18081 eval "ac_cv_header_$ac_safe=yes"
18082 else
18083 echo "$ac_err" >&5
18084 echo "configure: failed program was:" >&5
18085 cat conftest.$ac_ext >&5
18086 rm -rf conftest*
18087 eval "ac_cv_header_$ac_safe=no"
18088 fi
18089 rm -f conftest*
18090 fi
18091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18092 echo "$ac_t""yes" 1>&6
18093 ac_has_iconv_h=yes
18094 else
18095 echo "$ac_t""no" 1>&6
18096 ac_has_iconv_h=no
18097 fi
18098
18099 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
18100 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
18101 echo "configure:18102: checking for langinfo.h" >&5
18102 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18103 echo $ac_n "(cached) $ac_c" 1>&6
18104 else
18105 cat > conftest.$ac_ext <<EOF
18106 #line 18107 "configure"
18107 #include "confdefs.h"
18108 #include <langinfo.h>
18109 EOF
18110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18111 { (eval echo configure:18112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18113 if test -z "$ac_err"; then
18114 rm -rf conftest*
18115 eval "ac_cv_header_$ac_safe=yes"
18116 else
18117 echo "$ac_err" >&5
18118 echo "configure: failed program was:" >&5
18119 cat conftest.$ac_ext >&5
18120 rm -rf conftest*
18121 eval "ac_cv_header_$ac_safe=no"
18122 fi
18123 rm -f conftest*
18124 fi
18125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18126 echo "$ac_t""yes" 1>&6
18127 ac_has_langinfo_h=yes
18128 else
18129 echo "$ac_t""no" 1>&6
18130 ac_has_langinfo_h=no
18131 fi
18132
18133
18134 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
18135 echo "configure:18136: checking for iconv in -liconv" >&5
18136 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
18137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18138 echo $ac_n "(cached) $ac_c" 1>&6
18139 else
18140 ac_save_LIBS="$LIBS"
18141 LIBS="-liconv $LIBS"
18142 cat > conftest.$ac_ext <<EOF
18143 #line 18144 "configure"
18144 #include "confdefs.h"
18145 /* Override any gcc2 internal prototype to avoid an error. */
18146 /* We use char because int might match the return type of a gcc2
18147 builtin and then its argument prototype would still apply. */
18148 char iconv();
18149
18150 int main() {
18151 iconv()
18152 ; return 0; }
18153 EOF
18154 if { (eval echo configure:18155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18155 rm -rf conftest*
18156 eval "ac_cv_lib_$ac_lib_var=yes"
18157 else
18158 echo "configure: failed program was:" >&5
18159 cat conftest.$ac_ext >&5
18160 rm -rf conftest*
18161 eval "ac_cv_lib_$ac_lib_var=no"
18162 fi
18163 rm -f conftest*
18164 LIBS="$ac_save_LIBS"
18165
18166 fi
18167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18168 echo "$ac_t""yes" 1>&6
18169 libiconv="-liconv"
18170 else
18171 echo "$ac_t""no" 1>&6
18172 fi
18173
18174 ac_save_LIBS="$LIBS"
18175 LIBS="$LIBS $libiconv"
18176
18177 for ac_func in iconv_open iconv_close iconv nl_langinfo
18178 do
18179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18180 echo "configure:18181: checking for $ac_func" >&5
18181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18182 echo $ac_n "(cached) $ac_c" 1>&6
18183 else
18184 cat > conftest.$ac_ext <<EOF
18185 #line 18186 "configure"
18186 #include "confdefs.h"
18187 /* System header to define __stub macros and hopefully few prototypes,
18188 which can conflict with char $ac_func(); below. */
18189 #include <assert.h>
18190 /* Override any gcc2 internal prototype to avoid an error. */
18191 /* We use char because int might match the return type of a gcc2
18192 builtin and then its argument prototype would still apply. */
18193 char $ac_func();
18194
18195 int main() {
18196
18197 /* The GNU C library defines this for functions which it implements
18198 to always fail with ENOSYS. Some functions are actually named
18199 something starting with __ and the normal name is an alias. */
18200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18201 choke me
18202 #else
18203 $ac_func();
18204 #endif
18205
18206 ; return 0; }
18207 EOF
18208 if { (eval echo configure:18209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18209 rm -rf conftest*
18210 eval "ac_cv_func_$ac_func=yes"
18211 else
18212 echo "configure: failed program was:" >&5
18213 cat conftest.$ac_ext >&5
18214 rm -rf conftest*
18215 eval "ac_cv_func_$ac_func=no"
18216 fi
18217 rm -f conftest*
18218 fi
18219
18220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18221 echo "$ac_t""yes" 1>&6
18222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18223 cat >> confdefs.h <<EOF
18224 #define $ac_tr_func 1
18225 EOF
18226 \
18227 ac_XPG2funcs=yes
18228 else
18229 echo "$ac_t""no" 1>&6
18230 ac_XPG2funcs=no
18231 fi
18232 done
18233
18234
18235 LIBS="$ac_save_LIBS"
18236
18237 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
18238 echo "configure:18239: checking for XPG2 wchar_t support" >&5
18239 if test x"$ac_has_iconv_h" = xyes &&
18240 test x"$ac_has_langinfo_h" = xyes &&
18241 test x"$ac_XPG2funcs" = xyes; then
18242 ac_XPG2_wchar_t=yes
18243 else
18244 ac_XPG2_wchar_t=no
18245 fi
18246 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
18247
18248 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
18249 echo "configure:18250: checking for enabled wchar_t specializations" >&5
18250 if test x"$ac_isoC99_wchar_t" = xyes &&
18251 test x"$ac_XPG2_wchar_t" = xyes; then
18252 cat >> confdefs.h <<\EOF
18253 #define _GLIBCPP_USE_WCHAR_T 1
18254 EOF
18255
18256 echo "$ac_t"""yes"" 1>&6
18257 else
18258 echo "$ac_t"""no"" 1>&6
18259 fi
18260 else
18261 echo "configure: warning: wchar_t support disabled." 1>&2
18262 fi
18263
18264
18265 ac_test_CXXFLAGS="${CXXFLAGS+set}"
18266 ac_save_CXXFLAGS="$CXXFLAGS"
18267 CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
18268
18269
18270 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
18271 echo "configure:18272: checking for strtold declaration" >&5
18272 if test x${glibcpp_cv_func_strtold_use+set} != xset; then
18273 if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
18274 echo $ac_n "(cached) $ac_c" 1>&6
18275 else
18276
18277
18278 ac_ext=C
18279 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18280 ac_cpp='$CXXCPP $CPPFLAGS'
18281 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18282 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18283 cross_compiling=$ac_cv_prog_cxx_cross
18284
18285 cat > conftest.$ac_ext <<EOF
18286 #line 18287 "configure"
18287 #include "confdefs.h"
18288 #include <stdlib.h>
18289 int main() {
18290 strtold(0, 0);
18291 ; return 0; }
18292 EOF
18293 if { (eval echo configure:18294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18294 rm -rf conftest*
18295 glibcpp_cv_func_strtold_use=yes
18296 else
18297 echo "configure: failed program was:" >&5
18298 cat conftest.$ac_ext >&5
18299 rm -rf conftest*
18300 glibcpp_cv_func_strtold_use=no
18301 fi
18302 rm -f conftest*
18303 ac_ext=c
18304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18305 ac_cpp='$CPP $CPPFLAGS'
18306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18308 cross_compiling=$ac_cv_prog_cc_cross
18309
18310
18311 fi
18312
18313 fi
18314 echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
18315 if test x$glibcpp_cv_func_strtold_use = x"yes"; then
18316 for ac_func in strtold
18317 do
18318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18319 echo "configure:18320: checking for $ac_func" >&5
18320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18321 echo $ac_n "(cached) $ac_c" 1>&6
18322 else
18323 cat > conftest.$ac_ext <<EOF
18324 #line 18325 "configure"
18325 #include "confdefs.h"
18326 /* System header to define __stub macros and hopefully few prototypes,
18327 which can conflict with char $ac_func(); below. */
18328 #include <assert.h>
18329 /* Override any gcc2 internal prototype to avoid an error. */
18330 /* We use char because int might match the return type of a gcc2
18331 builtin and then its argument prototype would still apply. */
18332 char $ac_func();
18333
18334 int main() {
18335
18336 /* The GNU C library defines this for functions which it implements
18337 to always fail with ENOSYS. Some functions are actually named
18338 something starting with __ and the normal name is an alias. */
18339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18340 choke me
18341 #else
18342 $ac_func();
18343 #endif
18344
18345 ; return 0; }
18346 EOF
18347 if { (eval echo configure:18348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18348 rm -rf conftest*
18349 eval "ac_cv_func_$ac_func=yes"
18350 else
18351 echo "configure: failed program was:" >&5
18352 cat conftest.$ac_ext >&5
18353 rm -rf conftest*
18354 eval "ac_cv_func_$ac_func=no"
18355 fi
18356 rm -f conftest*
18357 fi
18358
18359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18360 echo "$ac_t""yes" 1>&6
18361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18362 cat >> confdefs.h <<EOF
18363 #define $ac_tr_func 1
18364 EOF
18365
18366 else
18367 echo "$ac_t""no" 1>&6
18368 fi
18369 done
18370
18371 fi
18372
18373 for ac_func in drand48
18374 do
18375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18376 echo "configure:18377: checking for $ac_func" >&5
18377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18378 echo $ac_n "(cached) $ac_c" 1>&6
18379 else
18380 cat > conftest.$ac_ext <<EOF
18381 #line 18382 "configure"
18382 #include "confdefs.h"
18383 /* System header to define __stub macros and hopefully few prototypes,
18384 which can conflict with char $ac_func(); below. */
18385 #include <assert.h>
18386 /* Override any gcc2 internal prototype to avoid an error. */
18387 /* We use char because int might match the return type of a gcc2
18388 builtin and then its argument prototype would still apply. */
18389 char $ac_func();
18390
18391 int main() {
18392
18393 /* The GNU C library defines this for functions which it implements
18394 to always fail with ENOSYS. Some functions are actually named
18395 something starting with __ and the normal name is an alias. */
18396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18397 choke me
18398 #else
18399 $ac_func();
18400 #endif
18401
18402 ; return 0; }
18403 EOF
18404 if { (eval echo configure:18405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18405 rm -rf conftest*
18406 eval "ac_cv_func_$ac_func=yes"
18407 else
18408 echo "configure: failed program was:" >&5
18409 cat conftest.$ac_ext >&5
18410 rm -rf conftest*
18411 eval "ac_cv_func_$ac_func=no"
18412 fi
18413 rm -f conftest*
18414 fi
18415
18416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18417 echo "$ac_t""yes" 1>&6
18418 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18419 cat >> confdefs.h <<EOF
18420 #define $ac_tr_func 1
18421 EOF
18422
18423 else
18424 echo "$ac_t""no" 1>&6
18425 fi
18426 done
18427
18428
18429 CXXFLAGS="$ac_save_CXXFLAGS"
18430
18431
18432 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
18433 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
18434 echo "configure:18435: checking for locale.h" >&5
18435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18436 echo $ac_n "(cached) $ac_c" 1>&6
18437 else
18438 cat > conftest.$ac_ext <<EOF
18439 #line 18440 "configure"
18440 #include "confdefs.h"
18441 #include <locale.h>
18442 EOF
18443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18444 { (eval echo configure:18445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18446 if test -z "$ac_err"; then
18447 rm -rf conftest*
18448 eval "ac_cv_header_$ac_safe=yes"
18449 else
18450 echo "$ac_err" >&5
18451 echo "configure: failed program was:" >&5
18452 cat conftest.$ac_ext >&5
18453 rm -rf conftest*
18454 eval "ac_cv_header_$ac_safe=no"
18455 fi
18456 rm -f conftest*
18457 fi
18458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18459 echo "$ac_t""yes" 1>&6
18460
18461 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
18462 echo "configure:18463: checking for LC_MESSAGES" >&5
18463 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
18464 echo $ac_n "(cached) $ac_c" 1>&6
18465 else
18466 cat > conftest.$ac_ext <<EOF
18467 #line 18468 "configure"
18468 #include "confdefs.h"
18469 #include <locale.h>
18470 int main() {
18471 return LC_MESSAGES
18472 ; return 0; }
18473 EOF
18474 if { (eval echo configure:18475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18475 rm -rf conftest*
18476 ac_cv_val_LC_MESSAGES=yes
18477 else
18478 echo "configure: failed program was:" >&5
18479 cat conftest.$ac_ext >&5
18480 rm -rf conftest*
18481 ac_cv_val_LC_MESSAGES=no
18482 fi
18483 rm -f conftest*
18484 fi
18485
18486 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
18487 if test $ac_cv_val_LC_MESSAGES = yes; then
18488 cat >> confdefs.h <<\EOF
18489 #define HAVE_LC_MESSAGES 1
18490 EOF
18491
18492 fi
18493
18494 else
18495 echo "$ac_t""no" 1>&6
18496 fi
18497
18498
18499
18500 cat > conftest.$ac_ext <<EOF
18501 #line 18502 "configure"
18502 #include "confdefs.h"
18503
18504 #include <setjmp.h>
18505
18506 int main() {
18507 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
18508 ; return 0; }
18509 EOF
18510 if { (eval echo configure:18511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18511 rm -rf conftest*
18512 cat >> confdefs.h <<\EOF
18513 #define HAVE_SIGSETJMP 1
18514 EOF
18515
18516
18517 else
18518 echo "configure: failed program was:" >&5
18519 cat conftest.$ac_ext >&5
18520 fi
18521 rm -f conftest*
18522
18523 for ac_hdr in unistd.h
18524 do
18525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18527 echo "configure:18528: checking for $ac_hdr" >&5
18528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18529 echo $ac_n "(cached) $ac_c" 1>&6
18530 else
18531 cat > conftest.$ac_ext <<EOF
18532 #line 18533 "configure"
18533 #include "confdefs.h"
18534 #include <$ac_hdr>
18535 EOF
18536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18537 { (eval echo configure:18538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18539 if test -z "$ac_err"; then
18540 rm -rf conftest*
18541 eval "ac_cv_header_$ac_safe=yes"
18542 else
18543 echo "$ac_err" >&5
18544 echo "configure: failed program was:" >&5
18545 cat conftest.$ac_ext >&5
18546 rm -rf conftest*
18547 eval "ac_cv_header_$ac_safe=no"
18548 fi
18549 rm -f conftest*
18550 fi
18551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18552 echo "$ac_t""yes" 1>&6
18553 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18554 cat >> confdefs.h <<EOF
18555 #define $ac_tr_hdr 1
18556 EOF
18557
18558 else
18559 echo "$ac_t""no" 1>&6
18560 fi
18561 done
18562
18563 for ac_func in getpagesize
18564 do
18565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18566 echo "configure:18567: checking for $ac_func" >&5
18567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18568 echo $ac_n "(cached) $ac_c" 1>&6
18569 else
18570 cat > conftest.$ac_ext <<EOF
18571 #line 18572 "configure"
18572 #include "confdefs.h"
18573 /* System header to define __stub macros and hopefully few prototypes,
18574 which can conflict with char $ac_func(); below. */
18575 #include <assert.h>
18576 /* Override any gcc2 internal prototype to avoid an error. */
18577 /* We use char because int might match the return type of a gcc2
18578 builtin and then its argument prototype would still apply. */
18579 char $ac_func();
18580
18581 int main() {
18582
18583 /* The GNU C library defines this for functions which it implements
18584 to always fail with ENOSYS. Some functions are actually named
18585 something starting with __ and the normal name is an alias. */
18586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18587 choke me
18588 #else
18589 $ac_func();
18590 #endif
18591
18592 ; return 0; }
18593 EOF
18594 if { (eval echo configure:18595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18595 rm -rf conftest*
18596 eval "ac_cv_func_$ac_func=yes"
18597 else
18598 echo "configure: failed program was:" >&5
18599 cat conftest.$ac_ext >&5
18600 rm -rf conftest*
18601 eval "ac_cv_func_$ac_func=no"
18602 fi
18603 rm -f conftest*
18604 fi
18605
18606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18607 echo "$ac_t""yes" 1>&6
18608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18609 cat >> confdefs.h <<EOF
18610 #define $ac_tr_func 1
18611 EOF
18612
18613 else
18614 echo "$ac_t""no" 1>&6
18615 fi
18616 done
18617
18618 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
18619 echo "configure:18620: checking for working mmap" >&5
18620 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
18621 echo $ac_n "(cached) $ac_c" 1>&6
18622 else
18623 if test "$cross_compiling" = yes; then
18624 ac_cv_func_mmap_fixed_mapped=no
18625 else
18626 cat > conftest.$ac_ext <<EOF
18627 #line 18628 "configure"
18628 #include "confdefs.h"
18629
18630 /* Thanks to Mike Haertel and Jim Avera for this test.
18631 Here is a matrix of mmap possibilities:
18632 mmap private not fixed
18633 mmap private fixed at somewhere currently unmapped
18634 mmap private fixed at somewhere already mapped
18635 mmap shared not fixed
18636 mmap shared fixed at somewhere currently unmapped
18637 mmap shared fixed at somewhere already mapped
18638 For private mappings, we should verify that changes cannot be read()
18639 back from the file, nor mmap's back from the file at a different
18640 address. (There have been systems where private was not correctly
18641 implemented like the infamous i386 svr4.0, and systems where the
18642 VM page cache was not coherent with the filesystem buffer cache
18643 like early versions of FreeBSD and possibly contemporary NetBSD.)
18644 For shared mappings, we should conversely verify that changes get
18645 propogated back to all the places they're supposed to be.
18646
18647 Grep wants private fixed already mapped.
18648 The main things grep needs to know about mmap are:
18649 * does it exist and is it safe to write into the mmap'd area
18650 * how to use it (BSD variants) */
18651 #include <sys/types.h>
18652 #include <fcntl.h>
18653 #include <sys/mman.h>
18654
18655 /* This mess was copied from the GNU getpagesize.h. */
18656 #ifndef HAVE_GETPAGESIZE
18657 # ifdef HAVE_UNISTD_H
18658 # include <unistd.h>
18659 # endif
18660
18661 /* Assume that all systems that can run configure have sys/param.h. */
18662 # ifndef HAVE_SYS_PARAM_H
18663 # define HAVE_SYS_PARAM_H 1
18664 # endif
18665
18666 # ifdef _SC_PAGESIZE
18667 # define getpagesize() sysconf(_SC_PAGESIZE)
18668 # else /* no _SC_PAGESIZE */
18669 # ifdef HAVE_SYS_PARAM_H
18670 # include <sys/param.h>
18671 # ifdef EXEC_PAGESIZE
18672 # define getpagesize() EXEC_PAGESIZE
18673 # else /* no EXEC_PAGESIZE */
18674 # ifdef NBPG
18675 # define getpagesize() NBPG * CLSIZE
18676 # ifndef CLSIZE
18677 # define CLSIZE 1
18678 # endif /* no CLSIZE */
18679 # else /* no NBPG */
18680 # ifdef NBPC
18681 # define getpagesize() NBPC
18682 # else /* no NBPC */
18683 # ifdef PAGESIZE
18684 # define getpagesize() PAGESIZE
18685 # endif /* PAGESIZE */
18686 # endif /* no NBPC */
18687 # endif /* no NBPG */
18688 # endif /* no EXEC_PAGESIZE */
18689 # else /* no HAVE_SYS_PARAM_H */
18690 # define getpagesize() 8192 /* punt totally */
18691 # endif /* no HAVE_SYS_PARAM_H */
18692 # endif /* no _SC_PAGESIZE */
18693
18694 #endif /* no HAVE_GETPAGESIZE */
18695
18696 #ifdef __cplusplus
18697 extern "C" { void *malloc(unsigned); }
18698 #else
18699 char *malloc();
18700 #endif
18701
18702 int
18703 main()
18704 {
18705 char *data, *data2, *data3;
18706 int i, pagesize;
18707 int fd;
18708
18709 pagesize = getpagesize();
18710
18711 /*
18712 * First, make a file with some known garbage in it.
18713 */
18714 data = malloc(pagesize);
18715 if (!data)
18716 exit(1);
18717 for (i = 0; i < pagesize; ++i)
18718 *(data + i) = rand();
18719 umask(0);
18720 fd = creat("conftestmmap", 0600);
18721 if (fd < 0)
18722 exit(1);
18723 if (write(fd, data, pagesize) != pagesize)
18724 exit(1);
18725 close(fd);
18726
18727 /*
18728 * Next, try to mmap the file at a fixed address which
18729 * already has something else allocated at it. If we can,
18730 * also make sure that we see the same garbage.
18731 */
18732 fd = open("conftestmmap", O_RDWR);
18733 if (fd < 0)
18734 exit(1);
18735 data2 = malloc(2 * pagesize);
18736 if (!data2)
18737 exit(1);
18738 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
18739 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
18740 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18741 exit(1);
18742 for (i = 0; i < pagesize; ++i)
18743 if (*(data + i) != *(data2 + i))
18744 exit(1);
18745
18746 /*
18747 * Finally, make sure that changes to the mapped area
18748 * do not percolate back to the file as seen by read().
18749 * (This is a bug on some variants of i386 svr4.0.)
18750 */
18751 for (i = 0; i < pagesize; ++i)
18752 *(data2 + i) = *(data2 + i) + 1;
18753 data3 = malloc(pagesize);
18754 if (!data3)
18755 exit(1);
18756 if (read(fd, data3, pagesize) != pagesize)
18757 exit(1);
18758 for (i = 0; i < pagesize; ++i)
18759 if (*(data + i) != *(data3 + i))
18760 exit(1);
18761 close(fd);
18762 unlink("conftestmmap");
18763 exit(0);
18764 }
18765
18766 EOF
18767 if { (eval echo configure:18768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18768 then
18769 ac_cv_func_mmap_fixed_mapped=yes
18770 else
18771 echo "configure: failed program was:" >&5
18772 cat conftest.$ac_ext >&5
18773 rm -fr conftest*
18774 ac_cv_func_mmap_fixed_mapped=no
18775 fi
18776 rm -fr conftest*
18777 fi
18778
18779 fi
18780
18781 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
18782 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18783 cat >> confdefs.h <<\EOF
18784 #define HAVE_MMAP 1
18785 EOF
18786
18787 fi
18788
18789
18790 # Establish limits on memory usage during 'make check'
18791
18792
18793 setrlimit_have_headers=yes
18794 for ac_hdr in sys/resource.h unistd.h
18795 do
18796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18798 echo "configure:18799: checking for $ac_hdr" >&5
18799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18800 echo $ac_n "(cached) $ac_c" 1>&6
18801 else
18802 cat > conftest.$ac_ext <<EOF
18803 #line 18804 "configure"
18804 #include "confdefs.h"
18805 #include <$ac_hdr>
18806 EOF
18807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18808 { (eval echo configure:18809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18810 if test -z "$ac_err"; then
18811 rm -rf conftest*
18812 eval "ac_cv_header_$ac_safe=yes"
18813 else
18814 echo "$ac_err" >&5
18815 echo "configure: failed program was:" >&5
18816 cat conftest.$ac_ext >&5
18817 rm -rf conftest*
18818 eval "ac_cv_header_$ac_safe=no"
18819 fi
18820 rm -f conftest*
18821 fi
18822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18823 echo "$ac_t""yes" 1>&6
18824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18825 cat >> confdefs.h <<EOF
18826 #define $ac_tr_hdr 1
18827 EOF
18828
18829 else
18830 echo "$ac_t""no" 1>&6
18831 setrlimit_have_headers=no
18832 fi
18833 done
18834
18835 # If don't have the headers, then we can't run the tests now, and we
18836 # won't be seeing any of these during testsuite compilation.
18837 if test $setrlimit_have_headers = yes; then
18838 # Can't do these in a loop, else the resulting syntax is wrong.
18839
18840 cat > conftest.$ac_ext <<EOF
18841 #line 18842 "configure"
18842 #include "confdefs.h"
18843 #include <sys/resource.h>
18844 #include <unistd.h>
18845
18846 int main() {
18847 int f = RLIMIT_DATA ;
18848 ; return 0; }
18849 EOF
18850 if { (eval echo configure:18851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18851 rm -rf conftest*
18852 glibcpp_mresult=1
18853 else
18854 echo "configure: failed program was:" >&5
18855 cat conftest.$ac_ext >&5
18856 rm -rf conftest*
18857 glibcpp_mresult=0
18858 fi
18859 rm -f conftest*
18860 cat >> confdefs.h <<EOF
18861 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
18862 EOF
18863
18864
18865
18866 cat > conftest.$ac_ext <<EOF
18867 #line 18868 "configure"
18868 #include "confdefs.h"
18869 #include <sys/resource.h>
18870 #include <unistd.h>
18871
18872 int main() {
18873 int f = RLIMIT_RSS ;
18874 ; return 0; }
18875 EOF
18876 if { (eval echo configure:18877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18877 rm -rf conftest*
18878 glibcpp_mresult=1
18879 else
18880 echo "configure: failed program was:" >&5
18881 cat conftest.$ac_ext >&5
18882 rm -rf conftest*
18883 glibcpp_mresult=0
18884 fi
18885 rm -f conftest*
18886 cat >> confdefs.h <<EOF
18887 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
18888 EOF
18889
18890
18891
18892 cat > conftest.$ac_ext <<EOF
18893 #line 18894 "configure"
18894 #include "confdefs.h"
18895 #include <sys/resource.h>
18896 #include <unistd.h>
18897
18898 int main() {
18899 int f = RLIMIT_VMEM ;
18900 ; return 0; }
18901 EOF
18902 if { (eval echo configure:18903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18903 rm -rf conftest*
18904 glibcpp_mresult=1
18905 else
18906 echo "configure: failed program was:" >&5
18907 cat conftest.$ac_ext >&5
18908 rm -rf conftest*
18909 glibcpp_mresult=0
18910 fi
18911 rm -f conftest*
18912 cat >> confdefs.h <<EOF
18913 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
18914 EOF
18915
18916
18917
18918 cat > conftest.$ac_ext <<EOF
18919 #line 18920 "configure"
18920 #include "confdefs.h"
18921 #include <sys/resource.h>
18922 #include <unistd.h>
18923
18924 int main() {
18925 int f = RLIMIT_AS ;
18926 ; return 0; }
18927 EOF
18928 if { (eval echo configure:18929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18929 rm -rf conftest*
18930 glibcpp_mresult=1
18931 else
18932 echo "configure: failed program was:" >&5
18933 cat conftest.$ac_ext >&5
18934 rm -rf conftest*
18935 glibcpp_mresult=0
18936 fi
18937 rm -f conftest*
18938 cat >> confdefs.h <<EOF
18939 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
18940 EOF
18941
18942
18943
18944 # Check for rlimit, setrlimit.
18945 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
18946 echo $ac_n "(cached) $ac_c" 1>&6
18947 else
18948
18949 cat > conftest.$ac_ext <<EOF
18950 #line 18951 "configure"
18951 #include "confdefs.h"
18952 #include <sys/resource.h>
18953 #include <unistd.h>
18954
18955 int main() {
18956 struct rlimit r; setrlimit(0, &r);
18957 ; return 0; }
18958 EOF
18959 if { (eval echo configure:18960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18960 rm -rf conftest*
18961 ac_setrlimit=yes
18962 else
18963 echo "configure: failed program was:" >&5
18964 cat conftest.$ac_ext >&5
18965 rm -rf conftest*
18966 ac_setrlimit=no
18967 fi
18968 rm -f conftest*
18969
18970 fi
18971
18972 fi
18973
18974 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
18975 echo "configure:18976: checking for testsuite memory limit support" >&5
18976 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
18977 ac_mem_limits=yes
18978 cat >> confdefs.h <<\EOF
18979 #define _GLIBCPP_MEM_LIMITS 1
18980 EOF
18981
18982 else
18983 ac_mem_limits=no
18984 fi
18985 echo "$ac_t""$ac_mem_limits" 1>&6
18986
18987
18988 fi
18989
18990
18991 # Propagate the target-specific source directories through the build chain.
18992 OS_INC_SRCDIR=$os_include_dir/bits
18993 ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
18994 CPU_LIMITS_INC_SRCDIR=$CPULIMITSH/bits
18995
18996
18997
18998
18999 # Set up cross-compile flags
19000
19001
19002
19003 if test "$CANADIAN" = yes; then
19004 CANADIAN_TRUE=
19005 CANADIAN_FALSE='#'
19006 else
19007 CANADIAN_TRUE='#'
19008 CANADIAN_FALSE=
19009 fi
19010
19011 cat > confcache <<\EOF
19012 # This file is a shell script that caches the results of configure
19013 # tests run on this system so they can be shared between configure
19014 # scripts and configure runs. It is not useful on other systems.
19015 # If it contains results you don't want to keep, you may remove or edit it.
19016 #
19017 # By default, configure uses ./config.cache as the cache file,
19018 # creating it if it does not exist already. You can give configure
19019 # the --cache-file=FILE option to use a different cache file; that is
19020 # what configure does when it calls configure scripts in
19021 # subdirectories, so they share the cache.
19022 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19023 # config.status only pays attention to the cache file if you give it the
19024 # --recheck option to rerun configure.
19025 #
19026 EOF
19027 # The following way of writing the cache mishandles newlines in values,
19028 # but we know of no workaround that is simple, portable, and efficient.
19029 # So, don't put newlines in cache variables' values.
19030 # Ultrix sh set writes to stderr and can't be redirected directly,
19031 # and sets the high bit in the cache file unless we assign to the vars.
19032 (set) 2>&1 |
19033 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19034 *ac_space=\ *)
19035 # `set' does not quote correctly, so add quotes (double-quote substitution
19036 # turns \\\\ into \\, and sed turns \\ into \).
19037 sed -n \
19038 -e "s/'/'\\\\''/g" \
19039 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19040 ;;
19041 *)
19042 # `set' quotes correctly as required by POSIX, so do not add quotes.
19043 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19044 ;;
19045 esac >> confcache
19046 if cmp -s $cache_file confcache; then
19047 :
19048 else
19049 if test -w $cache_file; then
19050 echo "updating cache $cache_file"
19051 cat confcache > $cache_file
19052 else
19053 echo "not updating unwritable cache $cache_file"
19054 fi
19055 fi
19056 rm -f confcache
19057
19058
19059 if test "${multilib}" = "yes"; then
19060 multilib_arg="--enable-multilib"
19061 else
19062 multilib_arg=
19063 fi
19064
19065 # Needed so that g++ can find the correct include subdir automatically.
19066 INTERFACE=v3
19067
19068 # Export all the install information
19069
19070 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
19071 # exported correctly in GLIBCPP_CONFIGURE.
19072 glibcpp_toolexecdir=no
19073 glibcpp_toolexeclibdir=no
19074 glibcpp_prefixdir=${prefix}
19075
19076 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
19077 echo "configure:19078: checking for interface version number" >&5
19078 libstdcxx_interface=$INTERFACE
19079 echo "$ac_t""$libstdcxx_interface" 1>&6
19080
19081 # Process the option --with-gxx-include-dir=<path to include-files directory>
19082 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
19083 echo "configure:19084: checking for --with-gxx-include-dir" >&5
19084 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
19085 if test "${with_gxx_include_dir+set}" = set; then
19086 withval="$with_gxx_include_dir"
19087 case "${withval}" in
19088 yes)
19089 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
19090 gxx_include_dir=no
19091 ;;
19092 no)
19093 gxx_include_dir=no
19094 ;;
19095 *)
19096 gxx_include_dir=${withval}
19097 ;;
19098 esac
19099 else
19100 gxx_include_dir=no
19101 fi
19102
19103 echo "$ac_t""$gxx_include_dir" 1>&6
19104
19105 # Process the option "--enable-version-specific-runtime-libs"
19106 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
19107 echo "configure:19108: checking for --enable-version-specific-runtime-libs" >&5
19108 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
19109 if test "${enable_version_specific_runtime_libs+set}" = set; then
19110 enableval="$enable_version_specific_runtime_libs"
19111 case "$enableval" in
19112 yes) version_specific_libs=yes ;;
19113 no) version_specific_libs=no ;;
19114 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
19115 esac
19116 else
19117 version_specific_libs=no
19118 fi
19119 # Option set, now we can test it.
19120 echo "$ac_t""$version_specific_libs" 1>&6
19121
19122 if test $version_specific_libs = yes; then
19123 # Need the gcc compiler version to know where to install libraries
19124 # and header files if --enable-version-specific-runtime-libs option
19125 # is selected.
19126 gcc_version_trigger=${srcdir}/../gcc/version.c
19127 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
19128 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
19129 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
19130 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
19131 glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
19132 fi
19133
19134 # Default case for install directory for include files.
19135 if test $version_specific_libs = no &&
19136 test $gxx_include_dir = no; then
19137 gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
19138 fi
19139
19140 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
19141 # Install a library built with a cross compiler in tooldir, not libdir.
19142 if test x"$glibcpp_toolexecdir" = x"no"; then
19143 if test -n "$with_cross_host" &&
19144 test x"$with_cross_host" != x"no"; then
19145 glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
19146 glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
19147 else
19148 glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
19149 glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
19150 fi
19151 fi
19152
19153 echo $ac_n "checking for install location""... $ac_c" 1>&6
19154 echo "configure:19155: checking for install location" >&5
19155 echo "$ac_t""$gxx_include_dir" 1>&6
19156
19157
19158
19159
19160
19161
19162
19163 # Export all the include and flag information to makefiles.
19164
19165 # Root level of the build directory include sources.
19166 GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
19167
19168 # Passed down for canadian crosses.
19169 if test x"$CANADIAN" = xyes; then
19170 TOPLEVEL_INCLUDES='-I$(includedir)'
19171 fi
19172
19173 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
19174
19175 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
19176
19177 if test x"$need_libio" = xyes; then
19178 LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
19179
19180 fi
19181
19182 # Now, export this to all the little Makefiles....
19183
19184
19185
19186
19187
19188
19189 # Optimization flags that are probably a good idea for thrill-seekers. Just
19190 # uncomment the lines below and make, everything else is ready to go...
19191 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
19192 OPTIMIZE_CXXFLAGS=
19193
19194
19195 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
19196
19197
19198
19199 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
19200 grep "enable shared" > /dev/null; then
19201 LIBSUPCXX_PICFLAGS=-prefer-pic
19202 else
19203 LIBSUPCXX_PICFLAGS=
19204 fi
19205
19206
19207 # Generate the various Makefiles, include files, and scripts.
19208 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
19209 # and libsupc++/Makefile.am so that multilib installs will end up
19210 # installed in the correct place. To work around this not being passed
19211 # down from config-ml.in -> top_srcdir/Makefile.am ->
19212 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
19213 trap '' 1 2 15
19214 cat > confcache <<\EOF
19215 # This file is a shell script that caches the results of configure
19216 # tests run on this system so they can be shared between configure
19217 # scripts and configure runs. It is not useful on other systems.
19218 # If it contains results you don't want to keep, you may remove or edit it.
19219 #
19220 # By default, configure uses ./config.cache as the cache file,
19221 # creating it if it does not exist already. You can give configure
19222 # the --cache-file=FILE option to use a different cache file; that is
19223 # what configure does when it calls configure scripts in
19224 # subdirectories, so they share the cache.
19225 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19226 # config.status only pays attention to the cache file if you give it the
19227 # --recheck option to rerun configure.
19228 #
19229 EOF
19230 # The following way of writing the cache mishandles newlines in values,
19231 # but we know of no workaround that is simple, portable, and efficient.
19232 # So, don't put newlines in cache variables' values.
19233 # Ultrix sh set writes to stderr and can't be redirected directly,
19234 # and sets the high bit in the cache file unless we assign to the vars.
19235 (set) 2>&1 |
19236 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19237 *ac_space=\ *)
19238 # `set' does not quote correctly, so add quotes (double-quote substitution
19239 # turns \\\\ into \\, and sed turns \\ into \).
19240 sed -n \
19241 -e "s/'/'\\\\''/g" \
19242 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19243 ;;
19244 *)
19245 # `set' quotes correctly as required by POSIX, so do not add quotes.
19246 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19247 ;;
19248 esac >> confcache
19249 if cmp -s $cache_file confcache; then
19250 :
19251 else
19252 if test -w $cache_file; then
19253 echo "updating cache $cache_file"
19254 cat confcache > $cache_file
19255 else
19256 echo "not updating unwritable cache $cache_file"
19257 fi
19258 fi
19259 rm -f confcache
19260
19261 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19262
19263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19264 # Let make expand exec_prefix.
19265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19266
19267 # Any assignment to VPATH causes Sun make to only execute
19268 # the first set of double-colon rules, so remove it if not needed.
19269 # If there is a colon in the path, we need to keep it.
19270 if test "x$srcdir" = x.; then
19271 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
19272 fi
19273
19274 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19275
19276 DEFS=-DHAVE_CONFIG_H
19277
19278 # Without the "./", some shells look in PATH for config.status.
19279 : ${CONFIG_STATUS=./config.status}
19280
19281 echo creating $CONFIG_STATUS
19282 rm -f $CONFIG_STATUS
19283 cat > $CONFIG_STATUS <<EOF
19284 #! /bin/sh
19285 # Generated automatically by configure.
19286 # Run this file to recreate the current configuration.
19287 # This directory was configured as follows,
19288 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19289 #
19290 # $0 $ac_configure_args
19291 #
19292 # Compiler output produced by configure, useful for debugging
19293 # configure, is in ./config.log if it exists.
19294
19295 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19296 for ac_option
19297 do
19298 case "\$ac_option" in
19299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19300 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19301 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19302 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19303 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19304 exit 0 ;;
19305 -help | --help | --hel | --he | --h)
19306 echo "\$ac_cs_usage"; exit 0 ;;
19307 *) echo "\$ac_cs_usage"; exit 1 ;;
19308 esac
19309 done
19310
19311 ac_given_srcdir=$srcdir
19312 ac_given_INSTALL="$INSTALL"
19313
19314 trap 'rm -fr `echo "Makefile \
19315 include/Makefile src/Makefile \
19316 libmath/Makefile libio/Makefile libsupc++/Makefile \
19317 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
19318 EOF
19319 cat >> $CONFIG_STATUS <<EOF
19320
19321 # Protect against being on the right side of a sed subst in config.status.
19322 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19323 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19324 $ac_vpsub
19325 $extrasub
19326 s%@SHELL@%$SHELL%g
19327 s%@CFLAGS@%$CFLAGS%g
19328 s%@CPPFLAGS@%$CPPFLAGS%g
19329 s%@CXXFLAGS@%$CXXFLAGS%g
19330 s%@FFLAGS@%$FFLAGS%g
19331 s%@DEFS@%$DEFS%g
19332 s%@LDFLAGS@%$LDFLAGS%g
19333 s%@LIBS@%$LIBS%g
19334 s%@exec_prefix@%$exec_prefix%g
19335 s%@prefix@%$prefix%g
19336 s%@program_transform_name@%$program_transform_name%g
19337 s%@bindir@%$bindir%g
19338 s%@sbindir@%$sbindir%g
19339 s%@libexecdir@%$libexecdir%g
19340 s%@datadir@%$datadir%g
19341 s%@sysconfdir@%$sysconfdir%g
19342 s%@sharedstatedir@%$sharedstatedir%g
19343 s%@localstatedir@%$localstatedir%g
19344 s%@libdir@%$libdir%g
19345 s%@includedir@%$includedir%g
19346 s%@oldincludedir@%$oldincludedir%g
19347 s%@infodir@%$infodir%g
19348 s%@mandir@%$mandir%g
19349 s%@PACKAGE@%$PACKAGE%g
19350 s%@release_VERSION@%$release_VERSION%g
19351 s%@libtool_VERSION@%$libtool_VERSION%g
19352 s%@host@%$host%g
19353 s%@host_alias@%$host_alias%g
19354 s%@host_cpu@%$host_cpu%g
19355 s%@host_vendor@%$host_vendor%g
19356 s%@host_os@%$host_os%g
19357 s%@target@%$target%g
19358 s%@target_alias@%$target_alias%g
19359 s%@target_cpu@%$target_cpu%g
19360 s%@target_vendor@%$target_vendor%g
19361 s%@target_os@%$target_os%g
19362 s%@build@%$build%g
19363 s%@build_alias@%$build_alias%g
19364 s%@build_cpu@%$build_cpu%g
19365 s%@build_vendor@%$build_vendor%g
19366 s%@build_os@%$build_os%g
19367 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
19368 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
19369 s%@INSTALL_DATA@%$INSTALL_DATA%g
19370 s%@VERSION@%$VERSION%g
19371 s%@ACLOCAL@%$ACLOCAL%g
19372 s%@AUTOCONF@%$AUTOCONF%g
19373 s%@AUTOMAKE@%$AUTOMAKE%g
19374 s%@AUTOHEADER@%$AUTOHEADER%g
19375 s%@MAKEINFO@%$MAKEINFO%g
19376 s%@SET_MAKE@%$SET_MAKE%g
19377 s%@toplevel_srcdir@%$toplevel_srcdir%g
19378 s%@glibcpp_builddir@%$glibcpp_builddir%g
19379 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
19380 s%@LN_S@%$LN_S%g
19381 s%@glibcpp_basedir@%$glibcpp_basedir%g
19382 s%@CC@%$CC%g
19383 s%@glibcpp_CXX@%$glibcpp_CXX%g
19384 s%@AS@%$AS%g
19385 s%@AR@%$AR%g
19386 s%@RANLIB@%$RANLIB%g
19387 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
19388 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
19389 s%@MAINT@%$MAINT%g
19390 s%@EXEEXT@%$EXEEXT%g
19391 s%@OBJEXT@%$OBJEXT%g
19392 s%@STRIP@%$STRIP%g
19393 s%@LIBTOOL@%$LIBTOOL%g
19394 s%@CXXCPP@%$CXXCPP%g
19395 s%@enable_shared@%$enable_shared%g
19396 s%@enable_static@%$enable_static%g
19397 s%@ifGNUmake@%$ifGNUmake%g
19398 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
19399 s%@CPP@%$CPP%g
19400 s%@CSTDIO_H@%$CSTDIO_H%g
19401 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
19402 s%@CCODECVT_C@%$CCODECVT_C%g
19403 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
19404 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
19405 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
19406 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
19407 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
19408 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
19409 s%@libio_la@%$libio_la%g
19410 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
19411 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
19412 s%@glibcpp_localedir@%$glibcpp_localedir%g
19413 s%@USE_NLS@%$USE_NLS%g
19414 s%@CLOCALE_H@%$CLOCALE_H%g
19415 s%@CCODECVT_H@%$CCODECVT_H%g
19416 s%@CMESSAGES_H@%$CMESSAGES_H%g
19417 s%@CSHADOW_FLAGS@%$CSHADOW_FLAGS%g
19418 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
19419 s%@GLIBCPP_USE_CSHADOW_TRUE@%$GLIBCPP_USE_CSHADOW_TRUE%g
19420 s%@GLIBCPP_USE_CSHADOW_FALSE@%$GLIBCPP_USE_CSHADOW_FALSE%g
19421 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
19422 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
19423 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
19424 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
19425 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
19426 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
19427 s%@USE_COMPLEX_LONG_DOUBLE@%$USE_COMPLEX_LONG_DOUBLE%g
19428 s%@WERROR@%$WERROR%g
19429 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
19430 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
19431 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
19432 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
19433 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
19434 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
19435 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
19436 s%@gxx_include_dir@%$gxx_include_dir%g
19437 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
19438 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
19439 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
19440 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
19441 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
19442 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
19443 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
19444 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
19445 s%@WARN_FLAGS@%$WARN_FLAGS%g
19446 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
19447
19448 CEOF
19449 EOF
19450
19451 cat >> $CONFIG_STATUS <<\EOF
19452
19453 # Split the substitutions into bite-sized pieces for seds with
19454 # small command number limits, like on Digital OSF/1 and HP-UX.
19455 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19456 ac_file=1 # Number of current file.
19457 ac_beg=1 # First line for current file.
19458 ac_end=$ac_max_sed_cmds # Line after last line for current file.
19459 ac_more_lines=:
19460 ac_sed_cmds=""
19461 while $ac_more_lines; do
19462 if test $ac_beg -gt 1; then
19463 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19464 else
19465 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19466 fi
19467 if test ! -s conftest.s$ac_file; then
19468 ac_more_lines=false
19469 rm -f conftest.s$ac_file
19470 else
19471 if test -z "$ac_sed_cmds"; then
19472 ac_sed_cmds="sed -f conftest.s$ac_file"
19473 else
19474 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
19475 fi
19476 ac_file=`expr $ac_file + 1`
19477 ac_beg=$ac_end
19478 ac_end=`expr $ac_end + $ac_max_sed_cmds`
19479 fi
19480 done
19481 if test -z "$ac_sed_cmds"; then
19482 ac_sed_cmds=cat
19483 fi
19484 EOF
19485
19486 cat >> $CONFIG_STATUS <<EOF
19487
19488 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
19489 include/Makefile src/Makefile \
19490 libmath/Makefile libio/Makefile libsupc++/Makefile \
19491 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
19492 EOF
19493 cat >> $CONFIG_STATUS <<\EOF
19494 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
19495 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19496 case "$ac_file" in
19497 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19498 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19499 *) ac_file_in="${ac_file}.in" ;;
19500 esac
19501
19502 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
19503
19504 # Remove last slash and all that follows it. Not all systems have dirname.
19505 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19506 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19507 # The file is in a subdirectory.
19508 test ! -d "$ac_dir" && mkdir "$ac_dir"
19509 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
19510 # A "../" for each directory in $ac_dir_suffix.
19511 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
19512 else
19513 ac_dir_suffix= ac_dots=
19514 fi
19515
19516 case "$ac_given_srcdir" in
19517 .) srcdir=.
19518 if test -z "$ac_dots"; then top_srcdir=.
19519 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19520 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
19521 *) # Relative path.
19522 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19523 top_srcdir="$ac_dots$ac_given_srcdir" ;;
19524 esac
19525
19526 case "$ac_given_INSTALL" in
19527 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19528 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19529 esac
19530
19531 echo creating "$ac_file"
19532 rm -f "$ac_file"
19533 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19534 case "$ac_file" in
19535 *Makefile*) ac_comsub="1i\\
19536 # $configure_input" ;;
19537 *) ac_comsub= ;;
19538 esac
19539
19540 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19541 sed -e "$ac_comsub
19542 s%@configure_input@%$configure_input%g
19543 s%@srcdir@%$srcdir%g
19544 s%@top_srcdir@%$top_srcdir%g
19545 s%@INSTALL@%$INSTALL%g
19546 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19547 fi; done
19548 rm -f conftest.s*
19549
19550 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19551 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19552 #
19553 # ac_d sets the value in "#define NAME VALUE" lines.
19554 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19555 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
19556 ac_dC='\3'
19557 ac_dD='%g'
19558 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19559 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19560 ac_uB='\([ ]\)%\1#\2define\3'
19561 ac_uC=' '
19562 ac_uD='\4%g'
19563 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19564 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19565 ac_eB='$%\1#\2define\3'
19566 ac_eC=' '
19567 ac_eD='%g'
19568
19569 if test "${CONFIG_HEADERS+set}" != set; then
19570 EOF
19571 cat >> $CONFIG_STATUS <<EOF
19572 CONFIG_HEADERS="config.h"
19573 EOF
19574 cat >> $CONFIG_STATUS <<\EOF
19575 fi
19576 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
19577 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19578 case "$ac_file" in
19579 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19580 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19581 *) ac_file_in="${ac_file}.in" ;;
19582 esac
19583
19584 echo creating $ac_file
19585
19586 rm -f conftest.frag conftest.in conftest.out
19587 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19588 cat $ac_file_inputs > conftest.in
19589
19590 EOF
19591
19592 # Transform confdefs.h into a sed script conftest.vals that substitutes
19593 # the proper values into config.h.in to produce config.h. And first:
19594 # Protect against being on the right side of a sed subst in config.status.
19595 # Protect against being in an unquoted here document in config.status.
19596 rm -f conftest.vals
19597 cat > conftest.hdr <<\EOF
19598 s/[\\&%]/\\&/g
19599 s%[\\$`]%\\&%g
19600 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19601 s%ac_d%ac_u%gp
19602 s%ac_u%ac_e%gp
19603 EOF
19604 sed -n -f conftest.hdr confdefs.h > conftest.vals
19605 rm -f conftest.hdr
19606
19607 # This sed command replaces #undef with comments. This is necessary, for
19608 # example, in the case of _POSIX_SOURCE, which is predefined and required
19609 # on some systems where configure will not decide to define it.
19610 cat >> conftest.vals <<\EOF
19611 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
19612 EOF
19613
19614 # Break up conftest.vals because some shells have a limit on
19615 # the size of here documents, and old seds have small limits too.
19616
19617 rm -f conftest.tail
19618 while :
19619 do
19620 ac_lines=`grep -c . conftest.vals`
19621 # grep -c gives empty output for an empty file on some AIX systems.
19622 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19623 # Write a limited-size here document to conftest.frag.
19624 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19625 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
19626 echo 'CEOF
19627 sed -f conftest.frag conftest.in > conftest.out
19628 rm -f conftest.in
19629 mv conftest.out conftest.in
19630 ' >> $CONFIG_STATUS
19631 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19632 rm -f conftest.vals
19633 mv conftest.tail conftest.vals
19634 done
19635 rm -f conftest.vals
19636
19637 cat >> $CONFIG_STATUS <<\EOF
19638 rm -f conftest.frag conftest.h
19639 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
19640 cat conftest.in >> conftest.h
19641 rm -f conftest.in
19642 if cmp -s $ac_file conftest.h 2>/dev/null; then
19643 echo "$ac_file is unchanged"
19644 rm -f conftest.h
19645 else
19646 # Remove last slash and all that follows it. Not all systems have dirname.
19647 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19648 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19649 # The file is in a subdirectory.
19650 test ! -d "$ac_dir" && mkdir "$ac_dir"
19651 fi
19652 rm -f $ac_file
19653 mv conftest.h $ac_file
19654 fi
19655 fi; done
19656
19657 EOF
19658
19659 cat >> $CONFIG_STATUS <<EOF
19660 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC"
19661 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/moneypunct.cc src/numpunct.cc src/time.cc"
19662 EOF
19663
19664 cat >> $CONFIG_STATUS <<\EOF
19665 srcdir=$ac_given_srcdir
19666 while test -n "$ac_sources"; do
19667 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
19668 set $ac_sources; ac_source=$1; shift; ac_sources=$*
19669
19670 echo "linking $srcdir/$ac_source to $ac_dest"
19671
19672 if test ! -r $srcdir/$ac_source; then
19673 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
19674 fi
19675 rm -f $ac_dest
19676
19677 # Make relative symlinks.
19678 # Remove last slash and all that follows it. Not all systems have dirname.
19679 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
19680 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
19681 # The dest file is in a subdirectory.
19682 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
19683 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
19684 # A "../" for each directory in $ac_dest_dir_suffix.
19685 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
19686 else
19687 ac_dest_dir_suffix= ac_dots=
19688 fi
19689
19690 case "$srcdir" in
19691 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
19692 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
19693 esac
19694
19695 # Make a symlink if possible; otherwise try a hard link.
19696 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19697 ln $srcdir/$ac_source $ac_dest; then :
19698 else
19699 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
19700 fi
19701 done
19702 EOF
19703 cat >> $CONFIG_STATUS <<EOF
19704
19705 srcdir=${srcdir}
19706 host=${host}
19707 target=${target}
19708 with_multisubdir=${with_multisubdir}
19709 ac_configure_args="${multilib_arg} ${ac_configure_args}"
19710 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
19711 glibcpp_basedir=${glibcpp_basedir}
19712 CC="${CC}"
19713 CXX="${CXX}"
19714
19715 EOF
19716 cat >> $CONFIG_STATUS <<\EOF
19717 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
19718 if test -n "$CONFIG_FILES"; then
19719 ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
19720 grep '^MULTISUBDIR =' Makefile >> src/Makefile
19721 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
19722 fi
19723 chmod +x mkcheck
19724 chmod +x testsuite_flags
19725
19726 exit 0
19727 EOF
19728 chmod +x $CONFIG_STATUS
19729 rm -fr confdefs* $ac_clean_files
19730 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
19731
19732
19733
19734 # Sanity checking & User-visible messages.
19735 # Checks down here, otherwise they get scrolled off before
19736 # the user will notice.
19737
19738 # Trying to get more people to read documentation. Possibly remove
19739 # check and warn all the time. There is no "informational" AC_MSG_
19740 # macro, so these are going to be printed even when --quiet/--silent
19741 # is given.
19742 if test ! -f stamp-sanity-warned; then
19743 touch stamp-sanity-warned
19744 echo ""
19745 echo "Please make certain that you read the installation information here:"
19746 echo " faster => ${srcdir}/docs/install.html"
19747 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
19748 echo ""
19749 echo "and the configuration information here:"
19750 echo " faster => ${srcdir}/docs/configopts.html"
19751 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
19752 echo ""
19753 echo "before proceeding with ${_cv_gnu_make_command}."
19754 echo ""
19755 fi