]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/configure
Move from CPP to CXX.
[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 --with-newlib Configuring with newlib"
23 ac_help="$ac_help
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
26 ac_help="$ac_help
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
28 ac_help="$ac_help
29 --enable-static[=PKGS] build static libraries [default=yes]"
30 ac_help="$ac_help
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
32 ac_help="$ac_help
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
34 ac_help="$ac_help
35 --disable-libtool-lock avoid locking (might break parallel builds)"
36 ac_help="$ac_help
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
38 ac_help="$ac_help
39 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
40 ac_help="$ac_help
41 --enable-libunwind-exceptions force use of libunwind for exceptions"
42 ac_help="$ac_help
43 --enable-libstdcxx-pch build pre-compiled libstdc++ includes [default=yes]"
44 ac_help="$ac_help
45 --enable-cstdio enable stdio for target io package.
46 --enable-cstdio=LIB use LIB target-specific io package. [default=stdio]
47 "
48 ac_help="$ac_help
49 --enable-clocale enable model for target locale package.
50 --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic]
51 "
52 ac_help="$ac_help
53 --enable-nls use Native Language Support (default)"
54 ac_help="$ac_help
55 --enable-cheaders=MODEL construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57 --enable-c-mbchar enable multibyte (wide) characters [default=yes]"
58 ac_help="$ac_help
59 --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]"
60 ac_help="$ac_help
61 --enable-long-long turns on 'long long' [default=yes]"
62 ac_help="$ac_help
63 --enable-concept-checks use Boost-derived template checks [default=no]"
64 ac_help="$ac_help
65 --enable-cxx-flags=FLAGS pass compiler FLAGS when building library;
66 [default=]"
67 ac_help="$ac_help
68 --enable-libstdcxx-debug build extra debug library [default=no]"
69 ac_help="$ac_help
70 --enable-libstdcxx-debug-flags=FLAGS pass compiler FLAGS when building
71 debug library;
72 [default=none]"
73 ac_help="$ac_help
74 --enable-symvers=style enables symbol versioning of the shared library [default=yes]"
75 ac_help="$ac_help
76 --with-gxx-include-dir the installation directory for include files"
77 ac_help="$ac_help
78 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
79
80 # Initialize some variables set by options.
81 # The variables have the same names as the options, with
82 # dashes changed to underlines.
83 build=NONE
84 cache_file=./config.cache
85 exec_prefix=NONE
86 host=NONE
87 no_create=
88 nonopt=NONE
89 no_recursion=
90 prefix=NONE
91 program_prefix=NONE
92 program_suffix=NONE
93 program_transform_name=s,x,x,
94 silent=
95 site=
96 srcdir=
97 target=NONE
98 verbose=
99 x_includes=NONE
100 x_libraries=NONE
101 bindir='${exec_prefix}/bin'
102 sbindir='${exec_prefix}/sbin'
103 libexecdir='${exec_prefix}/libexec'
104 datadir='${prefix}/share'
105 sysconfdir='${prefix}/etc'
106 sharedstatedir='${prefix}/com'
107 localstatedir='${prefix}/var'
108 libdir='${exec_prefix}/lib'
109 includedir='${prefix}/include'
110 oldincludedir='/usr/include'
111 infodir='${prefix}/info'
112 mandir='${prefix}/man'
113
114 # Initialize some other variables.
115 subdirs=
116 MFLAGS= MAKEFLAGS=
117 SHELL=${CONFIG_SHELL-/bin/sh}
118 # Maximum number of lines to put in a shell here document.
119 ac_max_here_lines=12
120
121 ac_prev=
122 for ac_option
123 do
124
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
128 ac_prev=
129 continue
130 fi
131
132 case "$ac_option" in
133 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 *) ac_optarg= ;;
135 esac
136
137 # Accept the important Cygnus configure options, so we can diagnose typos.
138
139 case "$ac_option" in
140
141 -bindir | --bindir | --bindi | --bind | --bin | --bi)
142 ac_prev=bindir ;;
143 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
144 bindir="$ac_optarg" ;;
145
146 -build | --build | --buil | --bui | --bu)
147 ac_prev=build ;;
148 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
149 build="$ac_optarg" ;;
150
151 -cache-file | --cache-file | --cache-fil | --cache-fi \
152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
153 ac_prev=cache_file ;;
154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
156 cache_file="$ac_optarg" ;;
157
158 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
159 ac_prev=datadir ;;
160 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
161 | --da=*)
162 datadir="$ac_optarg" ;;
163
164 -disable-* | --disable-*)
165 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 fi
170 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
172
173 -enable-* | --enable-*)
174 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 fi
179 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 case "$ac_option" in
181 *=*) ;;
182 *) ac_optarg=yes ;;
183 esac
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
185
186 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
187 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
188 | --exec | --exe | --ex)
189 ac_prev=exec_prefix ;;
190 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
191 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
192 | --exec=* | --exe=* | --ex=*)
193 exec_prefix="$ac_optarg" ;;
194
195 -gas | --gas | --ga | --g)
196 # Obsolete; use --with-gas.
197 with_gas=yes ;;
198
199 -help | --help | --hel | --he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
202 cat << EOF
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
205 Configuration:
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
213 [$ac_default_prefix]
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
215 [same as prefix]
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
220 [PREFIX/share]
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
223 [PREFIX/com]
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --infodir=DIR info documentation in DIR [PREFIX/info]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
235 EOF
236 cat << EOF
237 Host type:
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
248 EOF
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
251 fi
252 exit 0 ;;
253
254 -host | --host | --hos | --ho)
255 ac_prev=host ;;
256 -host=* | --host=* | --hos=* | --ho=*)
257 host="$ac_optarg" ;;
258
259 -includedir | --includedir | --includedi | --included | --include \
260 | --includ | --inclu | --incl | --inc)
261 ac_prev=includedir ;;
262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
263 | --includ=* | --inclu=* | --incl=* | --inc=*)
264 includedir="$ac_optarg" ;;
265
266 -infodir | --infodir | --infodi | --infod | --info | --inf)
267 ac_prev=infodir ;;
268 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
269 infodir="$ac_optarg" ;;
270
271 -libdir | --libdir | --libdi | --libd)
272 ac_prev=libdir ;;
273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
274 libdir="$ac_optarg" ;;
275
276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
277 | --libexe | --libex | --libe)
278 ac_prev=libexecdir ;;
279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
280 | --libexe=* | --libex=* | --libe=*)
281 libexecdir="$ac_optarg" ;;
282
283 -localstatedir | --localstatedir | --localstatedi | --localstated \
284 | --localstate | --localstat | --localsta | --localst \
285 | --locals | --local | --loca | --loc | --lo)
286 ac_prev=localstatedir ;;
287 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
288 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
289 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
290 localstatedir="$ac_optarg" ;;
291
292 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
293 ac_prev=mandir ;;
294 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
295 mandir="$ac_optarg" ;;
296
297 -nfp | --nfp | --nf)
298 # Obsolete; use --without-fp.
299 with_fp=no ;;
300
301 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 | --no-cr | --no-c)
303 no_create=yes ;;
304
305 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
306 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
307 no_recursion=yes ;;
308
309 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
310 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
311 | --oldin | --oldi | --old | --ol | --o)
312 ac_prev=oldincludedir ;;
313 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
314 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
315 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
316 oldincludedir="$ac_optarg" ;;
317
318 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
319 ac_prev=prefix ;;
320 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
321 prefix="$ac_optarg" ;;
322
323 -program-prefix | --program-prefix | --program-prefi | --program-pref \
324 | --program-pre | --program-pr | --program-p)
325 ac_prev=program_prefix ;;
326 -program-prefix=* | --program-prefix=* | --program-prefi=* \
327 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
328 program_prefix="$ac_optarg" ;;
329
330 -program-suffix | --program-suffix | --program-suffi | --program-suff \
331 | --program-suf | --program-su | --program-s)
332 ac_prev=program_suffix ;;
333 -program-suffix=* | --program-suffix=* | --program-suffi=* \
334 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
335 program_suffix="$ac_optarg" ;;
336
337 -program-transform-name | --program-transform-name \
338 | --program-transform-nam | --program-transform-na \
339 | --program-transform-n | --program-transform- \
340 | --program-transform | --program-transfor \
341 | --program-transfo | --program-transf \
342 | --program-trans | --program-tran \
343 | --progr-tra | --program-tr | --program-t)
344 ac_prev=program_transform_name ;;
345 -program-transform-name=* | --program-transform-name=* \
346 | --program-transform-nam=* | --program-transform-na=* \
347 | --program-transform-n=* | --program-transform-=* \
348 | --program-transform=* | --program-transfor=* \
349 | --program-transfo=* | --program-transf=* \
350 | --program-trans=* | --program-tran=* \
351 | --progr-tra=* | --program-tr=* | --program-t=*)
352 program_transform_name="$ac_optarg" ;;
353
354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
355 | -silent | --silent | --silen | --sile | --sil)
356 silent=yes ;;
357
358 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
359 ac_prev=sbindir ;;
360 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
361 | --sbi=* | --sb=*)
362 sbindir="$ac_optarg" ;;
363
364 -sharedstatedir | --sharedstatedir | --sharedstatedi \
365 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
366 | --sharedst | --shareds | --shared | --share | --shar \
367 | --sha | --sh)
368 ac_prev=sharedstatedir ;;
369 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
370 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
371 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
372 | --sha=* | --sh=*)
373 sharedstatedir="$ac_optarg" ;;
374
375 -site | --site | --sit)
376 ac_prev=site ;;
377 -site=* | --site=* | --sit=*)
378 site="$ac_optarg" ;;
379
380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
381 ac_prev=srcdir ;;
382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
383 srcdir="$ac_optarg" ;;
384
385 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
386 | --syscon | --sysco | --sysc | --sys | --sy)
387 ac_prev=sysconfdir ;;
388 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
389 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
390 sysconfdir="$ac_optarg" ;;
391
392 -target | --target | --targe | --targ | --tar | --ta | --t)
393 ac_prev=target ;;
394 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
395 target="$ac_optarg" ;;
396
397 -v | -verbose | --verbose | --verbos | --verbo | --verb)
398 verbose=yes ;;
399
400 -version | --version | --versio | --versi | --vers)
401 echo "configure generated by autoconf version 2.13"
402 exit 0 ;;
403
404 -with-* | --with-*)
405 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 fi
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 case "$ac_option" in
412 *=*) ;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "with_${ac_package}='$ac_optarg'" ;;
416
417 -without-* | --without-*)
418 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 fi
423 ac_package=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
425
426 --x)
427 # Obsolete; use --with-x.
428 with_x=yes ;;
429
430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
431 | --x-incl | --x-inc | --x-in | --x-i)
432 ac_prev=x_includes ;;
433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
435 x_includes="$ac_optarg" ;;
436
437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
439 ac_prev=x_libraries ;;
440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
442 x_libraries="$ac_optarg" ;;
443
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 ;;
446
447 *)
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
450 fi
451 if test "x$nonopt" != xNONE; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 fi
454 nonopt="$ac_option"
455 ;;
456
457 esac
458 done
459
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
462 fi
463
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
465
466 # File descriptor usage:
467 # 0 standard input
468 # 1 file creation
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
475 exec 6>/dev/null
476 else
477 exec 6>&1
478 fi
479 exec 5>./config.log
480
481 echo "\
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
484 " 1>&5
485
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
488 ac_configure_args=
489 for ac_arg
490 do
491 case "$ac_arg" in
492 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493 | --no-cr | --no-c) ;;
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499 esac
500 done
501
502 # NLS nuisances.
503 # Only set these to C if already set. These must not be set unconditionally
504 # because not all systems understand e.g. LANG=C (notably SCO).
505 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506 # Non-C LC_CTYPE values break the ctype check.
507 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
508 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
509 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
510 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
511
512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
513 rm -rf conftest* confdefs.h
514 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
515 echo > confdefs.h
516
517 # A filename unique to this package, relative to the directory that
518 # configure is in, which we can look for to find out if srcdir is correct.
519 ac_unique_file=src/ios.cc
520
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted=yes
524 # Try the directory containing this script, then its parent.
525 ac_prog=$0
526 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528 srcdir=$ac_confdir
529 if test ! -r $srcdir/$ac_unique_file; then
530 srcdir=..
531 fi
532 else
533 ac_srcdir_defaulted=no
534 fi
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538 else
539 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
540 fi
541 fi
542 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
543
544 # Prefer explicitly selected file to automatically selected ones.
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE; then
547 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548 else
549 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550 fi
551 fi
552 for ac_site_file in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
555 . "$ac_site_file"
556 fi
557 done
558
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
561 . $cache_file
562 else
563 echo "creating cache $cache_file"
564 > $cache_file
565 fi
566
567 ac_ext=c
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp='$CPP $CPPFLAGS'
570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling=$ac_cv_prog_cc_cross
573
574 ac_exeext=
575 ac_objext=o
576 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
579 ac_n= ac_c='
580 ' ac_t=' '
581 else
582 ac_n=-n ac_c= ac_t=
583 fi
584 else
585 ac_n= ac_c='\c' ac_t=
586 fi
587
588
589
590 # This works around the fact that libtool configuration may change LD
591 # for this particular configuration, but some shells, instead of
592 # keeping the changes in LD private, export them just because LD is
593 # exported. Only used at the end of this file.
594 ORIGINAL_LD_FOR_MULTILIBS=$LD
595
596 PACKAGE=libstdc++
597
598 # For libtool versioning info, format is CURRENT:REVISION:AGE
599 libtool_VERSION=6:0:0
600
601
602
603 # Check whether --enable-multilib or --disable-multilib was given.
604 if test "${enable_multilib+set}" = set; then
605 enableval="$enable_multilib"
606 case "${enableval}" in
607 yes) multilib=yes ;;
608 no) multilib=no ;;
609 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
610 esac
611 else
612 multilib=yes
613 fi
614
615 # When building with srcdir == objdir, links to the source files will
616 # be created in directories within the target_subdir. We have to
617 # adjust toplevel_srcdir accordingly, so that configure finds
618 # install-sh and other auxiliary files that live in the top-level
619 # source directory.
620 if test "${srcdir}" = "."; then
621 if test -z "${with_target_subdir}"; then
622 toprel=".."
623 else
624 if test "${with_target_subdir}" != "."; then
625 toprel="${with_multisrctop}../.."
626 else
627 toprel="${with_multisrctop}.."
628 fi
629 fi
630 else
631 toprel=".."
632 fi
633 ac_aux_dir=
634 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
635 if test -f $ac_dir/install-sh; then
636 ac_aux_dir=$ac_dir
637 ac_install_sh="$ac_aux_dir/install-sh -c"
638 break
639 elif test -f $ac_dir/install.sh; then
640 ac_aux_dir=$ac_dir
641 ac_install_sh="$ac_aux_dir/install.sh -c"
642 break
643 fi
644 done
645 if test -z "$ac_aux_dir"; then
646 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
647 fi
648 ac_config_guess=$ac_aux_dir/config.guess
649 ac_config_sub=$ac_aux_dir/config.sub
650 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
651
652 toplevel_srcdir=\${top_srcdir}/$toprel
653
654
655
656 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
657 #
658 # You will slowly go insane if you do not grok the following fact: when
659 # building v3 as part of the compiler, the top-level /target/ becomes the
660 # library's /host/. `configure' then causes --target to default to --host,
661 # exactly like any other package using autoconf. Therefore, 'target' and
662 # 'host' will always be the same. This makes sense both for native and
663 # cross compilers, just think about it for a little while. :-)
664 #
665 # Also, if v3 is being configured as part of a cross compiler, the top-level
666 # configure script will pass the "real" host as $with_cross_host.
667 #
668 # In AC 2.13 AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
669
670 # Do some error checking and defaulting for the host and target type.
671 # The inputs are:
672 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
673 #
674 # The rules are:
675 # 1. You are not allowed to specify --host, --target, and nonopt at the
676 # same time.
677 # 2. Host defaults to nonopt.
678 # 3. If nonopt is not specified, then host defaults to the current host,
679 # as determined by config.guess.
680 # 4. Target and build default to nonopt.
681 # 5. If nonopt is not specified, then target and build default to host.
682
683 # The aliases save the names the user supplied, while $host etc.
684 # will get canonicalized.
685 case $host---$target---$nonopt in
686 NONE---*---* | *---NONE---* | *---*---NONE) ;;
687 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
688 esac
689
690
691 # Make sure we can run config.sub.
692 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
693 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
694 fi
695
696 echo $ac_n "checking host system type""... $ac_c" 1>&6
697 echo "configure:698: checking host system type" >&5
698
699 host_alias=$host
700 case "$host_alias" in
701 NONE)
702 case $nonopt in
703 NONE)
704 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
705 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
706 fi ;;
707 *) host_alias=$nonopt ;;
708 esac ;;
709 esac
710
711 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
712 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
713 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
714 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
715 echo "$ac_t""$host" 1>&6
716
717 echo $ac_n "checking target system type""... $ac_c" 1>&6
718 echo "configure:719: checking target system type" >&5
719
720 target_alias=$target
721 case "$target_alias" in
722 NONE)
723 case $nonopt in
724 NONE) target_alias=$host_alias ;;
725 *) target_alias=$nonopt ;;
726 esac ;;
727 esac
728
729 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
730 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
731 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
732 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
733 echo "$ac_t""$target" 1>&6
734
735 echo $ac_n "checking build system type""... $ac_c" 1>&6
736 echo "configure:737: checking build system type" >&5
737
738 build_alias=$build
739 case "$build_alias" in
740 NONE)
741 case $nonopt in
742 NONE) build_alias=$host_alias ;;
743 *) build_alias=$nonopt ;;
744 esac ;;
745 esac
746
747 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
748 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
751 echo "$ac_t""$build" 1>&6
752
753 test "$host_alias" != "$target_alias" &&
754 test "$program_prefix$program_suffix$program_transform_name" = \
755 NONENONEs,x,x, &&
756 program_prefix=${target_alias}-
757
758
759 # Runs configure.host, finds CC, CXX and assorted other critical bits.
760 # Must run this before the GLIBCXX_ENABLE_* macros below.
761 if test $host != $build; then
762 ac_tool_prefix=${host_alias}-
763 else
764 ac_tool_prefix=
765 fi
766
767 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
768 echo "configure:769: checking for Cygwin environment" >&5
769 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
771 else
772 cat > conftest.$ac_ext <<EOF
773 #line 774 "configure"
774 #include "confdefs.h"
775
776 int main() {
777
778 #ifndef __CYGWIN__
779 #define __CYGWIN__ __CYGWIN32__
780 #endif
781 return __CYGWIN__;
782 ; return 0; }
783 EOF
784 if { (eval echo configure:785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
785 rm -rf conftest*
786 ac_cv_cygwin=yes
787 else
788 echo "configure: failed program was:" >&5
789 cat conftest.$ac_ext >&5
790 rm -rf conftest*
791 ac_cv_cygwin=no
792 fi
793 rm -f conftest*
794 rm -f conftest*
795 fi
796
797 echo "$ac_t""$ac_cv_cygwin" 1>&6
798 CYGWIN=
799 test "$ac_cv_cygwin" = yes && CYGWIN=yes
800 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
801 echo "configure:802: checking for mingw32 environment" >&5
802 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
804 else
805 cat > conftest.$ac_ext <<EOF
806 #line 807 "configure"
807 #include "confdefs.h"
808
809 int main() {
810 return __MINGW32__;
811 ; return 0; }
812 EOF
813 if { (eval echo configure:814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
814 rm -rf conftest*
815 ac_cv_mingw32=yes
816 else
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
819 rm -rf conftest*
820 ac_cv_mingw32=no
821 fi
822 rm -f conftest*
823 rm -f conftest*
824 fi
825
826 echo "$ac_t""$ac_cv_mingw32" 1>&6
827 MINGW32=
828 test "$ac_cv_mingw32" = yes && MINGW32=yes
829
830 # Export build and source directories.
831 # These need to be absolute paths, yet at the same time need to
832 # canonicalize only relative paths, because then amd will not unmount
833 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
834 glibcxx_builddir=`${PWDCMD-pwd}`
835 case $srcdir in
836 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
837 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
838 esac
839
840
841
842
843
844 for ac_prog in gawk mawk nawk awk
845 do
846 # Extract the first word of "$ac_prog", so it can be a program name with args.
847 set dummy $ac_prog; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
852 else
853 if test -n "$AWK"; then
854 ac_cv_prog_AWK="$AWK" # Let the user override the test.
855 else
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
857 ac_dummy="$PATH"
858 for ac_dir in $ac_dummy; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
861 ac_cv_prog_AWK="$ac_prog"
862 break
863 fi
864 done
865 IFS="$ac_save_ifs"
866 fi
867 fi
868 AWK="$ac_cv_prog_AWK"
869 if test -n "$AWK"; then
870 echo "$ac_t""$AWK" 1>&6
871 else
872 echo "$ac_t""no" 1>&6
873 fi
874
875 test -n "$AWK" && break
876 done
877
878 # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also
879 # be 'cp -p' if linking isn't available. Uncomment the next line to
880 # force a particular method.
881 #ac_cv_prog_LN_S='cp -p'
882 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
883 echo "configure:884: checking whether ln -s works" >&5
884 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
886 else
887 rm -f conftestdata
888 if ln -s X conftestdata 2>/dev/null
889 then
890 rm -f conftestdata
891 ac_cv_prog_LN_S="ln -s"
892 else
893 ac_cv_prog_LN_S=ln
894 fi
895 fi
896 LN_S="$ac_cv_prog_LN_S"
897 if test "$ac_cv_prog_LN_S" = "ln -s"; then
898 echo "$ac_t""yes" 1>&6
899 else
900 echo "$ac_t""no" 1>&6
901 fi
902
903
904 # We use these options to decide which functions to include.
905 # Check whether --with-target-subdir or --without-target-subdir was given.
906 if test "${with_target_subdir+set}" = set; then
907 withval="$with_target_subdir"
908 :
909 fi
910
911 # Check whether --with-cross-host or --without-cross-host was given.
912 if test "${with_cross_host+set}" = set; then
913 withval="$with_cross_host"
914 :
915 fi
916
917
918 # Check whether --with-newlib or --without-newlib was given.
919 if test "${with_newlib+set}" = set; then
920 withval="$with_newlib"
921 :
922 fi
923
924
925 glibcxx_basedir=$srcdir/$toprel/./libstdc++-v3
926
927
928 # Never versions of autoconf add an underscore to these functions.
929 # Prevent future problems ...
930
931
932
933
934
935 # AC_PROG_CC
936 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
937 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
938 # are probably using a cross compiler, which will not be able to fully
939 # link an executable. This is addressed in later versions of autoconf.
940
941
942
943
944 # Extract the first word of "gcc", so it can be a program name with args.
945 set dummy gcc; ac_word=$2
946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
947 echo "configure:948: checking for $ac_word" >&5
948 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
949 echo $ac_n "(cached) $ac_c" 1>&6
950 else
951 if test -n "$CC"; then
952 ac_cv_prog_CC="$CC" # Let the user override the test.
953 else
954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
955 ac_dummy="$PATH"
956 for ac_dir in $ac_dummy; do
957 test -z "$ac_dir" && ac_dir=.
958 if test -f $ac_dir/$ac_word; then
959 ac_cv_prog_CC="gcc"
960 break
961 fi
962 done
963 IFS="$ac_save_ifs"
964 fi
965 fi
966 CC="$ac_cv_prog_CC"
967 if test -n "$CC"; then
968 echo "$ac_t""$CC" 1>&6
969 else
970 echo "$ac_t""no" 1>&6
971 fi
972
973 if test -z "$CC"; then
974 # Extract the first word of "cc", so it can be a program name with args.
975 set dummy cc; ac_word=$2
976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
977 echo "configure:978: checking for $ac_word" >&5
978 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
980 else
981 if test -n "$CC"; then
982 ac_cv_prog_CC="$CC" # Let the user override the test.
983 else
984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
985 ac_prog_rejected=no
986 ac_dummy="$PATH"
987 for ac_dir in $ac_dummy; do
988 test -z "$ac_dir" && ac_dir=.
989 if test -f $ac_dir/$ac_word; then
990 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
991 ac_prog_rejected=yes
992 continue
993 fi
994 ac_cv_prog_CC="cc"
995 break
996 fi
997 done
998 IFS="$ac_save_ifs"
999 if test $ac_prog_rejected = yes; then
1000 # We found a bogon in the path, so make sure we never use it.
1001 set dummy $ac_cv_prog_CC
1002 shift
1003 if test $# -gt 0; then
1004 # We chose a different compiler from the bogus one.
1005 # However, it has the same basename, so the bogon will be chosen
1006 # first if we set CC to just the basename; use the full file name.
1007 shift
1008 set dummy "$ac_dir/$ac_word" "$@"
1009 shift
1010 ac_cv_prog_CC="$@"
1011 fi
1012 fi
1013 fi
1014 fi
1015 CC="$ac_cv_prog_CC"
1016 if test -n "$CC"; then
1017 echo "$ac_t""$CC" 1>&6
1018 else
1019 echo "$ac_t""no" 1>&6
1020 fi
1021
1022 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1023 fi
1024
1025 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1026 echo "configure:1027: checking whether we are using GNU C" >&5
1027 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1029 else
1030 cat > conftest.c <<EOF
1031 #ifdef __GNUC__
1032 yes;
1033 #endif
1034 EOF
1035 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1036 ac_cv_prog_gcc=yes
1037 else
1038 ac_cv_prog_gcc=no
1039 fi
1040 fi
1041
1042 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1043
1044 if test $ac_cv_prog_gcc = yes; then
1045 GCC=yes
1046 ac_test_CFLAGS="${CFLAGS+set}"
1047 ac_save_CFLAGS="$CFLAGS"
1048 CFLAGS=
1049 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1050 echo "configure:1051: checking whether ${CC-cc} accepts -g" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1053 else
1054 echo 'void f(){}' > conftest.c
1055 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1056 ac_cv_prog_cc_g=yes
1057 else
1058 ac_cv_prog_cc_g=no
1059 fi
1060 rm -f conftest*
1061
1062 fi
1063
1064 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1065 if test "$ac_test_CFLAGS" = set; then
1066 CFLAGS="$ac_save_CFLAGS"
1067 elif test $ac_cv_prog_cc_g = yes; then
1068 CFLAGS="-g -O2"
1069 else
1070 CFLAGS="-O2"
1071 fi
1072 else
1073 GCC=
1074 test "${CFLAGS+set}" = set || CFLAGS="-g"
1075 fi
1076
1077
1078 # Likewise for AC_PROG_CXX. We can't just call it directly because g++
1079 # will try to link in libstdc++.
1080
1081
1082
1083 # Use glibcxx_CXX so that we do not cause CXX to be cached with the
1084 # flags that come in CXX while configuring libstdc++. They're different
1085 # from those used for all other target libraries. If CXX is set in
1086 # the environment, respect that here.
1087 glibcxx_CXX=$CXX
1088 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1089 do
1090 # Extract the first word of "$ac_prog", so it can be a program name with args.
1091 set dummy $ac_prog; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_glibcxx_CXX'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1096 else
1097 if test -n "$glibcxx_CXX"; then
1098 ac_cv_prog_glibcxx_CXX="$glibcxx_CXX" # Let the user override the test.
1099 else
1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101 ac_dummy="$PATH"
1102 for ac_dir in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_prog_glibcxx_CXX="$ac_prog"
1106 break
1107 fi
1108 done
1109 IFS="$ac_save_ifs"
1110 fi
1111 fi
1112 glibcxx_CXX="$ac_cv_prog_glibcxx_CXX"
1113 if test -n "$glibcxx_CXX"; then
1114 echo "$ac_t""$glibcxx_CXX" 1>&6
1115 else
1116 echo "$ac_t""no" 1>&6
1117 fi
1118
1119 test -n "$glibcxx_CXX" && break
1120 done
1121 test -n "$glibcxx_CXX" || glibcxx_CXX="gcc"
1122
1123
1124 CXX=$glibcxx_CXX
1125 test -z "$glibcxx_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1126
1127 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1128 echo "configure:1129: checking whether we are using GNU C++" >&5
1129 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1131 else
1132 cat > conftest.C <<EOF
1133 #ifdef __GNUC__
1134 yes;
1135 #endif
1136 EOF
1137 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1138 ac_cv_prog_gxx=yes
1139 else
1140 ac_cv_prog_gxx=no
1141 fi
1142 fi
1143
1144 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1145
1146 if test $ac_cv_prog_gxx = yes; then
1147 GXX=yes
1148 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1149 ac_save_CXXFLAGS="$CXXFLAGS"
1150 CXXFLAGS=
1151 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1152 echo "configure:1153: checking whether ${CXX-g++} accepts -g" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1155 else
1156 echo 'void f(){}' > conftest.cc
1157 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1158 ac_cv_prog_cxx_g=yes
1159 else
1160 ac_cv_prog_cxx_g=no
1161 fi
1162 rm -f conftest*
1163
1164 fi
1165
1166 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1167 if test "$ac_test_CXXFLAGS" = set; then
1168 CXXFLAGS="$ac_save_CXXFLAGS"
1169 elif test $ac_cv_prog_cxx_g = yes; then
1170 CXXFLAGS="-g -O2"
1171 else
1172 CXXFLAGS="-O2"
1173 fi
1174 else
1175 GXX=
1176 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1177 fi
1178
1179
1180 # For directory versioning (e.g., headers) and other variables.
1181 echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1182 echo "configure:1183: checking for GCC version number" >&5
1183 gcc_version=`$glibcxx_CXX -dumpversion`
1184 echo "$ac_t""$gcc_version" 1>&6
1185
1186 # For some reason, gettext needs this.
1187
1188 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1189 echo "configure:1190: checking for strerror in -lcposix" >&5
1190 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1193 else
1194 ac_save_LIBS="$LIBS"
1195 LIBS="-lcposix $LIBS"
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1199 /* Override any gcc2 internal prototype to avoid an error. */
1200 /* We use char because int might match the return type of a gcc2
1201 builtin and then its argument prototype would still apply. */
1202 char strerror();
1203
1204 int main() {
1205 strerror()
1206 ; return 0; }
1207 EOF
1208 if { (eval echo configure:1209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1209 rm -rf conftest*
1210 eval "ac_cv_lib_$ac_lib_var=yes"
1211 else
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
1214 rm -rf conftest*
1215 eval "ac_cv_lib_$ac_lib_var=no"
1216 fi
1217 rm -f conftest*
1218 LIBS="$ac_save_LIBS"
1219
1220 fi
1221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1222 echo "$ac_t""yes" 1>&6
1223 LIBS="$LIBS -lcposix"
1224 else
1225 echo "$ac_t""no" 1>&6
1226 fi
1227
1228
1229
1230
1231 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1232 set dummy ${ac_tool_prefix}as; ac_word=$2
1233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_word" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1237 else
1238 if test -n "$AS"; then
1239 ac_cv_prog_AS="$AS" # Let the user override the test.
1240 else
1241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1242 ac_dummy="$PATH"
1243 for ac_dir in $ac_dummy; do
1244 test -z "$ac_dir" && ac_dir=.
1245 if test -f $ac_dir/$ac_word; then
1246 ac_cv_prog_AS="${ac_tool_prefix}as"
1247 break
1248 fi
1249 done
1250 IFS="$ac_save_ifs"
1251 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1252 fi
1253 fi
1254 AS="$ac_cv_prog_AS"
1255 if test -n "$AS"; then
1256 echo "$ac_t""$AS" 1>&6
1257 else
1258 echo "$ac_t""no" 1>&6
1259 fi
1260
1261
1262
1263 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1264 set dummy ${ac_tool_prefix}ar; ac_word=$2
1265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1266 echo "configure:1267: checking for $ac_word" >&5
1267 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1269 else
1270 if test -n "$AR"; then
1271 ac_cv_prog_AR="$AR" # Let the user override the test.
1272 else
1273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1274 ac_dummy="$PATH"
1275 for ac_dir in $ac_dummy; do
1276 test -z "$ac_dir" && ac_dir=.
1277 if test -f $ac_dir/$ac_word; then
1278 ac_cv_prog_AR="${ac_tool_prefix}ar"
1279 break
1280 fi
1281 done
1282 IFS="$ac_save_ifs"
1283 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1284 fi
1285 fi
1286 AR="$ac_cv_prog_AR"
1287 if test -n "$AR"; then
1288 echo "$ac_t""$AR" 1>&6
1289 else
1290 echo "$ac_t""no" 1>&6
1291 fi
1292
1293
1294
1295 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_word" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301 else
1302 if test -n "$RANLIB"; then
1303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1304 else
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1306 ac_dummy="$PATH"
1307 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1311 break
1312 fi
1313 done
1314 IFS="$ac_save_ifs"
1315 fi
1316 fi
1317 RANLIB="$ac_cv_prog_RANLIB"
1318 if test -n "$RANLIB"; then
1319 echo "$ac_t""$RANLIB" 1>&6
1320 else
1321 echo "$ac_t""no" 1>&6
1322 fi
1323
1324
1325 if test -z "$ac_cv_prog_RANLIB"; then
1326 if test -n "$ac_tool_prefix"; then
1327 # Extract the first word of "ranlib", so it can be a program name with args.
1328 set dummy ranlib; ac_word=$2
1329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1330 echo "configure:1331: checking for $ac_word" >&5
1331 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1333 else
1334 if test -n "$RANLIB"; then
1335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1336 else
1337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1338 ac_dummy="$PATH"
1339 for ac_dir in $ac_dummy; do
1340 test -z "$ac_dir" && ac_dir=.
1341 if test -f $ac_dir/$ac_word; then
1342 ac_cv_prog_RANLIB="ranlib"
1343 break
1344 fi
1345 done
1346 IFS="$ac_save_ifs"
1347 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1348 fi
1349 fi
1350 RANLIB="$ac_cv_prog_RANLIB"
1351 if test -n "$RANLIB"; then
1352 echo "$ac_t""$RANLIB" 1>&6
1353 else
1354 echo "$ac_t""no" 1>&6
1355 fi
1356
1357 else
1358 RANLIB="ranlib-not-found-in-path-error"
1359 fi
1360 fi
1361
1362 # Find a good install program. We prefer a C program (faster),
1363 # so one script is as good as another. But avoid the broken or
1364 # incompatible versions:
1365 # SysV /etc/install, /usr/sbin/install
1366 # SunOS /usr/etc/install
1367 # IRIX /sbin/install
1368 # AIX /bin/install
1369 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1370 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1371 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1372 # ./install, which can be erroneously created by make from ./install.sh.
1373 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1374 echo "configure:1375: checking for a BSD compatible install" >&5
1375 if test -z "$INSTALL"; then
1376 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1378 else
1379 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1380 for ac_dir in $PATH; do
1381 # Account for people who put trailing slashes in PATH elements.
1382 case "$ac_dir/" in
1383 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1384 *)
1385 # OSF1 and SCO ODT 3.0 have their own names for install.
1386 # Don't use installbsd from OSF since it installs stuff as root
1387 # by default.
1388 for ac_prog in ginstall scoinst install; do
1389 if test -f $ac_dir/$ac_prog; then
1390 if test $ac_prog = install &&
1391 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1392 # AIX install. It has an incompatible calling convention.
1393 :
1394 else
1395 ac_cv_path_install="$ac_dir/$ac_prog -c"
1396 break 2
1397 fi
1398 fi
1399 done
1400 ;;
1401 esac
1402 done
1403 IFS="$ac_save_IFS"
1404
1405 fi
1406 if test "${ac_cv_path_install+set}" = set; then
1407 INSTALL="$ac_cv_path_install"
1408 else
1409 # As a last resort, use the slow shell script. We don't cache a
1410 # path for INSTALL within a source directory, because that will
1411 # break other packages using the cache if that directory is
1412 # removed, or if the path is relative.
1413 INSTALL="$ac_install_sh"
1414 fi
1415 fi
1416 echo "$ac_t""$INSTALL" 1>&6
1417
1418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1419 # It thinks the first close brace ends the variable substitution.
1420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1421
1422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1423
1424 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1425
1426
1427 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1428 echo "configure:1429: checking whether to enable maintainer-specific portions of Makefiles" >&5
1429 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1430 if test "${enable_maintainer_mode+set}" = set; then
1431 enableval="$enable_maintainer_mode"
1432 USE_MAINTAINER_MODE=$enableval
1433 else
1434 USE_MAINTAINER_MODE=no
1435 fi
1436
1437 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1438
1439
1440 if test $USE_MAINTAINER_MODE = yes; then
1441 MAINTAINER_MODE_TRUE=
1442 MAINTAINER_MODE_FALSE='#'
1443 else
1444 MAINTAINER_MODE_TRUE='#'
1445 MAINTAINER_MODE_FALSE=
1446 fi
1447 MAINT=$MAINTAINER_MODE_TRUE
1448
1449
1450
1451 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1452 # at least currently, we never actually build a program, so we never
1453 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1454 # fails, because we are probably configuring with a cross compiler
1455 # which can't create executables. So we include AC_EXEEXT to keep
1456 # automake happy, but we don't execute it, since we don't care about
1457 # the result.
1458 if false; then
1459 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1460 # to nothing, so nothing would remain between `then' and `fi' if it
1461 # were not for the `:' below.
1462 :
1463
1464
1465 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1466 echo "configure:1467: checking for executable suffix" >&5
1467 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1469 else
1470 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1471 ac_cv_exeext=.exe
1472 else
1473 rm -f conftest*
1474 echo 'int main () { return 0; }' > conftest.$ac_ext
1475 ac_cv_exeext=
1476 if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1477 for file in conftest.*; do
1478 case $file in
1479 *.c | *.o | *.obj) ;;
1480 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1481 esac
1482 done
1483 else
1484 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1485 fi
1486 rm -f conftest*
1487 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1488 fi
1489 fi
1490
1491 EXEEXT=""
1492 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1493 echo "$ac_t""${ac_cv_exeext}" 1>&6
1494 ac_exeext=$EXEEXT
1495
1496 fi
1497
1498 case ${glibcxx_basedir} in
1499 /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcxx_basedir} ;;
1500 *) glibcxx_flagbasedir='$(top_builddir)/'${glibcxx_basedir} ;;
1501 esac
1502
1503 # Set up safe default values for all subsequent AM_CONDITIONAL tests.
1504 need_libmath=no
1505 enable_wchar_t=no
1506 #enable_debug=no
1507 #glibcxx_pch_comp=no
1508 #enable_cheaders=c
1509 #c_compatibility=no
1510 #enable_abi_check=no
1511 #enable_symvers=no
1512
1513 # Find platform-specific directories containing configuration info. In
1514 # addition to possibly modifying the same flags, it also sets up symlinks.
1515
1516 . ${glibcxx_basedir}/configure.host
1517 echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1518 echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1519
1520
1521
1522 am__api_version="1.4"
1523 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1524 echo "configure:1525: checking whether build environment is sane" >&5
1525 # Just in case
1526 sleep 1
1527 echo timestamp > conftestfile
1528 # Do `set' in a subshell so we don't clobber the current shell's
1529 # arguments. Must try -L first in case configure is actually a
1530 # symlink; some systems play weird games with the mod time of symlinks
1531 # (eg FreeBSD returns the mod time of the symlink's containing
1532 # directory).
1533 if (
1534 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1535 if test "$*" = "X"; then
1536 # -L didn't work.
1537 set X `ls -t $srcdir/configure conftestfile`
1538 fi
1539 if test "$*" != "X $srcdir/configure conftestfile" \
1540 && test "$*" != "X conftestfile $srcdir/configure"; then
1541
1542 # If neither matched, then we have a broken ls. This can happen
1543 # if, for instance, CONFIG_SHELL is bash and it inherits a
1544 # broken ls alias from the environment. This has actually
1545 # happened. Such a system could not be considered "sane".
1546 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1547 alias in your environment" 1>&2; exit 1; }
1548 fi
1549
1550 test "$2" = conftestfile
1551 )
1552 then
1553 # Ok.
1554 :
1555 else
1556 { echo "configure: error: newly created file is older than distributed files!
1557 Check your system clock" 1>&2; exit 1; }
1558 fi
1559 rm -f conftest*
1560 echo "$ac_t""yes" 1>&6
1561 if test "$program_transform_name" = s,x,x,; then
1562 program_transform_name=
1563 else
1564 # Double any \ or $. echo might interpret backslashes.
1565 cat <<\EOF_SED > conftestsed
1566 s,\\,\\\\,g; s,\$,$$,g
1567 EOF_SED
1568 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1569 rm -f conftestsed
1570 fi
1571 test "$program_prefix" != NONE &&
1572 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1573 # Use a double $ so make ignores it.
1574 test "$program_suffix" != NONE &&
1575 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1576
1577 # sed with no file args requires a program.
1578 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1579
1580 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1581 echo "configure:1582: checking whether ${MAKE-make} sets \${MAKE}" >&5
1582 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1583 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1585 else
1586 cat > conftestmake <<\EOF
1587 all:
1588 @echo 'ac_maketemp="${MAKE}"'
1589 EOF
1590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1591 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1592 if test -n "$ac_maketemp"; then
1593 eval ac_cv_prog_make_${ac_make}_set=yes
1594 else
1595 eval ac_cv_prog_make_${ac_make}_set=no
1596 fi
1597 rm -f conftestmake
1598 fi
1599 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1600 echo "$ac_t""yes" 1>&6
1601 SET_MAKE=
1602 else
1603 echo "$ac_t""no" 1>&6
1604 SET_MAKE="MAKE=${MAKE-make}"
1605 fi
1606
1607
1608 PACKAGE=$PACKAGE
1609
1610 VERSION=$gcc_version
1611
1612 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1613 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1614 fi
1615 cat >> confdefs.h <<EOF
1616 #define PACKAGE "$PACKAGE"
1617 EOF
1618
1619 cat >> confdefs.h <<EOF
1620 #define VERSION "$VERSION"
1621 EOF
1622
1623
1624
1625 missing_dir=`cd $ac_aux_dir && pwd`
1626 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1627 echo "configure:1628: checking for working aclocal-${am__api_version}" >&5
1628 # Run test in a subshell; some versions of sh will print an error if
1629 # an executable is not found, even if stderr is redirected.
1630 # Redirect stdin to placate older versions of autoconf. Sigh.
1631 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1632 ACLOCAL=aclocal-${am__api_version}
1633 echo "$ac_t""found" 1>&6
1634 else
1635 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1636 echo "$ac_t""missing" 1>&6
1637 fi
1638
1639 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1640 echo "configure:1641: checking for working autoconf" >&5
1641 # Run test in a subshell; some versions of sh will print an error if
1642 # an executable is not found, even if stderr is redirected.
1643 # Redirect stdin to placate older versions of autoconf. Sigh.
1644 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1645 AUTOCONF=autoconf
1646 echo "$ac_t""found" 1>&6
1647 else
1648 AUTOCONF="$missing_dir/missing autoconf"
1649 echo "$ac_t""missing" 1>&6
1650 fi
1651
1652 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1653 echo "configure:1654: checking for working automake-${am__api_version}" >&5
1654 # Run test in a subshell; some versions of sh will print an error if
1655 # an executable is not found, even if stderr is redirected.
1656 # Redirect stdin to placate older versions of autoconf. Sigh.
1657 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1658 AUTOMAKE=automake-${am__api_version}
1659 echo "$ac_t""found" 1>&6
1660 else
1661 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1662 echo "$ac_t""missing" 1>&6
1663 fi
1664
1665 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1666 echo "configure:1667: checking for working autoheader" >&5
1667 # Run test in a subshell; some versions of sh will print an error if
1668 # an executable is not found, even if stderr is redirected.
1669 # Redirect stdin to placate older versions of autoconf. Sigh.
1670 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1671 AUTOHEADER=autoheader
1672 echo "$ac_t""found" 1>&6
1673 else
1674 AUTOHEADER="$missing_dir/missing autoheader"
1675 echo "$ac_t""missing" 1>&6
1676 fi
1677
1678 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1679 echo "configure:1680: checking for working makeinfo" >&5
1680 # Run test in a subshell; some versions of sh will print an error if
1681 # an executable is not found, even if stderr is redirected.
1682 # Redirect stdin to placate older versions of autoconf. Sigh.
1683 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1684 MAKEINFO=makeinfo
1685 echo "$ac_t""found" 1>&6
1686 else
1687 MAKEINFO="$missing_dir/missing makeinfo"
1688 echo "$ac_t""missing" 1>&6
1689 fi
1690
1691
1692
1693
1694
1695
1696
1697 # Check whether --enable-shared or --disable-shared was given.
1698 if test "${enable_shared+set}" = set; then
1699 enableval="$enable_shared"
1700 p=${PACKAGE-default}
1701 case $enableval in
1702 yes) enable_shared=yes ;;
1703 no) enable_shared=no ;;
1704 *)
1705 enable_shared=no
1706 # Look at the argument we got. We use all the common list separators.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1708 for pkg in $enableval; do
1709 if test "X$pkg" = "X$p"; then
1710 enable_shared=yes
1711 fi
1712 done
1713 IFS="$ac_save_ifs"
1714 ;;
1715 esac
1716 else
1717 enable_shared=yes
1718 fi
1719
1720 # Check whether --enable-static or --disable-static was given.
1721 if test "${enable_static+set}" = set; then
1722 enableval="$enable_static"
1723 p=${PACKAGE-default}
1724 case $enableval in
1725 yes) enable_static=yes ;;
1726 no) enable_static=no ;;
1727 *)
1728 enable_static=no
1729 # Look at the argument we got. We use all the common list separators.
1730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1731 for pkg in $enableval; do
1732 if test "X$pkg" = "X$p"; then
1733 enable_static=yes
1734 fi
1735 done
1736 IFS="$ac_save_ifs"
1737 ;;
1738 esac
1739 else
1740 enable_static=yes
1741 fi
1742
1743 # Check whether --enable-fast-install or --disable-fast-install was given.
1744 if test "${enable_fast_install+set}" = set; then
1745 enableval="$enable_fast_install"
1746 p=${PACKAGE-default}
1747 case $enableval in
1748 yes) enable_fast_install=yes ;;
1749 no) enable_fast_install=no ;;
1750 *)
1751 enable_fast_install=no
1752 # Look at the argument we got. We use all the common list separators.
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1754 for pkg in $enableval; do
1755 if test "X$pkg" = "X$p"; then
1756 enable_fast_install=yes
1757 fi
1758 done
1759 IFS="$ac_save_ifs"
1760 ;;
1761 esac
1762 else
1763 enable_fast_install=yes
1764 fi
1765
1766 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1767 if test "${with_gnu_ld+set}" = set; then
1768 withval="$with_gnu_ld"
1769 test "$withval" = no || with_gnu_ld=yes
1770 else
1771 with_gnu_ld=no
1772 fi
1773
1774 ac_prog=ld
1775 if test "$GCC" = yes; then
1776 # Check if gcc -print-prog-name=ld gives a path.
1777 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1778 echo "configure:1779: checking for ld used by GCC" >&5
1779 case $host in
1780 *-*-mingw*)
1781 # gcc leaves a trailing carriage return which upsets mingw
1782 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1783 *)
1784 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1785 esac
1786 case $ac_prog in
1787 # Accept absolute paths.
1788 [\\/]* | [A-Za-z]:[\\/]*)
1789 re_direlt='/[^/][^/]*/\.\./'
1790 # Canonicalize the path of ld
1791 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1792 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1793 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1794 done
1795 test -z "$LD" && LD="$ac_prog"
1796 ;;
1797 "")
1798 # If it fails, then pretend we aren't using GCC.
1799 ac_prog=ld
1800 ;;
1801 *)
1802 # If it is relative, then search for the first ld in PATH.
1803 with_gnu_ld=unknown
1804 ;;
1805 esac
1806 elif test "$with_gnu_ld" = yes; then
1807 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1808 echo "configure:1809: checking for GNU ld" >&5
1809 else
1810 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1811 echo "configure:1812: checking for non-GNU ld" >&5
1812 fi
1813 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1815 else
1816 if test -z "$LD"; then
1817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1818 for ac_dir in $PATH; do
1819 test -z "$ac_dir" && ac_dir=.
1820 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1821 lt_cv_path_LD="$ac_dir/$ac_prog"
1822 # Check to see if the program is GNU ld. I'd rather use --version,
1823 # but apparently some GNU ld's only accept -v.
1824 # Break only if it was the GNU/non-GNU ld that we prefer.
1825 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1826 test "$with_gnu_ld" != no && break
1827 else
1828 test "$with_gnu_ld" != yes && break
1829 fi
1830 fi
1831 done
1832 IFS="$ac_save_ifs"
1833 else
1834 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1835 fi
1836 fi
1837
1838 LD="$lt_cv_path_LD"
1839 if test -n "$LD"; then
1840 echo "$ac_t""$LD" 1>&6
1841 else
1842 echo "$ac_t""no" 1>&6
1843 fi
1844 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1845 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1846 echo "configure:1847: checking if the linker ($LD) is GNU ld" >&5
1847 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1849 else
1850 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1851 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1852 lt_cv_prog_gnu_ld=yes
1853 else
1854 lt_cv_prog_gnu_ld=no
1855 fi
1856 fi
1857
1858 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1859 with_gnu_ld=$lt_cv_prog_gnu_ld
1860
1861
1862 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1863 echo "configure:1864: checking for $LD option to reload object files" >&5
1864 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1866 else
1867 lt_cv_ld_reload_flag='-r'
1868 fi
1869
1870 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1871 reload_flag=$lt_cv_ld_reload_flag
1872 test -n "$reload_flag" && reload_flag=" $reload_flag"
1873
1874 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1875 echo "configure:1876: checking for BSD-compatible nm" >&5
1876 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879 if test -n "$NM"; then
1880 # Let the user override the test.
1881 lt_cv_path_NM="$NM"
1882 else
1883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1884 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1885 test -z "$ac_dir" && ac_dir=.
1886 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1887 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1888 # Check to see if the nm accepts a BSD-compat flag.
1889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1890 # nm: unknown option "B" ignored
1891 # Tru64's nm complains that /dev/null is an invalid object file
1892 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1893 lt_cv_path_NM="$tmp_nm -B"
1894 break
1895 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1896 lt_cv_path_NM="$tmp_nm -p"
1897 break
1898 else
1899 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1900 continue # so that we can try to find one that supports BSD flags
1901 fi
1902 fi
1903 done
1904 IFS="$ac_save_ifs"
1905 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1906 fi
1907 fi
1908
1909 NM="$lt_cv_path_NM"
1910 echo "$ac_t""$NM" 1>&6
1911
1912 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1913 echo "configure:1914: checking how to recognise dependant libraries" >&5
1914 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1916 else
1917 lt_cv_file_magic_cmd='$MAGIC_CMD'
1918 lt_cv_file_magic_test_file=
1919 lt_cv_deplibs_check_method='unknown'
1920 # Need to set the preceding variable on all platforms that support
1921 # interlibrary dependencies.
1922 # 'none' -- dependencies not supported.
1923 # `unknown' -- same as none, but documents that we really don't know.
1924 # 'pass_all' -- all dependencies passed with no checks.
1925 # 'test_compile' -- check by making test program.
1926 # 'file_magic [regex]' -- check by looking for files in library path
1927 # which responds to the $file_magic_cmd with a given egrep regex.
1928 # If you have `file' or equivalent on your system and you're not sure
1929 # whether `pass_all' will *always* work, you probably want this one.
1930
1931 case $host_os in
1932 aix*)
1933 lt_cv_deplibs_check_method=pass_all
1934 ;;
1935
1936 beos*)
1937 lt_cv_deplibs_check_method=pass_all
1938 ;;
1939
1940 bsdi4*)
1941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1942 lt_cv_file_magic_cmd='/usr/bin/file -L'
1943 lt_cv_file_magic_test_file=/shlib/libc.so
1944 ;;
1945
1946 cygwin* | mingw* |pw32*)
1947 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1948 lt_cv_file_magic_cmd='$OBJDUMP -f'
1949 ;;
1950
1951 darwin* | rhapsody*)
1952 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1953 lt_cv_file_magic_cmd='/usr/bin/file -L'
1954 case "$host_os" in
1955 rhapsody* | darwin1.012)
1956 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1957 ;;
1958 *) # Darwin 1.3 on
1959 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1960 ;;
1961 esac
1962 ;;
1963
1964 freebsd* )
1965 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1966 case $host_cpu in
1967 i*86 )
1968 # Not sure whether the presence of OpenBSD here was a mistake.
1969 # Let's accept both of them until this is cleared up.
1970 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1971 lt_cv_file_magic_cmd=/usr/bin/file
1972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1973 ;;
1974 esac
1975 else
1976 lt_cv_deplibs_check_method=pass_all
1977 fi
1978 ;;
1979
1980 gnu*)
1981 lt_cv_deplibs_check_method=pass_all
1982 ;;
1983
1984 hpux10.20*|hpux11*)
1985 case $host_cpu in
1986 hppa*)
1987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1988 lt_cv_file_magic_cmd=/usr/bin/file
1989 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1990 ;;
1991 ia64*)
1992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1993 lt_cv_file_magic_cmd=/usr/bin/file
1994 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1995 ;;
1996 esac
1997 ;;
1998
1999 irix5* | irix6*)
2000 case $host_os in
2001 irix5*)
2002 # this will be overridden with pass_all, but let us keep it just in case
2003 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2004 ;;
2005 *)
2006 case $LD in
2007 *-32|*"-32 ") libmagic=32-bit;;
2008 *-n32|*"-n32 ") libmagic=N32;;
2009 *-64|*"-64 ") libmagic=64-bit;;
2010 *) libmagic=never-match;;
2011 esac
2012 # this will be overridden with pass_all, but let us keep it just in case
2013 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2014 ;;
2015 esac
2016 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2017 lt_cv_deplibs_check_method=pass_all
2018 ;;
2019
2020 # This must be Linux ELF.
2021 linux-gnu*)
2022 case $host_cpu in
2023 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2024 lt_cv_deplibs_check_method=pass_all ;;
2025 *)
2026 # glibc up to 2.1.1 does not perform some relocations on ARM
2027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2028 esac
2029 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2030 ;;
2031
2032 netbsd*)
2033 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2034 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2035 else
2036 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2037 fi
2038 ;;
2039
2040 newsos6)
2041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2042 lt_cv_file_magic_cmd=/usr/bin/file
2043 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2044 ;;
2045
2046 osf3* | osf4* | osf5*)
2047 # this will be overridden with pass_all, but let us keep it just in case
2048 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2049 lt_cv_file_magic_test_file=/shlib/libc.so
2050 lt_cv_deplibs_check_method=pass_all
2051 ;;
2052
2053 sco3.2v5*)
2054 lt_cv_deplibs_check_method=pass_all
2055 ;;
2056
2057 solaris*)
2058 lt_cv_deplibs_check_method=pass_all
2059 lt_cv_file_magic_test_file=/lib/libc.so
2060 ;;
2061
2062 sysv5uw[78]* | sysv4*uw2*)
2063 lt_cv_deplibs_check_method=pass_all
2064 ;;
2065
2066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2067 case $host_vendor in
2068 ncr)
2069 lt_cv_deplibs_check_method=pass_all
2070 ;;
2071 motorola)
2072 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]'
2073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2074 ;;
2075 esac
2076 ;;
2077 esac
2078
2079 fi
2080
2081 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2082 file_magic_cmd=$lt_cv_file_magic_cmd
2083 deplibs_check_method=$lt_cv_deplibs_check_method
2084
2085 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2086 echo "configure:2087: checking for object suffix" >&5
2087 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2089 else
2090 rm -f conftest*
2091 echo 'int i = 1;' > conftest.$ac_ext
2092 if { (eval echo configure:2093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2093 for ac_file in conftest.*; do
2094 case $ac_file in
2095 *.c) ;;
2096 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2097 esac
2098 done
2099 else
2100 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2101 fi
2102 rm -f conftest*
2103 fi
2104
2105 echo "$ac_t""$ac_cv_objext" 1>&6
2106 OBJEXT=$ac_cv_objext
2107 ac_objext=$ac_cv_objext
2108
2109 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2110
2111 # Only perform the check for file, if the check method requires it
2112 case $deplibs_check_method in
2113 file_magic*)
2114 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2115 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2116 echo "configure:2117: checking for ${ac_tool_prefix}file" >&5
2117 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2119 else
2120 case $MAGIC_CMD in
2121 /*)
2122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2123 ;;
2124 ?:/*)
2125 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2126 ;;
2127 *)
2128 ac_save_MAGIC_CMD="$MAGIC_CMD"
2129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2130 ac_dummy="/usr/bin:$PATH"
2131 for ac_dir in $ac_dummy; do
2132 test -z "$ac_dir" && ac_dir=.
2133 if test -f $ac_dir/${ac_tool_prefix}file; then
2134 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2135 if test -n "$file_magic_test_file"; then
2136 case $deplibs_check_method in
2137 "file_magic "*)
2138 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2139 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2140 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2141 egrep "$file_magic_regex" > /dev/null; then
2142 :
2143 else
2144 cat <<EOF 1>&2
2145
2146 *** Warning: the command libtool uses to detect shared libraries,
2147 *** $file_magic_cmd, produces output that libtool cannot recognize.
2148 *** The result is that libtool may fail to recognize shared libraries
2149 *** as such. This will affect the creation of libtool libraries that
2150 *** depend on shared libraries, but programs linked with such libtool
2151 *** libraries will work regardless of this problem. Nevertheless, you
2152 *** may want to report the problem to your system manager and/or to
2153 *** bug-libtool@gnu.org
2154
2155 EOF
2156 fi ;;
2157 esac
2158 fi
2159 break
2160 fi
2161 done
2162 IFS="$ac_save_ifs"
2163 MAGIC_CMD="$ac_save_MAGIC_CMD"
2164 ;;
2165 esac
2166 fi
2167
2168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2169 if test -n "$MAGIC_CMD"; then
2170 echo "$ac_t""$MAGIC_CMD" 1>&6
2171 else
2172 echo "$ac_t""no" 1>&6
2173 fi
2174
2175 if test -z "$lt_cv_path_MAGIC_CMD"; then
2176 if test -n "$ac_tool_prefix"; then
2177 echo $ac_n "checking for file""... $ac_c" 1>&6
2178 echo "configure:2179: checking for file" >&5
2179 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2181 else
2182 case $MAGIC_CMD in
2183 /*)
2184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2185 ;;
2186 ?:/*)
2187 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2188 ;;
2189 *)
2190 ac_save_MAGIC_CMD="$MAGIC_CMD"
2191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2192 ac_dummy="/usr/bin:$PATH"
2193 for ac_dir in $ac_dummy; do
2194 test -z "$ac_dir" && ac_dir=.
2195 if test -f $ac_dir/file; then
2196 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2197 if test -n "$file_magic_test_file"; then
2198 case $deplibs_check_method in
2199 "file_magic "*)
2200 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2202 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2203 egrep "$file_magic_regex" > /dev/null; then
2204 :
2205 else
2206 cat <<EOF 1>&2
2207
2208 *** Warning: the command libtool uses to detect shared libraries,
2209 *** $file_magic_cmd, produces output that libtool cannot recognize.
2210 *** The result is that libtool may fail to recognize shared libraries
2211 *** as such. This will affect the creation of libtool libraries that
2212 *** depend on shared libraries, but programs linked with such libtool
2213 *** libraries will work regardless of this problem. Nevertheless, you
2214 *** may want to report the problem to your system manager and/or to
2215 *** bug-libtool@gnu.org
2216
2217 EOF
2218 fi ;;
2219 esac
2220 fi
2221 break
2222 fi
2223 done
2224 IFS="$ac_save_ifs"
2225 MAGIC_CMD="$ac_save_MAGIC_CMD"
2226 ;;
2227 esac
2228 fi
2229
2230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2231 if test -n "$MAGIC_CMD"; then
2232 echo "$ac_t""$MAGIC_CMD" 1>&6
2233 else
2234 echo "$ac_t""no" 1>&6
2235 fi
2236
2237 else
2238 MAGIC_CMD=:
2239 fi
2240 fi
2241
2242 fi
2243 ;;
2244 esac
2245
2246 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2249 echo "configure:2250: checking for $ac_word" >&5
2250 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2252 else
2253 if test -n "$RANLIB"; then
2254 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2255 else
2256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2257 ac_dummy="$PATH"
2258 for ac_dir in $ac_dummy; do
2259 test -z "$ac_dir" && ac_dir=.
2260 if test -f $ac_dir/$ac_word; then
2261 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2262 break
2263 fi
2264 done
2265 IFS="$ac_save_ifs"
2266 fi
2267 fi
2268 RANLIB="$ac_cv_prog_RANLIB"
2269 if test -n "$RANLIB"; then
2270 echo "$ac_t""$RANLIB" 1>&6
2271 else
2272 echo "$ac_t""no" 1>&6
2273 fi
2274
2275
2276 if test -z "$ac_cv_prog_RANLIB"; then
2277 if test -n "$ac_tool_prefix"; then
2278 # Extract the first word of "ranlib", so it can be a program name with args.
2279 set dummy ranlib; ac_word=$2
2280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2281 echo "configure:2282: checking for $ac_word" >&5
2282 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2284 else
2285 if test -n "$RANLIB"; then
2286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2287 else
2288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2289 ac_dummy="$PATH"
2290 for ac_dir in $ac_dummy; do
2291 test -z "$ac_dir" && ac_dir=.
2292 if test -f $ac_dir/$ac_word; then
2293 ac_cv_prog_RANLIB="ranlib"
2294 break
2295 fi
2296 done
2297 IFS="$ac_save_ifs"
2298 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2299 fi
2300 fi
2301 RANLIB="$ac_cv_prog_RANLIB"
2302 if test -n "$RANLIB"; then
2303 echo "$ac_t""$RANLIB" 1>&6
2304 else
2305 echo "$ac_t""no" 1>&6
2306 fi
2307
2308 else
2309 RANLIB=":"
2310 fi
2311 fi
2312
2313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2314 set dummy ${ac_tool_prefix}strip; ac_word=$2
2315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_word" >&5
2317 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2319 else
2320 if test -n "$STRIP"; then
2321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2322 else
2323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2324 ac_dummy="$PATH"
2325 for ac_dir in $ac_dummy; do
2326 test -z "$ac_dir" && ac_dir=.
2327 if test -f $ac_dir/$ac_word; then
2328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2329 break
2330 fi
2331 done
2332 IFS="$ac_save_ifs"
2333 fi
2334 fi
2335 STRIP="$ac_cv_prog_STRIP"
2336 if test -n "$STRIP"; then
2337 echo "$ac_t""$STRIP" 1>&6
2338 else
2339 echo "$ac_t""no" 1>&6
2340 fi
2341
2342
2343 if test -z "$ac_cv_prog_STRIP"; then
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "strip", so it can be a program name with args.
2346 set dummy strip; ac_word=$2
2347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2348 echo "configure:2349: checking for $ac_word" >&5
2349 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2351 else
2352 if test -n "$STRIP"; then
2353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2354 else
2355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2356 ac_dummy="$PATH"
2357 for ac_dir in $ac_dummy; do
2358 test -z "$ac_dir" && ac_dir=.
2359 if test -f $ac_dir/$ac_word; then
2360 ac_cv_prog_STRIP="strip"
2361 break
2362 fi
2363 done
2364 IFS="$ac_save_ifs"
2365 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2366 fi
2367 fi
2368 STRIP="$ac_cv_prog_STRIP"
2369 if test -n "$STRIP"; then
2370 echo "$ac_t""$STRIP" 1>&6
2371 else
2372 echo "$ac_t""no" 1>&6
2373 fi
2374
2375 else
2376 STRIP=":"
2377 fi
2378 fi
2379
2380
2381 # Check for any special flags to pass to ltconfig.
2382 libtool_flags="--cache-file=$cache_file"
2383 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2384 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2385 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2386 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2387 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2388 libtool_flags="$libtool_flags --enable-dlopen"
2389
2390 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2391 if test "${enable_libtool_lock+set}" = set; then
2392 enableval="$enable_libtool_lock"
2393 :
2394 fi
2395
2396 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2397 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2398
2399 # Check whether --with-pic or --without-pic was given.
2400 if test "${with_pic+set}" = set; then
2401 withval="$with_pic"
2402 pic_mode="$withval"
2403 else
2404 pic_mode=default
2405 fi
2406
2407 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2408 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2409
2410 # Some flags need to be propagated to the compiler or linker for good
2411 # libtool support.
2412 case $host in
2413 *-*-irix6*)
2414 # Find out which ABI we are using.
2415 echo '#line 2416 "configure"' > conftest.$ac_ext
2416 if { (eval echo configure:2417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2417 if test "$lt_cv_prog_gnu_ld" = yes; then
2418 case `/usr/bin/file conftest.$ac_objext` in
2419 *32-bit*)
2420 LD="${LD-ld} -melf32bsmip"
2421 ;;
2422 *N32*)
2423 LD="${LD-ld} -melf32bmipn32"
2424 ;;
2425 *64-bit*)
2426 LD="${LD-ld} -melf64bmip"
2427 ;;
2428 esac
2429 else
2430 case `/usr/bin/file conftest.$ac_objext` in
2431 *32-bit*)
2432 LD="${LD-ld} -32"
2433 ;;
2434 *N32*)
2435 LD="${LD-ld} -n32"
2436 ;;
2437 *64-bit*)
2438 LD="${LD-ld} -64"
2439 ;;
2440 esac
2441 fi
2442 fi
2443 rm -rf conftest*
2444 ;;
2445
2446 ia64-*-hpux*)
2447 # Find out which ABI we are using.
2448 echo 'int i;' > conftest.$ac_ext
2449 if { (eval echo configure:2450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2450 case "`/usr/bin/file conftest.o`" in
2451 *ELF-32*)
2452 HPUX_IA64_MODE="32"
2453 ;;
2454 *ELF-64*)
2455 HPUX_IA64_MODE="64"
2456 ;;
2457 esac
2458 fi
2459 rm -rf conftest*
2460 ;;
2461
2462 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2463 # Find out which ABI we are using.
2464 echo 'int i;' > conftest.$ac_ext
2465 if { (eval echo configure:2466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2466 case "`/usr/bin/file conftest.o`" in
2467 *32-bit*)
2468 case $host in
2469 x86_64-*linux*)
2470 LD="${LD-ld} -m elf_i386"
2471 ;;
2472 ppc64-*linux*)
2473 LD="${LD-ld} -m elf32ppclinux"
2474 ;;
2475 s390x-*linux*)
2476 LD="${LD-ld} -m elf_s390"
2477 ;;
2478 sparc64-*linux*)
2479 LD="${LD-ld} -m elf32_sparc"
2480 ;;
2481 esac
2482 ;;
2483 *64-bit*)
2484 case $host in
2485 x86_64-*linux*)
2486 LD="${LD-ld} -m elf_x86_64"
2487 ;;
2488 ppc*-*linux*|powerpc*-*linux*)
2489 LD="${LD-ld} -m elf64ppc"
2490 ;;
2491 s390*-*linux*)
2492 LD="${LD-ld} -m elf64_s390"
2493 ;;
2494 sparc*-*linux*)
2495 LD="${LD-ld} -m elf64_sparc"
2496 ;;
2497 esac
2498 ;;
2499 esac
2500 fi
2501 rm -rf conftest*
2502 ;;
2503
2504 *-*-sco3.2v5*)
2505 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2506 SAVE_CFLAGS="$CFLAGS"
2507 CFLAGS="$CFLAGS -belf"
2508 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2509 echo "configure:2510: checking whether the C compiler needs -belf" >&5
2510 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2512 else
2513
2514 ac_ext=c
2515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2516 ac_cpp='$CPP $CPPFLAGS'
2517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2519 cross_compiling=$ac_cv_prog_cc_cross
2520
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2524
2525 int main() {
2526
2527 ; return 0; }
2528 EOF
2529 if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2530 rm -rf conftest*
2531 lt_cv_cc_needs_belf=yes
2532 else
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2535 rm -rf conftest*
2536 lt_cv_cc_needs_belf=no
2537 fi
2538 rm -f conftest*
2539 ac_ext=c
2540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2541 ac_cpp='$CPP $CPPFLAGS'
2542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2544 cross_compiling=$ac_cv_prog_cc_cross
2545
2546 fi
2547
2548 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2549 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2550 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2551 CFLAGS="$SAVE_CFLAGS"
2552 fi
2553 ;;
2554
2555
2556 esac
2557
2558 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2559 echo "configure:2560: checking how to run the C++ preprocessor" >&5
2560 if test -z "$CXXCPP"; then
2561 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2563 else
2564 ac_ext=C
2565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2566 ac_cpp='$CXXCPP $CPPFLAGS'
2567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2569 cross_compiling=$ac_cv_prog_cxx_cross
2570 CXXCPP="${CXX-g++} -E"
2571 cat > conftest.$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2574 #include <stdlib.h>
2575 EOF
2576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2577 { (eval echo configure:2578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2579 if test -z "$ac_err"; then
2580 :
2581 else
2582 echo "$ac_err" >&5
2583 echo "configure: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2585 rm -rf conftest*
2586 CXXCPP=/lib/cpp
2587 fi
2588 rm -f conftest*
2589 ac_cv_prog_CXXCPP="$CXXCPP"
2590 ac_ext=c
2591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2594 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2595 cross_compiling=$ac_cv_prog_cc_cross
2596 fi
2597 fi
2598 CXXCPP="$ac_cv_prog_CXXCPP"
2599 echo "$ac_t""$CXXCPP" 1>&6
2600
2601
2602 # Save cache, so that ltconfig can load it
2603 cat > confcache <<\EOF
2604 # This file is a shell script that caches the results of configure
2605 # tests run on this system so they can be shared between configure
2606 # scripts and configure runs. It is not useful on other systems.
2607 # If it contains results you don't want to keep, you may remove or edit it.
2608 #
2609 # By default, configure uses ./config.cache as the cache file,
2610 # creating it if it does not exist already. You can give configure
2611 # the --cache-file=FILE option to use a different cache file; that is
2612 # what configure does when it calls configure scripts in
2613 # subdirectories, so they share the cache.
2614 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2615 # config.status only pays attention to the cache file if you give it the
2616 # --recheck option to rerun configure.
2617 #
2618 EOF
2619 # The following way of writing the cache mishandles newlines in values,
2620 # but we know of no workaround that is simple, portable, and efficient.
2621 # So, don't put newlines in cache variables' values.
2622 # Ultrix sh set writes to stderr and can't be redirected directly,
2623 # and sets the high bit in the cache file unless we assign to the vars.
2624 (set) 2>&1 |
2625 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2626 *ac_space=\ *)
2627 # `set' does not quote correctly, so add quotes (double-quote substitution
2628 # turns \\\\ into \\, and sed turns \\ into \).
2629 sed -n \
2630 -e "s/'/'\\\\''/g" \
2631 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2632 ;;
2633 *)
2634 # `set' quotes correctly as required by POSIX, so do not add quotes.
2635 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2636 ;;
2637 esac >> confcache
2638 if cmp -s $cache_file confcache; then
2639 :
2640 else
2641 if test -w $cache_file; then
2642 echo "updating cache $cache_file"
2643 cat confcache > $cache_file
2644 else
2645 echo "not updating unwritable cache $cache_file"
2646 fi
2647 fi
2648 rm -f confcache
2649
2650
2651 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2652 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2653 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2654 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2655 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2656 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2657 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2658 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2659 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2660 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2661
2662 # Reload cache, that may have been modified by ltconfig
2663 if test -r "$cache_file"; then
2664 echo "loading cache $cache_file"
2665 . $cache_file
2666 else
2667 echo "creating cache $cache_file"
2668 > $cache_file
2669 fi
2670
2671
2672 # This can be used to rebuild libtool when needed
2673 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2674
2675 # Always use our own libtool.
2676 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2677
2678 # Redirect the config.log output again, so that the ltconfig log is not
2679 # clobbered by the next message.
2680 exec 5>>./config.log
2681
2682
2683
2684 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2685 lt_save_CC="$CC"
2686 lt_save_CFLAGS="$CFLAGS"
2687 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2688 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2689 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2690 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2691 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2692 deplibs_check_method="$deplibs_check_method" \
2693 file_magic_cmd="$file_magic_cmd" \
2694 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2695 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2696 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2697 CC="$lt_save_CC"
2698 CFLAGS="$lt_save_CFLAGS"
2699
2700 # Redirect the config.log output again, so that the ltconfig log is not
2701 # clobbered by the next message.
2702 exec 5>>./config.log
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712 # Check for support bits and g++ features that don't require linking.
2713 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2714 echo "configure:2715: checking for GNU make" >&5
2715 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2717 else
2718 _cv_gnu_make_command='' ;
2719 for a in "${MAKE-make}" make gmake gnumake ; do
2720 if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2721 then
2722 _cv_gnu_make_command=$a ;
2723 break;
2724 fi
2725 done ;
2726
2727 fi
2728
2729 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2730 if test "x$_cv_gnu_make_command" != "x" ; then
2731 ifGNUmake='' ;
2732 else
2733 ifGNUmake='#' ;
2734 fi
2735
2736
2737 #GLIBCXX_CHECK_COMPILER_VERSION
2738
2739 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2740 echo "configure:2741: checking for exception model to use" >&5
2741
2742 ac_ext=C
2743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2744 ac_cpp='$CXXCPP $CPPFLAGS'
2745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2747 cross_compiling=$ac_cv_prog_cxx_cross
2748
2749 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2750 if test "${enable_sjlj_exceptions+set}" = set; then
2751 enableval="$enable_sjlj_exceptions"
2752 :
2753 else
2754 cat > conftest.$ac_ext << EOF
2755 #line 2756 "configure"
2756 struct S { ~S(); };
2757 void bar();
2758 void foo()
2759 {
2760 S s;
2761 bar();
2762 }
2763 EOF
2764 old_CXXFLAGS="$CXXFLAGS"
2765 CXXFLAGS=-S
2766 if { (eval echo configure:2767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2767 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2768 enable_sjlj_exceptions=yes
2769 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2770 enable_sjlj_exceptions=no
2771 fi
2772 fi
2773 CXXFLAGS="$old_CXXFLAGS"
2774 rm -f conftest*
2775 fi
2776
2777 if test x$enable_sjlj_exceptions = xyes; then
2778 cat >> confdefs.h <<\EOF
2779 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
2780 EOF
2781
2782 ac_exception_model_name=sjlj
2783 elif test x$enable_sjlj_exceptions = xno; then
2784 ac_exception_model_name="call frame"
2785 else
2786 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2787 fi
2788 ac_ext=c
2789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2793 cross_compiling=$ac_cv_prog_cc_cross
2794
2795 echo "$ac_t""$ac_exception_model_name" 1>&6
2796
2797
2798 echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
2799 echo "configure:2800: checking for use of libunwind" >&5
2800 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
2801 if test "${enable_libunwind_exceptions+set}" = set; then
2802 enableval="$enable_libunwind_exceptions"
2803 use_libunwind_exceptions=$enableval
2804 else
2805 use_libunwind_exceptions=no
2806 fi
2807
2808 echo "$ac_t""$use_libunwind_exceptions" 1>&6
2809 if test x"$use_libunwind_exceptions" = xyes; then
2810 LIBUNWIND_FLAG="-lunwind"
2811 else
2812 LIBUNWIND_FLAG=""
2813 fi
2814
2815
2816 # Check whether --enable-libstdcxx_pch or --disable-libstdcxx_pch was given.
2817 if test "${enable_libstdcxx_pch+set}" = set; then
2818 enableval="$enable_libstdcxx_pch"
2819 case "${enableval}" in
2820 yes) enable_libstdcxx_pch=yes ;;
2821 no) enable_libstdcxx_pch=no ;;
2822 *) { echo "configure: error: Unknown argument to enable/disable PCH" 1>&2; exit 1; } ;;
2823 esac
2824 else
2825 enable_libstdcxx_pch=yes
2826 fi
2827
2828 if test x$enable_libstdcxx_pch = xyes; then
2829 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2830 ac_save_CXXFLAGS="$CXXFLAGS"
2831 CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header'
2832
2833 echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6
2834 echo "configure:2835: checking for compiler that seems to compile .gch files" >&5
2835 if test x${pch_comp+set} != xset; then
2836 if eval "test \"`echo '$''{'pch_comp'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2838 else
2839
2840
2841 ac_ext=C
2842 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2843 ac_cpp='$CXXCPP $CPPFLAGS'
2844 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2845 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2846 cross_compiling=$ac_cv_prog_cxx_cross
2847
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 #include <math.h>
2852 int main() {
2853
2854 ; return 0; }
2855 EOF
2856 if { (eval echo configure:2857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2857 rm -rf conftest*
2858 pch_comp=yes
2859 else
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2862 rm -rf conftest*
2863 pch_comp=no
2864 fi
2865 rm -f conftest*
2866 ac_ext=c
2867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2871 cross_compiling=$ac_cv_prog_cc_cross
2872
2873
2874 fi
2875
2876 fi
2877 echo "$ac_t""$pch_comp" 1>&6
2878
2879 CXXFLAGS="$ac_save_CXXFLAGS"
2880 fi
2881
2882 if test x"$enable_libstdcxx_pch" = xyes && test x"$pch_comp" = xno; then
2883 enable_pch=no
2884 fi
2885
2886 echo $ac_n "checking for enabled PCH""... $ac_c" 1>&6
2887 echo "configure:2888: checking for enabled PCH" >&5
2888 echo "$ac_t""$enable_libstdcxx_pch" 1>&6
2889
2890
2891
2892 if test "$enable_libstdcxx_pch" = yes; then
2893 GLIBCXX_BUILD_PCH_TRUE=
2894 GLIBCXX_BUILD_PCH_FALSE='#'
2895 else
2896 GLIBCXX_BUILD_PCH_TRUE='#'
2897 GLIBCXX_BUILD_PCH_FALSE=
2898 fi
2899 if test "$enable_libstdcxx_pch" = yes; then
2900 glibcxx_PCHFLAGS="-include bits/stdc++.h"
2901 else
2902 glibcxx_PCHFLAGS=""
2903 fi
2904
2905
2906
2907 # Enable all the variable C++ runtime options.
2908 # NB: C_MBCHAR must come early.
2909
2910 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2911 echo "configure:2912: checking for cstdio to use" >&5
2912 # Check whether --enable-cstdio or --disable-cstdio was given.
2913 if test "${enable_cstdio+set}" = set; then
2914 enableval="$enable_cstdio"
2915 if test x$enable_cstdio = xno; then
2916 enable_cstdio=stdio
2917 fi
2918 else
2919 enable_cstdio=stdio
2920 fi
2921
2922
2923 enable_cstdio_flag=$enable_cstdio
2924
2925 case x${enable_cstdio_flag} in
2926 xstdio | x | xno | xnone | xyes)
2927 # default
2928 CSTDIO_H=config/io/c_io_stdio.h
2929 BASIC_FILE_H=config/io/basic_file_stdio.h
2930 BASIC_FILE_CC=config/io/basic_file_stdio.cc
2931 echo "$ac_t""stdio" 1>&6
2932 ;;
2933 *)
2934 echo "$enable_cstdio is an unknown io package" 1>&2
2935 exit 1
2936 ;;
2937 esac
2938
2939 FPOS_H=$fpos_include_dir
2940
2941
2942
2943
2944
2945
2946 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2947 echo "configure:2948: checking how to run the C preprocessor" >&5
2948 # On Suns, sometimes $CPP names a directory.
2949 if test -n "$CPP" && test -d "$CPP"; then
2950 CPP=
2951 fi
2952 if test -z "$CPP"; then
2953 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2955 else
2956 # This must be in double quotes, not single quotes, because CPP may get
2957 # substituted into the Makefile and "${CC-cc}" will confuse make.
2958 CPP="${CC-cc} -E"
2959 # On the NeXT, cc -E runs the code through the compiler's parser,
2960 # not just through cpp.
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 #include <assert.h>
2965 Syntax Error
2966 EOF
2967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2968 { (eval echo configure:2969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2970 if test -z "$ac_err"; then
2971 :
2972 else
2973 echo "$ac_err" >&5
2974 echo "configure: failed program was:" >&5
2975 cat conftest.$ac_ext >&5
2976 rm -rf conftest*
2977 CPP="${CC-cc} -E -traditional-cpp"
2978 cat > conftest.$ac_ext <<EOF
2979 #line 2980 "configure"
2980 #include "confdefs.h"
2981 #include <assert.h>
2982 Syntax Error
2983 EOF
2984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2985 { (eval echo configure:2986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2987 if test -z "$ac_err"; then
2988 :
2989 else
2990 echo "$ac_err" >&5
2991 echo "configure: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2993 rm -rf conftest*
2994 CPP="${CC-cc} -nologo -E"
2995 cat > conftest.$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
2998 #include <assert.h>
2999 Syntax Error
3000 EOF
3001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3002 { (eval echo configure:3003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3004 if test -z "$ac_err"; then
3005 :
3006 else
3007 echo "$ac_err" >&5
3008 echo "configure: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3010 rm -rf conftest*
3011 CPP=/lib/cpp
3012 fi
3013 rm -f conftest*
3014 fi
3015 rm -f conftest*
3016 fi
3017 rm -f conftest*
3018 ac_cv_prog_CPP="$CPP"
3019 fi
3020 CPP="$ac_cv_prog_CPP"
3021 else
3022 ac_cv_prog_CPP="$CPP"
3023 fi
3024 echo "$ac_t""$CPP" 1>&6
3025
3026
3027 echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3028 echo "configure:3029: checking for clocale to use" >&5
3029 # Check whether --enable-clocale or --disable-clocale was given.
3030 if test "${enable_clocale+set}" = set; then
3031 enableval="$enable_clocale"
3032 if test x$enable_clocale = xno; then
3033 enable_clocale=no
3034 fi
3035 else
3036 enable_clocale=no
3037 fi
3038
3039
3040 enable_clocale_flag=$enable_clocale
3041
3042 if test x$enable_clocale_flag = xno; then
3043 case x${target_os} in
3044 xlinux* | xgnu*)
3045 cat > conftest.$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3048
3049 #include <features.h>
3050 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3051 _GLIBCXX_ok
3052 #endif
3053
3054 EOF
3055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056 egrep "_GLIBCXX_ok" >/dev/null 2>&1; then
3057 rm -rf conftest*
3058 enable_clocale_flag=gnu
3059 else
3060 rm -rf conftest*
3061 enable_clocale_flag=generic
3062 fi
3063 rm -f conftest*
3064
3065
3066 # Test for bugs early in glibc-2.2.x series
3067 if test x$enable_clocale_flag = xgnu; then
3068 if test "$cross_compiling" = yes; then
3069 enable_clocale_flag=generic
3070 else
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3074
3075 #define _GNU_SOURCE 1
3076 #include <locale.h>
3077 #include <string.h>
3078 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3079 extern __typeof(newlocale) __newlocale;
3080 extern __typeof(duplocale) __duplocale;
3081 extern __typeof(strcoll_l) __strcoll_l;
3082 #endif
3083 int main()
3084 {
3085 const char __one[] = "Äuglein Augmen";
3086 const char __two[] = "Äuglein";
3087 int i;
3088 int j;
3089 __locale_t loc;
3090 __locale_t loc_dup;
3091 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3092 loc_dup = __duplocale(loc);
3093 i = __strcoll_l(__one, __two, loc);
3094 j = __strcoll_l(__one, __two, loc_dup);
3095 return 0;
3096 }
3097
3098 EOF
3099 if { (eval echo configure:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3100 then
3101 enable_clocale_flag=gnu
3102 else
3103 echo "configure: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3105 rm -fr conftest*
3106 enable_clocale_flag=generic
3107 fi
3108 rm -fr conftest*
3109 fi
3110
3111 fi
3112
3113 # ... at some point put __strxfrm_l tests in as well.
3114 ;;
3115 *)
3116 enable_clocale_flag=generic
3117 ;;
3118 esac
3119 fi
3120
3121 # Check whether --enable-nls or --disable-nls was given.
3122 if test "${enable_nls+set}" = set; then
3123 enableval="$enable_nls"
3124 :
3125 else
3126 enable_nls=yes
3127 fi
3128
3129 USE_NLS=no
3130
3131 case x${enable_clocale_flag} in
3132 xgeneric)
3133 echo "$ac_t""generic" 1>&6
3134
3135 CLOCALE_H=config/locale/generic/c_locale.h
3136 CLOCALE_CC=config/locale/generic/c_locale.cc
3137 CCODECVT_H=config/locale/generic/codecvt_specializations.h
3138 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3139 CCOLLATE_CC=config/locale/generic/collate_members.cc
3140 CCTYPE_CC=config/locale/generic/ctype_members.cc
3141 CMESSAGES_H=config/locale/generic/messages_members.h
3142 CMESSAGES_CC=config/locale/generic/messages_members.cc
3143 CMONEY_CC=config/locale/generic/monetary_members.cc
3144 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3145 CTIME_H=config/locale/generic/time_members.h
3146 CTIME_CC=config/locale/generic/time_members.cc
3147 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3148 ;;
3149 xgnu)
3150 echo "$ac_t""gnu" 1>&6
3151
3152 # Declare intention to use gettext, and add support for specific
3153 # languages.
3154 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3155 ALL_LINGUAS="de fr"
3156
3157 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3158 # Extract the first word of "msgfmt", so it can be a program name with args.
3159 set dummy msgfmt; ac_word=$2
3160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3161 echo "configure:3162: checking for $ac_word" >&5
3162 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3164 else
3165 if test -n "$check_msgfmt"; then
3166 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3167 else
3168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3169 ac_dummy="$PATH"
3170 for ac_dir in $ac_dummy; do
3171 test -z "$ac_dir" && ac_dir=.
3172 if test -f $ac_dir/$ac_word; then
3173 ac_cv_prog_check_msgfmt="yes"
3174 break
3175 fi
3176 done
3177 IFS="$ac_save_ifs"
3178 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3179 fi
3180 fi
3181 check_msgfmt="$ac_cv_prog_check_msgfmt"
3182 if test -n "$check_msgfmt"; then
3183 echo "$ac_t""$check_msgfmt" 1>&6
3184 else
3185 echo "$ac_t""no" 1>&6
3186 fi
3187
3188 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3189 USE_NLS=yes
3190 fi
3191 # Export the build objects.
3192 for ling in $ALL_LINGUAS; do \
3193 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
3194 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
3195 done
3196
3197
3198
3199 CLOCALE_H=config/locale/gnu/c_locale.h
3200 CLOCALE_CC=config/locale/gnu/c_locale.cc
3201 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3202 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3203 CCOLLATE_CC=config/locale/gnu/collate_members.cc
3204 CCTYPE_CC=config/locale/gnu/ctype_members.cc
3205 CMESSAGES_H=config/locale/gnu/messages_members.h
3206 CMESSAGES_CC=config/locale/gnu/messages_members.cc
3207 CMONEY_CC=config/locale/gnu/monetary_members.cc
3208 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3209 CTIME_H=config/locale/gnu/time_members.h
3210 CTIME_CC=config/locale/gnu/time_members.cc
3211 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3212 ;;
3213 xieee_1003.1-2001)
3214 echo "$ac_t""IEEE 1003.1" 1>&6
3215
3216 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3217 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3218 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3219 CCODECVT_CC=config/locale/generic/codecvt_members.cc
3220 CCOLLATE_CC=config/locale/generic/collate_members.cc
3221 CCTYPE_CC=config/locale/generic/ctype_members.cc
3222 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3223 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3224 CMONEY_CC=config/locale/generic/monetary_members.cc
3225 CNUMERIC_CC=config/locale/generic/numeric_members.cc
3226 CTIME_H=config/locale/generic/time_members.h
3227 CTIME_CC=config/locale/generic/time_members.cc
3228 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3229 ;;
3230 *)
3231 echo "$enable_clocale is an unknown locale package" 1>&2
3232 exit 1
3233 ;;
3234 esac
3235
3236 # This is where the testsuite looks for locale catalogs, using the
3237 # -DLOCALEDIR define during testsuite compilation.
3238 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
3239
3240
3241 # A standalone libintl (e.g., GNU libintl) may be in use.
3242 if test $USE_NLS = yes; then
3243 for ac_hdr in libintl.h
3244 do
3245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3247 echo "configure:3248: checking for $ac_hdr" >&5
3248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3250 else
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 #include <$ac_hdr>
3255 EOF
3256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3257 { (eval echo configure:3258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3259 if test -z "$ac_err"; then
3260 rm -rf conftest*
3261 eval "ac_cv_header_$ac_safe=yes"
3262 else
3263 echo "$ac_err" >&5
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3266 rm -rf conftest*
3267 eval "ac_cv_header_$ac_safe=no"
3268 fi
3269 rm -f conftest*
3270 fi
3271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3272 echo "$ac_t""yes" 1>&6
3273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3274 cat >> confdefs.h <<EOF
3275 #define $ac_tr_hdr 1
3276 EOF
3277
3278 else
3279 echo "$ac_t""no" 1>&6
3280 USE_NLS=no
3281 fi
3282 done
3283
3284
3285 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
3286 echo "configure:3287: checking for library containing gettext" >&5
3287 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3289 else
3290 ac_func_search_save_LIBS="$LIBS"
3291 ac_cv_search_gettext="no"
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 /* Override any gcc2 internal prototype to avoid an error. */
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3298 char gettext();
3299
3300 int main() {
3301 gettext()
3302 ; return 0; }
3303 EOF
3304 if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3305 rm -rf conftest*
3306 ac_cv_search_gettext="none required"
3307 else
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3310 fi
3311 rm -f conftest*
3312 test "$ac_cv_search_gettext" = "no" && for i in intl; do
3313 LIBS="-l$i $ac_func_search_save_LIBS"
3314 cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3317 /* Override any gcc2 internal prototype to avoid an error. */
3318 /* We use char because int might match the return type of a gcc2
3319 builtin and then its argument prototype would still apply. */
3320 char gettext();
3321
3322 int main() {
3323 gettext()
3324 ; return 0; }
3325 EOF
3326 if { (eval echo configure:3327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3327 rm -rf conftest*
3328 ac_cv_search_gettext="-l$i"
3329 break
3330 else
3331 echo "configure: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3333 fi
3334 rm -f conftest*
3335 done
3336 LIBS="$ac_func_search_save_LIBS"
3337 fi
3338
3339 echo "$ac_t""$ac_cv_search_gettext" 1>&6
3340 if test "$ac_cv_search_gettext" != "no"; then
3341 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
3342
3343 else :
3344 USE_NLS=no
3345 fi
3346 fi
3347 if test $USE_NLS = yes; then
3348 cat >> confdefs.h <<\EOF
3349 #define _GLIBCXX_USE_NLS 1
3350 EOF
3351
3352 fi
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3370 echo "configure:3371: checking for c header strategy to use" >&5
3371 # Check whether --enable-cheaders or --disable-cheaders was given.
3372 if test "${enable_cheaders+set}" = set; then
3373 enableval="$enable_cheaders"
3374
3375 case "$enableval" in
3376 c)
3377 enable_cheaders=c
3378 ;;
3379 c_std)
3380 enable_cheaders=c_std
3381 ;;
3382 *) { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3383 ;;
3384 esac
3385 else
3386 enable_cheaders=c_std
3387 fi
3388
3389 echo "$ac_t""$enable_cheaders" 1>&6
3390
3391 case "$enable_cheaders" in
3392 c_std)
3393 C_INCLUDE_DIR='${glibcxx_srcdir}/include/c_std'
3394 ;;
3395 c)
3396 C_INCLUDE_DIR='${glibcxx_srcdir}/include/c'
3397 ;;
3398 esac
3399
3400
3401
3402
3403 if test "$enable_cheaders" = c; then
3404 GLIBCXX_C_HEADERS_C_TRUE=
3405 GLIBCXX_C_HEADERS_C_FALSE='#'
3406 else
3407 GLIBCXX_C_HEADERS_C_TRUE='#'
3408 GLIBCXX_C_HEADERS_C_FALSE=
3409 fi
3410
3411
3412 if test "$enable_cheaders" = c_std; then
3413 GLIBCXX_C_HEADERS_C_STD_TRUE=
3414 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
3415 else
3416 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
3417 GLIBCXX_C_HEADERS_C_STD_FALSE=
3418 fi
3419
3420
3421 if test "$c_compatibility" = yes; then
3422 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
3423 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
3424 else
3425 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
3426 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
3427 fi
3428
3429 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3430 if test "${enable_c_mbchar+set}" = set; then
3431 enableval="$enable_c_mbchar"
3432 case "$enableval" in
3433 yes) enable_c_mbchar=yes ;;
3434 no) enable_c_mbchar=no ;;
3435 *) { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3436 esac
3437 else
3438 enable_c_mbchar=yes
3439 fi
3440
3441
3442 # Check whether --enable-c99 or --disable-c99 was given.
3443 if test "${enable_c99+set}" = set; then
3444 enableval="$enable_c99"
3445 case "$enableval" in
3446 yes) enable_c99=yes ;;
3447 no) enable_c99=no ;;
3448 *) { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3449 esac
3450 else
3451 enable_c99=yes
3452 fi
3453
3454
3455 ac_ext=C
3456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3457 ac_cpp='$CXXCPP $CPPFLAGS'
3458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3460 cross_compiling=$ac_cv_prog_cxx_cross
3461
3462
3463 # Check for the existence of <math.h> functions used if C99 is enabled.
3464 ac_c99_math=yes;
3465 echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3466 echo "configure:3467: checking for ISO C99 support in <math.h>" >&5
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 #include <math.h>
3471 int main() {
3472 fpclassify(0.0);
3473 ; return 0; }
3474 EOF
3475 if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3476 :
3477 else
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3480 rm -rf conftest*
3481 ac_c99_math=no
3482 fi
3483 rm -f conftest*
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 #include <math.h>
3488 int main() {
3489 isfinite(0.0);
3490 ; return 0; }
3491 EOF
3492 if { (eval echo configure:3493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3493 :
3494 else
3495 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3497 rm -rf conftest*
3498 ac_c99_math=no
3499 fi
3500 rm -f conftest*
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 #include <math.h>
3505 int main() {
3506 isinf(0.0);
3507 ; return 0; }
3508 EOF
3509 if { (eval echo configure:3510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3510 :
3511 else
3512 echo "configure: failed program was:" >&5
3513 cat conftest.$ac_ext >&5
3514 rm -rf conftest*
3515 ac_c99_math=no
3516 fi
3517 rm -f conftest*
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 #include <math.h>
3522 int main() {
3523 isnan(0.0);
3524 ; return 0; }
3525 EOF
3526 if { (eval echo configure:3527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3527 :
3528 else
3529 echo "configure: failed program was:" >&5
3530 cat conftest.$ac_ext >&5
3531 rm -rf conftest*
3532 ac_c99_math=no
3533 fi
3534 rm -f conftest*
3535 cat > conftest.$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3538 #include <math.h>
3539 int main() {
3540 isnormal(0.0);
3541 ; return 0; }
3542 EOF
3543 if { (eval echo configure:3544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3544 :
3545 else
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3548 rm -rf conftest*
3549 ac_c99_math=no
3550 fi
3551 rm -f conftest*
3552 cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555 #include <math.h>
3556 int main() {
3557 signbit(0.0);
3558 ; return 0; }
3559 EOF
3560 if { (eval echo configure:3561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3561 :
3562 else
3563 echo "configure: failed program was:" >&5
3564 cat conftest.$ac_ext >&5
3565 rm -rf conftest*
3566 ac_c99_math=no
3567 fi
3568 rm -f conftest*
3569 cat > conftest.$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3572 #include <math.h>
3573 int main() {
3574 isgreater(0.0,0.0);
3575 ; return 0; }
3576 EOF
3577 if { (eval echo configure:3578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3578 :
3579 else
3580 echo "configure: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3582 rm -rf conftest*
3583 ac_c99_math=no
3584 fi
3585 rm -f conftest*
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 #include <math.h>
3590 int main() {
3591 isgreaterequal(0.0,0.0);
3592 ; return 0; }
3593 EOF
3594 if { (eval echo configure:3595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3595 :
3596 else
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3599 rm -rf conftest*
3600 ac_c99_math=no
3601 fi
3602 rm -f conftest*
3603 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3606 #include <math.h>
3607 int main() {
3608 isless(0.0,0.0);
3609 ; return 0; }
3610 EOF
3611 if { (eval echo configure:3612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3612 :
3613 else
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3616 rm -rf conftest*
3617 ac_c99_math=no
3618 fi
3619 rm -f conftest*
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3623 #include <math.h>
3624 int main() {
3625 islessequal(0.0,0.0);
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_math=no
3635 fi
3636 rm -f conftest*
3637 cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 #include <math.h>
3641 int main() {
3642 islessgreater(0.0,0.0);
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_math=no
3652 fi
3653 rm -f conftest*
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 #include <math.h>
3658 int main() {
3659 isunordered(0.0,0.0);
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_math=no
3669 fi
3670 rm -f conftest*
3671 echo "$ac_t""$ac_c99_math" 1>&6
3672
3673 # Check for the existence in <stdio.h> of vscanf, et. al.
3674 ac_c99_stdio=yes;
3675 echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3676 echo "configure:3677: checking for ISO C99 support in <stdio.h>" >&5
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3680 #include <stdio.h>
3681 int main() {
3682 snprintf("12", 0, "%i");
3683 ; return 0; }
3684 EOF
3685 if { (eval echo configure:3686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3686 :
3687 else
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3690 rm -rf conftest*
3691 ac_c99_stdio=no
3692 fi
3693 rm -f conftest*
3694 cat > conftest.$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3697 #include <stdio.h>
3698 #include <stdarg.h>
3699 void foo(char* fmt, ...)
3700 {va_list args; va_start(args, fmt);
3701 vfscanf(stderr, "%i", args);}
3702 int main() {
3703
3704 ; return 0; }
3705 EOF
3706 if { (eval echo configure:3707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3707 :
3708 else
3709 echo "configure: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3711 rm -rf conftest*
3712 ac_c99_stdio=no
3713 fi
3714 rm -f conftest*
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 #include <stdio.h>
3719 #include <stdarg.h>
3720 void foo(char* fmt, ...)
3721 {va_list args; va_start(args, fmt);
3722 vscanf("%i", args);}
3723 int main() {
3724
3725 ; return 0; }
3726 EOF
3727 if { (eval echo configure:3728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3728 :
3729 else
3730 echo "configure: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3732 rm -rf conftest*
3733 ac_c99_stdio=no
3734 fi
3735 rm -f conftest*
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 #include <stdio.h>
3740 #include <stdarg.h>
3741 void foo(char* fmt, ...)
3742 {va_list args; va_start(args, fmt);
3743 vsnprintf(fmt, 0, "%i", args);}
3744 int main() {
3745
3746 ; return 0; }
3747 EOF
3748 if { (eval echo configure:3749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3749 :
3750 else
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 rm -rf conftest*
3754 ac_c99_stdio=no
3755 fi
3756 rm -f conftest*
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 #include <stdio.h>
3761 #include <stdarg.h>
3762 void foo(char* fmt, ...)
3763 {va_list args; va_start(args, fmt);
3764 vsscanf(fmt, "%i", args);}
3765 int main() {
3766
3767 ; return 0; }
3768 EOF
3769 if { (eval echo configure:3770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3770 :
3771 else
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3774 rm -rf conftest*
3775 ac_c99_stdio=no
3776 fi
3777 rm -f conftest*
3778 echo "$ac_t""$ac_c99_stdio" 1>&6
3779
3780 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3781 ac_c99_stdlib=yes;
3782 echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3783 echo "configure:3784: checking for lldiv_t declaration" >&5
3784 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3786 else
3787
3788 cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3791 #include <stdlib.h>
3792 int main() {
3793 lldiv_t mydivt;
3794 ; return 0; }
3795 EOF
3796 if { (eval echo configure:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3797 rm -rf conftest*
3798 ac_c99_lldiv_t=yes
3799 else
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3802 rm -rf conftest*
3803 ac_c99_lldiv_t=no
3804 fi
3805 rm -f conftest*
3806
3807 fi
3808
3809 echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3810
3811 echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3812 echo "configure:3813: checking for ISO C99 support in <stdlib.h>" >&5
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 #include <stdlib.h>
3817 int main() {
3818 char* tmp; strtof("gnu", &tmp);
3819 ; return 0; }
3820 EOF
3821 if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3822 :
3823 else
3824 echo "configure: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3826 rm -rf conftest*
3827 ac_c99_stdlib=no
3828 fi
3829 rm -f conftest*
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 #include <stdlib.h>
3834 int main() {
3835 char* tmp; strtold("gnu", &tmp);
3836 ; return 0; }
3837 EOF
3838 if { (eval echo configure:3839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3839 :
3840 else
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3843 rm -rf conftest*
3844 ac_c99_stdlib=no
3845 fi
3846 rm -f conftest*
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3850 #include <stdlib.h>
3851 int main() {
3852 llabs(10);
3853 ; return 0; }
3854 EOF
3855 if { (eval echo configure:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3856 :
3857 else
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3860 rm -rf conftest*
3861 ac_c99_stdlib=no
3862 fi
3863 rm -f conftest*
3864 cat > conftest.$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867 #include <stdlib.h>
3868 int main() {
3869 lldiv(10,1);
3870 ; return 0; }
3871 EOF
3872 if { (eval echo configure:3873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3873 :
3874 else
3875 echo "configure: failed program was:" >&5
3876 cat conftest.$ac_ext >&5
3877 rm -rf conftest*
3878 ac_c99_stdlib=no
3879 fi
3880 rm -f conftest*
3881 cat > conftest.$ac_ext <<EOF
3882 #line 3883 "configure"
3883 #include "confdefs.h"
3884 #include <stdlib.h>
3885 int main() {
3886 atoll("10");
3887 ; return 0; }
3888 EOF
3889 if { (eval echo configure:3890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3890 :
3891 else
3892 echo "configure: failed program was:" >&5
3893 cat conftest.$ac_ext >&5
3894 rm -rf conftest*
3895 ac_c99_stdlib=no
3896 fi
3897 rm -f conftest*
3898 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3901 #include <stdlib.h>
3902 int main() {
3903 _Exit(0);
3904 ; return 0; }
3905 EOF
3906 if { (eval echo configure:3907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3907 :
3908 else
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3911 rm -rf conftest*
3912 ac_c99_stdlib=no
3913 fi
3914 rm -f conftest*
3915 if test x"$ac_c99_lldiv_t" = x"no"; then
3916 ac_c99_stdlib=no;
3917 fi;
3918 echo "$ac_t""$ac_c99_stdlib" 1>&6
3919
3920 # Check for the existence of <wchar.h> functions used if C99 is enabled.
3921 # XXX the wchar.h checks should be rolled into the general C99 bits.
3922 ac_c99_wchar=yes;
3923 echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3924 echo "configure:3925: checking for additional ISO C99 support in <wchar.h>" >&5
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 #include <wchar.h>
3929 int main() {
3930 wcstold(L"10.0", NULL);
3931 ; return 0; }
3932 EOF
3933 if { (eval echo configure:3934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3934 :
3935 else
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3938 rm -rf conftest*
3939 ac_c99_wchar=no
3940 fi
3941 rm -f conftest*
3942 cat > conftest.$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3945 #include <wchar.h>
3946 int main() {
3947 wcstoll(L"10", NULL, 10);
3948 ; return 0; }
3949 EOF
3950 if { (eval echo configure:3951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3951 :
3952 else
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3955 rm -rf conftest*
3956 ac_c99_wchar=no
3957 fi
3958 rm -f conftest*
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962 #include <wchar.h>
3963 int main() {
3964 wcstoull(L"10", NULL, 10);
3965 ; return 0; }
3966 EOF
3967 if { (eval echo configure:3968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968 :
3969 else
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3972 rm -rf conftest*
3973 ac_c99_wchar=no
3974 fi
3975 rm -f conftest*
3976 echo "$ac_t""$ac_c99_wchar" 1>&6
3977
3978 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3979 echo "configure:3980: checking for enabled ISO C99 support" >&5
3980 if test x"$ac_c99_math" = x"no" ||
3981 test x"$ac_c99_stdio" = x"no" ||
3982 test x"$ac_c99_stdlib" = x"no" ||
3983 test x"$ac_c99_wchar" = x"no"; then
3984 enable_c99=no;
3985 fi;
3986 echo "$ac_t""$enable_c99" 1>&6
3987
3988 # Option parsed, now set things appropriately
3989 if test x"$enable_c99" = x"yes"; then
3990 cat >> confdefs.h <<\EOF
3991 #define _GLIBCXX_USE_C99 1
3992 EOF
3993
3994 fi
3995
3996 ac_ext=c
3997 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3998 ac_cpp='$CPP $CPPFLAGS'
3999 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4000 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4001 cross_compiling=$ac_cv_prog_cc_cross
4002
4003
4004
4005 # Check whether --enable-long-long or --disable-long-long was given.
4006 if test "${enable_long_long+set}" = set; then
4007 enableval="$enable_long_long"
4008 case "$enableval" in
4009 yes) enable_long_long=yes ;;
4010 no) enable_long_long=no ;;
4011 *) { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
4012 esac
4013 else
4014 enable_long_long=yes
4015 fi
4016
4017
4018 ac_ext=C
4019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4020 ac_cpp='$CXXCPP $CPPFLAGS'
4021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4023 cross_compiling=$ac_cv_prog_cxx_cross
4024
4025
4026 echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
4027 echo "configure:4028: checking for enabled long long I/O support" >&5
4028 # iostreams require strtoll, strtoull to compile
4029 cat > conftest.$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4032 #include <stdlib.h>
4033 int main() {
4034 char* tmp; strtoll("gnu", &tmp, 10);
4035 ; return 0; }
4036 EOF
4037 if { (eval echo configure:4038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4038 :
4039 else
4040 echo "configure: failed program was:" >&5
4041 cat conftest.$ac_ext >&5
4042 rm -rf conftest*
4043 enable_long_long=no
4044 fi
4045 rm -f conftest*
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4049 #include <stdlib.h>
4050 int main() {
4051 char* tmp; strtoull("gnu", &tmp, 10);
4052 ; return 0; }
4053 EOF
4054 if { (eval echo configure:4055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4055 :
4056 else
4057 echo "configure: failed program was:" >&5
4058 cat conftest.$ac_ext >&5
4059 rm -rf conftest*
4060 enable_long_long=no
4061 fi
4062 rm -f conftest*
4063
4064 # Option parsed, now set things appropriately
4065 if test x"$enable_long_long" = xyes; then
4066 cat >> confdefs.h <<\EOF
4067 #define _GLIBCXX_USE_LONG_LONG 1
4068 EOF
4069
4070 fi
4071 echo "$ac_t""$enable_long_long" 1>&6
4072
4073 ac_ext=c
4074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4078 cross_compiling=$ac_cv_prog_cc_cross
4079
4080
4081
4082 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4083 echo "configure:4084: checking for thread model used by GCC" >&5
4084 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4085 echo "$ac_t""$target_thread_file" 1>&6
4086
4087 if test $target_thread_file != single; then
4088 cat >> confdefs.h <<\EOF
4089 #define HAVE_GTHR_DEFAULT 1
4090 EOF
4091
4092 cat >> confdefs.h <<\EOF
4093 #define _GLIBCXX_SUPPORTS_WEAK __GXX_WEAK__
4094 EOF
4095
4096 fi
4097
4098 glibcxx_thread_h=gthr-$target_thread_file.h
4099
4100
4101 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4102 if test "${enable_concept_checks+set}" = set; then
4103 enableval="$enable_concept_checks"
4104 case "$enableval" in
4105 yes) enable_concept_checks=yes ;;
4106 no) enable_concept_checks=no ;;
4107 *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4108 esac
4109 else
4110 enable_concept_checks=no
4111 fi
4112 if test x"$enable_concept_checks" = xyes; then
4113 cat >> confdefs.h <<\EOF
4114 #define _GLIBCXX_CONCEPT_CHECKS 1
4115 EOF
4116
4117 fi
4118
4119 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4120 echo "configure:4121: checking for extra compiler flags for building" >&5
4121 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4122 if test "${enable_cxx_flags+set}" = set; then
4123 enableval="$enable_cxx_flags"
4124 case "x$enable_cxx_flags" in
4125 xyes)
4126 { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4127 xno | xnone | x)
4128 enable_cxx_flags='' ;;
4129 *)
4130 enable_cxx_flags="$enableval" ;;
4131 esac
4132 else
4133 enable_cxx_flags=
4134 fi
4135
4136
4137 if test -n "$enable_cxx_flags"; then
4138 for f in $enable_cxx_flags; do
4139 case "$f" in
4140 -fhonor-std) ;;
4141 -*) ;;
4142 *) # and we're trying to pass /what/ exactly?
4143 { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4144 esac
4145 done
4146 fi
4147 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4148 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4149
4150
4151 # Check whether --enable-libstdcxx_debug or --disable-libstdcxx_debug was given.
4152 if test "${enable_libstdcxx_debug+set}" = set; then
4153 enableval="$enable_libstdcxx_debug"
4154 case "${enableval}" in
4155 yes) enable_libstdcxx_debug=yes ;;
4156 no) enable_libstdcxx_debug=no ;;
4157 *) { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4158 esac
4159 else
4160 enable_libstdcxx_debug=no
4161 fi
4162 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4163 echo "configure:4164: checking for additional debug build" >&5
4164 echo "$ac_t""$enable_libstdcxx_debug" 1>&6
4165
4166
4167 if test "$enable_libstdcxx_debug" = yes; then
4168 GLIBCXX_BUILD_DEBUG_TRUE=
4169 GLIBCXX_BUILD_DEBUG_FALSE='#'
4170 else
4171 GLIBCXX_BUILD_DEBUG_TRUE='#'
4172 GLIBCXX_BUILD_DEBUG_FALSE=
4173 fi
4174
4175 # Check whether --enable-libstdcxx_debug_flags or --disable-libstdcxx_debug_flags was given.
4176 if test "${enable_libstdcxx_debug_flags+set}" = set; then
4177 enableval="$enable_libstdcxx_debug_flags"
4178 case "${enableval}" in
4179 none) ;;
4180 -*) enable_libstdcxx_debug_flags="${enableval}" ;;
4181 *) { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4182 esac
4183 else
4184 enable_libstdcxx_debug_flags=none
4185 fi
4186
4187 case x"$enable_libstdcxx_debug" in
4188 xyes)
4189 case "$enable_libstdcxx_debug_flags" in
4190 none)
4191 DEBUG_FLAGS="-g3 -O0";;
4192 -*) #valid input
4193 DEBUG_FLAGS="${enableval}"
4194 esac
4195 ;;
4196 xno)
4197 DEBUG_FLAGS=""
4198 ;;
4199 esac
4200
4201
4202 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4203 echo "configure:4204: checking for debug build flags" >&5
4204 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4205
4206
4207 # No surprises, no surprises...
4208 if test $ATOMICITYH = cpu/generic ; then
4209 echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4210 if test $target_thread_file = single; then
4211 echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4212 echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4213 else
4214 echo "configure: warning: They will be faked using a mutex." 1>&2
4215 echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4216 fi
4217 fi
4218
4219
4220 if test x"$build" != x"$host"; then
4221
4222 # We are being configured with some form of cross compiler.
4223 GLIBCXX_IS_CROSS_COMPILING=true
4224
4225 # This lets us hard-code the functionality we know we'll have in the cross
4226 # target environment. "Let" is a sugar-coated word placed on an especially
4227 # dull and tedious hack, actually.
4228 #
4229 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
4230 # that involve linking, can't be used:
4231 # "cannot open sim-crt0.o"
4232 # "cannot open crt0.o"
4233 # etc. All this is because there currently exists no unified, consistent
4234 # way for top level CC information to be passed down to target directories:
4235 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4236 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4237 # crosses can be removed.
4238
4239 # If Canadian cross, then don't pick up tools from the build directory.
4240 # Used in GLIBCXX_EXPORT_INCLUDES (and nowhere else?).
4241 if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host" \
4242 && test x"$build" != x"$target"; then
4243 CANADIAN=yes
4244 else
4245 CANADIAN=no
4246 fi
4247
4248 # Construct crosses by hand, eliminating bits that need ld...
4249 # GLIBCXX_CHECK_COMPILER_FEATURES
4250 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
4251 # GLIBCXX_CHECK_MATH_SUPPORT
4252
4253 case "${host}" in
4254 *-freebsd*)
4255 os_include_dir="os/bsd/freebsd"
4256 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4257 machine/endian.h machine/param.h sys/machine.h sys/types.h \
4258 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
4259 sys/time.h unistd.h
4260 do
4261 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4263 echo "configure:4264: checking for $ac_hdr" >&5
4264 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4266 else
4267 cat > conftest.$ac_ext <<EOF
4268 #line 4269 "configure"
4269 #include "confdefs.h"
4270 #include <$ac_hdr>
4271 EOF
4272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4273 { (eval echo configure:4274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4275 if test -z "$ac_err"; then
4276 rm -rf conftest*
4277 eval "ac_cv_header_$ac_safe=yes"
4278 else
4279 echo "$ac_err" >&5
4280 echo "configure: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4282 rm -rf conftest*
4283 eval "ac_cv_header_$ac_safe=no"
4284 fi
4285 rm -f conftest*
4286 fi
4287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4288 echo "$ac_t""yes" 1>&6
4289 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4290 cat >> confdefs.h <<EOF
4291 #define $ac_tr_hdr 1
4292 EOF
4293
4294 else
4295 echo "$ac_t""no" 1>&6
4296 fi
4297 done
4298
4299 SECTION_FLAGS='-ffunction-sections -fdata-sections'
4300
4301
4302 # If we're not using GNU ld, then there's no point in even trying these
4303 # tests. Check for that first. We should have already tested for gld
4304 # by now (in libtool), but require it now just to be safe...
4305 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4306 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4307
4308
4309 # The name set by libtool depends on the version of libtool. Shame on us
4310 # for depending on an impl detail, but c'est la vie. Older versions used
4311 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4312 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4313 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
4314 # set (hence we're using an older libtool), then set it.
4315 if test x${with_gnu_ld+set} != xset; then
4316 if test x${ac_cv_prog_gnu_ld+set} != xset; then
4317 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
4318 with_gnu_ld=no
4319 else
4320 with_gnu_ld=$ac_cv_prog_gnu_ld
4321 fi
4322 fi
4323
4324 # Start by getting the version number. I think the libtool test already
4325 # does some of this, but throws away the result.
4326
4327 ldver=`$LD --version 2>/dev/null | head -1 | \
4328 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4329
4330 glibcxx_gnu_ld_version=`echo $ldver | \
4331 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4332
4333 # Set --gc-sections.
4334 if test "$with_gnu_ld" = "notbroken"; then
4335 # GNU ld it is! Joy and bunny rabbits!
4336
4337 # All these tests are for C++; save the language and the compiler flags.
4338 # Need to do this so that g++ won't try to link in libstdc++
4339 ac_test_CFLAGS="${CFLAGS+set}"
4340 ac_save_CFLAGS="$CFLAGS"
4341 CFLAGS='-x c++ -Wl,--gc-sections'
4342
4343 # Check for -Wl,--gc-sections
4344 # XXX This test is broken at the moment, as symbols required for
4345 # linking are now in libsupc++ (not built yet.....). In addition,
4346 # this test has cored on solaris in the past. In addition,
4347 # --gc-sections doesn't really work at the moment (keeps on discarding
4348 # used sections, first .eh_frame and now some of the glibc sections for
4349 # iconv). Bzzzzt. Thanks for playing, maybe next time.
4350 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4351 echo "configure:4352: checking for ld that supports -Wl,--gc-sections" >&5
4352 if test "$cross_compiling" = yes; then
4353 ac_sectionLDflags=yes
4354 else
4355 cat > conftest.$ac_ext <<EOF
4356 #line 4357 "configure"
4357 #include "confdefs.h"
4358
4359 int main(void)
4360 {
4361 try { throw 1; }
4362 catch (...) { };
4363 return 0;
4364 }
4365
4366 EOF
4367 if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4368 then
4369 ac_sectionLDflags=yes
4370 else
4371 echo "configure: failed program was:" >&5
4372 cat conftest.$ac_ext >&5
4373 rm -fr conftest*
4374 ac_sectionLDflags=no
4375 fi
4376 rm -fr conftest*
4377 fi
4378
4379 if test "$ac_test_CFLAGS" = set; then
4380 CFLAGS="$ac_save_CFLAGS"
4381 else
4382 # this is the suspicious part
4383 CFLAGS=''
4384 fi
4385 if test "$ac_sectionLDflags" = "yes"; then
4386 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4387 fi
4388 echo "$ac_t""$ac_sectionLDflags" 1>&6
4389 fi
4390
4391 # Set linker optimization flags.
4392 if test x"$with_gnu_ld" = x"yes"; then
4393 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4394 fi
4395
4396
4397
4398
4399
4400 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4401 echo "configure:4402: checking for main in -lm" >&5
4402 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4405 else
4406 ac_save_LIBS="$LIBS"
4407 LIBS="-lm $LIBS"
4408 cat > conftest.$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4411
4412 int main() {
4413 main()
4414 ; return 0; }
4415 EOF
4416 if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4417 rm -rf conftest*
4418 eval "ac_cv_lib_$ac_lib_var=yes"
4419 else
4420 echo "configure: failed program was:" >&5
4421 cat conftest.$ac_ext >&5
4422 rm -rf conftest*
4423 eval "ac_cv_lib_$ac_lib_var=no"
4424 fi
4425 rm -f conftest*
4426 LIBS="$ac_save_LIBS"
4427
4428 fi
4429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4430 echo "$ac_t""yes" 1>&6
4431 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4432 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4433 cat >> confdefs.h <<EOF
4434 #define $ac_tr_lib 1
4435 EOF
4436
4437 LIBS="-lm $LIBS"
4438
4439 else
4440 echo "$ac_t""no" 1>&6
4441 fi
4442
4443 for ac_func in nan copysignf
4444 do
4445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4446 echo "configure:4447: checking for $ac_func" >&5
4447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4449 else
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453 /* System header to define __stub macros and hopefully few prototypes,
4454 which can conflict with char $ac_func(); below. */
4455 #include <assert.h>
4456 /* Override any gcc2 internal prototype to avoid an error. */
4457 /* We use char because int might match the return type of a gcc2
4458 builtin and then its argument prototype would still apply. */
4459 char $ac_func();
4460
4461 int main() {
4462
4463 /* The GNU C library defines this for functions which it implements
4464 to always fail with ENOSYS. Some functions are actually named
4465 something starting with __ and the normal name is an alias. */
4466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4467 choke me
4468 #else
4469 $ac_func();
4470 #endif
4471
4472 ; return 0; }
4473 EOF
4474 if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4475 rm -rf conftest*
4476 eval "ac_cv_func_$ac_func=yes"
4477 else
4478 echo "configure: failed program was:" >&5
4479 cat conftest.$ac_ext >&5
4480 rm -rf conftest*
4481 eval "ac_cv_func_$ac_func=no"
4482 fi
4483 rm -f conftest*
4484 fi
4485
4486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4487 echo "$ac_t""yes" 1>&6
4488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4489 cat >> confdefs.h <<EOF
4490 #define $ac_tr_func 1
4491 EOF
4492
4493 else
4494 echo "$ac_t""no" 1>&6
4495 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4496 fi
4497 done
4498
4499
4500 for ac_func in __signbit
4501 do
4502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4503 echo "configure:4504: checking for $ac_func" >&5
4504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4506 else
4507 cat > conftest.$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4510 /* System header to define __stub macros and hopefully few prototypes,
4511 which can conflict with char $ac_func(); below. */
4512 #include <assert.h>
4513 /* Override any gcc2 internal prototype to avoid an error. */
4514 /* We use char because int might match the return type of a gcc2
4515 builtin and then its argument prototype would still apply. */
4516 char $ac_func();
4517
4518 int main() {
4519
4520 /* The GNU C library defines this for functions which it implements
4521 to always fail with ENOSYS. Some functions are actually named
4522 something starting with __ and the normal name is an alias. */
4523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4524 choke me
4525 #else
4526 $ac_func();
4527 #endif
4528
4529 ; return 0; }
4530 EOF
4531 if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4532 rm -rf conftest*
4533 eval "ac_cv_func_$ac_func=yes"
4534 else
4535 echo "configure: failed program was:" >&5
4536 cat conftest.$ac_ext >&5
4537 rm -rf conftest*
4538 eval "ac_cv_func_$ac_func=no"
4539 fi
4540 rm -f conftest*
4541 fi
4542
4543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4544 echo "$ac_t""yes" 1>&6
4545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4546 cat >> confdefs.h <<EOF
4547 #define $ac_tr_func 1
4548 EOF
4549
4550 else
4551 echo "$ac_t""no" 1>&6
4552 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4553 fi
4554 done
4555
4556 for ac_func in __signbitf
4557 do
4558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4559 echo "configure:4560: checking for $ac_func" >&5
4560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4561 echo $ac_n "(cached) $ac_c" 1>&6
4562 else
4563 cat > conftest.$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4566 /* System header to define __stub macros and hopefully few prototypes,
4567 which can conflict with char $ac_func(); below. */
4568 #include <assert.h>
4569 /* Override any gcc2 internal prototype to avoid an error. */
4570 /* We use char because int might match the return type of a gcc2
4571 builtin and then its argument prototype would still apply. */
4572 char $ac_func();
4573
4574 int main() {
4575
4576 /* The GNU C library defines this for functions which it implements
4577 to always fail with ENOSYS. Some functions are actually named
4578 something starting with __ and the normal name is an alias. */
4579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4580 choke me
4581 #else
4582 $ac_func();
4583 #endif
4584
4585 ; return 0; }
4586 EOF
4587 if { (eval echo configure:4588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4588 rm -rf conftest*
4589 eval "ac_cv_func_$ac_func=yes"
4590 else
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4593 rm -rf conftest*
4594 eval "ac_cv_func_$ac_func=no"
4595 fi
4596 rm -f conftest*
4597 fi
4598
4599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4600 echo "$ac_t""yes" 1>&6
4601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4602 cat >> confdefs.h <<EOF
4603 #define $ac_tr_func 1
4604 EOF
4605
4606 else
4607 echo "$ac_t""no" 1>&6
4608 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4609 fi
4610 done
4611
4612
4613 if test x$ac_cv_func_copysignl = x"yes"; then
4614 for ac_func in __signbitl
4615 do
4616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4617 echo "configure:4618: checking for $ac_func" >&5
4618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4620 else
4621 cat > conftest.$ac_ext <<EOF
4622 #line 4623 "configure"
4623 #include "confdefs.h"
4624 /* System header to define __stub macros and hopefully few prototypes,
4625 which can conflict with char $ac_func(); below. */
4626 #include <assert.h>
4627 /* Override any gcc2 internal prototype to avoid an error. */
4628 /* We use char because int might match the return type of a gcc2
4629 builtin and then its argument prototype would still apply. */
4630 char $ac_func();
4631
4632 int main() {
4633
4634 /* The GNU C library defines this for functions which it implements
4635 to always fail with ENOSYS. Some functions are actually named
4636 something starting with __ and the normal name is an alias. */
4637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4638 choke me
4639 #else
4640 $ac_func();
4641 #endif
4642
4643 ; return 0; }
4644 EOF
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4646 rm -rf conftest*
4647 eval "ac_cv_func_$ac_func=yes"
4648 else
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4651 rm -rf conftest*
4652 eval "ac_cv_func_$ac_func=no"
4653 fi
4654 rm -f conftest*
4655 fi
4656
4657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4658 echo "$ac_t""yes" 1>&6
4659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4660 cat >> confdefs.h <<EOF
4661 #define $ac_tr_func 1
4662 EOF
4663
4664 else
4665 echo "$ac_t""no" 1>&6
4666 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4667 fi
4668 done
4669
4670 fi
4671
4672 if test -n "$LIBMATHOBJS"; then
4673 need_libmath=yes
4674 fi
4675
4676
4677
4678
4679 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4680 echo "configure:4681: checking for mbstate_t" >&5
4681 cat > conftest.$ac_ext <<EOF
4682 #line 4683 "configure"
4683 #include "confdefs.h"
4684 #include <wchar.h>
4685 int main() {
4686 mbstate_t teststate;
4687 ; return 0; }
4688 EOF
4689 if { (eval echo configure:4690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4690 rm -rf conftest*
4691 have_mbstate_t=yes
4692 else
4693 echo "configure: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4695 rm -rf conftest*
4696 have_mbstate_t=no
4697 fi
4698 rm -f conftest*
4699 echo "$ac_t""$have_mbstate_t" 1>&6
4700 if test x"$have_mbstate_t" = xyes; then
4701 cat >> confdefs.h <<\EOF
4702 #define HAVE_MBSTATE_T 1
4703 EOF
4704
4705 fi
4706
4707 for ac_hdr in wchar.h
4708 do
4709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4711 echo "configure:4712: checking for $ac_hdr" >&5
4712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4714 else
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4718 #include <$ac_hdr>
4719 EOF
4720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4721 { (eval echo configure:4722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4723 if test -z "$ac_err"; then
4724 rm -rf conftest*
4725 eval "ac_cv_header_$ac_safe=yes"
4726 else
4727 echo "$ac_err" >&5
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4730 rm -rf conftest*
4731 eval "ac_cv_header_$ac_safe=no"
4732 fi
4733 rm -f conftest*
4734 fi
4735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4736 echo "$ac_t""yes" 1>&6
4737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4738 cat >> confdefs.h <<EOF
4739 #define $ac_tr_hdr 1
4740 EOF
4741 ac_has_wchar_h=yes
4742 else
4743 echo "$ac_t""no" 1>&6
4744 ac_has_wchar_h=no
4745 fi
4746 done
4747
4748 for ac_hdr in wctype.h
4749 do
4750 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4752 echo "configure:4753: checking for $ac_hdr" >&5
4753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4754 echo $ac_n "(cached) $ac_c" 1>&6
4755 else
4756 cat > conftest.$ac_ext <<EOF
4757 #line 4758 "configure"
4758 #include "confdefs.h"
4759 #include <$ac_hdr>
4760 EOF
4761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4762 { (eval echo configure:4763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4764 if test -z "$ac_err"; then
4765 rm -rf conftest*
4766 eval "ac_cv_header_$ac_safe=yes"
4767 else
4768 echo "$ac_err" >&5
4769 echo "configure: failed program was:" >&5
4770 cat conftest.$ac_ext >&5
4771 rm -rf conftest*
4772 eval "ac_cv_header_$ac_safe=no"
4773 fi
4774 rm -f conftest*
4775 fi
4776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4777 echo "$ac_t""yes" 1>&6
4778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4779 cat >> confdefs.h <<EOF
4780 #define $ac_tr_hdr 1
4781 EOF
4782 ac_has_wctype_h=yes
4783 else
4784 echo "$ac_t""no" 1>&6
4785 ac_has_wctype_h=no
4786 fi
4787 done
4788
4789
4790 if test x"$ac_has_wchar_h" = xyes &&
4791 test x"$ac_has_wctype_h" = xyes &&
4792 test x"$enable_c_mbchar" != xno; then
4793
4794 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4795 echo "configure:4796: checking for WCHAR_MIN and WCHAR_MAX" >&5
4796 cat > conftest.$ac_ext <<EOF
4797 #line 4798 "configure"
4798 #include "confdefs.h"
4799 #include <wchar.h>
4800 int main() {
4801 int i = WCHAR_MIN; int j = WCHAR_MAX;
4802 ; return 0; }
4803 EOF
4804 if { (eval echo configure:4805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4805 rm -rf conftest*
4806 has_wchar_minmax=yes
4807 else
4808 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 rm -rf conftest*
4811 has_wchar_minmax=no
4812 fi
4813 rm -f conftest*
4814 echo "$ac_t""$has_wchar_minmax" 1>&6
4815
4816 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4817 echo "configure:4818: checking for WEOF" >&5
4818 cat > conftest.$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4821
4822 #include <wchar.h>
4823 #include <stddef.h>
4824 int main() {
4825 wint_t i = WEOF;
4826 ; return 0; }
4827 EOF
4828 if { (eval echo configure:4829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4829 rm -rf conftest*
4830 has_weof=yes
4831 else
4832 echo "configure: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4834 rm -rf conftest*
4835 has_weof=no
4836 fi
4837 rm -f conftest*
4838 echo "$ac_t""$has_weof" 1>&6
4839
4840 ac_wfuncs=yes
4841 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4842 do
4843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4844 echo "configure:4845: checking for $ac_func" >&5
4845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4846 echo $ac_n "(cached) $ac_c" 1>&6
4847 else
4848 cat > conftest.$ac_ext <<EOF
4849 #line 4850 "configure"
4850 #include "confdefs.h"
4851 /* System header to define __stub macros and hopefully few prototypes,
4852 which can conflict with char $ac_func(); below. */
4853 #include <assert.h>
4854 /* Override any gcc2 internal prototype to avoid an error. */
4855 /* We use char because int might match the return type of a gcc2
4856 builtin and then its argument prototype would still apply. */
4857 char $ac_func();
4858
4859 int main() {
4860
4861 /* The GNU C library defines this for functions which it implements
4862 to always fail with ENOSYS. Some functions are actually named
4863 something starting with __ and the normal name is an alias. */
4864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4865 choke me
4866 #else
4867 $ac_func();
4868 #endif
4869
4870 ; return 0; }
4871 EOF
4872 if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4873 rm -rf conftest*
4874 eval "ac_cv_func_$ac_func=yes"
4875 else
4876 echo "configure: failed program was:" >&5
4877 cat conftest.$ac_ext >&5
4878 rm -rf conftest*
4879 eval "ac_cv_func_$ac_func=no"
4880 fi
4881 rm -f conftest*
4882 fi
4883
4884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4885 echo "$ac_t""yes" 1>&6
4886 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4887 cat >> confdefs.h <<EOF
4888 #define $ac_tr_func 1
4889 EOF
4890
4891 else
4892 echo "$ac_t""no" 1>&6
4893 \
4894 ac_wfuncs=no
4895 fi
4896 done
4897
4898
4899 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
4900 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4901 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4902 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4903 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4904 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4905 do
4906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4907 echo "configure:4908: checking for $ac_func" >&5
4908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4910 else
4911 cat > conftest.$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4914 /* System header to define __stub macros and hopefully few prototypes,
4915 which can conflict with char $ac_func(); below. */
4916 #include <assert.h>
4917 /* Override any gcc2 internal prototype to avoid an error. */
4918 /* We use char because int might match the return type of a gcc2
4919 builtin and then its argument prototype would still apply. */
4920 char $ac_func();
4921
4922 int main() {
4923
4924 /* The GNU C library defines this for functions which it implements
4925 to always fail with ENOSYS. Some functions are actually named
4926 something starting with __ and the normal name is an alias. */
4927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4928 choke me
4929 #else
4930 $ac_func();
4931 #endif
4932
4933 ; return 0; }
4934 EOF
4935 if { (eval echo configure:4936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4936 rm -rf conftest*
4937 eval "ac_cv_func_$ac_func=yes"
4938 else
4939 echo "configure: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4941 rm -rf conftest*
4942 eval "ac_cv_func_$ac_func=no"
4943 fi
4944 rm -f conftest*
4945 fi
4946
4947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4948 echo "$ac_t""yes" 1>&6
4949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4950 cat >> confdefs.h <<EOF
4951 #define $ac_tr_func 1
4952 EOF
4953
4954 else
4955 echo "$ac_t""no" 1>&6
4956 \
4957 ac_wfuncs=no
4958 fi
4959 done
4960
4961
4962 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4963 echo "configure:4964: checking for ISO C99 wchar_t support" >&5
4964 if test x"$has_weof" = xyes &&
4965 test x"$has_wchar_minmax" = xyes &&
4966 test x"$ac_wfuncs" = xyes; then
4967 ac_isoC99_wchar_t=yes
4968 else
4969 ac_isoC99_wchar_t=no
4970 fi
4971 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4972
4973 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4974 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4975 echo "configure:4976: checking for iconv.h" >&5
4976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <iconv.h>
4983 EOF
4984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4985 { (eval echo configure:4986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4987 if test -z "$ac_err"; then
4988 rm -rf conftest*
4989 eval "ac_cv_header_$ac_safe=yes"
4990 else
4991 echo "$ac_err" >&5
4992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4994 rm -rf conftest*
4995 eval "ac_cv_header_$ac_safe=no"
4996 fi
4997 rm -f conftest*
4998 fi
4999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5000 echo "$ac_t""yes" 1>&6
5001 ac_has_iconv_h=yes
5002 else
5003 echo "$ac_t""no" 1>&6
5004 ac_has_iconv_h=no
5005 fi
5006
5007 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5008 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5009 echo "configure:5010: checking for langinfo.h" >&5
5010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5011 echo $ac_n "(cached) $ac_c" 1>&6
5012 else
5013 cat > conftest.$ac_ext <<EOF
5014 #line 5015 "configure"
5015 #include "confdefs.h"
5016 #include <langinfo.h>
5017 EOF
5018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5019 { (eval echo configure:5020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5021 if test -z "$ac_err"; then
5022 rm -rf conftest*
5023 eval "ac_cv_header_$ac_safe=yes"
5024 else
5025 echo "$ac_err" >&5
5026 echo "configure: failed program was:" >&5
5027 cat conftest.$ac_ext >&5
5028 rm -rf conftest*
5029 eval "ac_cv_header_$ac_safe=no"
5030 fi
5031 rm -f conftest*
5032 fi
5033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5034 echo "$ac_t""yes" 1>&6
5035 ac_has_langinfo_h=yes
5036 else
5037 echo "$ac_t""no" 1>&6
5038 ac_has_langinfo_h=no
5039 fi
5040
5041
5042 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5043 echo "configure:5044: checking for iconv in -liconv" >&5
5044 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5045 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5047 else
5048 ac_save_LIBS="$LIBS"
5049 LIBS="-liconv $LIBS"
5050 cat > conftest.$ac_ext <<EOF
5051 #line 5052 "configure"
5052 #include "confdefs.h"
5053 /* Override any gcc2 internal prototype to avoid an error. */
5054 /* We use char because int might match the return type of a gcc2
5055 builtin and then its argument prototype would still apply. */
5056 char iconv();
5057
5058 int main() {
5059 iconv()
5060 ; return 0; }
5061 EOF
5062 if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5063 rm -rf conftest*
5064 eval "ac_cv_lib_$ac_lib_var=yes"
5065 else
5066 echo "configure: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 rm -rf conftest*
5069 eval "ac_cv_lib_$ac_lib_var=no"
5070 fi
5071 rm -f conftest*
5072 LIBS="$ac_save_LIBS"
5073
5074 fi
5075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5076 echo "$ac_t""yes" 1>&6
5077 libiconv="-liconv"
5078 else
5079 echo "$ac_t""no" 1>&6
5080 fi
5081
5082 ac_save_LIBS="$LIBS"
5083 LIBS="$LIBS $libiconv"
5084
5085 for ac_func in iconv_open iconv_close iconv nl_langinfo
5086 do
5087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5088 echo "configure:5089: checking for $ac_func" >&5
5089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6
5091 else
5092 cat > conftest.$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5095 /* System header to define __stub macros and hopefully few prototypes,
5096 which can conflict with char $ac_func(); below. */
5097 #include <assert.h>
5098 /* Override any gcc2 internal prototype to avoid an error. */
5099 /* We use char because int might match the return type of a gcc2
5100 builtin and then its argument prototype would still apply. */
5101 char $ac_func();
5102
5103 int main() {
5104
5105 /* The GNU C library defines this for functions which it implements
5106 to always fail with ENOSYS. Some functions are actually named
5107 something starting with __ and the normal name is an alias. */
5108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5109 choke me
5110 #else
5111 $ac_func();
5112 #endif
5113
5114 ; return 0; }
5115 EOF
5116 if { (eval echo configure:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5117 rm -rf conftest*
5118 eval "ac_cv_func_$ac_func=yes"
5119 else
5120 echo "configure: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5122 rm -rf conftest*
5123 eval "ac_cv_func_$ac_func=no"
5124 fi
5125 rm -f conftest*
5126 fi
5127
5128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5129 echo "$ac_t""yes" 1>&6
5130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5131 cat >> confdefs.h <<EOF
5132 #define $ac_tr_func 1
5133 EOF
5134 \
5135 ac_XPG2funcs=yes
5136 else
5137 echo "$ac_t""no" 1>&6
5138 ac_XPG2funcs=no
5139 fi
5140 done
5141
5142
5143 LIBS="$ac_save_LIBS"
5144
5145 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5146 echo "configure:5147: checking for XPG2 wchar_t support" >&5
5147 if test x"$ac_has_iconv_h" = xyes &&
5148 test x"$ac_has_langinfo_h" = xyes &&
5149 test x"$ac_XPG2funcs" = xyes; then
5150 ac_XPG2_wchar_t=yes
5151 else
5152 ac_XPG2_wchar_t=no
5153 fi
5154 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5155
5156 if test x"$ac_isoC99_wchar_t" = xyes &&
5157 test x"$ac_XPG2_wchar_t" = xyes; then
5158 cat >> confdefs.h <<\EOF
5159 #define _GLIBCXX_USE_WCHAR_T 1
5160 EOF
5161
5162 enable_wchar_t=yes
5163 fi
5164 fi
5165 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5166 echo "configure:5167: checking for enabled wchar_t specializations" >&5
5167 echo "$ac_t""$enable_wchar_t" 1>&6
5168
5169 cat >> confdefs.h <<\EOF
5170 #define HAVE_LC_MESSAGES 1
5171 EOF
5172
5173 cat >> confdefs.h <<\EOF
5174 #define HAVE_DRAND48 1
5175 EOF
5176
5177 cat >> confdefs.h <<\EOF
5178 #define HAVE_GETPAGESIZE 1
5179 EOF
5180
5181 cat >> confdefs.h <<\EOF
5182 #define HAVE_SETENV 1
5183 EOF
5184
5185 cat >> confdefs.h <<\EOF
5186 #define HAVE_SIGSETJMP 1
5187 EOF
5188
5189 cat >> confdefs.h <<\EOF
5190 #define HAVE_COPYSIGN 1
5191 EOF
5192
5193 cat >> confdefs.h <<\EOF
5194 #define HAVE_COPYSIGNF 1
5195 EOF
5196
5197 cat >> confdefs.h <<\EOF
5198 #define HAVE_FINITEF 1
5199 EOF
5200
5201 cat >> confdefs.h <<\EOF
5202 #define HAVE_FINITE 1
5203 EOF
5204
5205 cat >> confdefs.h <<\EOF
5206 #define HAVE_FREXPF 1
5207 EOF
5208
5209 cat >> confdefs.h <<\EOF
5210 #define HAVE_HYPOT 1
5211 EOF
5212
5213 cat >> confdefs.h <<\EOF
5214 #define HAVE_HYPOTF 1
5215 EOF
5216
5217 cat >> confdefs.h <<\EOF
5218 #define HAVE_ISINF 1
5219 EOF
5220
5221 cat >> confdefs.h <<\EOF
5222 #define HAVE_ISNAN 1
5223 EOF
5224
5225 cat >> confdefs.h <<\EOF
5226 #define HAVE_ISNANF 1
5227 EOF
5228
5229
5230 cat >> confdefs.h <<\EOF
5231 #define HAVE_MMAP 1
5232 EOF
5233
5234 cat >> confdefs.h <<\EOF
5235 #define HAVE_ACOSF 1
5236 EOF
5237
5238 cat >> confdefs.h <<\EOF
5239 #define HAVE_ASINF 1
5240 EOF
5241
5242 cat >> confdefs.h <<\EOF
5243 #define HAVE_ATAN2F 1
5244 EOF
5245
5246 cat >> confdefs.h <<\EOF
5247 #define HAVE_ATANF 1
5248 EOF
5249
5250 cat >> confdefs.h <<\EOF
5251 #define HAVE_CEILF 1
5252 EOF
5253
5254 cat >> confdefs.h <<\EOF
5255 #define HAVE_COPYSIGN 1
5256 EOF
5257
5258 cat >> confdefs.h <<\EOF
5259 #define HAVE_COPYSIGNF 1
5260 EOF
5261
5262 cat >> confdefs.h <<\EOF
5263 #define HAVE_COSF 1
5264 EOF
5265
5266 cat >> confdefs.h <<\EOF
5267 #define HAVE_COSHF 1
5268 EOF
5269
5270 cat >> confdefs.h <<\EOF
5271 #define HAVE_EXPF 1
5272 EOF
5273
5274 cat >> confdefs.h <<\EOF
5275 #define HAVE_FABSF 1
5276 EOF
5277
5278 cat >> confdefs.h <<\EOF
5279 #define HAVE_FLOORF 1
5280 EOF
5281
5282 cat >> confdefs.h <<\EOF
5283 #define HAVE_FMODF 1
5284 EOF
5285
5286 cat >> confdefs.h <<\EOF
5287 #define HAVE_FREXPF 1
5288 EOF
5289
5290 cat >> confdefs.h <<\EOF
5291 #define HAVE_LDEXPF 1
5292 EOF
5293
5294 cat >> confdefs.h <<\EOF
5295 #define HAVE_LOG10F 1
5296 EOF
5297
5298 cat >> confdefs.h <<\EOF
5299 #define HAVE_LOGF 1
5300 EOF
5301
5302 cat >> confdefs.h <<\EOF
5303 #define HAVE_MODFF 1
5304 EOF
5305
5306 cat >> confdefs.h <<\EOF
5307 #define HAVE_POWF 1
5308 EOF
5309
5310 cat >> confdefs.h <<\EOF
5311 #define HAVE_SINF 1
5312 EOF
5313
5314 cat >> confdefs.h <<\EOF
5315 #define HAVE_SINHF 1
5316 EOF
5317
5318 cat >> confdefs.h <<\EOF
5319 #define HAVE_SQRTF 1
5320 EOF
5321
5322 cat >> confdefs.h <<\EOF
5323 #define HAVE_TANF 1
5324 EOF
5325
5326 cat >> confdefs.h <<\EOF
5327 #define HAVE_TANHF 1
5328 EOF
5329
5330 if test x"long_double_math_on_this_cpu" = x"yes"; then
5331 cat >> confdefs.h <<\EOF
5332 #define HAVE_FINITEL 1
5333 EOF
5334
5335 cat >> confdefs.h <<\EOF
5336 #define HAVE_ISINFL 1
5337 EOF
5338
5339 cat >> confdefs.h <<\EOF
5340 #define HAVE_ISNANL 1
5341 EOF
5342
5343 fi
5344 ;;
5345 *-hpux*)
5346 os_include_dir="os/hpux"
5347 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5348 machine/endian.h machine/param.h sys/machine.h sys/types.h \
5349 fp.h locale.h float.h inttypes.h
5350 do
5351 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5352 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5353 echo "configure:5354: checking for $ac_hdr" >&5
5354 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5356 else
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5360 #include <$ac_hdr>
5361 EOF
5362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5363 { (eval echo configure:5364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5365 if test -z "$ac_err"; then
5366 rm -rf conftest*
5367 eval "ac_cv_header_$ac_safe=yes"
5368 else
5369 echo "$ac_err" >&5
5370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5372 rm -rf conftest*
5373 eval "ac_cv_header_$ac_safe=no"
5374 fi
5375 rm -f conftest*
5376 fi
5377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5378 echo "$ac_t""yes" 1>&6
5379 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5380 cat >> confdefs.h <<EOF
5381 #define $ac_tr_hdr 1
5382 EOF
5383
5384 else
5385 echo "$ac_t""no" 1>&6
5386 fi
5387 done
5388
5389 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5390
5391
5392 # If we're not using GNU ld, then there's no point in even trying these
5393 # tests. Check for that first. We should have already tested for gld
5394 # by now (in libtool), but require it now just to be safe...
5395 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5396 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5397
5398
5399 # The name set by libtool depends on the version of libtool. Shame on us
5400 # for depending on an impl detail, but c'est la vie. Older versions used
5401 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5402 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5403 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
5404 # set (hence we're using an older libtool), then set it.
5405 if test x${with_gnu_ld+set} != xset; then
5406 if test x${ac_cv_prog_gnu_ld+set} != xset; then
5407 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
5408 with_gnu_ld=no
5409 else
5410 with_gnu_ld=$ac_cv_prog_gnu_ld
5411 fi
5412 fi
5413
5414 # Start by getting the version number. I think the libtool test already
5415 # does some of this, but throws away the result.
5416
5417 ldver=`$LD --version 2>/dev/null | head -1 | \
5418 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5419
5420 glibcxx_gnu_ld_version=`echo $ldver | \
5421 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5422
5423 # Set --gc-sections.
5424 if test "$with_gnu_ld" = "notbroken"; then
5425 # GNU ld it is! Joy and bunny rabbits!
5426
5427 # All these tests are for C++; save the language and the compiler flags.
5428 # Need to do this so that g++ won't try to link in libstdc++
5429 ac_test_CFLAGS="${CFLAGS+set}"
5430 ac_save_CFLAGS="$CFLAGS"
5431 CFLAGS='-x c++ -Wl,--gc-sections'
5432
5433 # Check for -Wl,--gc-sections
5434 # XXX This test is broken at the moment, as symbols required for
5435 # linking are now in libsupc++ (not built yet.....). In addition,
5436 # this test has cored on solaris in the past. In addition,
5437 # --gc-sections doesn't really work at the moment (keeps on discarding
5438 # used sections, first .eh_frame and now some of the glibc sections for
5439 # iconv). Bzzzzt. Thanks for playing, maybe next time.
5440 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5441 echo "configure:5442: checking for ld that supports -Wl,--gc-sections" >&5
5442 if test "$cross_compiling" = yes; then
5443 ac_sectionLDflags=yes
5444 else
5445 cat > conftest.$ac_ext <<EOF
5446 #line 5447 "configure"
5447 #include "confdefs.h"
5448
5449 int main(void)
5450 {
5451 try { throw 1; }
5452 catch (...) { };
5453 return 0;
5454 }
5455
5456 EOF
5457 if { (eval echo configure:5458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5458 then
5459 ac_sectionLDflags=yes
5460 else
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5463 rm -fr conftest*
5464 ac_sectionLDflags=no
5465 fi
5466 rm -fr conftest*
5467 fi
5468
5469 if test "$ac_test_CFLAGS" = set; then
5470 CFLAGS="$ac_save_CFLAGS"
5471 else
5472 # this is the suspicious part
5473 CFLAGS=''
5474 fi
5475 if test "$ac_sectionLDflags" = "yes"; then
5476 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5477 fi
5478 echo "$ac_t""$ac_sectionLDflags" 1>&6
5479 fi
5480
5481 # Set linker optimization flags.
5482 if test x"$with_gnu_ld" = x"yes"; then
5483 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5484 fi
5485
5486
5487
5488
5489
5490 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5491 echo "configure:5492: checking for main in -lm" >&5
5492 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5494 echo $ac_n "(cached) $ac_c" 1>&6
5495 else
5496 ac_save_LIBS="$LIBS"
5497 LIBS="-lm $LIBS"
5498 cat > conftest.$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5501
5502 int main() {
5503 main()
5504 ; return 0; }
5505 EOF
5506 if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5507 rm -rf conftest*
5508 eval "ac_cv_lib_$ac_lib_var=yes"
5509 else
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5512 rm -rf conftest*
5513 eval "ac_cv_lib_$ac_lib_var=no"
5514 fi
5515 rm -f conftest*
5516 LIBS="$ac_save_LIBS"
5517
5518 fi
5519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5520 echo "$ac_t""yes" 1>&6
5521 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5522 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5523 cat >> confdefs.h <<EOF
5524 #define $ac_tr_lib 1
5525 EOF
5526
5527 LIBS="-lm $LIBS"
5528
5529 else
5530 echo "$ac_t""no" 1>&6
5531 fi
5532
5533 for ac_func in nan copysignf
5534 do
5535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5536 echo "configure:5537: checking for $ac_func" >&5
5537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6
5539 else
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5543 /* System header to define __stub macros and hopefully few prototypes,
5544 which can conflict with char $ac_func(); below. */
5545 #include <assert.h>
5546 /* Override any gcc2 internal prototype to avoid an error. */
5547 /* We use char because int might match the return type of a gcc2
5548 builtin and then its argument prototype would still apply. */
5549 char $ac_func();
5550
5551 int main() {
5552
5553 /* The GNU C library defines this for functions which it implements
5554 to always fail with ENOSYS. Some functions are actually named
5555 something starting with __ and the normal name is an alias. */
5556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5557 choke me
5558 #else
5559 $ac_func();
5560 #endif
5561
5562 ; return 0; }
5563 EOF
5564 if { (eval echo configure:5565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5565 rm -rf conftest*
5566 eval "ac_cv_func_$ac_func=yes"
5567 else
5568 echo "configure: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5570 rm -rf conftest*
5571 eval "ac_cv_func_$ac_func=no"
5572 fi
5573 rm -f conftest*
5574 fi
5575
5576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5577 echo "$ac_t""yes" 1>&6
5578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5579 cat >> confdefs.h <<EOF
5580 #define $ac_tr_func 1
5581 EOF
5582
5583 else
5584 echo "$ac_t""no" 1>&6
5585 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5586 fi
5587 done
5588
5589
5590 for ac_func in __signbit
5591 do
5592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5593 echo "configure:5594: checking for $ac_func" >&5
5594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5596 else
5597 cat > conftest.$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5600 /* System header to define __stub macros and hopefully few prototypes,
5601 which can conflict with char $ac_func(); below. */
5602 #include <assert.h>
5603 /* Override any gcc2 internal prototype to avoid an error. */
5604 /* We use char because int might match the return type of a gcc2
5605 builtin and then its argument prototype would still apply. */
5606 char $ac_func();
5607
5608 int main() {
5609
5610 /* The GNU C library defines this for functions which it implements
5611 to always fail with ENOSYS. Some functions are actually named
5612 something starting with __ and the normal name is an alias. */
5613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5614 choke me
5615 #else
5616 $ac_func();
5617 #endif
5618
5619 ; return 0; }
5620 EOF
5621 if { (eval echo configure:5622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5622 rm -rf conftest*
5623 eval "ac_cv_func_$ac_func=yes"
5624 else
5625 echo "configure: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5627 rm -rf conftest*
5628 eval "ac_cv_func_$ac_func=no"
5629 fi
5630 rm -f conftest*
5631 fi
5632
5633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5634 echo "$ac_t""yes" 1>&6
5635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5636 cat >> confdefs.h <<EOF
5637 #define $ac_tr_func 1
5638 EOF
5639
5640 else
5641 echo "$ac_t""no" 1>&6
5642 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5643 fi
5644 done
5645
5646 for ac_func in __signbitf
5647 do
5648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5649 echo "configure:5650: checking for $ac_func" >&5
5650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5652 else
5653 cat > conftest.$ac_ext <<EOF
5654 #line 5655 "configure"
5655 #include "confdefs.h"
5656 /* System header to define __stub macros and hopefully few prototypes,
5657 which can conflict with char $ac_func(); below. */
5658 #include <assert.h>
5659 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5662 char $ac_func();
5663
5664 int main() {
5665
5666 /* The GNU C library defines this for functions which it implements
5667 to always fail with ENOSYS. Some functions are actually named
5668 something starting with __ and the normal name is an alias. */
5669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5670 choke me
5671 #else
5672 $ac_func();
5673 #endif
5674
5675 ; return 0; }
5676 EOF
5677 if { (eval echo configure:5678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5678 rm -rf conftest*
5679 eval "ac_cv_func_$ac_func=yes"
5680 else
5681 echo "configure: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5683 rm -rf conftest*
5684 eval "ac_cv_func_$ac_func=no"
5685 fi
5686 rm -f conftest*
5687 fi
5688
5689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5690 echo "$ac_t""yes" 1>&6
5691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5692 cat >> confdefs.h <<EOF
5693 #define $ac_tr_func 1
5694 EOF
5695
5696 else
5697 echo "$ac_t""no" 1>&6
5698 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5699 fi
5700 done
5701
5702
5703 if test x$ac_cv_func_copysignl = x"yes"; then
5704 for ac_func in __signbitl
5705 do
5706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5707 echo "configure:5708: checking for $ac_func" >&5
5708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5709 echo $ac_n "(cached) $ac_c" 1>&6
5710 else
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5714 /* System header to define __stub macros and hopefully few prototypes,
5715 which can conflict with char $ac_func(); below. */
5716 #include <assert.h>
5717 /* Override any gcc2 internal prototype to avoid an error. */
5718 /* We use char because int might match the return type of a gcc2
5719 builtin and then its argument prototype would still apply. */
5720 char $ac_func();
5721
5722 int main() {
5723
5724 /* The GNU C library defines this for functions which it implements
5725 to always fail with ENOSYS. Some functions are actually named
5726 something starting with __ and the normal name is an alias. */
5727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5728 choke me
5729 #else
5730 $ac_func();
5731 #endif
5732
5733 ; return 0; }
5734 EOF
5735 if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5736 rm -rf conftest*
5737 eval "ac_cv_func_$ac_func=yes"
5738 else
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5741 rm -rf conftest*
5742 eval "ac_cv_func_$ac_func=no"
5743 fi
5744 rm -f conftest*
5745 fi
5746
5747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5748 echo "$ac_t""yes" 1>&6
5749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5750 cat >> confdefs.h <<EOF
5751 #define $ac_tr_func 1
5752 EOF
5753
5754 else
5755 echo "$ac_t""no" 1>&6
5756 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5757 fi
5758 done
5759
5760 fi
5761
5762 if test -n "$LIBMATHOBJS"; then
5763 need_libmath=yes
5764 fi
5765
5766
5767
5768
5769 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5770 echo "configure:5771: checking for mbstate_t" >&5
5771 cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5774 #include <wchar.h>
5775 int main() {
5776 mbstate_t teststate;
5777 ; return 0; }
5778 EOF
5779 if { (eval echo configure:5780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5780 rm -rf conftest*
5781 have_mbstate_t=yes
5782 else
5783 echo "configure: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5785 rm -rf conftest*
5786 have_mbstate_t=no
5787 fi
5788 rm -f conftest*
5789 echo "$ac_t""$have_mbstate_t" 1>&6
5790 if test x"$have_mbstate_t" = xyes; then
5791 cat >> confdefs.h <<\EOF
5792 #define HAVE_MBSTATE_T 1
5793 EOF
5794
5795 fi
5796
5797 for ac_hdr in wchar.h
5798 do
5799 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5800 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5801 echo "configure:5802: checking for $ac_hdr" >&5
5802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5803 echo $ac_n "(cached) $ac_c" 1>&6
5804 else
5805 cat > conftest.$ac_ext <<EOF
5806 #line 5807 "configure"
5807 #include "confdefs.h"
5808 #include <$ac_hdr>
5809 EOF
5810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5811 { (eval echo configure:5812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5813 if test -z "$ac_err"; then
5814 rm -rf conftest*
5815 eval "ac_cv_header_$ac_safe=yes"
5816 else
5817 echo "$ac_err" >&5
5818 echo "configure: failed program was:" >&5
5819 cat conftest.$ac_ext >&5
5820 rm -rf conftest*
5821 eval "ac_cv_header_$ac_safe=no"
5822 fi
5823 rm -f conftest*
5824 fi
5825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5826 echo "$ac_t""yes" 1>&6
5827 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5828 cat >> confdefs.h <<EOF
5829 #define $ac_tr_hdr 1
5830 EOF
5831 ac_has_wchar_h=yes
5832 else
5833 echo "$ac_t""no" 1>&6
5834 ac_has_wchar_h=no
5835 fi
5836 done
5837
5838 for ac_hdr in wctype.h
5839 do
5840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5842 echo "configure:5843: checking for $ac_hdr" >&5
5843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5844 echo $ac_n "(cached) $ac_c" 1>&6
5845 else
5846 cat > conftest.$ac_ext <<EOF
5847 #line 5848 "configure"
5848 #include "confdefs.h"
5849 #include <$ac_hdr>
5850 EOF
5851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5852 { (eval echo configure:5853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5854 if test -z "$ac_err"; then
5855 rm -rf conftest*
5856 eval "ac_cv_header_$ac_safe=yes"
5857 else
5858 echo "$ac_err" >&5
5859 echo "configure: failed program was:" >&5
5860 cat conftest.$ac_ext >&5
5861 rm -rf conftest*
5862 eval "ac_cv_header_$ac_safe=no"
5863 fi
5864 rm -f conftest*
5865 fi
5866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5867 echo "$ac_t""yes" 1>&6
5868 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5869 cat >> confdefs.h <<EOF
5870 #define $ac_tr_hdr 1
5871 EOF
5872 ac_has_wctype_h=yes
5873 else
5874 echo "$ac_t""no" 1>&6
5875 ac_has_wctype_h=no
5876 fi
5877 done
5878
5879
5880 if test x"$ac_has_wchar_h" = xyes &&
5881 test x"$ac_has_wctype_h" = xyes &&
5882 test x"$enable_c_mbchar" != xno; then
5883
5884 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5885 echo "configure:5886: checking for WCHAR_MIN and WCHAR_MAX" >&5
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5889 #include <wchar.h>
5890 int main() {
5891 int i = WCHAR_MIN; int j = WCHAR_MAX;
5892 ; return 0; }
5893 EOF
5894 if { (eval echo configure:5895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5895 rm -rf conftest*
5896 has_wchar_minmax=yes
5897 else
5898 echo "configure: failed program was:" >&5
5899 cat conftest.$ac_ext >&5
5900 rm -rf conftest*
5901 has_wchar_minmax=no
5902 fi
5903 rm -f conftest*
5904 echo "$ac_t""$has_wchar_minmax" 1>&6
5905
5906 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5907 echo "configure:5908: checking for WEOF" >&5
5908 cat > conftest.$ac_ext <<EOF
5909 #line 5910 "configure"
5910 #include "confdefs.h"
5911
5912 #include <wchar.h>
5913 #include <stddef.h>
5914 int main() {
5915 wint_t i = WEOF;
5916 ; return 0; }
5917 EOF
5918 if { (eval echo configure:5919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5919 rm -rf conftest*
5920 has_weof=yes
5921 else
5922 echo "configure: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5924 rm -rf conftest*
5925 has_weof=no
5926 fi
5927 rm -f conftest*
5928 echo "$ac_t""$has_weof" 1>&6
5929
5930 ac_wfuncs=yes
5931 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5932 do
5933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5934 echo "configure:5935: checking for $ac_func" >&5
5935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5937 else
5938 cat > conftest.$ac_ext <<EOF
5939 #line 5940 "configure"
5940 #include "confdefs.h"
5941 /* System header to define __stub macros and hopefully few prototypes,
5942 which can conflict with char $ac_func(); below. */
5943 #include <assert.h>
5944 /* Override any gcc2 internal prototype to avoid an error. */
5945 /* We use char because int might match the return type of a gcc2
5946 builtin and then its argument prototype would still apply. */
5947 char $ac_func();
5948
5949 int main() {
5950
5951 /* The GNU C library defines this for functions which it implements
5952 to always fail with ENOSYS. Some functions are actually named
5953 something starting with __ and the normal name is an alias. */
5954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5955 choke me
5956 #else
5957 $ac_func();
5958 #endif
5959
5960 ; return 0; }
5961 EOF
5962 if { (eval echo configure:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5963 rm -rf conftest*
5964 eval "ac_cv_func_$ac_func=yes"
5965 else
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5968 rm -rf conftest*
5969 eval "ac_cv_func_$ac_func=no"
5970 fi
5971 rm -f conftest*
5972 fi
5973
5974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5975 echo "$ac_t""yes" 1>&6
5976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5977 cat >> confdefs.h <<EOF
5978 #define $ac_tr_func 1
5979 EOF
5980
5981 else
5982 echo "$ac_t""no" 1>&6
5983 \
5984 ac_wfuncs=no
5985 fi
5986 done
5987
5988
5989 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5990 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5991 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5992 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5993 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5994 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5995 do
5996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5997 echo "configure:5998: checking for $ac_func" >&5
5998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6000 else
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6004 /* System header to define __stub macros and hopefully few prototypes,
6005 which can conflict with char $ac_func(); below. */
6006 #include <assert.h>
6007 /* Override any gcc2 internal prototype to avoid an error. */
6008 /* We use char because int might match the return type of a gcc2
6009 builtin and then its argument prototype would still apply. */
6010 char $ac_func();
6011
6012 int main() {
6013
6014 /* The GNU C library defines this for functions which it implements
6015 to always fail with ENOSYS. Some functions are actually named
6016 something starting with __ and the normal name is an alias. */
6017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6018 choke me
6019 #else
6020 $ac_func();
6021 #endif
6022
6023 ; return 0; }
6024 EOF
6025 if { (eval echo configure:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6026 rm -rf conftest*
6027 eval "ac_cv_func_$ac_func=yes"
6028 else
6029 echo "configure: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 rm -rf conftest*
6032 eval "ac_cv_func_$ac_func=no"
6033 fi
6034 rm -f conftest*
6035 fi
6036
6037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6038 echo "$ac_t""yes" 1>&6
6039 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6040 cat >> confdefs.h <<EOF
6041 #define $ac_tr_func 1
6042 EOF
6043
6044 else
6045 echo "$ac_t""no" 1>&6
6046 \
6047 ac_wfuncs=no
6048 fi
6049 done
6050
6051
6052 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6053 echo "configure:6054: checking for ISO C99 wchar_t support" >&5
6054 if test x"$has_weof" = xyes &&
6055 test x"$has_wchar_minmax" = xyes &&
6056 test x"$ac_wfuncs" = xyes; then
6057 ac_isoC99_wchar_t=yes
6058 else
6059 ac_isoC99_wchar_t=no
6060 fi
6061 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6062
6063 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6064 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6065 echo "configure:6066: checking for iconv.h" >&5
6066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6068 else
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 #include <iconv.h>
6073 EOF
6074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6075 { (eval echo configure:6076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6077 if test -z "$ac_err"; then
6078 rm -rf conftest*
6079 eval "ac_cv_header_$ac_safe=yes"
6080 else
6081 echo "$ac_err" >&5
6082 echo "configure: failed program was:" >&5
6083 cat conftest.$ac_ext >&5
6084 rm -rf conftest*
6085 eval "ac_cv_header_$ac_safe=no"
6086 fi
6087 rm -f conftest*
6088 fi
6089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6090 echo "$ac_t""yes" 1>&6
6091 ac_has_iconv_h=yes
6092 else
6093 echo "$ac_t""no" 1>&6
6094 ac_has_iconv_h=no
6095 fi
6096
6097 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6098 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6099 echo "configure:6100: checking for langinfo.h" >&5
6100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6101 echo $ac_n "(cached) $ac_c" 1>&6
6102 else
6103 cat > conftest.$ac_ext <<EOF
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6106 #include <langinfo.h>
6107 EOF
6108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6109 { (eval echo configure:6110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6111 if test -z "$ac_err"; then
6112 rm -rf conftest*
6113 eval "ac_cv_header_$ac_safe=yes"
6114 else
6115 echo "$ac_err" >&5
6116 echo "configure: failed program was:" >&5
6117 cat conftest.$ac_ext >&5
6118 rm -rf conftest*
6119 eval "ac_cv_header_$ac_safe=no"
6120 fi
6121 rm -f conftest*
6122 fi
6123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6124 echo "$ac_t""yes" 1>&6
6125 ac_has_langinfo_h=yes
6126 else
6127 echo "$ac_t""no" 1>&6
6128 ac_has_langinfo_h=no
6129 fi
6130
6131
6132 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6133 echo "configure:6134: checking for iconv in -liconv" >&5
6134 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6136 echo $ac_n "(cached) $ac_c" 1>&6
6137 else
6138 ac_save_LIBS="$LIBS"
6139 LIBS="-liconv $LIBS"
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 /* Override any gcc2 internal prototype to avoid an error. */
6144 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6146 char iconv();
6147
6148 int main() {
6149 iconv()
6150 ; return 0; }
6151 EOF
6152 if { (eval echo configure:6153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6153 rm -rf conftest*
6154 eval "ac_cv_lib_$ac_lib_var=yes"
6155 else
6156 echo "configure: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6158 rm -rf conftest*
6159 eval "ac_cv_lib_$ac_lib_var=no"
6160 fi
6161 rm -f conftest*
6162 LIBS="$ac_save_LIBS"
6163
6164 fi
6165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6166 echo "$ac_t""yes" 1>&6
6167 libiconv="-liconv"
6168 else
6169 echo "$ac_t""no" 1>&6
6170 fi
6171
6172 ac_save_LIBS="$LIBS"
6173 LIBS="$LIBS $libiconv"
6174
6175 for ac_func in iconv_open iconv_close iconv nl_langinfo
6176 do
6177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6178 echo "configure:6179: checking for $ac_func" >&5
6179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6180 echo $ac_n "(cached) $ac_c" 1>&6
6181 else
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure"
6184 #include "confdefs.h"
6185 /* System header to define __stub macros and hopefully few prototypes,
6186 which can conflict with char $ac_func(); below. */
6187 #include <assert.h>
6188 /* Override any gcc2 internal prototype to avoid an error. */
6189 /* We use char because int might match the return type of a gcc2
6190 builtin and then its argument prototype would still apply. */
6191 char $ac_func();
6192
6193 int main() {
6194
6195 /* The GNU C library defines this for functions which it implements
6196 to always fail with ENOSYS. Some functions are actually named
6197 something starting with __ and the normal name is an alias. */
6198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6199 choke me
6200 #else
6201 $ac_func();
6202 #endif
6203
6204 ; return 0; }
6205 EOF
6206 if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6207 rm -rf conftest*
6208 eval "ac_cv_func_$ac_func=yes"
6209 else
6210 echo "configure: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6212 rm -rf conftest*
6213 eval "ac_cv_func_$ac_func=no"
6214 fi
6215 rm -f conftest*
6216 fi
6217
6218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6219 echo "$ac_t""yes" 1>&6
6220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6221 cat >> confdefs.h <<EOF
6222 #define $ac_tr_func 1
6223 EOF
6224 \
6225 ac_XPG2funcs=yes
6226 else
6227 echo "$ac_t""no" 1>&6
6228 ac_XPG2funcs=no
6229 fi
6230 done
6231
6232
6233 LIBS="$ac_save_LIBS"
6234
6235 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6236 echo "configure:6237: checking for XPG2 wchar_t support" >&5
6237 if test x"$ac_has_iconv_h" = xyes &&
6238 test x"$ac_has_langinfo_h" = xyes &&
6239 test x"$ac_XPG2funcs" = xyes; then
6240 ac_XPG2_wchar_t=yes
6241 else
6242 ac_XPG2_wchar_t=no
6243 fi
6244 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6245
6246 if test x"$ac_isoC99_wchar_t" = xyes &&
6247 test x"$ac_XPG2_wchar_t" = xyes; then
6248 cat >> confdefs.h <<\EOF
6249 #define _GLIBCXX_USE_WCHAR_T 1
6250 EOF
6251
6252 enable_wchar_t=yes
6253 fi
6254 fi
6255 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6256 echo "configure:6257: checking for enabled wchar_t specializations" >&5
6257 echo "$ac_t""$enable_wchar_t" 1>&6
6258
6259 cat >> confdefs.h <<\EOF
6260 #define HAVE_COPYSIGN 1
6261 EOF
6262
6263 cat >> confdefs.h <<\EOF
6264 #define HAVE_COPYSIGNF 1
6265 EOF
6266
6267 cat >> confdefs.h <<\EOF
6268 #define HAVE_FREXPF 1
6269 EOF
6270
6271 cat >> confdefs.h <<\EOF
6272 #define HAVE_HYPOT 1
6273 EOF
6274
6275 case "$target" in
6276 *-hpux10*)
6277 cat >> confdefs.h <<\EOF
6278 #define HAVE_FINITE 1
6279 EOF
6280
6281 cat >> confdefs.h <<\EOF
6282 #define HAVE_FINITEF 1
6283 EOF
6284
6285 cat >> confdefs.h <<\EOF
6286 #define HAVE_ISINF 1
6287 EOF
6288
6289 cat >> confdefs.h <<\EOF
6290 #define HAVE_ISINFF 1
6291 EOF
6292
6293 cat >> confdefs.h <<\EOF
6294 #define HAVE_ISNAN 1
6295 EOF
6296
6297 cat >> confdefs.h <<\EOF
6298 #define HAVE_ISNANF 1
6299 EOF
6300
6301 ;;
6302 esac
6303 ;;
6304 *-linux*)
6305 os_include_dir="os/gnu-linux"
6306 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6307 machine/endian.h machine/param.h sys/machine.h sys/types.h \
6308 fp.h locale.h float.h inttypes.h
6309 do
6310 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6312 echo "configure:6313: checking for $ac_hdr" >&5
6313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6314 echo $ac_n "(cached) $ac_c" 1>&6
6315 else
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6319 #include <$ac_hdr>
6320 EOF
6321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6322 { (eval echo configure:6323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6324 if test -z "$ac_err"; then
6325 rm -rf conftest*
6326 eval "ac_cv_header_$ac_safe=yes"
6327 else
6328 echo "$ac_err" >&5
6329 echo "configure: failed program was:" >&5
6330 cat conftest.$ac_ext >&5
6331 rm -rf conftest*
6332 eval "ac_cv_header_$ac_safe=no"
6333 fi
6334 rm -f conftest*
6335 fi
6336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6337 echo "$ac_t""yes" 1>&6
6338 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6339 cat >> confdefs.h <<EOF
6340 #define $ac_tr_hdr 1
6341 EOF
6342
6343 else
6344 echo "$ac_t""no" 1>&6
6345 fi
6346 done
6347
6348 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6349
6350
6351 # If we're not using GNU ld, then there's no point in even trying these
6352 # tests. Check for that first. We should have already tested for gld
6353 # by now (in libtool), but require it now just to be safe...
6354 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6355 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6356
6357
6358 # The name set by libtool depends on the version of libtool. Shame on us
6359 # for depending on an impl detail, but c'est la vie. Older versions used
6360 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6361 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6362 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6363 # set (hence we're using an older libtool), then set it.
6364 if test x${with_gnu_ld+set} != xset; then
6365 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6366 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6367 with_gnu_ld=no
6368 else
6369 with_gnu_ld=$ac_cv_prog_gnu_ld
6370 fi
6371 fi
6372
6373 # Start by getting the version number. I think the libtool test already
6374 # does some of this, but throws away the result.
6375
6376 ldver=`$LD --version 2>/dev/null | head -1 | \
6377 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6378
6379 glibcxx_gnu_ld_version=`echo $ldver | \
6380 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6381
6382 # Set --gc-sections.
6383 if test "$with_gnu_ld" = "notbroken"; then
6384 # GNU ld it is! Joy and bunny rabbits!
6385
6386 # All these tests are for C++; save the language and the compiler flags.
6387 # Need to do this so that g++ won't try to link in libstdc++
6388 ac_test_CFLAGS="${CFLAGS+set}"
6389 ac_save_CFLAGS="$CFLAGS"
6390 CFLAGS='-x c++ -Wl,--gc-sections'
6391
6392 # Check for -Wl,--gc-sections
6393 # XXX This test is broken at the moment, as symbols required for
6394 # linking are now in libsupc++ (not built yet.....). In addition,
6395 # this test has cored on solaris in the past. In addition,
6396 # --gc-sections doesn't really work at the moment (keeps on discarding
6397 # used sections, first .eh_frame and now some of the glibc sections for
6398 # iconv). Bzzzzt. Thanks for playing, maybe next time.
6399 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6400 echo "configure:6401: checking for ld that supports -Wl,--gc-sections" >&5
6401 if test "$cross_compiling" = yes; then
6402 ac_sectionLDflags=yes
6403 else
6404 cat > conftest.$ac_ext <<EOF
6405 #line 6406 "configure"
6406 #include "confdefs.h"
6407
6408 int main(void)
6409 {
6410 try { throw 1; }
6411 catch (...) { };
6412 return 0;
6413 }
6414
6415 EOF
6416 if { (eval echo configure:6417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6417 then
6418 ac_sectionLDflags=yes
6419 else
6420 echo "configure: failed program was:" >&5
6421 cat conftest.$ac_ext >&5
6422 rm -fr conftest*
6423 ac_sectionLDflags=no
6424 fi
6425 rm -fr conftest*
6426 fi
6427
6428 if test "$ac_test_CFLAGS" = set; then
6429 CFLAGS="$ac_save_CFLAGS"
6430 else
6431 # this is the suspicious part
6432 CFLAGS=''
6433 fi
6434 if test "$ac_sectionLDflags" = "yes"; then
6435 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6436 fi
6437 echo "$ac_t""$ac_sectionLDflags" 1>&6
6438 fi
6439
6440 # Set linker optimization flags.
6441 if test x"$with_gnu_ld" = x"yes"; then
6442 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6443 fi
6444
6445
6446
6447
6448
6449 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6450 echo "configure:6451: checking for main in -lm" >&5
6451 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6453 echo $ac_n "(cached) $ac_c" 1>&6
6454 else
6455 ac_save_LIBS="$LIBS"
6456 LIBS="-lm $LIBS"
6457 cat > conftest.$ac_ext <<EOF
6458 #line 6459 "configure"
6459 #include "confdefs.h"
6460
6461 int main() {
6462 main()
6463 ; return 0; }
6464 EOF
6465 if { (eval echo configure:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6466 rm -rf conftest*
6467 eval "ac_cv_lib_$ac_lib_var=yes"
6468 else
6469 echo "configure: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6471 rm -rf conftest*
6472 eval "ac_cv_lib_$ac_lib_var=no"
6473 fi
6474 rm -f conftest*
6475 LIBS="$ac_save_LIBS"
6476
6477 fi
6478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6479 echo "$ac_t""yes" 1>&6
6480 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6481 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6482 cat >> confdefs.h <<EOF
6483 #define $ac_tr_lib 1
6484 EOF
6485
6486 LIBS="-lm $LIBS"
6487
6488 else
6489 echo "$ac_t""no" 1>&6
6490 fi
6491
6492 for ac_func in nan copysignf
6493 do
6494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6495 echo "configure:6496: checking for $ac_func" >&5
6496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6498 else
6499 cat > conftest.$ac_ext <<EOF
6500 #line 6501 "configure"
6501 #include "confdefs.h"
6502 /* System header to define __stub macros and hopefully few prototypes,
6503 which can conflict with char $ac_func(); below. */
6504 #include <assert.h>
6505 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6508 char $ac_func();
6509
6510 int main() {
6511
6512 /* The GNU C library defines this for functions which it implements
6513 to always fail with ENOSYS. Some functions are actually named
6514 something starting with __ and the normal name is an alias. */
6515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6516 choke me
6517 #else
6518 $ac_func();
6519 #endif
6520
6521 ; return 0; }
6522 EOF
6523 if { (eval echo configure:6524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6524 rm -rf conftest*
6525 eval "ac_cv_func_$ac_func=yes"
6526 else
6527 echo "configure: failed program was:" >&5
6528 cat conftest.$ac_ext >&5
6529 rm -rf conftest*
6530 eval "ac_cv_func_$ac_func=no"
6531 fi
6532 rm -f conftest*
6533 fi
6534
6535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6536 echo "$ac_t""yes" 1>&6
6537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6538 cat >> confdefs.h <<EOF
6539 #define $ac_tr_func 1
6540 EOF
6541
6542 else
6543 echo "$ac_t""no" 1>&6
6544 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6545 fi
6546 done
6547
6548
6549 for ac_func in __signbit
6550 do
6551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6552 echo "configure:6553: checking for $ac_func" >&5
6553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6554 echo $ac_n "(cached) $ac_c" 1>&6
6555 else
6556 cat > conftest.$ac_ext <<EOF
6557 #line 6558 "configure"
6558 #include "confdefs.h"
6559 /* System header to define __stub macros and hopefully few prototypes,
6560 which can conflict with char $ac_func(); below. */
6561 #include <assert.h>
6562 /* Override any gcc2 internal prototype to avoid an error. */
6563 /* We use char because int might match the return type of a gcc2
6564 builtin and then its argument prototype would still apply. */
6565 char $ac_func();
6566
6567 int main() {
6568
6569 /* The GNU C library defines this for functions which it implements
6570 to always fail with ENOSYS. Some functions are actually named
6571 something starting with __ and the normal name is an alias. */
6572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6573 choke me
6574 #else
6575 $ac_func();
6576 #endif
6577
6578 ; return 0; }
6579 EOF
6580 if { (eval echo configure:6581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6581 rm -rf conftest*
6582 eval "ac_cv_func_$ac_func=yes"
6583 else
6584 echo "configure: failed program was:" >&5
6585 cat conftest.$ac_ext >&5
6586 rm -rf conftest*
6587 eval "ac_cv_func_$ac_func=no"
6588 fi
6589 rm -f conftest*
6590 fi
6591
6592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6593 echo "$ac_t""yes" 1>&6
6594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6595 cat >> confdefs.h <<EOF
6596 #define $ac_tr_func 1
6597 EOF
6598
6599 else
6600 echo "$ac_t""no" 1>&6
6601 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6602 fi
6603 done
6604
6605 for ac_func in __signbitf
6606 do
6607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6608 echo "configure:6609: checking for $ac_func" >&5
6609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6611 else
6612 cat > conftest.$ac_ext <<EOF
6613 #line 6614 "configure"
6614 #include "confdefs.h"
6615 /* System header to define __stub macros and hopefully few prototypes,
6616 which can conflict with char $ac_func(); below. */
6617 #include <assert.h>
6618 /* Override any gcc2 internal prototype to avoid an error. */
6619 /* We use char because int might match the return type of a gcc2
6620 builtin and then its argument prototype would still apply. */
6621 char $ac_func();
6622
6623 int main() {
6624
6625 /* The GNU C library defines this for functions which it implements
6626 to always fail with ENOSYS. Some functions are actually named
6627 something starting with __ and the normal name is an alias. */
6628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6629 choke me
6630 #else
6631 $ac_func();
6632 #endif
6633
6634 ; return 0; }
6635 EOF
6636 if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6637 rm -rf conftest*
6638 eval "ac_cv_func_$ac_func=yes"
6639 else
6640 echo "configure: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6642 rm -rf conftest*
6643 eval "ac_cv_func_$ac_func=no"
6644 fi
6645 rm -f conftest*
6646 fi
6647
6648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6649 echo "$ac_t""yes" 1>&6
6650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6651 cat >> confdefs.h <<EOF
6652 #define $ac_tr_func 1
6653 EOF
6654
6655 else
6656 echo "$ac_t""no" 1>&6
6657 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6658 fi
6659 done
6660
6661
6662 if test x$ac_cv_func_copysignl = x"yes"; then
6663 for ac_func in __signbitl
6664 do
6665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6666 echo "configure:6667: checking for $ac_func" >&5
6667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6668 echo $ac_n "(cached) $ac_c" 1>&6
6669 else
6670 cat > conftest.$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6673 /* System header to define __stub macros and hopefully few prototypes,
6674 which can conflict with char $ac_func(); below. */
6675 #include <assert.h>
6676 /* Override any gcc2 internal prototype to avoid an error. */
6677 /* We use char because int might match the return type of a gcc2
6678 builtin and then its argument prototype would still apply. */
6679 char $ac_func();
6680
6681 int main() {
6682
6683 /* The GNU C library defines this for functions which it implements
6684 to always fail with ENOSYS. Some functions are actually named
6685 something starting with __ and the normal name is an alias. */
6686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6687 choke me
6688 #else
6689 $ac_func();
6690 #endif
6691
6692 ; return 0; }
6693 EOF
6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6695 rm -rf conftest*
6696 eval "ac_cv_func_$ac_func=yes"
6697 else
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6700 rm -rf conftest*
6701 eval "ac_cv_func_$ac_func=no"
6702 fi
6703 rm -f conftest*
6704 fi
6705
6706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6707 echo "$ac_t""yes" 1>&6
6708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6709 cat >> confdefs.h <<EOF
6710 #define $ac_tr_func 1
6711 EOF
6712
6713 else
6714 echo "$ac_t""no" 1>&6
6715 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6716 fi
6717 done
6718
6719 fi
6720
6721 if test -n "$LIBMATHOBJS"; then
6722 need_libmath=yes
6723 fi
6724
6725
6726
6727
6728 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6729 echo "configure:6730: checking for mbstate_t" >&5
6730 cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6733 #include <wchar.h>
6734 int main() {
6735 mbstate_t teststate;
6736 ; return 0; }
6737 EOF
6738 if { (eval echo configure:6739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6739 rm -rf conftest*
6740 have_mbstate_t=yes
6741 else
6742 echo "configure: failed program was:" >&5
6743 cat conftest.$ac_ext >&5
6744 rm -rf conftest*
6745 have_mbstate_t=no
6746 fi
6747 rm -f conftest*
6748 echo "$ac_t""$have_mbstate_t" 1>&6
6749 if test x"$have_mbstate_t" = xyes; then
6750 cat >> confdefs.h <<\EOF
6751 #define HAVE_MBSTATE_T 1
6752 EOF
6753
6754 fi
6755
6756 for ac_hdr in wchar.h
6757 do
6758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6760 echo "configure:6761: checking for $ac_hdr" >&5
6761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6763 else
6764 cat > conftest.$ac_ext <<EOF
6765 #line 6766 "configure"
6766 #include "confdefs.h"
6767 #include <$ac_hdr>
6768 EOF
6769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6770 { (eval echo configure:6771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6772 if test -z "$ac_err"; then
6773 rm -rf conftest*
6774 eval "ac_cv_header_$ac_safe=yes"
6775 else
6776 echo "$ac_err" >&5
6777 echo "configure: failed program was:" >&5
6778 cat conftest.$ac_ext >&5
6779 rm -rf conftest*
6780 eval "ac_cv_header_$ac_safe=no"
6781 fi
6782 rm -f conftest*
6783 fi
6784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6787 cat >> confdefs.h <<EOF
6788 #define $ac_tr_hdr 1
6789 EOF
6790 ac_has_wchar_h=yes
6791 else
6792 echo "$ac_t""no" 1>&6
6793 ac_has_wchar_h=no
6794 fi
6795 done
6796
6797 for ac_hdr in wctype.h
6798 do
6799 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6800 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6801 echo "configure:6802: checking for $ac_hdr" >&5
6802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6803 echo $ac_n "(cached) $ac_c" 1>&6
6804 else
6805 cat > conftest.$ac_ext <<EOF
6806 #line 6807 "configure"
6807 #include "confdefs.h"
6808 #include <$ac_hdr>
6809 EOF
6810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6811 { (eval echo configure:6812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6813 if test -z "$ac_err"; then
6814 rm -rf conftest*
6815 eval "ac_cv_header_$ac_safe=yes"
6816 else
6817 echo "$ac_err" >&5
6818 echo "configure: failed program was:" >&5
6819 cat conftest.$ac_ext >&5
6820 rm -rf conftest*
6821 eval "ac_cv_header_$ac_safe=no"
6822 fi
6823 rm -f conftest*
6824 fi
6825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6826 echo "$ac_t""yes" 1>&6
6827 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6828 cat >> confdefs.h <<EOF
6829 #define $ac_tr_hdr 1
6830 EOF
6831 ac_has_wctype_h=yes
6832 else
6833 echo "$ac_t""no" 1>&6
6834 ac_has_wctype_h=no
6835 fi
6836 done
6837
6838
6839 if test x"$ac_has_wchar_h" = xyes &&
6840 test x"$ac_has_wctype_h" = xyes &&
6841 test x"$enable_c_mbchar" != xno; then
6842
6843 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6844 echo "configure:6845: checking for WCHAR_MIN and WCHAR_MAX" >&5
6845 cat > conftest.$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 #include <wchar.h>
6849 int main() {
6850 int i = WCHAR_MIN; int j = WCHAR_MAX;
6851 ; return 0; }
6852 EOF
6853 if { (eval echo configure:6854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6854 rm -rf conftest*
6855 has_wchar_minmax=yes
6856 else
6857 echo "configure: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6859 rm -rf conftest*
6860 has_wchar_minmax=no
6861 fi
6862 rm -f conftest*
6863 echo "$ac_t""$has_wchar_minmax" 1>&6
6864
6865 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6866 echo "configure:6867: checking for WEOF" >&5
6867 cat > conftest.$ac_ext <<EOF
6868 #line 6869 "configure"
6869 #include "confdefs.h"
6870
6871 #include <wchar.h>
6872 #include <stddef.h>
6873 int main() {
6874 wint_t i = WEOF;
6875 ; return 0; }
6876 EOF
6877 if { (eval echo configure:6878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6878 rm -rf conftest*
6879 has_weof=yes
6880 else
6881 echo "configure: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6883 rm -rf conftest*
6884 has_weof=no
6885 fi
6886 rm -f conftest*
6887 echo "$ac_t""$has_weof" 1>&6
6888
6889 ac_wfuncs=yes
6890 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6891 do
6892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6893 echo "configure:6894: checking for $ac_func" >&5
6894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6895 echo $ac_n "(cached) $ac_c" 1>&6
6896 else
6897 cat > conftest.$ac_ext <<EOF
6898 #line 6899 "configure"
6899 #include "confdefs.h"
6900 /* System header to define __stub macros and hopefully few prototypes,
6901 which can conflict with char $ac_func(); below. */
6902 #include <assert.h>
6903 /* Override any gcc2 internal prototype to avoid an error. */
6904 /* We use char because int might match the return type of a gcc2
6905 builtin and then its argument prototype would still apply. */
6906 char $ac_func();
6907
6908 int main() {
6909
6910 /* The GNU C library defines this for functions which it implements
6911 to always fail with ENOSYS. Some functions are actually named
6912 something starting with __ and the normal name is an alias. */
6913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6914 choke me
6915 #else
6916 $ac_func();
6917 #endif
6918
6919 ; return 0; }
6920 EOF
6921 if { (eval echo configure:6922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6922 rm -rf conftest*
6923 eval "ac_cv_func_$ac_func=yes"
6924 else
6925 echo "configure: failed program was:" >&5
6926 cat conftest.$ac_ext >&5
6927 rm -rf conftest*
6928 eval "ac_cv_func_$ac_func=no"
6929 fi
6930 rm -f conftest*
6931 fi
6932
6933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6934 echo "$ac_t""yes" 1>&6
6935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6936 cat >> confdefs.h <<EOF
6937 #define $ac_tr_func 1
6938 EOF
6939
6940 else
6941 echo "$ac_t""no" 1>&6
6942 \
6943 ac_wfuncs=no
6944 fi
6945 done
6946
6947
6948 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6949 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6950 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6951 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6952 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6953 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6954 do
6955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6956 echo "configure:6957: checking for $ac_func" >&5
6957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6958 echo $ac_n "(cached) $ac_c" 1>&6
6959 else
6960 cat > conftest.$ac_ext <<EOF
6961 #line 6962 "configure"
6962 #include "confdefs.h"
6963 /* System header to define __stub macros and hopefully few prototypes,
6964 which can conflict with char $ac_func(); below. */
6965 #include <assert.h>
6966 /* Override any gcc2 internal prototype to avoid an error. */
6967 /* We use char because int might match the return type of a gcc2
6968 builtin and then its argument prototype would still apply. */
6969 char $ac_func();
6970
6971 int main() {
6972
6973 /* The GNU C library defines this for functions which it implements
6974 to always fail with ENOSYS. Some functions are actually named
6975 something starting with __ and the normal name is an alias. */
6976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6977 choke me
6978 #else
6979 $ac_func();
6980 #endif
6981
6982 ; return 0; }
6983 EOF
6984 if { (eval echo configure:6985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6985 rm -rf conftest*
6986 eval "ac_cv_func_$ac_func=yes"
6987 else
6988 echo "configure: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6990 rm -rf conftest*
6991 eval "ac_cv_func_$ac_func=no"
6992 fi
6993 rm -f conftest*
6994 fi
6995
6996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6997 echo "$ac_t""yes" 1>&6
6998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6999 cat >> confdefs.h <<EOF
7000 #define $ac_tr_func 1
7001 EOF
7002
7003 else
7004 echo "$ac_t""no" 1>&6
7005 \
7006 ac_wfuncs=no
7007 fi
7008 done
7009
7010
7011 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7012 echo "configure:7013: checking for ISO C99 wchar_t support" >&5
7013 if test x"$has_weof" = xyes &&
7014 test x"$has_wchar_minmax" = xyes &&
7015 test x"$ac_wfuncs" = xyes; then
7016 ac_isoC99_wchar_t=yes
7017 else
7018 ac_isoC99_wchar_t=no
7019 fi
7020 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7021
7022 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7023 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7024 echo "configure:7025: checking for iconv.h" >&5
7025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6
7027 else
7028 cat > conftest.$ac_ext <<EOF
7029 #line 7030 "configure"
7030 #include "confdefs.h"
7031 #include <iconv.h>
7032 EOF
7033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7034 { (eval echo configure:7035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7036 if test -z "$ac_err"; then
7037 rm -rf conftest*
7038 eval "ac_cv_header_$ac_safe=yes"
7039 else
7040 echo "$ac_err" >&5
7041 echo "configure: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7043 rm -rf conftest*
7044 eval "ac_cv_header_$ac_safe=no"
7045 fi
7046 rm -f conftest*
7047 fi
7048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7049 echo "$ac_t""yes" 1>&6
7050 ac_has_iconv_h=yes
7051 else
7052 echo "$ac_t""no" 1>&6
7053 ac_has_iconv_h=no
7054 fi
7055
7056 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7057 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7058 echo "configure:7059: checking for langinfo.h" >&5
7059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7060 echo $ac_n "(cached) $ac_c" 1>&6
7061 else
7062 cat > conftest.$ac_ext <<EOF
7063 #line 7064 "configure"
7064 #include "confdefs.h"
7065 #include <langinfo.h>
7066 EOF
7067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7068 { (eval echo configure:7069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7070 if test -z "$ac_err"; then
7071 rm -rf conftest*
7072 eval "ac_cv_header_$ac_safe=yes"
7073 else
7074 echo "$ac_err" >&5
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7077 rm -rf conftest*
7078 eval "ac_cv_header_$ac_safe=no"
7079 fi
7080 rm -f conftest*
7081 fi
7082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7083 echo "$ac_t""yes" 1>&6
7084 ac_has_langinfo_h=yes
7085 else
7086 echo "$ac_t""no" 1>&6
7087 ac_has_langinfo_h=no
7088 fi
7089
7090
7091 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7092 echo "configure:7093: checking for iconv in -liconv" >&5
7093 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7096 else
7097 ac_save_LIBS="$LIBS"
7098 LIBS="-liconv $LIBS"
7099 cat > conftest.$ac_ext <<EOF
7100 #line 7101 "configure"
7101 #include "confdefs.h"
7102 /* Override any gcc2 internal prototype to avoid an error. */
7103 /* We use char because int might match the return type of a gcc2
7104 builtin and then its argument prototype would still apply. */
7105 char iconv();
7106
7107 int main() {
7108 iconv()
7109 ; return 0; }
7110 EOF
7111 if { (eval echo configure:7112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7112 rm -rf conftest*
7113 eval "ac_cv_lib_$ac_lib_var=yes"
7114 else
7115 echo "configure: failed program was:" >&5
7116 cat conftest.$ac_ext >&5
7117 rm -rf conftest*
7118 eval "ac_cv_lib_$ac_lib_var=no"
7119 fi
7120 rm -f conftest*
7121 LIBS="$ac_save_LIBS"
7122
7123 fi
7124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7125 echo "$ac_t""yes" 1>&6
7126 libiconv="-liconv"
7127 else
7128 echo "$ac_t""no" 1>&6
7129 fi
7130
7131 ac_save_LIBS="$LIBS"
7132 LIBS="$LIBS $libiconv"
7133
7134 for ac_func in iconv_open iconv_close iconv nl_langinfo
7135 do
7136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7137 echo "configure:7138: checking for $ac_func" >&5
7138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7139 echo $ac_n "(cached) $ac_c" 1>&6
7140 else
7141 cat > conftest.$ac_ext <<EOF
7142 #line 7143 "configure"
7143 #include "confdefs.h"
7144 /* System header to define __stub macros and hopefully few prototypes,
7145 which can conflict with char $ac_func(); below. */
7146 #include <assert.h>
7147 /* Override any gcc2 internal prototype to avoid an error. */
7148 /* We use char because int might match the return type of a gcc2
7149 builtin and then its argument prototype would still apply. */
7150 char $ac_func();
7151
7152 int main() {
7153
7154 /* The GNU C library defines this for functions which it implements
7155 to always fail with ENOSYS. Some functions are actually named
7156 something starting with __ and the normal name is an alias. */
7157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7158 choke me
7159 #else
7160 $ac_func();
7161 #endif
7162
7163 ; return 0; }
7164 EOF
7165 if { (eval echo configure:7166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7166 rm -rf conftest*
7167 eval "ac_cv_func_$ac_func=yes"
7168 else
7169 echo "configure: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7171 rm -rf conftest*
7172 eval "ac_cv_func_$ac_func=no"
7173 fi
7174 rm -f conftest*
7175 fi
7176
7177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7178 echo "$ac_t""yes" 1>&6
7179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7180 cat >> confdefs.h <<EOF
7181 #define $ac_tr_func 1
7182 EOF
7183 \
7184 ac_XPG2funcs=yes
7185 else
7186 echo "$ac_t""no" 1>&6
7187 ac_XPG2funcs=no
7188 fi
7189 done
7190
7191
7192 LIBS="$ac_save_LIBS"
7193
7194 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7195 echo "configure:7196: checking for XPG2 wchar_t support" >&5
7196 if test x"$ac_has_iconv_h" = xyes &&
7197 test x"$ac_has_langinfo_h" = xyes &&
7198 test x"$ac_XPG2funcs" = xyes; then
7199 ac_XPG2_wchar_t=yes
7200 else
7201 ac_XPG2_wchar_t=no
7202 fi
7203 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7204
7205 if test x"$ac_isoC99_wchar_t" = xyes &&
7206 test x"$ac_XPG2_wchar_t" = xyes; then
7207 cat >> confdefs.h <<\EOF
7208 #define _GLIBCXX_USE_WCHAR_T 1
7209 EOF
7210
7211 enable_wchar_t=yes
7212 fi
7213 fi
7214 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7215 echo "configure:7216: checking for enabled wchar_t specializations" >&5
7216 echo "$ac_t""$enable_wchar_t" 1>&6
7217
7218 cat >> confdefs.h <<\EOF
7219 #define HAVE_COPYSIGN 1
7220 EOF
7221
7222 cat >> confdefs.h <<\EOF
7223 #define HAVE_COPYSIGNF 1
7224 EOF
7225
7226 cat >> confdefs.h <<\EOF
7227 #define HAVE_FINITE 1
7228 EOF
7229
7230 cat >> confdefs.h <<\EOF
7231 #define HAVE_FINITEF 1
7232 EOF
7233
7234 cat >> confdefs.h <<\EOF
7235 #define HAVE_FREXPF 1
7236 EOF
7237
7238 cat >> confdefs.h <<\EOF
7239 #define HAVE_HYPOTF 1
7240 EOF
7241
7242 cat >> confdefs.h <<\EOF
7243 #define HAVE_ISINF 1
7244 EOF
7245
7246 cat >> confdefs.h <<\EOF
7247 #define HAVE_ISINFF 1
7248 EOF
7249
7250 cat >> confdefs.h <<\EOF
7251 #define HAVE_ISNAN 1
7252 EOF
7253
7254 cat >> confdefs.h <<\EOF
7255 #define HAVE_ISNANF 1
7256 EOF
7257
7258 cat >> confdefs.h <<\EOF
7259 #define HAVE_SINCOS 1
7260 EOF
7261
7262 cat >> confdefs.h <<\EOF
7263 #define HAVE_SINCOSF 1
7264 EOF
7265
7266 if test x"long_double_math_on_this_cpu" = x"yes"; then
7267 cat >> confdefs.h <<\EOF
7268 #define HAVE_FINITEL 1
7269 EOF
7270
7271 cat >> confdefs.h <<\EOF
7272 #define HAVE_HYPOTL 1
7273 EOF
7274
7275 cat >> confdefs.h <<\EOF
7276 #define HAVE_ISINFL 1
7277 EOF
7278
7279 cat >> confdefs.h <<\EOF
7280 #define HAVE_ISNANL 1
7281 EOF
7282
7283 fi
7284 ;;
7285 *-mingw32*)
7286 os_include_dir="os/mingw32"
7287 for ac_hdr in sys/types.h locale.h float.h
7288 do
7289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7291 echo "configure:7292: checking for $ac_hdr" >&5
7292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7293 echo $ac_n "(cached) $ac_c" 1>&6
7294 else
7295 cat > conftest.$ac_ext <<EOF
7296 #line 7297 "configure"
7297 #include "confdefs.h"
7298 #include <$ac_hdr>
7299 EOF
7300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7301 { (eval echo configure:7302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7303 if test -z "$ac_err"; then
7304 rm -rf conftest*
7305 eval "ac_cv_header_$ac_safe=yes"
7306 else
7307 echo "$ac_err" >&5
7308 echo "configure: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7310 rm -rf conftest*
7311 eval "ac_cv_header_$ac_safe=no"
7312 fi
7313 rm -f conftest*
7314 fi
7315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7316 echo "$ac_t""yes" 1>&6
7317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7318 cat >> confdefs.h <<EOF
7319 #define $ac_tr_hdr 1
7320 EOF
7321
7322 else
7323 echo "$ac_t""no" 1>&6
7324 fi
7325 done
7326
7327
7328 # If we're not using GNU ld, then there's no point in even trying these
7329 # tests. Check for that first. We should have already tested for gld
7330 # by now (in libtool), but require it now just to be safe...
7331 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7332 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7333
7334
7335 # The name set by libtool depends on the version of libtool. Shame on us
7336 # for depending on an impl detail, but c'est la vie. Older versions used
7337 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7338 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7339 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
7340 # set (hence we're using an older libtool), then set it.
7341 if test x${with_gnu_ld+set} != xset; then
7342 if test x${ac_cv_prog_gnu_ld+set} != xset; then
7343 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
7344 with_gnu_ld=no
7345 else
7346 with_gnu_ld=$ac_cv_prog_gnu_ld
7347 fi
7348 fi
7349
7350 # Start by getting the version number. I think the libtool test already
7351 # does some of this, but throws away the result.
7352
7353 ldver=`$LD --version 2>/dev/null | head -1 | \
7354 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7355
7356 glibcxx_gnu_ld_version=`echo $ldver | \
7357 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7358
7359 # Set --gc-sections.
7360 if test "$with_gnu_ld" = "notbroken"; then
7361 # GNU ld it is! Joy and bunny rabbits!
7362
7363 # All these tests are for C++; save the language and the compiler flags.
7364 # Need to do this so that g++ won't try to link in libstdc++
7365 ac_test_CFLAGS="${CFLAGS+set}"
7366 ac_save_CFLAGS="$CFLAGS"
7367 CFLAGS='-x c++ -Wl,--gc-sections'
7368
7369 # Check for -Wl,--gc-sections
7370 # XXX This test is broken at the moment, as symbols required for
7371 # linking are now in libsupc++ (not built yet.....). In addition,
7372 # this test has cored on solaris in the past. In addition,
7373 # --gc-sections doesn't really work at the moment (keeps on discarding
7374 # used sections, first .eh_frame and now some of the glibc sections for
7375 # iconv). Bzzzzt. Thanks for playing, maybe next time.
7376 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7377 echo "configure:7378: checking for ld that supports -Wl,--gc-sections" >&5
7378 if test "$cross_compiling" = yes; then
7379 ac_sectionLDflags=yes
7380 else
7381 cat > conftest.$ac_ext <<EOF
7382 #line 7383 "configure"
7383 #include "confdefs.h"
7384
7385 int main(void)
7386 {
7387 try { throw 1; }
7388 catch (...) { };
7389 return 0;
7390 }
7391
7392 EOF
7393 if { (eval echo configure:7394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7394 then
7395 ac_sectionLDflags=yes
7396 else
7397 echo "configure: failed program was:" >&5
7398 cat conftest.$ac_ext >&5
7399 rm -fr conftest*
7400 ac_sectionLDflags=no
7401 fi
7402 rm -fr conftest*
7403 fi
7404
7405 if test "$ac_test_CFLAGS" = set; then
7406 CFLAGS="$ac_save_CFLAGS"
7407 else
7408 # this is the suspicious part
7409 CFLAGS=''
7410 fi
7411 if test "$ac_sectionLDflags" = "yes"; then
7412 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7413 fi
7414 echo "$ac_t""$ac_sectionLDflags" 1>&6
7415 fi
7416
7417 # Set linker optimization flags.
7418 if test x"$with_gnu_ld" = x"yes"; then
7419 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7420 fi
7421
7422
7423
7424
7425
7426 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7427 echo "configure:7428: checking for main in -lm" >&5
7428 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7431 else
7432 ac_save_LIBS="$LIBS"
7433 LIBS="-lm $LIBS"
7434 cat > conftest.$ac_ext <<EOF
7435 #line 7436 "configure"
7436 #include "confdefs.h"
7437
7438 int main() {
7439 main()
7440 ; return 0; }
7441 EOF
7442 if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7443 rm -rf conftest*
7444 eval "ac_cv_lib_$ac_lib_var=yes"
7445 else
7446 echo "configure: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7448 rm -rf conftest*
7449 eval "ac_cv_lib_$ac_lib_var=no"
7450 fi
7451 rm -f conftest*
7452 LIBS="$ac_save_LIBS"
7453
7454 fi
7455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7456 echo "$ac_t""yes" 1>&6
7457 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7458 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7459 cat >> confdefs.h <<EOF
7460 #define $ac_tr_lib 1
7461 EOF
7462
7463 LIBS="-lm $LIBS"
7464
7465 else
7466 echo "$ac_t""no" 1>&6
7467 fi
7468
7469 for ac_func in nan copysignf
7470 do
7471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7472 echo "configure:7473: checking for $ac_func" >&5
7473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7474 echo $ac_n "(cached) $ac_c" 1>&6
7475 else
7476 cat > conftest.$ac_ext <<EOF
7477 #line 7478 "configure"
7478 #include "confdefs.h"
7479 /* System header to define __stub macros and hopefully few prototypes,
7480 which can conflict with char $ac_func(); below. */
7481 #include <assert.h>
7482 /* Override any gcc2 internal prototype to avoid an error. */
7483 /* We use char because int might match the return type of a gcc2
7484 builtin and then its argument prototype would still apply. */
7485 char $ac_func();
7486
7487 int main() {
7488
7489 /* The GNU C library defines this for functions which it implements
7490 to always fail with ENOSYS. Some functions are actually named
7491 something starting with __ and the normal name is an alias. */
7492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7493 choke me
7494 #else
7495 $ac_func();
7496 #endif
7497
7498 ; return 0; }
7499 EOF
7500 if { (eval echo configure:7501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7501 rm -rf conftest*
7502 eval "ac_cv_func_$ac_func=yes"
7503 else
7504 echo "configure: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7506 rm -rf conftest*
7507 eval "ac_cv_func_$ac_func=no"
7508 fi
7509 rm -f conftest*
7510 fi
7511
7512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7513 echo "$ac_t""yes" 1>&6
7514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7515 cat >> confdefs.h <<EOF
7516 #define $ac_tr_func 1
7517 EOF
7518
7519 else
7520 echo "$ac_t""no" 1>&6
7521 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7522 fi
7523 done
7524
7525
7526 for ac_func in __signbit
7527 do
7528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7529 echo "configure:7530: checking for $ac_func" >&5
7530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7531 echo $ac_n "(cached) $ac_c" 1>&6
7532 else
7533 cat > conftest.$ac_ext <<EOF
7534 #line 7535 "configure"
7535 #include "confdefs.h"
7536 /* System header to define __stub macros and hopefully few prototypes,
7537 which can conflict with char $ac_func(); below. */
7538 #include <assert.h>
7539 /* Override any gcc2 internal prototype to avoid an error. */
7540 /* We use char because int might match the return type of a gcc2
7541 builtin and then its argument prototype would still apply. */
7542 char $ac_func();
7543
7544 int main() {
7545
7546 /* The GNU C library defines this for functions which it implements
7547 to always fail with ENOSYS. Some functions are actually named
7548 something starting with __ and the normal name is an alias. */
7549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7550 choke me
7551 #else
7552 $ac_func();
7553 #endif
7554
7555 ; return 0; }
7556 EOF
7557 if { (eval echo configure:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7558 rm -rf conftest*
7559 eval "ac_cv_func_$ac_func=yes"
7560 else
7561 echo "configure: failed program was:" >&5
7562 cat conftest.$ac_ext >&5
7563 rm -rf conftest*
7564 eval "ac_cv_func_$ac_func=no"
7565 fi
7566 rm -f conftest*
7567 fi
7568
7569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7570 echo "$ac_t""yes" 1>&6
7571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7572 cat >> confdefs.h <<EOF
7573 #define $ac_tr_func 1
7574 EOF
7575
7576 else
7577 echo "$ac_t""no" 1>&6
7578 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7579 fi
7580 done
7581
7582 for ac_func in __signbitf
7583 do
7584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7585 echo "configure:7586: checking for $ac_func" >&5
7586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7587 echo $ac_n "(cached) $ac_c" 1>&6
7588 else
7589 cat > conftest.$ac_ext <<EOF
7590 #line 7591 "configure"
7591 #include "confdefs.h"
7592 /* System header to define __stub macros and hopefully few prototypes,
7593 which can conflict with char $ac_func(); below. */
7594 #include <assert.h>
7595 /* Override any gcc2 internal prototype to avoid an error. */
7596 /* We use char because int might match the return type of a gcc2
7597 builtin and then its argument prototype would still apply. */
7598 char $ac_func();
7599
7600 int main() {
7601
7602 /* The GNU C library defines this for functions which it implements
7603 to always fail with ENOSYS. Some functions are actually named
7604 something starting with __ and the normal name is an alias. */
7605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7606 choke me
7607 #else
7608 $ac_func();
7609 #endif
7610
7611 ; return 0; }
7612 EOF
7613 if { (eval echo configure:7614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7614 rm -rf conftest*
7615 eval "ac_cv_func_$ac_func=yes"
7616 else
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7619 rm -rf conftest*
7620 eval "ac_cv_func_$ac_func=no"
7621 fi
7622 rm -f conftest*
7623 fi
7624
7625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7626 echo "$ac_t""yes" 1>&6
7627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7628 cat >> confdefs.h <<EOF
7629 #define $ac_tr_func 1
7630 EOF
7631
7632 else
7633 echo "$ac_t""no" 1>&6
7634 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7635 fi
7636 done
7637
7638
7639 if test x$ac_cv_func_copysignl = x"yes"; then
7640 for ac_func in __signbitl
7641 do
7642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7643 echo "configure:7644: checking for $ac_func" >&5
7644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7646 else
7647 cat > conftest.$ac_ext <<EOF
7648 #line 7649 "configure"
7649 #include "confdefs.h"
7650 /* System header to define __stub macros and hopefully few prototypes,
7651 which can conflict with char $ac_func(); below. */
7652 #include <assert.h>
7653 /* Override any gcc2 internal prototype to avoid an error. */
7654 /* We use char because int might match the return type of a gcc2
7655 builtin and then its argument prototype would still apply. */
7656 char $ac_func();
7657
7658 int main() {
7659
7660 /* The GNU C library defines this for functions which it implements
7661 to always fail with ENOSYS. Some functions are actually named
7662 something starting with __ and the normal name is an alias. */
7663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7664 choke me
7665 #else
7666 $ac_func();
7667 #endif
7668
7669 ; return 0; }
7670 EOF
7671 if { (eval echo configure:7672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7672 rm -rf conftest*
7673 eval "ac_cv_func_$ac_func=yes"
7674 else
7675 echo "configure: failed program was:" >&5
7676 cat conftest.$ac_ext >&5
7677 rm -rf conftest*
7678 eval "ac_cv_func_$ac_func=no"
7679 fi
7680 rm -f conftest*
7681 fi
7682
7683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7684 echo "$ac_t""yes" 1>&6
7685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7686 cat >> confdefs.h <<EOF
7687 #define $ac_tr_func 1
7688 EOF
7689
7690 else
7691 echo "$ac_t""no" 1>&6
7692 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7693 fi
7694 done
7695
7696 fi
7697
7698 if test -n "$LIBMATHOBJS"; then
7699 need_libmath=yes
7700 fi
7701
7702
7703
7704
7705 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7706 echo "configure:7707: checking for mbstate_t" >&5
7707 cat > conftest.$ac_ext <<EOF
7708 #line 7709 "configure"
7709 #include "confdefs.h"
7710 #include <wchar.h>
7711 int main() {
7712 mbstate_t teststate;
7713 ; return 0; }
7714 EOF
7715 if { (eval echo configure:7716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7716 rm -rf conftest*
7717 have_mbstate_t=yes
7718 else
7719 echo "configure: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7721 rm -rf conftest*
7722 have_mbstate_t=no
7723 fi
7724 rm -f conftest*
7725 echo "$ac_t""$have_mbstate_t" 1>&6
7726 if test x"$have_mbstate_t" = xyes; then
7727 cat >> confdefs.h <<\EOF
7728 #define HAVE_MBSTATE_T 1
7729 EOF
7730
7731 fi
7732
7733 for ac_hdr in wchar.h
7734 do
7735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7737 echo "configure:7738: checking for $ac_hdr" >&5
7738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7740 else
7741 cat > conftest.$ac_ext <<EOF
7742 #line 7743 "configure"
7743 #include "confdefs.h"
7744 #include <$ac_hdr>
7745 EOF
7746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7747 { (eval echo configure:7748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7749 if test -z "$ac_err"; then
7750 rm -rf conftest*
7751 eval "ac_cv_header_$ac_safe=yes"
7752 else
7753 echo "$ac_err" >&5
7754 echo "configure: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7756 rm -rf conftest*
7757 eval "ac_cv_header_$ac_safe=no"
7758 fi
7759 rm -f conftest*
7760 fi
7761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7762 echo "$ac_t""yes" 1>&6
7763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7764 cat >> confdefs.h <<EOF
7765 #define $ac_tr_hdr 1
7766 EOF
7767 ac_has_wchar_h=yes
7768 else
7769 echo "$ac_t""no" 1>&6
7770 ac_has_wchar_h=no
7771 fi
7772 done
7773
7774 for ac_hdr in wctype.h
7775 do
7776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7778 echo "configure:7779: checking for $ac_hdr" >&5
7779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7780 echo $ac_n "(cached) $ac_c" 1>&6
7781 else
7782 cat > conftest.$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7785 #include <$ac_hdr>
7786 EOF
7787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7788 { (eval echo configure:7789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7790 if test -z "$ac_err"; then
7791 rm -rf conftest*
7792 eval "ac_cv_header_$ac_safe=yes"
7793 else
7794 echo "$ac_err" >&5
7795 echo "configure: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7797 rm -rf conftest*
7798 eval "ac_cv_header_$ac_safe=no"
7799 fi
7800 rm -f conftest*
7801 fi
7802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7803 echo "$ac_t""yes" 1>&6
7804 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7805 cat >> confdefs.h <<EOF
7806 #define $ac_tr_hdr 1
7807 EOF
7808 ac_has_wctype_h=yes
7809 else
7810 echo "$ac_t""no" 1>&6
7811 ac_has_wctype_h=no
7812 fi
7813 done
7814
7815
7816 if test x"$ac_has_wchar_h" = xyes &&
7817 test x"$ac_has_wctype_h" = xyes &&
7818 test x"$enable_c_mbchar" != xno; then
7819
7820 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7821 echo "configure:7822: checking for WCHAR_MIN and WCHAR_MAX" >&5
7822 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 #include <wchar.h>
7826 int main() {
7827 int i = WCHAR_MIN; int j = WCHAR_MAX;
7828 ; return 0; }
7829 EOF
7830 if { (eval echo configure:7831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7831 rm -rf conftest*
7832 has_wchar_minmax=yes
7833 else
7834 echo "configure: failed program was:" >&5
7835 cat conftest.$ac_ext >&5
7836 rm -rf conftest*
7837 has_wchar_minmax=no
7838 fi
7839 rm -f conftest*
7840 echo "$ac_t""$has_wchar_minmax" 1>&6
7841
7842 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7843 echo "configure:7844: checking for WEOF" >&5
7844 cat > conftest.$ac_ext <<EOF
7845 #line 7846 "configure"
7846 #include "confdefs.h"
7847
7848 #include <wchar.h>
7849 #include <stddef.h>
7850 int main() {
7851 wint_t i = WEOF;
7852 ; return 0; }
7853 EOF
7854 if { (eval echo configure:7855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7855 rm -rf conftest*
7856 has_weof=yes
7857 else
7858 echo "configure: failed program was:" >&5
7859 cat conftest.$ac_ext >&5
7860 rm -rf conftest*
7861 has_weof=no
7862 fi
7863 rm -f conftest*
7864 echo "$ac_t""$has_weof" 1>&6
7865
7866 ac_wfuncs=yes
7867 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7868 do
7869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7870 echo "configure:7871: checking for $ac_func" >&5
7871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7872 echo $ac_n "(cached) $ac_c" 1>&6
7873 else
7874 cat > conftest.$ac_ext <<EOF
7875 #line 7876 "configure"
7876 #include "confdefs.h"
7877 /* System header to define __stub macros and hopefully few prototypes,
7878 which can conflict with char $ac_func(); below. */
7879 #include <assert.h>
7880 /* Override any gcc2 internal prototype to avoid an error. */
7881 /* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7883 char $ac_func();
7884
7885 int main() {
7886
7887 /* The GNU C library defines this for functions which it implements
7888 to always fail with ENOSYS. Some functions are actually named
7889 something starting with __ and the normal name is an alias. */
7890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7891 choke me
7892 #else
7893 $ac_func();
7894 #endif
7895
7896 ; return 0; }
7897 EOF
7898 if { (eval echo configure:7899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7899 rm -rf conftest*
7900 eval "ac_cv_func_$ac_func=yes"
7901 else
7902 echo "configure: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7904 rm -rf conftest*
7905 eval "ac_cv_func_$ac_func=no"
7906 fi
7907 rm -f conftest*
7908 fi
7909
7910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7911 echo "$ac_t""yes" 1>&6
7912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7913 cat >> confdefs.h <<EOF
7914 #define $ac_tr_func 1
7915 EOF
7916
7917 else
7918 echo "$ac_t""no" 1>&6
7919 \
7920 ac_wfuncs=no
7921 fi
7922 done
7923
7924
7925 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7926 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7927 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7928 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7929 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7930 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7931 do
7932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7933 echo "configure:7934: checking for $ac_func" >&5
7934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7935 echo $ac_n "(cached) $ac_c" 1>&6
7936 else
7937 cat > conftest.$ac_ext <<EOF
7938 #line 7939 "configure"
7939 #include "confdefs.h"
7940 /* System header to define __stub macros and hopefully few prototypes,
7941 which can conflict with char $ac_func(); below. */
7942 #include <assert.h>
7943 /* Override any gcc2 internal prototype to avoid an error. */
7944 /* We use char because int might match the return type of a gcc2
7945 builtin and then its argument prototype would still apply. */
7946 char $ac_func();
7947
7948 int main() {
7949
7950 /* The GNU C library defines this for functions which it implements
7951 to always fail with ENOSYS. Some functions are actually named
7952 something starting with __ and the normal name is an alias. */
7953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7954 choke me
7955 #else
7956 $ac_func();
7957 #endif
7958
7959 ; return 0; }
7960 EOF
7961 if { (eval echo configure:7962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7962 rm -rf conftest*
7963 eval "ac_cv_func_$ac_func=yes"
7964 else
7965 echo "configure: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7967 rm -rf conftest*
7968 eval "ac_cv_func_$ac_func=no"
7969 fi
7970 rm -f conftest*
7971 fi
7972
7973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7976 cat >> confdefs.h <<EOF
7977 #define $ac_tr_func 1
7978 EOF
7979
7980 else
7981 echo "$ac_t""no" 1>&6
7982 \
7983 ac_wfuncs=no
7984 fi
7985 done
7986
7987
7988 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7989 echo "configure:7990: checking for ISO C99 wchar_t support" >&5
7990 if test x"$has_weof" = xyes &&
7991 test x"$has_wchar_minmax" = xyes &&
7992 test x"$ac_wfuncs" = xyes; then
7993 ac_isoC99_wchar_t=yes
7994 else
7995 ac_isoC99_wchar_t=no
7996 fi
7997 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7998
7999 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8000 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8001 echo "configure:8002: checking for iconv.h" >&5
8002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8003 echo $ac_n "(cached) $ac_c" 1>&6
8004 else
8005 cat > conftest.$ac_ext <<EOF
8006 #line 8007 "configure"
8007 #include "confdefs.h"
8008 #include <iconv.h>
8009 EOF
8010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8011 { (eval echo configure:8012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8013 if test -z "$ac_err"; then
8014 rm -rf conftest*
8015 eval "ac_cv_header_$ac_safe=yes"
8016 else
8017 echo "$ac_err" >&5
8018 echo "configure: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8020 rm -rf conftest*
8021 eval "ac_cv_header_$ac_safe=no"
8022 fi
8023 rm -f conftest*
8024 fi
8025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8026 echo "$ac_t""yes" 1>&6
8027 ac_has_iconv_h=yes
8028 else
8029 echo "$ac_t""no" 1>&6
8030 ac_has_iconv_h=no
8031 fi
8032
8033 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8034 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8035 echo "configure:8036: checking for langinfo.h" >&5
8036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8037 echo $ac_n "(cached) $ac_c" 1>&6
8038 else
8039 cat > conftest.$ac_ext <<EOF
8040 #line 8041 "configure"
8041 #include "confdefs.h"
8042 #include <langinfo.h>
8043 EOF
8044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8045 { (eval echo configure:8046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8047 if test -z "$ac_err"; then
8048 rm -rf conftest*
8049 eval "ac_cv_header_$ac_safe=yes"
8050 else
8051 echo "$ac_err" >&5
8052 echo "configure: failed program was:" >&5
8053 cat conftest.$ac_ext >&5
8054 rm -rf conftest*
8055 eval "ac_cv_header_$ac_safe=no"
8056 fi
8057 rm -f conftest*
8058 fi
8059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8060 echo "$ac_t""yes" 1>&6
8061 ac_has_langinfo_h=yes
8062 else
8063 echo "$ac_t""no" 1>&6
8064 ac_has_langinfo_h=no
8065 fi
8066
8067
8068 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8069 echo "configure:8070: checking for iconv in -liconv" >&5
8070 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8071 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8072 echo $ac_n "(cached) $ac_c" 1>&6
8073 else
8074 ac_save_LIBS="$LIBS"
8075 LIBS="-liconv $LIBS"
8076 cat > conftest.$ac_ext <<EOF
8077 #line 8078 "configure"
8078 #include "confdefs.h"
8079 /* Override any gcc2 internal prototype to avoid an error. */
8080 /* We use char because int might match the return type of a gcc2
8081 builtin and then its argument prototype would still apply. */
8082 char iconv();
8083
8084 int main() {
8085 iconv()
8086 ; return 0; }
8087 EOF
8088 if { (eval echo configure:8089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8089 rm -rf conftest*
8090 eval "ac_cv_lib_$ac_lib_var=yes"
8091 else
8092 echo "configure: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8094 rm -rf conftest*
8095 eval "ac_cv_lib_$ac_lib_var=no"
8096 fi
8097 rm -f conftest*
8098 LIBS="$ac_save_LIBS"
8099
8100 fi
8101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8102 echo "$ac_t""yes" 1>&6
8103 libiconv="-liconv"
8104 else
8105 echo "$ac_t""no" 1>&6
8106 fi
8107
8108 ac_save_LIBS="$LIBS"
8109 LIBS="$LIBS $libiconv"
8110
8111 for ac_func in iconv_open iconv_close iconv nl_langinfo
8112 do
8113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8114 echo "configure:8115: checking for $ac_func" >&5
8115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8116 echo $ac_n "(cached) $ac_c" 1>&6
8117 else
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 /* System header to define __stub macros and hopefully few prototypes,
8122 which can conflict with char $ac_func(); below. */
8123 #include <assert.h>
8124 /* Override any gcc2 internal prototype to avoid an error. */
8125 /* We use char because int might match the return type of a gcc2
8126 builtin and then its argument prototype would still apply. */
8127 char $ac_func();
8128
8129 int main() {
8130
8131 /* The GNU C library defines this for functions which it implements
8132 to always fail with ENOSYS. Some functions are actually named
8133 something starting with __ and the normal name is an alias. */
8134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8135 choke me
8136 #else
8137 $ac_func();
8138 #endif
8139
8140 ; return 0; }
8141 EOF
8142 if { (eval echo configure:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8143 rm -rf conftest*
8144 eval "ac_cv_func_$ac_func=yes"
8145 else
8146 echo "configure: failed program was:" >&5
8147 cat conftest.$ac_ext >&5
8148 rm -rf conftest*
8149 eval "ac_cv_func_$ac_func=no"
8150 fi
8151 rm -f conftest*
8152 fi
8153
8154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8157 cat >> confdefs.h <<EOF
8158 #define $ac_tr_func 1
8159 EOF
8160 \
8161 ac_XPG2funcs=yes
8162 else
8163 echo "$ac_t""no" 1>&6
8164 ac_XPG2funcs=no
8165 fi
8166 done
8167
8168
8169 LIBS="$ac_save_LIBS"
8170
8171 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8172 echo "configure:8173: checking for XPG2 wchar_t support" >&5
8173 if test x"$ac_has_iconv_h" = xyes &&
8174 test x"$ac_has_langinfo_h" = xyes &&
8175 test x"$ac_XPG2funcs" = xyes; then
8176 ac_XPG2_wchar_t=yes
8177 else
8178 ac_XPG2_wchar_t=no
8179 fi
8180 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8181
8182 if test x"$ac_isoC99_wchar_t" = xyes &&
8183 test x"$ac_XPG2_wchar_t" = xyes; then
8184 cat >> confdefs.h <<\EOF
8185 #define _GLIBCXX_USE_WCHAR_T 1
8186 EOF
8187
8188 enable_wchar_t=yes
8189 fi
8190 fi
8191 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8192 echo "configure:8193: checking for enabled wchar_t specializations" >&5
8193 echo "$ac_t""$enable_wchar_t" 1>&6
8194
8195 ;;
8196 *-netbsd*)
8197 os_include_dir="os/bsd/netbsd"
8198 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
8199 machine/endian.h machine/param.h sys/machine.h sys/types.h \
8200 fp.h locale.h float.h inttypes.h
8201 do
8202 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8204 echo "configure:8205: checking for $ac_hdr" >&5
8205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8206 echo $ac_n "(cached) $ac_c" 1>&6
8207 else
8208 cat > conftest.$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8211 #include <$ac_hdr>
8212 EOF
8213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8214 { (eval echo configure:8215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8216 if test -z "$ac_err"; then
8217 rm -rf conftest*
8218 eval "ac_cv_header_$ac_safe=yes"
8219 else
8220 echo "$ac_err" >&5
8221 echo "configure: failed program was:" >&5
8222 cat conftest.$ac_ext >&5
8223 rm -rf conftest*
8224 eval "ac_cv_header_$ac_safe=no"
8225 fi
8226 rm -f conftest*
8227 fi
8228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8229 echo "$ac_t""yes" 1>&6
8230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8231 cat >> confdefs.h <<EOF
8232 #define $ac_tr_hdr 1
8233 EOF
8234
8235 else
8236 echo "$ac_t""no" 1>&6
8237 fi
8238 done
8239
8240 SECTION_FLAGS='-ffunction-sections -fdata-sections'
8241
8242
8243 # If we're not using GNU ld, then there's no point in even trying these
8244 # tests. Check for that first. We should have already tested for gld
8245 # by now (in libtool), but require it now just to be safe...
8246 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8247 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8248
8249
8250 # The name set by libtool depends on the version of libtool. Shame on us
8251 # for depending on an impl detail, but c'est la vie. Older versions used
8252 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8253 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8254 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8255 # set (hence we're using an older libtool), then set it.
8256 if test x${with_gnu_ld+set} != xset; then
8257 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8258 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8259 with_gnu_ld=no
8260 else
8261 with_gnu_ld=$ac_cv_prog_gnu_ld
8262 fi
8263 fi
8264
8265 # Start by getting the version number. I think the libtool test already
8266 # does some of this, but throws away the result.
8267
8268 ldver=`$LD --version 2>/dev/null | head -1 | \
8269 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8270
8271 glibcxx_gnu_ld_version=`echo $ldver | \
8272 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8273
8274 # Set --gc-sections.
8275 if test "$with_gnu_ld" = "notbroken"; then
8276 # GNU ld it is! Joy and bunny rabbits!
8277
8278 # All these tests are for C++; save the language and the compiler flags.
8279 # Need to do this so that g++ won't try to link in libstdc++
8280 ac_test_CFLAGS="${CFLAGS+set}"
8281 ac_save_CFLAGS="$CFLAGS"
8282 CFLAGS='-x c++ -Wl,--gc-sections'
8283
8284 # Check for -Wl,--gc-sections
8285 # XXX This test is broken at the moment, as symbols required for
8286 # linking are now in libsupc++ (not built yet.....). In addition,
8287 # this test has cored on solaris in the past. In addition,
8288 # --gc-sections doesn't really work at the moment (keeps on discarding
8289 # used sections, first .eh_frame and now some of the glibc sections for
8290 # iconv). Bzzzzt. Thanks for playing, maybe next time.
8291 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8292 echo "configure:8293: checking for ld that supports -Wl,--gc-sections" >&5
8293 if test "$cross_compiling" = yes; then
8294 ac_sectionLDflags=yes
8295 else
8296 cat > conftest.$ac_ext <<EOF
8297 #line 8298 "configure"
8298 #include "confdefs.h"
8299
8300 int main(void)
8301 {
8302 try { throw 1; }
8303 catch (...) { };
8304 return 0;
8305 }
8306
8307 EOF
8308 if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8309 then
8310 ac_sectionLDflags=yes
8311 else
8312 echo "configure: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8314 rm -fr conftest*
8315 ac_sectionLDflags=no
8316 fi
8317 rm -fr conftest*
8318 fi
8319
8320 if test "$ac_test_CFLAGS" = set; then
8321 CFLAGS="$ac_save_CFLAGS"
8322 else
8323 # this is the suspicious part
8324 CFLAGS=''
8325 fi
8326 if test "$ac_sectionLDflags" = "yes"; then
8327 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8328 fi
8329 echo "$ac_t""$ac_sectionLDflags" 1>&6
8330 fi
8331
8332 # Set linker optimization flags.
8333 if test x"$with_gnu_ld" = x"yes"; then
8334 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8335 fi
8336
8337
8338
8339
8340
8341 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8342 echo "configure:8343: checking for main in -lm" >&5
8343 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8346 else
8347 ac_save_LIBS="$LIBS"
8348 LIBS="-lm $LIBS"
8349 cat > conftest.$ac_ext <<EOF
8350 #line 8351 "configure"
8351 #include "confdefs.h"
8352
8353 int main() {
8354 main()
8355 ; return 0; }
8356 EOF
8357 if { (eval echo configure:8358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8358 rm -rf conftest*
8359 eval "ac_cv_lib_$ac_lib_var=yes"
8360 else
8361 echo "configure: failed program was:" >&5
8362 cat conftest.$ac_ext >&5
8363 rm -rf conftest*
8364 eval "ac_cv_lib_$ac_lib_var=no"
8365 fi
8366 rm -f conftest*
8367 LIBS="$ac_save_LIBS"
8368
8369 fi
8370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8371 echo "$ac_t""yes" 1>&6
8372 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8373 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8374 cat >> confdefs.h <<EOF
8375 #define $ac_tr_lib 1
8376 EOF
8377
8378 LIBS="-lm $LIBS"
8379
8380 else
8381 echo "$ac_t""no" 1>&6
8382 fi
8383
8384 for ac_func in nan copysignf
8385 do
8386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8387 echo "configure:8388: checking for $ac_func" >&5
8388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8389 echo $ac_n "(cached) $ac_c" 1>&6
8390 else
8391 cat > conftest.$ac_ext <<EOF
8392 #line 8393 "configure"
8393 #include "confdefs.h"
8394 /* System header to define __stub macros and hopefully few prototypes,
8395 which can conflict with char $ac_func(); below. */
8396 #include <assert.h>
8397 /* Override any gcc2 internal prototype to avoid an error. */
8398 /* We use char because int might match the return type of a gcc2
8399 builtin and then its argument prototype would still apply. */
8400 char $ac_func();
8401
8402 int main() {
8403
8404 /* The GNU C library defines this for functions which it implements
8405 to always fail with ENOSYS. Some functions are actually named
8406 something starting with __ and the normal name is an alias. */
8407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8408 choke me
8409 #else
8410 $ac_func();
8411 #endif
8412
8413 ; return 0; }
8414 EOF
8415 if { (eval echo configure:8416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8416 rm -rf conftest*
8417 eval "ac_cv_func_$ac_func=yes"
8418 else
8419 echo "configure: failed program was:" >&5
8420 cat conftest.$ac_ext >&5
8421 rm -rf conftest*
8422 eval "ac_cv_func_$ac_func=no"
8423 fi
8424 rm -f conftest*
8425 fi
8426
8427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8428 echo "$ac_t""yes" 1>&6
8429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8430 cat >> confdefs.h <<EOF
8431 #define $ac_tr_func 1
8432 EOF
8433
8434 else
8435 echo "$ac_t""no" 1>&6
8436 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8437 fi
8438 done
8439
8440
8441 for ac_func in __signbit
8442 do
8443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8444 echo "configure:8445: checking for $ac_func" >&5
8445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8446 echo $ac_n "(cached) $ac_c" 1>&6
8447 else
8448 cat > conftest.$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8451 /* System header to define __stub macros and hopefully few prototypes,
8452 which can conflict with char $ac_func(); below. */
8453 #include <assert.h>
8454 /* Override any gcc2 internal prototype to avoid an error. */
8455 /* We use char because int might match the return type of a gcc2
8456 builtin and then its argument prototype would still apply. */
8457 char $ac_func();
8458
8459 int main() {
8460
8461 /* The GNU C library defines this for functions which it implements
8462 to always fail with ENOSYS. Some functions are actually named
8463 something starting with __ and the normal name is an alias. */
8464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8465 choke me
8466 #else
8467 $ac_func();
8468 #endif
8469
8470 ; return 0; }
8471 EOF
8472 if { (eval echo configure:8473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8473 rm -rf conftest*
8474 eval "ac_cv_func_$ac_func=yes"
8475 else
8476 echo "configure: failed program was:" >&5
8477 cat conftest.$ac_ext >&5
8478 rm -rf conftest*
8479 eval "ac_cv_func_$ac_func=no"
8480 fi
8481 rm -f conftest*
8482 fi
8483
8484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8485 echo "$ac_t""yes" 1>&6
8486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8487 cat >> confdefs.h <<EOF
8488 #define $ac_tr_func 1
8489 EOF
8490
8491 else
8492 echo "$ac_t""no" 1>&6
8493 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8494 fi
8495 done
8496
8497 for ac_func in __signbitf
8498 do
8499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8500 echo "configure:8501: checking for $ac_func" >&5
8501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8502 echo $ac_n "(cached) $ac_c" 1>&6
8503 else
8504 cat > conftest.$ac_ext <<EOF
8505 #line 8506 "configure"
8506 #include "confdefs.h"
8507 /* System header to define __stub macros and hopefully few prototypes,
8508 which can conflict with char $ac_func(); below. */
8509 #include <assert.h>
8510 /* Override any gcc2 internal prototype to avoid an error. */
8511 /* We use char because int might match the return type of a gcc2
8512 builtin and then its argument prototype would still apply. */
8513 char $ac_func();
8514
8515 int main() {
8516
8517 /* The GNU C library defines this for functions which it implements
8518 to always fail with ENOSYS. Some functions are actually named
8519 something starting with __ and the normal name is an alias. */
8520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8521 choke me
8522 #else
8523 $ac_func();
8524 #endif
8525
8526 ; return 0; }
8527 EOF
8528 if { (eval echo configure:8529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8529 rm -rf conftest*
8530 eval "ac_cv_func_$ac_func=yes"
8531 else
8532 echo "configure: failed program was:" >&5
8533 cat conftest.$ac_ext >&5
8534 rm -rf conftest*
8535 eval "ac_cv_func_$ac_func=no"
8536 fi
8537 rm -f conftest*
8538 fi
8539
8540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8541 echo "$ac_t""yes" 1>&6
8542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8543 cat >> confdefs.h <<EOF
8544 #define $ac_tr_func 1
8545 EOF
8546
8547 else
8548 echo "$ac_t""no" 1>&6
8549 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8550 fi
8551 done
8552
8553
8554 if test x$ac_cv_func_copysignl = x"yes"; then
8555 for ac_func in __signbitl
8556 do
8557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8558 echo "configure:8559: checking for $ac_func" >&5
8559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8560 echo $ac_n "(cached) $ac_c" 1>&6
8561 else
8562 cat > conftest.$ac_ext <<EOF
8563 #line 8564 "configure"
8564 #include "confdefs.h"
8565 /* System header to define __stub macros and hopefully few prototypes,
8566 which can conflict with char $ac_func(); below. */
8567 #include <assert.h>
8568 /* Override any gcc2 internal prototype to avoid an error. */
8569 /* We use char because int might match the return type of a gcc2
8570 builtin and then its argument prototype would still apply. */
8571 char $ac_func();
8572
8573 int main() {
8574
8575 /* The GNU C library defines this for functions which it implements
8576 to always fail with ENOSYS. Some functions are actually named
8577 something starting with __ and the normal name is an alias. */
8578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8579 choke me
8580 #else
8581 $ac_func();
8582 #endif
8583
8584 ; return 0; }
8585 EOF
8586 if { (eval echo configure:8587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8587 rm -rf conftest*
8588 eval "ac_cv_func_$ac_func=yes"
8589 else
8590 echo "configure: failed program was:" >&5
8591 cat conftest.$ac_ext >&5
8592 rm -rf conftest*
8593 eval "ac_cv_func_$ac_func=no"
8594 fi
8595 rm -f conftest*
8596 fi
8597
8598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8599 echo "$ac_t""yes" 1>&6
8600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8601 cat >> confdefs.h <<EOF
8602 #define $ac_tr_func 1
8603 EOF
8604
8605 else
8606 echo "$ac_t""no" 1>&6
8607 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8608 fi
8609 done
8610
8611 fi
8612
8613 if test -n "$LIBMATHOBJS"; then
8614 need_libmath=yes
8615 fi
8616
8617
8618
8619
8620 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8621 echo "configure:8622: checking for mbstate_t" >&5
8622 cat > conftest.$ac_ext <<EOF
8623 #line 8624 "configure"
8624 #include "confdefs.h"
8625 #include <wchar.h>
8626 int main() {
8627 mbstate_t teststate;
8628 ; return 0; }
8629 EOF
8630 if { (eval echo configure:8631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8631 rm -rf conftest*
8632 have_mbstate_t=yes
8633 else
8634 echo "configure: failed program was:" >&5
8635 cat conftest.$ac_ext >&5
8636 rm -rf conftest*
8637 have_mbstate_t=no
8638 fi
8639 rm -f conftest*
8640 echo "$ac_t""$have_mbstate_t" 1>&6
8641 if test x"$have_mbstate_t" = xyes; then
8642 cat >> confdefs.h <<\EOF
8643 #define HAVE_MBSTATE_T 1
8644 EOF
8645
8646 fi
8647
8648 for ac_hdr in wchar.h
8649 do
8650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8652 echo "configure:8653: checking for $ac_hdr" >&5
8653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8654 echo $ac_n "(cached) $ac_c" 1>&6
8655 else
8656 cat > conftest.$ac_ext <<EOF
8657 #line 8658 "configure"
8658 #include "confdefs.h"
8659 #include <$ac_hdr>
8660 EOF
8661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8662 { (eval echo configure:8663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8664 if test -z "$ac_err"; then
8665 rm -rf conftest*
8666 eval "ac_cv_header_$ac_safe=yes"
8667 else
8668 echo "$ac_err" >&5
8669 echo "configure: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8671 rm -rf conftest*
8672 eval "ac_cv_header_$ac_safe=no"
8673 fi
8674 rm -f conftest*
8675 fi
8676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8677 echo "$ac_t""yes" 1>&6
8678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8679 cat >> confdefs.h <<EOF
8680 #define $ac_tr_hdr 1
8681 EOF
8682 ac_has_wchar_h=yes
8683 else
8684 echo "$ac_t""no" 1>&6
8685 ac_has_wchar_h=no
8686 fi
8687 done
8688
8689 for ac_hdr in wctype.h
8690 do
8691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8693 echo "configure:8694: checking for $ac_hdr" >&5
8694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8695 echo $ac_n "(cached) $ac_c" 1>&6
8696 else
8697 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8700 #include <$ac_hdr>
8701 EOF
8702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8703 { (eval echo configure:8704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8705 if test -z "$ac_err"; then
8706 rm -rf conftest*
8707 eval "ac_cv_header_$ac_safe=yes"
8708 else
8709 echo "$ac_err" >&5
8710 echo "configure: failed program was:" >&5
8711 cat conftest.$ac_ext >&5
8712 rm -rf conftest*
8713 eval "ac_cv_header_$ac_safe=no"
8714 fi
8715 rm -f conftest*
8716 fi
8717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8718 echo "$ac_t""yes" 1>&6
8719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8720 cat >> confdefs.h <<EOF
8721 #define $ac_tr_hdr 1
8722 EOF
8723 ac_has_wctype_h=yes
8724 else
8725 echo "$ac_t""no" 1>&6
8726 ac_has_wctype_h=no
8727 fi
8728 done
8729
8730
8731 if test x"$ac_has_wchar_h" = xyes &&
8732 test x"$ac_has_wctype_h" = xyes &&
8733 test x"$enable_c_mbchar" != xno; then
8734
8735 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8736 echo "configure:8737: checking for WCHAR_MIN and WCHAR_MAX" >&5
8737 cat > conftest.$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8740 #include <wchar.h>
8741 int main() {
8742 int i = WCHAR_MIN; int j = WCHAR_MAX;
8743 ; return 0; }
8744 EOF
8745 if { (eval echo configure:8746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8746 rm -rf conftest*
8747 has_wchar_minmax=yes
8748 else
8749 echo "configure: failed program was:" >&5
8750 cat conftest.$ac_ext >&5
8751 rm -rf conftest*
8752 has_wchar_minmax=no
8753 fi
8754 rm -f conftest*
8755 echo "$ac_t""$has_wchar_minmax" 1>&6
8756
8757 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8758 echo "configure:8759: checking for WEOF" >&5
8759 cat > conftest.$ac_ext <<EOF
8760 #line 8761 "configure"
8761 #include "confdefs.h"
8762
8763 #include <wchar.h>
8764 #include <stddef.h>
8765 int main() {
8766 wint_t i = WEOF;
8767 ; return 0; }
8768 EOF
8769 if { (eval echo configure:8770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8770 rm -rf conftest*
8771 has_weof=yes
8772 else
8773 echo "configure: failed program was:" >&5
8774 cat conftest.$ac_ext >&5
8775 rm -rf conftest*
8776 has_weof=no
8777 fi
8778 rm -f conftest*
8779 echo "$ac_t""$has_weof" 1>&6
8780
8781 ac_wfuncs=yes
8782 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8783 do
8784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8785 echo "configure:8786: checking for $ac_func" >&5
8786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8787 echo $ac_n "(cached) $ac_c" 1>&6
8788 else
8789 cat > conftest.$ac_ext <<EOF
8790 #line 8791 "configure"
8791 #include "confdefs.h"
8792 /* System header to define __stub macros and hopefully few prototypes,
8793 which can conflict with char $ac_func(); below. */
8794 #include <assert.h>
8795 /* Override any gcc2 internal prototype to avoid an error. */
8796 /* We use char because int might match the return type of a gcc2
8797 builtin and then its argument prototype would still apply. */
8798 char $ac_func();
8799
8800 int main() {
8801
8802 /* The GNU C library defines this for functions which it implements
8803 to always fail with ENOSYS. Some functions are actually named
8804 something starting with __ and the normal name is an alias. */
8805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8806 choke me
8807 #else
8808 $ac_func();
8809 #endif
8810
8811 ; return 0; }
8812 EOF
8813 if { (eval echo configure:8814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8814 rm -rf conftest*
8815 eval "ac_cv_func_$ac_func=yes"
8816 else
8817 echo "configure: failed program was:" >&5
8818 cat conftest.$ac_ext >&5
8819 rm -rf conftest*
8820 eval "ac_cv_func_$ac_func=no"
8821 fi
8822 rm -f conftest*
8823 fi
8824
8825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8826 echo "$ac_t""yes" 1>&6
8827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8828 cat >> confdefs.h <<EOF
8829 #define $ac_tr_func 1
8830 EOF
8831
8832 else
8833 echo "$ac_t""no" 1>&6
8834 \
8835 ac_wfuncs=no
8836 fi
8837 done
8838
8839
8840 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8841 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8842 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8843 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8844 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8845 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8846 do
8847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8848 echo "configure:8849: checking for $ac_func" >&5
8849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8850 echo $ac_n "(cached) $ac_c" 1>&6
8851 else
8852 cat > conftest.$ac_ext <<EOF
8853 #line 8854 "configure"
8854 #include "confdefs.h"
8855 /* System header to define __stub macros and hopefully few prototypes,
8856 which can conflict with char $ac_func(); below. */
8857 #include <assert.h>
8858 /* Override any gcc2 internal prototype to avoid an error. */
8859 /* We use char because int might match the return type of a gcc2
8860 builtin and then its argument prototype would still apply. */
8861 char $ac_func();
8862
8863 int main() {
8864
8865 /* The GNU C library defines this for functions which it implements
8866 to always fail with ENOSYS. Some functions are actually named
8867 something starting with __ and the normal name is an alias. */
8868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8869 choke me
8870 #else
8871 $ac_func();
8872 #endif
8873
8874 ; return 0; }
8875 EOF
8876 if { (eval echo configure:8877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8877 rm -rf conftest*
8878 eval "ac_cv_func_$ac_func=yes"
8879 else
8880 echo "configure: failed program was:" >&5
8881 cat conftest.$ac_ext >&5
8882 rm -rf conftest*
8883 eval "ac_cv_func_$ac_func=no"
8884 fi
8885 rm -f conftest*
8886 fi
8887
8888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8889 echo "$ac_t""yes" 1>&6
8890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8891 cat >> confdefs.h <<EOF
8892 #define $ac_tr_func 1
8893 EOF
8894
8895 else
8896 echo "$ac_t""no" 1>&6
8897 \
8898 ac_wfuncs=no
8899 fi
8900 done
8901
8902
8903 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8904 echo "configure:8905: checking for ISO C99 wchar_t support" >&5
8905 if test x"$has_weof" = xyes &&
8906 test x"$has_wchar_minmax" = xyes &&
8907 test x"$ac_wfuncs" = xyes; then
8908 ac_isoC99_wchar_t=yes
8909 else
8910 ac_isoC99_wchar_t=no
8911 fi
8912 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8913
8914 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8915 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8916 echo "configure:8917: checking for iconv.h" >&5
8917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8918 echo $ac_n "(cached) $ac_c" 1>&6
8919 else
8920 cat > conftest.$ac_ext <<EOF
8921 #line 8922 "configure"
8922 #include "confdefs.h"
8923 #include <iconv.h>
8924 EOF
8925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8926 { (eval echo configure:8927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8928 if test -z "$ac_err"; then
8929 rm -rf conftest*
8930 eval "ac_cv_header_$ac_safe=yes"
8931 else
8932 echo "$ac_err" >&5
8933 echo "configure: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8935 rm -rf conftest*
8936 eval "ac_cv_header_$ac_safe=no"
8937 fi
8938 rm -f conftest*
8939 fi
8940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8941 echo "$ac_t""yes" 1>&6
8942 ac_has_iconv_h=yes
8943 else
8944 echo "$ac_t""no" 1>&6
8945 ac_has_iconv_h=no
8946 fi
8947
8948 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8949 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8950 echo "configure:8951: checking for langinfo.h" >&5
8951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8953 else
8954 cat > conftest.$ac_ext <<EOF
8955 #line 8956 "configure"
8956 #include "confdefs.h"
8957 #include <langinfo.h>
8958 EOF
8959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8960 { (eval echo configure:8961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8962 if test -z "$ac_err"; then
8963 rm -rf conftest*
8964 eval "ac_cv_header_$ac_safe=yes"
8965 else
8966 echo "$ac_err" >&5
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 rm -rf conftest*
8970 eval "ac_cv_header_$ac_safe=no"
8971 fi
8972 rm -f conftest*
8973 fi
8974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8975 echo "$ac_t""yes" 1>&6
8976 ac_has_langinfo_h=yes
8977 else
8978 echo "$ac_t""no" 1>&6
8979 ac_has_langinfo_h=no
8980 fi
8981
8982
8983 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8984 echo "configure:8985: checking for iconv in -liconv" >&5
8985 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8987 echo $ac_n "(cached) $ac_c" 1>&6
8988 else
8989 ac_save_LIBS="$LIBS"
8990 LIBS="-liconv $LIBS"
8991 cat > conftest.$ac_ext <<EOF
8992 #line 8993 "configure"
8993 #include "confdefs.h"
8994 /* Override any gcc2 internal prototype to avoid an error. */
8995 /* We use char because int might match the return type of a gcc2
8996 builtin and then its argument prototype would still apply. */
8997 char iconv();
8998
8999 int main() {
9000 iconv()
9001 ; return 0; }
9002 EOF
9003 if { (eval echo configure:9004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9004 rm -rf conftest*
9005 eval "ac_cv_lib_$ac_lib_var=yes"
9006 else
9007 echo "configure: failed program was:" >&5
9008 cat conftest.$ac_ext >&5
9009 rm -rf conftest*
9010 eval "ac_cv_lib_$ac_lib_var=no"
9011 fi
9012 rm -f conftest*
9013 LIBS="$ac_save_LIBS"
9014
9015 fi
9016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9017 echo "$ac_t""yes" 1>&6
9018 libiconv="-liconv"
9019 else
9020 echo "$ac_t""no" 1>&6
9021 fi
9022
9023 ac_save_LIBS="$LIBS"
9024 LIBS="$LIBS $libiconv"
9025
9026 for ac_func in iconv_open iconv_close iconv nl_langinfo
9027 do
9028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9029 echo "configure:9030: checking for $ac_func" >&5
9030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9031 echo $ac_n "(cached) $ac_c" 1>&6
9032 else
9033 cat > conftest.$ac_ext <<EOF
9034 #line 9035 "configure"
9035 #include "confdefs.h"
9036 /* System header to define __stub macros and hopefully few prototypes,
9037 which can conflict with char $ac_func(); below. */
9038 #include <assert.h>
9039 /* Override any gcc2 internal prototype to avoid an error. */
9040 /* We use char because int might match the return type of a gcc2
9041 builtin and then its argument prototype would still apply. */
9042 char $ac_func();
9043
9044 int main() {
9045
9046 /* The GNU C library defines this for functions which it implements
9047 to always fail with ENOSYS. Some functions are actually named
9048 something starting with __ and the normal name is an alias. */
9049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9050 choke me
9051 #else
9052 $ac_func();
9053 #endif
9054
9055 ; return 0; }
9056 EOF
9057 if { (eval echo configure:9058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9058 rm -rf conftest*
9059 eval "ac_cv_func_$ac_func=yes"
9060 else
9061 echo "configure: failed program was:" >&5
9062 cat conftest.$ac_ext >&5
9063 rm -rf conftest*
9064 eval "ac_cv_func_$ac_func=no"
9065 fi
9066 rm -f conftest*
9067 fi
9068
9069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9070 echo "$ac_t""yes" 1>&6
9071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9072 cat >> confdefs.h <<EOF
9073 #define $ac_tr_func 1
9074 EOF
9075 \
9076 ac_XPG2funcs=yes
9077 else
9078 echo "$ac_t""no" 1>&6
9079 ac_XPG2funcs=no
9080 fi
9081 done
9082
9083
9084 LIBS="$ac_save_LIBS"
9085
9086 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9087 echo "configure:9088: checking for XPG2 wchar_t support" >&5
9088 if test x"$ac_has_iconv_h" = xyes &&
9089 test x"$ac_has_langinfo_h" = xyes &&
9090 test x"$ac_XPG2funcs" = xyes; then
9091 ac_XPG2_wchar_t=yes
9092 else
9093 ac_XPG2_wchar_t=no
9094 fi
9095 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9096
9097 if test x"$ac_isoC99_wchar_t" = xyes &&
9098 test x"$ac_XPG2_wchar_t" = xyes; then
9099 cat >> confdefs.h <<\EOF
9100 #define _GLIBCXX_USE_WCHAR_T 1
9101 EOF
9102
9103 enable_wchar_t=yes
9104 fi
9105 fi
9106 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9107 echo "configure:9108: checking for enabled wchar_t specializations" >&5
9108 echo "$ac_t""$enable_wchar_t" 1>&6
9109
9110 cat >> confdefs.h <<\EOF
9111 #define HAVE_COPYSIGN 1
9112 EOF
9113
9114 cat >> confdefs.h <<\EOF
9115 #define HAVE_COPYSIGNF 1
9116 EOF
9117
9118 cat >> confdefs.h <<\EOF
9119 #define HAVE_FINITEF 1
9120 EOF
9121
9122 cat >> confdefs.h <<\EOF
9123 #define HAVE_FINITE 1
9124 EOF
9125
9126 cat >> confdefs.h <<\EOF
9127 #define HAVE_FREXPF 1
9128 EOF
9129
9130 cat >> confdefs.h <<\EOF
9131 #define HAVE_HYPOTF 1
9132 EOF
9133
9134 cat >> confdefs.h <<\EOF
9135 #define HAVE_ISINF 1
9136 EOF
9137
9138 cat >> confdefs.h <<\EOF
9139 #define HAVE_ISINFF 1
9140 EOF
9141
9142 cat >> confdefs.h <<\EOF
9143 #define HAVE_ISNAN 1
9144 EOF
9145
9146 cat >> confdefs.h <<\EOF
9147 #define HAVE_ISNANF 1
9148 EOF
9149
9150 if test x"long_double_math_on_this_cpu" = x"yes"; then
9151 cat >> confdefs.h <<\EOF
9152 #define HAVE_FINITEL 1
9153 EOF
9154
9155 cat >> confdefs.h <<\EOF
9156 #define HAVE_ISINFL 1
9157 EOF
9158
9159 cat >> confdefs.h <<\EOF
9160 #define HAVE_ISNANL 1
9161 EOF
9162
9163 fi
9164 ;;
9165 *-qnx6.1* | *-qnx6.2*)
9166 os_include_dir="os/qnx/qnx6.1"
9167 SECTION_FLAGS='-ffunction-sections -fdata-sections'
9168
9169
9170 # If we're not using GNU ld, then there's no point in even trying these
9171 # tests. Check for that first. We should have already tested for gld
9172 # by now (in libtool), but require it now just to be safe...
9173 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9174 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9175
9176
9177 # The name set by libtool depends on the version of libtool. Shame on us
9178 # for depending on an impl detail, but c'est la vie. Older versions used
9179 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9180 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9181 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9182 # set (hence we're using an older libtool), then set it.
9183 if test x${with_gnu_ld+set} != xset; then
9184 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9185 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9186 with_gnu_ld=no
9187 else
9188 with_gnu_ld=$ac_cv_prog_gnu_ld
9189 fi
9190 fi
9191
9192 # Start by getting the version number. I think the libtool test already
9193 # does some of this, but throws away the result.
9194
9195 ldver=`$LD --version 2>/dev/null | head -1 | \
9196 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9197
9198 glibcxx_gnu_ld_version=`echo $ldver | \
9199 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9200
9201 # Set --gc-sections.
9202 if test "$with_gnu_ld" = "notbroken"; then
9203 # GNU ld it is! Joy and bunny rabbits!
9204
9205 # All these tests are for C++; save the language and the compiler flags.
9206 # Need to do this so that g++ won't try to link in libstdc++
9207 ac_test_CFLAGS="${CFLAGS+set}"
9208 ac_save_CFLAGS="$CFLAGS"
9209 CFLAGS='-x c++ -Wl,--gc-sections'
9210
9211 # Check for -Wl,--gc-sections
9212 # XXX This test is broken at the moment, as symbols required for
9213 # linking are now in libsupc++ (not built yet.....). In addition,
9214 # this test has cored on solaris in the past. In addition,
9215 # --gc-sections doesn't really work at the moment (keeps on discarding
9216 # used sections, first .eh_frame and now some of the glibc sections for
9217 # iconv). Bzzzzt. Thanks for playing, maybe next time.
9218 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9219 echo "configure:9220: checking for ld that supports -Wl,--gc-sections" >&5
9220 if test "$cross_compiling" = yes; then
9221 ac_sectionLDflags=yes
9222 else
9223 cat > conftest.$ac_ext <<EOF
9224 #line 9225 "configure"
9225 #include "confdefs.h"
9226
9227 int main(void)
9228 {
9229 try { throw 1; }
9230 catch (...) { };
9231 return 0;
9232 }
9233
9234 EOF
9235 if { (eval echo configure:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9236 then
9237 ac_sectionLDflags=yes
9238 else
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9241 rm -fr conftest*
9242 ac_sectionLDflags=no
9243 fi
9244 rm -fr conftest*
9245 fi
9246
9247 if test "$ac_test_CFLAGS" = set; then
9248 CFLAGS="$ac_save_CFLAGS"
9249 else
9250 # this is the suspicious part
9251 CFLAGS=''
9252 fi
9253 if test "$ac_sectionLDflags" = "yes"; then
9254 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9255 fi
9256 echo "$ac_t""$ac_sectionLDflags" 1>&6
9257 fi
9258
9259 # Set linker optimization flags.
9260 if test x"$with_gnu_ld" = x"yes"; then
9261 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9262 fi
9263
9264
9265
9266
9267
9268 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9269 echo "configure:9270: checking for main in -lm" >&5
9270 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9272 echo $ac_n "(cached) $ac_c" 1>&6
9273 else
9274 ac_save_LIBS="$LIBS"
9275 LIBS="-lm $LIBS"
9276 cat > conftest.$ac_ext <<EOF
9277 #line 9278 "configure"
9278 #include "confdefs.h"
9279
9280 int main() {
9281 main()
9282 ; return 0; }
9283 EOF
9284 if { (eval echo configure:9285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9285 rm -rf conftest*
9286 eval "ac_cv_lib_$ac_lib_var=yes"
9287 else
9288 echo "configure: failed program was:" >&5
9289 cat conftest.$ac_ext >&5
9290 rm -rf conftest*
9291 eval "ac_cv_lib_$ac_lib_var=no"
9292 fi
9293 rm -f conftest*
9294 LIBS="$ac_save_LIBS"
9295
9296 fi
9297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9298 echo "$ac_t""yes" 1>&6
9299 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9300 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9301 cat >> confdefs.h <<EOF
9302 #define $ac_tr_lib 1
9303 EOF
9304
9305 LIBS="-lm $LIBS"
9306
9307 else
9308 echo "$ac_t""no" 1>&6
9309 fi
9310
9311 for ac_func in nan copysignf
9312 do
9313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9314 echo "configure:9315: checking for $ac_func" >&5
9315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9316 echo $ac_n "(cached) $ac_c" 1>&6
9317 else
9318 cat > conftest.$ac_ext <<EOF
9319 #line 9320 "configure"
9320 #include "confdefs.h"
9321 /* System header to define __stub macros and hopefully few prototypes,
9322 which can conflict with char $ac_func(); below. */
9323 #include <assert.h>
9324 /* Override any gcc2 internal prototype to avoid an error. */
9325 /* We use char because int might match the return type of a gcc2
9326 builtin and then its argument prototype would still apply. */
9327 char $ac_func();
9328
9329 int main() {
9330
9331 /* The GNU C library defines this for functions which it implements
9332 to always fail with ENOSYS. Some functions are actually named
9333 something starting with __ and the normal name is an alias. */
9334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9335 choke me
9336 #else
9337 $ac_func();
9338 #endif
9339
9340 ; return 0; }
9341 EOF
9342 if { (eval echo configure:9343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9343 rm -rf conftest*
9344 eval "ac_cv_func_$ac_func=yes"
9345 else
9346 echo "configure: failed program was:" >&5
9347 cat conftest.$ac_ext >&5
9348 rm -rf conftest*
9349 eval "ac_cv_func_$ac_func=no"
9350 fi
9351 rm -f conftest*
9352 fi
9353
9354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9355 echo "$ac_t""yes" 1>&6
9356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9357 cat >> confdefs.h <<EOF
9358 #define $ac_tr_func 1
9359 EOF
9360
9361 else
9362 echo "$ac_t""no" 1>&6
9363 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9364 fi
9365 done
9366
9367
9368 for ac_func in __signbit
9369 do
9370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9371 echo "configure:9372: checking for $ac_func" >&5
9372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9373 echo $ac_n "(cached) $ac_c" 1>&6
9374 else
9375 cat > conftest.$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9378 /* System header to define __stub macros and hopefully few prototypes,
9379 which can conflict with char $ac_func(); below. */
9380 #include <assert.h>
9381 /* Override any gcc2 internal prototype to avoid an error. */
9382 /* We use char because int might match the return type of a gcc2
9383 builtin and then its argument prototype would still apply. */
9384 char $ac_func();
9385
9386 int main() {
9387
9388 /* The GNU C library defines this for functions which it implements
9389 to always fail with ENOSYS. Some functions are actually named
9390 something starting with __ and the normal name is an alias. */
9391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9392 choke me
9393 #else
9394 $ac_func();
9395 #endif
9396
9397 ; return 0; }
9398 EOF
9399 if { (eval echo configure:9400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9400 rm -rf conftest*
9401 eval "ac_cv_func_$ac_func=yes"
9402 else
9403 echo "configure: failed program was:" >&5
9404 cat conftest.$ac_ext >&5
9405 rm -rf conftest*
9406 eval "ac_cv_func_$ac_func=no"
9407 fi
9408 rm -f conftest*
9409 fi
9410
9411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9412 echo "$ac_t""yes" 1>&6
9413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9414 cat >> confdefs.h <<EOF
9415 #define $ac_tr_func 1
9416 EOF
9417
9418 else
9419 echo "$ac_t""no" 1>&6
9420 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9421 fi
9422 done
9423
9424 for ac_func in __signbitf
9425 do
9426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9427 echo "configure:9428: checking for $ac_func" >&5
9428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9429 echo $ac_n "(cached) $ac_c" 1>&6
9430 else
9431 cat > conftest.$ac_ext <<EOF
9432 #line 9433 "configure"
9433 #include "confdefs.h"
9434 /* System header to define __stub macros and hopefully few prototypes,
9435 which can conflict with char $ac_func(); below. */
9436 #include <assert.h>
9437 /* Override any gcc2 internal prototype to avoid an error. */
9438 /* We use char because int might match the return type of a gcc2
9439 builtin and then its argument prototype would still apply. */
9440 char $ac_func();
9441
9442 int main() {
9443
9444 /* The GNU C library defines this for functions which it implements
9445 to always fail with ENOSYS. Some functions are actually named
9446 something starting with __ and the normal name is an alias. */
9447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9448 choke me
9449 #else
9450 $ac_func();
9451 #endif
9452
9453 ; return 0; }
9454 EOF
9455 if { (eval echo configure:9456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9456 rm -rf conftest*
9457 eval "ac_cv_func_$ac_func=yes"
9458 else
9459 echo "configure: failed program was:" >&5
9460 cat conftest.$ac_ext >&5
9461 rm -rf conftest*
9462 eval "ac_cv_func_$ac_func=no"
9463 fi
9464 rm -f conftest*
9465 fi
9466
9467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9468 echo "$ac_t""yes" 1>&6
9469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9470 cat >> confdefs.h <<EOF
9471 #define $ac_tr_func 1
9472 EOF
9473
9474 else
9475 echo "$ac_t""no" 1>&6
9476 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9477 fi
9478 done
9479
9480
9481 if test x$ac_cv_func_copysignl = x"yes"; then
9482 for ac_func in __signbitl
9483 do
9484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9485 echo "configure:9486: checking for $ac_func" >&5
9486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9487 echo $ac_n "(cached) $ac_c" 1>&6
9488 else
9489 cat > conftest.$ac_ext <<EOF
9490 #line 9491 "configure"
9491 #include "confdefs.h"
9492 /* System header to define __stub macros and hopefully few prototypes,
9493 which can conflict with char $ac_func(); below. */
9494 #include <assert.h>
9495 /* Override any gcc2 internal prototype to avoid an error. */
9496 /* We use char because int might match the return type of a gcc2
9497 builtin and then its argument prototype would still apply. */
9498 char $ac_func();
9499
9500 int main() {
9501
9502 /* The GNU C library defines this for functions which it implements
9503 to always fail with ENOSYS. Some functions are actually named
9504 something starting with __ and the normal name is an alias. */
9505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9506 choke me
9507 #else
9508 $ac_func();
9509 #endif
9510
9511 ; return 0; }
9512 EOF
9513 if { (eval echo configure:9514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9514 rm -rf conftest*
9515 eval "ac_cv_func_$ac_func=yes"
9516 else
9517 echo "configure: failed program was:" >&5
9518 cat conftest.$ac_ext >&5
9519 rm -rf conftest*
9520 eval "ac_cv_func_$ac_func=no"
9521 fi
9522 rm -f conftest*
9523 fi
9524
9525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9526 echo "$ac_t""yes" 1>&6
9527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9528 cat >> confdefs.h <<EOF
9529 #define $ac_tr_func 1
9530 EOF
9531
9532 else
9533 echo "$ac_t""no" 1>&6
9534 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9535 fi
9536 done
9537
9538 fi
9539
9540 if test -n "$LIBMATHOBJS"; then
9541 need_libmath=yes
9542 fi
9543
9544
9545
9546
9547 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9548 echo "configure:9549: checking for mbstate_t" >&5
9549 cat > conftest.$ac_ext <<EOF
9550 #line 9551 "configure"
9551 #include "confdefs.h"
9552 #include <wchar.h>
9553 int main() {
9554 mbstate_t teststate;
9555 ; return 0; }
9556 EOF
9557 if { (eval echo configure:9558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9558 rm -rf conftest*
9559 have_mbstate_t=yes
9560 else
9561 echo "configure: failed program was:" >&5
9562 cat conftest.$ac_ext >&5
9563 rm -rf conftest*
9564 have_mbstate_t=no
9565 fi
9566 rm -f conftest*
9567 echo "$ac_t""$have_mbstate_t" 1>&6
9568 if test x"$have_mbstate_t" = xyes; then
9569 cat >> confdefs.h <<\EOF
9570 #define HAVE_MBSTATE_T 1
9571 EOF
9572
9573 fi
9574
9575 for ac_hdr in wchar.h
9576 do
9577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9579 echo "configure:9580: checking for $ac_hdr" >&5
9580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9582 else
9583 cat > conftest.$ac_ext <<EOF
9584 #line 9585 "configure"
9585 #include "confdefs.h"
9586 #include <$ac_hdr>
9587 EOF
9588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9589 { (eval echo configure:9590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9591 if test -z "$ac_err"; then
9592 rm -rf conftest*
9593 eval "ac_cv_header_$ac_safe=yes"
9594 else
9595 echo "$ac_err" >&5
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9598 rm -rf conftest*
9599 eval "ac_cv_header_$ac_safe=no"
9600 fi
9601 rm -f conftest*
9602 fi
9603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9604 echo "$ac_t""yes" 1>&6
9605 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9606 cat >> confdefs.h <<EOF
9607 #define $ac_tr_hdr 1
9608 EOF
9609 ac_has_wchar_h=yes
9610 else
9611 echo "$ac_t""no" 1>&6
9612 ac_has_wchar_h=no
9613 fi
9614 done
9615
9616 for ac_hdr in wctype.h
9617 do
9618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9620 echo "configure:9621: checking for $ac_hdr" >&5
9621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9622 echo $ac_n "(cached) $ac_c" 1>&6
9623 else
9624 cat > conftest.$ac_ext <<EOF
9625 #line 9626 "configure"
9626 #include "confdefs.h"
9627 #include <$ac_hdr>
9628 EOF
9629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9630 { (eval echo configure:9631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9632 if test -z "$ac_err"; then
9633 rm -rf conftest*
9634 eval "ac_cv_header_$ac_safe=yes"
9635 else
9636 echo "$ac_err" >&5
9637 echo "configure: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
9639 rm -rf conftest*
9640 eval "ac_cv_header_$ac_safe=no"
9641 fi
9642 rm -f conftest*
9643 fi
9644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9645 echo "$ac_t""yes" 1>&6
9646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9647 cat >> confdefs.h <<EOF
9648 #define $ac_tr_hdr 1
9649 EOF
9650 ac_has_wctype_h=yes
9651 else
9652 echo "$ac_t""no" 1>&6
9653 ac_has_wctype_h=no
9654 fi
9655 done
9656
9657
9658 if test x"$ac_has_wchar_h" = xyes &&
9659 test x"$ac_has_wctype_h" = xyes &&
9660 test x"$enable_c_mbchar" != xno; then
9661
9662 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9663 echo "configure:9664: checking for WCHAR_MIN and WCHAR_MAX" >&5
9664 cat > conftest.$ac_ext <<EOF
9665 #line 9666 "configure"
9666 #include "confdefs.h"
9667 #include <wchar.h>
9668 int main() {
9669 int i = WCHAR_MIN; int j = WCHAR_MAX;
9670 ; return 0; }
9671 EOF
9672 if { (eval echo configure:9673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9673 rm -rf conftest*
9674 has_wchar_minmax=yes
9675 else
9676 echo "configure: failed program was:" >&5
9677 cat conftest.$ac_ext >&5
9678 rm -rf conftest*
9679 has_wchar_minmax=no
9680 fi
9681 rm -f conftest*
9682 echo "$ac_t""$has_wchar_minmax" 1>&6
9683
9684 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9685 echo "configure:9686: checking for WEOF" >&5
9686 cat > conftest.$ac_ext <<EOF
9687 #line 9688 "configure"
9688 #include "confdefs.h"
9689
9690 #include <wchar.h>
9691 #include <stddef.h>
9692 int main() {
9693 wint_t i = WEOF;
9694 ; return 0; }
9695 EOF
9696 if { (eval echo configure:9697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9697 rm -rf conftest*
9698 has_weof=yes
9699 else
9700 echo "configure: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
9702 rm -rf conftest*
9703 has_weof=no
9704 fi
9705 rm -f conftest*
9706 echo "$ac_t""$has_weof" 1>&6
9707
9708 ac_wfuncs=yes
9709 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9710 do
9711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9712 echo "configure:9713: checking for $ac_func" >&5
9713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9714 echo $ac_n "(cached) $ac_c" 1>&6
9715 else
9716 cat > conftest.$ac_ext <<EOF
9717 #line 9718 "configure"
9718 #include "confdefs.h"
9719 /* System header to define __stub macros and hopefully few prototypes,
9720 which can conflict with char $ac_func(); below. */
9721 #include <assert.h>
9722 /* Override any gcc2 internal prototype to avoid an error. */
9723 /* We use char because int might match the return type of a gcc2
9724 builtin and then its argument prototype would still apply. */
9725 char $ac_func();
9726
9727 int main() {
9728
9729 /* The GNU C library defines this for functions which it implements
9730 to always fail with ENOSYS. Some functions are actually named
9731 something starting with __ and the normal name is an alias. */
9732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9733 choke me
9734 #else
9735 $ac_func();
9736 #endif
9737
9738 ; return 0; }
9739 EOF
9740 if { (eval echo configure:9741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9741 rm -rf conftest*
9742 eval "ac_cv_func_$ac_func=yes"
9743 else
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9746 rm -rf conftest*
9747 eval "ac_cv_func_$ac_func=no"
9748 fi
9749 rm -f conftest*
9750 fi
9751
9752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9753 echo "$ac_t""yes" 1>&6
9754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9755 cat >> confdefs.h <<EOF
9756 #define $ac_tr_func 1
9757 EOF
9758
9759 else
9760 echo "$ac_t""no" 1>&6
9761 \
9762 ac_wfuncs=no
9763 fi
9764 done
9765
9766
9767 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9768 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9769 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9770 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9771 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9772 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9773 do
9774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9775 echo "configure:9776: checking for $ac_func" >&5
9776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9777 echo $ac_n "(cached) $ac_c" 1>&6
9778 else
9779 cat > conftest.$ac_ext <<EOF
9780 #line 9781 "configure"
9781 #include "confdefs.h"
9782 /* System header to define __stub macros and hopefully few prototypes,
9783 which can conflict with char $ac_func(); below. */
9784 #include <assert.h>
9785 /* Override any gcc2 internal prototype to avoid an error. */
9786 /* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9788 char $ac_func();
9789
9790 int main() {
9791
9792 /* The GNU C library defines this for functions which it implements
9793 to always fail with ENOSYS. Some functions are actually named
9794 something starting with __ and the normal name is an alias. */
9795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9796 choke me
9797 #else
9798 $ac_func();
9799 #endif
9800
9801 ; return 0; }
9802 EOF
9803 if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9804 rm -rf conftest*
9805 eval "ac_cv_func_$ac_func=yes"
9806 else
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9809 rm -rf conftest*
9810 eval "ac_cv_func_$ac_func=no"
9811 fi
9812 rm -f conftest*
9813 fi
9814
9815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9816 echo "$ac_t""yes" 1>&6
9817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9818 cat >> confdefs.h <<EOF
9819 #define $ac_tr_func 1
9820 EOF
9821
9822 else
9823 echo "$ac_t""no" 1>&6
9824 \
9825 ac_wfuncs=no
9826 fi
9827 done
9828
9829
9830 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9831 echo "configure:9832: checking for ISO C99 wchar_t support" >&5
9832 if test x"$has_weof" = xyes &&
9833 test x"$has_wchar_minmax" = xyes &&
9834 test x"$ac_wfuncs" = xyes; then
9835 ac_isoC99_wchar_t=yes
9836 else
9837 ac_isoC99_wchar_t=no
9838 fi
9839 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9840
9841 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9842 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9843 echo "configure:9844: checking for iconv.h" >&5
9844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9845 echo $ac_n "(cached) $ac_c" 1>&6
9846 else
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 #include <iconv.h>
9851 EOF
9852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9853 { (eval echo configure:9854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9855 if test -z "$ac_err"; then
9856 rm -rf conftest*
9857 eval "ac_cv_header_$ac_safe=yes"
9858 else
9859 echo "$ac_err" >&5
9860 echo "configure: failed program was:" >&5
9861 cat conftest.$ac_ext >&5
9862 rm -rf conftest*
9863 eval "ac_cv_header_$ac_safe=no"
9864 fi
9865 rm -f conftest*
9866 fi
9867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9868 echo "$ac_t""yes" 1>&6
9869 ac_has_iconv_h=yes
9870 else
9871 echo "$ac_t""no" 1>&6
9872 ac_has_iconv_h=no
9873 fi
9874
9875 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9876 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9877 echo "configure:9878: checking for langinfo.h" >&5
9878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9879 echo $ac_n "(cached) $ac_c" 1>&6
9880 else
9881 cat > conftest.$ac_ext <<EOF
9882 #line 9883 "configure"
9883 #include "confdefs.h"
9884 #include <langinfo.h>
9885 EOF
9886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9887 { (eval echo configure:9888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9889 if test -z "$ac_err"; then
9890 rm -rf conftest*
9891 eval "ac_cv_header_$ac_safe=yes"
9892 else
9893 echo "$ac_err" >&5
9894 echo "configure: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9896 rm -rf conftest*
9897 eval "ac_cv_header_$ac_safe=no"
9898 fi
9899 rm -f conftest*
9900 fi
9901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9902 echo "$ac_t""yes" 1>&6
9903 ac_has_langinfo_h=yes
9904 else
9905 echo "$ac_t""no" 1>&6
9906 ac_has_langinfo_h=no
9907 fi
9908
9909
9910 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9911 echo "configure:9912: checking for iconv in -liconv" >&5
9912 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9913 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9914 echo $ac_n "(cached) $ac_c" 1>&6
9915 else
9916 ac_save_LIBS="$LIBS"
9917 LIBS="-liconv $LIBS"
9918 cat > conftest.$ac_ext <<EOF
9919 #line 9920 "configure"
9920 #include "confdefs.h"
9921 /* Override any gcc2 internal prototype to avoid an error. */
9922 /* We use char because int might match the return type of a gcc2
9923 builtin and then its argument prototype would still apply. */
9924 char iconv();
9925
9926 int main() {
9927 iconv()
9928 ; return 0; }
9929 EOF
9930 if { (eval echo configure:9931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9931 rm -rf conftest*
9932 eval "ac_cv_lib_$ac_lib_var=yes"
9933 else
9934 echo "configure: failed program was:" >&5
9935 cat conftest.$ac_ext >&5
9936 rm -rf conftest*
9937 eval "ac_cv_lib_$ac_lib_var=no"
9938 fi
9939 rm -f conftest*
9940 LIBS="$ac_save_LIBS"
9941
9942 fi
9943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9944 echo "$ac_t""yes" 1>&6
9945 libiconv="-liconv"
9946 else
9947 echo "$ac_t""no" 1>&6
9948 fi
9949
9950 ac_save_LIBS="$LIBS"
9951 LIBS="$LIBS $libiconv"
9952
9953 for ac_func in iconv_open iconv_close iconv nl_langinfo
9954 do
9955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9956 echo "configure:9957: checking for $ac_func" >&5
9957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9958 echo $ac_n "(cached) $ac_c" 1>&6
9959 else
9960 cat > conftest.$ac_ext <<EOF
9961 #line 9962 "configure"
9962 #include "confdefs.h"
9963 /* System header to define __stub macros and hopefully few prototypes,
9964 which can conflict with char $ac_func(); below. */
9965 #include <assert.h>
9966 /* Override any gcc2 internal prototype to avoid an error. */
9967 /* We use char because int might match the return type of a gcc2
9968 builtin and then its argument prototype would still apply. */
9969 char $ac_func();
9970
9971 int main() {
9972
9973 /* The GNU C library defines this for functions which it implements
9974 to always fail with ENOSYS. Some functions are actually named
9975 something starting with __ and the normal name is an alias. */
9976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9977 choke me
9978 #else
9979 $ac_func();
9980 #endif
9981
9982 ; return 0; }
9983 EOF
9984 if { (eval echo configure:9985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9985 rm -rf conftest*
9986 eval "ac_cv_func_$ac_func=yes"
9987 else
9988 echo "configure: failed program was:" >&5
9989 cat conftest.$ac_ext >&5
9990 rm -rf conftest*
9991 eval "ac_cv_func_$ac_func=no"
9992 fi
9993 rm -f conftest*
9994 fi
9995
9996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9997 echo "$ac_t""yes" 1>&6
9998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9999 cat >> confdefs.h <<EOF
10000 #define $ac_tr_func 1
10001 EOF
10002 \
10003 ac_XPG2funcs=yes
10004 else
10005 echo "$ac_t""no" 1>&6
10006 ac_XPG2funcs=no
10007 fi
10008 done
10009
10010
10011 LIBS="$ac_save_LIBS"
10012
10013 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10014 echo "configure:10015: checking for XPG2 wchar_t support" >&5
10015 if test x"$ac_has_iconv_h" = xyes &&
10016 test x"$ac_has_langinfo_h" = xyes &&
10017 test x"$ac_XPG2funcs" = xyes; then
10018 ac_XPG2_wchar_t=yes
10019 else
10020 ac_XPG2_wchar_t=no
10021 fi
10022 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10023
10024 if test x"$ac_isoC99_wchar_t" = xyes &&
10025 test x"$ac_XPG2_wchar_t" = xyes; then
10026 cat >> confdefs.h <<\EOF
10027 #define _GLIBCXX_USE_WCHAR_T 1
10028 EOF
10029
10030 enable_wchar_t=yes
10031 fi
10032 fi
10033 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10034 echo "configure:10035: checking for enabled wchar_t specializations" >&5
10035 echo "$ac_t""$enable_wchar_t" 1>&6
10036
10037 cat >> confdefs.h <<\EOF
10038 #define HAVE_COSF 1
10039 EOF
10040
10041 cat >> confdefs.h <<\EOF
10042 #define HAVE_COSL 1
10043 EOF
10044
10045 cat >> confdefs.h <<\EOF
10046 #define HAVE_COSHF 1
10047 EOF
10048
10049 cat >> confdefs.h <<\EOF
10050 #define HAVE_COSHL 1
10051 EOF
10052
10053 cat >> confdefs.h <<\EOF
10054 #define HAVE_LOGF 1
10055 EOF
10056
10057 cat >> confdefs.h <<\EOF
10058 #define HAVE_LOGL 1
10059 EOF
10060
10061 cat >> confdefs.h <<\EOF
10062 #define HAVE_LOG10F 1
10063 EOF
10064
10065 cat >> confdefs.h <<\EOF
10066 #define HAVE_LOG10L 1
10067 EOF
10068
10069 cat >> confdefs.h <<\EOF
10070 #define HAVE_SINF 1
10071 EOF
10072
10073 cat >> confdefs.h <<\EOF
10074 #define HAVE_SINL 1
10075 EOF
10076
10077 cat >> confdefs.h <<\EOF
10078 #define HAVE_SINHF 1
10079 EOF
10080
10081 cat >> confdefs.h <<\EOF
10082 #define HAVE_SINHL 1
10083 EOF
10084
10085 ;;
10086 *-solaris*)
10087 case "$target" in
10088 *-solaris2.5)
10089 os_include_dir="os/solaris/solaris2.5"
10090 ;;
10091 *-solaris2.6)
10092 os_include_dir="os/solaris/solaris2.6"
10093 ;;
10094 *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
10095 os_include_dir="os/solaris/solaris2.7"
10096 ;;
10097 esac
10098 cat >> confdefs.h <<\EOF
10099 #define HAVE_STRTOF 1
10100 EOF
10101
10102 cat >> confdefs.h <<\EOF
10103 #define HAVE_STRTOLD 1
10104 EOF
10105
10106 cat >> confdefs.h <<\EOF
10107 #define HAVE_MMAP 1
10108 EOF
10109
10110 cat >> confdefs.h <<\EOF
10111 #define HAVE_COPYSIGN 1
10112 EOF
10113
10114 cat >> confdefs.h <<\EOF
10115 #define HAVE_ISNAN 1
10116 EOF
10117
10118 cat >> confdefs.h <<\EOF
10119 #define HAVE_ISNANF 1
10120 EOF
10121
10122 cat >> confdefs.h <<\EOF
10123 #define HAVE_MODFF 1
10124 EOF
10125
10126 cat >> confdefs.h <<\EOF
10127 #define HAVE_HYPOT 1
10128 EOF
10129
10130 ;;
10131 *-windiss*)
10132 os_include_dir="os/windiss"
10133 cat >> confdefs.h <<\EOF
10134 #define HAVE_ACOSF 1
10135 EOF
10136
10137 cat >> confdefs.h <<\EOF
10138 #define HAVE_ASINF 1
10139 EOF
10140
10141 cat >> confdefs.h <<\EOF
10142 #define HAVE_ATAN2F 1
10143 EOF
10144
10145 cat >> confdefs.h <<\EOF
10146 #define HAVE_ATANF 1
10147 EOF
10148
10149 cat >> confdefs.h <<\EOF
10150 #define HAVE_CEILF 1
10151 EOF
10152
10153 cat >> confdefs.h <<\EOF
10154 #define HAVE_COPYSIGN 1
10155 EOF
10156
10157 cat >> confdefs.h <<\EOF
10158 #define HAVE_COPYSIGNF 1
10159 EOF
10160
10161 cat >> confdefs.h <<\EOF
10162 #define HAVE_COSF 1
10163 EOF
10164
10165 cat >> confdefs.h <<\EOF
10166 #define HAVE_COSHF 1
10167 EOF
10168
10169 cat >> confdefs.h <<\EOF
10170 #define HAVE_EXPF 1
10171 EOF
10172
10173 cat >> confdefs.h <<\EOF
10174 #define HAVE_FABSF 1
10175 EOF
10176
10177 cat >> confdefs.h <<\EOF
10178 #define HAVE_FLOORF 1
10179 EOF
10180
10181 cat >> confdefs.h <<\EOF
10182 #define HAVE_FMODF 1
10183 EOF
10184
10185 cat >> confdefs.h <<\EOF
10186 #define HAVE_FREXPF 1
10187 EOF
10188
10189 cat >> confdefs.h <<\EOF
10190 #define HAVE_LDEXPF 1
10191 EOF
10192
10193 cat >> confdefs.h <<\EOF
10194 #define HAVE_LOG10F 1
10195 EOF
10196
10197 cat >> confdefs.h <<\EOF
10198 #define HAVE_LOGF 1
10199 EOF
10200
10201 cat >> confdefs.h <<\EOF
10202 #define HAVE_MODFF 1
10203 EOF
10204
10205 cat >> confdefs.h <<\EOF
10206 #define HAVE_POWF 1
10207 EOF
10208
10209 cat >> confdefs.h <<\EOF
10210 #define HAVE_SINF 1
10211 EOF
10212
10213 cat >> confdefs.h <<\EOF
10214 #define HAVE_SINHF 1
10215 EOF
10216
10217 cat >> confdefs.h <<\EOF
10218 #define HAVE_SQRTF 1
10219 EOF
10220
10221 cat >> confdefs.h <<\EOF
10222 #define HAVE_TANF 1
10223 EOF
10224
10225 cat >> confdefs.h <<\EOF
10226 #define HAVE_TANHF 1
10227 EOF
10228
10229 ;;
10230 *)
10231 if test "x${with_newlib}" = "xyes"; then
10232 os_include_dir="os/newlib"
10233 cat >> confdefs.h <<\EOF
10234 #define HAVE_HYPOT 1
10235 EOF
10236
10237
10238 # GLIBCXX_CHECK_STDLIB_SUPPORT
10239 cat >> confdefs.h <<\EOF
10240 #define HAVE_STRTOF 1
10241 EOF
10242
10243 cat >> confdefs.h <<\EOF
10244 #define HAVE_STRTOLD 1
10245 EOF
10246
10247 # AC_FUNC_MMAP
10248 cat >> confdefs.h <<\EOF
10249 #define HAVE_MMAP 1
10250 EOF
10251
10252
10253 cat >> confdefs.h <<\EOF
10254 #define HAVE_ACOSF 1
10255 EOF
10256
10257 cat >> confdefs.h <<\EOF
10258 #define HAVE_ASINF 1
10259 EOF
10260
10261 cat >> confdefs.h <<\EOF
10262 #define HAVE_ATAN2F 1
10263 EOF
10264
10265 cat >> confdefs.h <<\EOF
10266 #define HAVE_ATANF 1
10267 EOF
10268
10269 cat >> confdefs.h <<\EOF
10270 #define HAVE_CEILF 1
10271 EOF
10272
10273 cat >> confdefs.h <<\EOF
10274 #define HAVE_COPYSIGN 1
10275 EOF
10276
10277 cat >> confdefs.h <<\EOF
10278 #define HAVE_COPYSIGNF 1
10279 EOF
10280
10281 cat >> confdefs.h <<\EOF
10282 #define HAVE_COSF 1
10283 EOF
10284
10285 cat >> confdefs.h <<\EOF
10286 #define HAVE_COSHF 1
10287 EOF
10288
10289 cat >> confdefs.h <<\EOF
10290 #define HAVE_EXPF 1
10291 EOF
10292
10293 cat >> confdefs.h <<\EOF
10294 #define HAVE_FABSF 1
10295 EOF
10296
10297 cat >> confdefs.h <<\EOF
10298 #define HAVE_FLOORF 1
10299 EOF
10300
10301 cat >> confdefs.h <<\EOF
10302 #define HAVE_FMODF 1
10303 EOF
10304
10305 cat >> confdefs.h <<\EOF
10306 #define HAVE_FREXPF 1
10307 EOF
10308
10309 cat >> confdefs.h <<\EOF
10310 #define HAVE_LDEXPF 1
10311 EOF
10312
10313 cat >> confdefs.h <<\EOF
10314 #define HAVE_LOG10F 1
10315 EOF
10316
10317 cat >> confdefs.h <<\EOF
10318 #define HAVE_LOGF 1
10319 EOF
10320
10321 cat >> confdefs.h <<\EOF
10322 #define HAVE_MODFF 1
10323 EOF
10324
10325 cat >> confdefs.h <<\EOF
10326 #define HAVE_POWF 1
10327 EOF
10328
10329 cat >> confdefs.h <<\EOF
10330 #define HAVE_SINF 1
10331 EOF
10332
10333 cat >> confdefs.h <<\EOF
10334 #define HAVE_SINHF 1
10335 EOF
10336
10337 cat >> confdefs.h <<\EOF
10338 #define HAVE_SQRTF 1
10339 EOF
10340
10341 cat >> confdefs.h <<\EOF
10342 #define HAVE_TANF 1
10343 EOF
10344
10345 cat >> confdefs.h <<\EOF
10346 #define HAVE_TANHF 1
10347 EOF
10348
10349 else
10350 { echo "configure: error: No support for this host/target combination." 1>&2; exit 1; }
10351 fi
10352 ;;
10353 esac
10354
10355 # At some point, we should differentiate between architectures
10356 # like x86, which have long double versions, and alpha/powerpc/etc.,
10357 # which don't. For the time being, punt.
10358 if test x"long_double_math_on_this_cpu" = x"yes"; then
10359 cat >> confdefs.h <<\EOF
10360 #define HAVE_ACOSL 1
10361 EOF
10362
10363 cat >> confdefs.h <<\EOF
10364 #define HAVE_ASINL 1
10365 EOF
10366
10367 cat >> confdefs.h <<\EOF
10368 #define HAVE_ATAN2L 1
10369 EOF
10370
10371 cat >> confdefs.h <<\EOF
10372 #define HAVE_ATANL 1
10373 EOF
10374
10375 cat >> confdefs.h <<\EOF
10376 #define HAVE_CEILL 1
10377 EOF
10378
10379 cat >> confdefs.h <<\EOF
10380 #define HAVE_COPYSIGNL 1
10381 EOF
10382
10383 cat >> confdefs.h <<\EOF
10384 #define HAVE_COSL 1
10385 EOF
10386
10387 cat >> confdefs.h <<\EOF
10388 #define HAVE_COSHL 1
10389 EOF
10390
10391 cat >> confdefs.h <<\EOF
10392 #define HAVE_EXPL 1
10393 EOF
10394
10395 cat >> confdefs.h <<\EOF
10396 #define HAVE_FABSL 1
10397 EOF
10398
10399 cat >> confdefs.h <<\EOF
10400 #define HAVE_FLOORL 1
10401 EOF
10402
10403 cat >> confdefs.h <<\EOF
10404 #define HAVE_FMODL 1
10405 EOF
10406
10407 cat >> confdefs.h <<\EOF
10408 #define HAVE_FREXPL 1
10409 EOF
10410
10411 cat >> confdefs.h <<\EOF
10412 #define HAVE_LDEXPL 1
10413 EOF
10414
10415 cat >> confdefs.h <<\EOF
10416 #define HAVE_LOG10L 1
10417 EOF
10418
10419 cat >> confdefs.h <<\EOF
10420 #define HAVE_LOGL 1
10421 EOF
10422
10423 cat >> confdefs.h <<\EOF
10424 #define HAVE_MODFL 1
10425 EOF
10426
10427 cat >> confdefs.h <<\EOF
10428 #define HAVE_POWL 1
10429 EOF
10430
10431 cat >> confdefs.h <<\EOF
10432 #define HAVE_SINCOSL 1
10433 EOF
10434
10435 cat >> confdefs.h <<\EOF
10436 #define HAVE_SINL 1
10437 EOF
10438
10439 cat >> confdefs.h <<\EOF
10440 #define HAVE_SINHL 1
10441 EOF
10442
10443 cat >> confdefs.h <<\EOF
10444 #define HAVE_SQRTL 1
10445 EOF
10446
10447 cat >> confdefs.h <<\EOF
10448 #define HAVE_TANL 1
10449 EOF
10450
10451 cat >> confdefs.h <<\EOF
10452 #define HAVE_TANHL 1
10453 EOF
10454
10455 fi
10456
10457 else
10458
10459 # We are being configured natively. We can do more elaborate tests
10460 # that include AC_TRY_COMPILE now, as the linker is assumed to be
10461 # working.
10462 GLIBCXX_IS_CROSS_COMPILING=false
10463 CANADIAN=no
10464
10465 # Check for available headers.
10466 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10467 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10468 sys/types.h
10469 do
10470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10472 echo "configure:10473: checking for $ac_hdr" >&5
10473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10474 echo $ac_n "(cached) $ac_c" 1>&6
10475 else
10476 cat > conftest.$ac_ext <<EOF
10477 #line 10478 "configure"
10478 #include "confdefs.h"
10479 #include <$ac_hdr>
10480 EOF
10481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10482 { (eval echo configure:10483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10484 if test -z "$ac_err"; then
10485 rm -rf conftest*
10486 eval "ac_cv_header_$ac_safe=yes"
10487 else
10488 echo "$ac_err" >&5
10489 echo "configure: failed program was:" >&5
10490 cat conftest.$ac_ext >&5
10491 rm -rf conftest*
10492 eval "ac_cv_header_$ac_safe=no"
10493 fi
10494 rm -f conftest*
10495 fi
10496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10497 echo "$ac_t""yes" 1>&6
10498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10499 cat >> confdefs.h <<EOF
10500 #define $ac_tr_hdr 1
10501 EOF
10502
10503 else
10504 echo "$ac_t""no" 1>&6
10505 fi
10506 done
10507
10508
10509
10510 # All these tests are for C++; save the language and the compiler flags.
10511 # The CXXFLAGS thing is suspicious, but based on similar bits previously
10512 # found in GLIBCXX_CONFIGURE.
10513
10514 ac_ext=C
10515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10516 ac_cpp='$CXXCPP $CPPFLAGS'
10517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10519 cross_compiling=$ac_cv_prog_cxx_cross
10520
10521 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10522 ac_save_CXXFLAGS="$CXXFLAGS"
10523
10524 # Check for maintainer-mode bits.
10525 if test x"$USE_MAINTAINER_MODE" = xno; then
10526 WERROR=''
10527 else
10528 WERROR='-Werror'
10529 fi
10530
10531 # Check for -ffunction-sections -fdata-sections
10532 echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10533 echo "configure:10534: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10534 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10535 cat > conftest.$ac_ext <<EOF
10536 #line 10537 "configure"
10537 #include "confdefs.h"
10538
10539 int main() {
10540 int foo;
10541
10542 ; return 0; }
10543 EOF
10544 if { (eval echo configure:10545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10545 rm -rf conftest*
10546 ac_fdsections=yes
10547 else
10548 echo "configure: failed program was:" >&5
10549 cat conftest.$ac_ext >&5
10550 rm -rf conftest*
10551 ac_fdsections=no
10552 fi
10553 rm -f conftest*
10554 if test "$ac_test_CXXFLAGS" = set; then
10555 CXXFLAGS="$ac_save_CXXFLAGS"
10556 else
10557 # this is the suspicious part
10558 CXXFLAGS=''
10559 fi
10560 if test x"$ac_fdsections" = x"yes"; then
10561 SECTION_FLAGS='-ffunction-sections -fdata-sections'
10562 fi
10563 echo "$ac_t""$ac_fdsections" 1>&6
10564
10565 ac_ext=c
10566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10567 ac_cpp='$CPP $CPPFLAGS'
10568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10570 cross_compiling=$ac_cv_prog_cc_cross
10571
10572
10573
10574
10575
10576 # If we're not using GNU ld, then there's no point in even trying these
10577 # tests. Check for that first. We should have already tested for gld
10578 # by now (in libtool), but require it now just to be safe...
10579 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10580 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10581
10582
10583 # The name set by libtool depends on the version of libtool. Shame on us
10584 # for depending on an impl detail, but c'est la vie. Older versions used
10585 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10586 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10587 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
10588 # set (hence we're using an older libtool), then set it.
10589 if test x${with_gnu_ld+set} != xset; then
10590 if test x${ac_cv_prog_gnu_ld+set} != xset; then
10591 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
10592 with_gnu_ld=no
10593 else
10594 with_gnu_ld=$ac_cv_prog_gnu_ld
10595 fi
10596 fi
10597
10598 # Start by getting the version number. I think the libtool test already
10599 # does some of this, but throws away the result.
10600
10601 ldver=`$LD --version 2>/dev/null | head -1 | \
10602 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10603
10604 glibcxx_gnu_ld_version=`echo $ldver | \
10605 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10606
10607 # Set --gc-sections.
10608 if test "$with_gnu_ld" = "notbroken"; then
10609 # GNU ld it is! Joy and bunny rabbits!
10610
10611 # All these tests are for C++; save the language and the compiler flags.
10612 # Need to do this so that g++ won't try to link in libstdc++
10613 ac_test_CFLAGS="${CFLAGS+set}"
10614 ac_save_CFLAGS="$CFLAGS"
10615 CFLAGS='-x c++ -Wl,--gc-sections'
10616
10617 # Check for -Wl,--gc-sections
10618 # XXX This test is broken at the moment, as symbols required for
10619 # linking are now in libsupc++ (not built yet.....). In addition,
10620 # this test has cored on solaris in the past. In addition,
10621 # --gc-sections doesn't really work at the moment (keeps on discarding
10622 # used sections, first .eh_frame and now some of the glibc sections for
10623 # iconv). Bzzzzt. Thanks for playing, maybe next time.
10624 echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10625 echo "configure:10626: checking for ld that supports -Wl,--gc-sections" >&5
10626 if test "$cross_compiling" = yes; then
10627 ac_sectionLDflags=yes
10628 else
10629 cat > conftest.$ac_ext <<EOF
10630 #line 10631 "configure"
10631 #include "confdefs.h"
10632
10633 int main(void)
10634 {
10635 try { throw 1; }
10636 catch (...) { };
10637 return 0;
10638 }
10639
10640 EOF
10641 if { (eval echo configure:10642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10642 then
10643 ac_sectionLDflags=yes
10644 else
10645 echo "configure: failed program was:" >&5
10646 cat conftest.$ac_ext >&5
10647 rm -fr conftest*
10648 ac_sectionLDflags=no
10649 fi
10650 rm -fr conftest*
10651 fi
10652
10653 if test "$ac_test_CFLAGS" = set; then
10654 CFLAGS="$ac_save_CFLAGS"
10655 else
10656 # this is the suspicious part
10657 CFLAGS=''
10658 fi
10659 if test "$ac_sectionLDflags" = "yes"; then
10660 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10661 fi
10662 echo "$ac_t""$ac_sectionLDflags" 1>&6
10663 fi
10664
10665 # Set linker optimization flags.
10666 if test x"$with_gnu_ld" = x"yes"; then
10667 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10668 fi
10669
10670
10671
10672
10673
10674 ac_test_CXXFLAGS="${CXXFLAGS+set}"
10675 ac_save_CXXFLAGS="$CXXFLAGS"
10676 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
10677
10678 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10679 echo "configure:10680: checking for sin in -lm" >&5
10680 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10682 echo $ac_n "(cached) $ac_c" 1>&6
10683 else
10684 ac_save_LIBS="$LIBS"
10685 LIBS="-lm $LIBS"
10686 cat > conftest.$ac_ext <<EOF
10687 #line 10688 "configure"
10688 #include "confdefs.h"
10689 /* Override any gcc2 internal prototype to avoid an error. */
10690 /* We use char because int might match the return type of a gcc2
10691 builtin and then its argument prototype would still apply. */
10692 char sin();
10693
10694 int main() {
10695 sin()
10696 ; return 0; }
10697 EOF
10698 if { (eval echo configure:10699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10699 rm -rf conftest*
10700 eval "ac_cv_lib_$ac_lib_var=yes"
10701 else
10702 echo "configure: failed program was:" >&5
10703 cat conftest.$ac_ext >&5
10704 rm -rf conftest*
10705 eval "ac_cv_lib_$ac_lib_var=no"
10706 fi
10707 rm -f conftest*
10708 LIBS="$ac_save_LIBS"
10709
10710 fi
10711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10712 echo "$ac_t""yes" 1>&6
10713 libm="-lm"
10714 else
10715 echo "$ac_t""no" 1>&6
10716 fi
10717
10718 ac_save_LIBS="$LIBS"
10719 LIBS="$LIBS $libm"
10720
10721
10722
10723 echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10724 echo "configure:10725: checking for isinf declaration" >&5
10725 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
10726 if eval "test \"`echo '$''{'glibcxx_cv_func_isinf_use'+set}'`\" = set"; then
10727 echo $ac_n "(cached) $ac_c" 1>&6
10728 else
10729
10730
10731 ac_ext=C
10732 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10733 ac_cpp='$CXXCPP $CPPFLAGS'
10734 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10735 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10736 cross_compiling=$ac_cv_prog_cxx_cross
10737
10738 cat > conftest.$ac_ext <<EOF
10739 #line 10740 "configure"
10740 #include "confdefs.h"
10741 #include <math.h>
10742 #ifdef HAVE_IEEEFP_H
10743 #include <ieeefp.h>
10744 #endif
10745
10746 int main() {
10747 isinf(0);
10748 ; return 0; }
10749 EOF
10750 if { (eval echo configure:10751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10751 rm -rf conftest*
10752 glibcxx_cv_func_isinf_use=yes
10753 else
10754 echo "configure: failed program was:" >&5
10755 cat conftest.$ac_ext >&5
10756 rm -rf conftest*
10757 glibcxx_cv_func_isinf_use=no
10758 fi
10759 rm -f conftest*
10760 ac_ext=c
10761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10762 ac_cpp='$CPP $CPPFLAGS'
10763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10765 cross_compiling=$ac_cv_prog_cc_cross
10766
10767
10768 fi
10769
10770 fi
10771 echo "$ac_t""$glibcxx_cv_func_isinf_use" 1>&6
10772
10773 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
10774 for ac_func in isinf
10775 do
10776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10777 echo "configure:10778: checking for $ac_func" >&5
10778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10779 echo $ac_n "(cached) $ac_c" 1>&6
10780 else
10781 cat > conftest.$ac_ext <<EOF
10782 #line 10783 "configure"
10783 #include "confdefs.h"
10784 /* System header to define __stub macros and hopefully few prototypes,
10785 which can conflict with char $ac_func(); below. */
10786 #include <assert.h>
10787 /* Override any gcc2 internal prototype to avoid an error. */
10788 /* We use char because int might match the return type of a gcc2
10789 builtin and then its argument prototype would still apply. */
10790 char $ac_func();
10791
10792 int main() {
10793
10794 /* The GNU C library defines this for functions which it implements
10795 to always fail with ENOSYS. Some functions are actually named
10796 something starting with __ and the normal name is an alias. */
10797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10798 choke me
10799 #else
10800 $ac_func();
10801 #endif
10802
10803 ; return 0; }
10804 EOF
10805 if { (eval echo configure:10806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10806 rm -rf conftest*
10807 eval "ac_cv_func_$ac_func=yes"
10808 else
10809 echo "configure: failed program was:" >&5
10810 cat conftest.$ac_ext >&5
10811 rm -rf conftest*
10812 eval "ac_cv_func_$ac_func=no"
10813 fi
10814 rm -f conftest*
10815 fi
10816
10817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10818 echo "$ac_t""yes" 1>&6
10819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10820 cat >> confdefs.h <<EOF
10821 #define $ac_tr_func 1
10822 EOF
10823
10824 else
10825 echo "$ac_t""no" 1>&6
10826 fi
10827 done
10828
10829 else
10830
10831 echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10832 echo "configure:10833: checking for _isinf declaration" >&5
10833 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
10834 if eval "test \"`echo '$''{'glibcxx_cv_func__isinf_use'+set}'`\" = set"; then
10835 echo $ac_n "(cached) $ac_c" 1>&6
10836 else
10837
10838
10839 ac_ext=C
10840 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10841 ac_cpp='$CXXCPP $CPPFLAGS'
10842 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10843 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10844 cross_compiling=$ac_cv_prog_cxx_cross
10845
10846 cat > conftest.$ac_ext <<EOF
10847 #line 10848 "configure"
10848 #include "confdefs.h"
10849 #include <math.h>
10850 #ifdef HAVE_IEEEFP_H
10851 #include <ieeefp.h>
10852 #endif
10853
10854 int main() {
10855 _isinf(0);
10856 ; return 0; }
10857 EOF
10858 if { (eval echo configure:10859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10859 rm -rf conftest*
10860 glibcxx_cv_func__isinf_use=yes
10861 else
10862 echo "configure: failed program was:" >&5
10863 cat conftest.$ac_ext >&5
10864 rm -rf conftest*
10865 glibcxx_cv_func__isinf_use=no
10866 fi
10867 rm -f conftest*
10868 ac_ext=c
10869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10870 ac_cpp='$CPP $CPPFLAGS'
10871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10873 cross_compiling=$ac_cv_prog_cc_cross
10874
10875
10876 fi
10877
10878 fi
10879 echo "$ac_t""$glibcxx_cv_func__isinf_use" 1>&6
10880
10881 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
10882 for ac_func in _isinf
10883 do
10884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10885 echo "configure:10886: checking for $ac_func" >&5
10886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10887 echo $ac_n "(cached) $ac_c" 1>&6
10888 else
10889 cat > conftest.$ac_ext <<EOF
10890 #line 10891 "configure"
10891 #include "confdefs.h"
10892 /* System header to define __stub macros and hopefully few prototypes,
10893 which can conflict with char $ac_func(); below. */
10894 #include <assert.h>
10895 /* Override any gcc2 internal prototype to avoid an error. */
10896 /* We use char because int might match the return type of a gcc2
10897 builtin and then its argument prototype would still apply. */
10898 char $ac_func();
10899
10900 int main() {
10901
10902 /* The GNU C library defines this for functions which it implements
10903 to always fail with ENOSYS. Some functions are actually named
10904 something starting with __ and the normal name is an alias. */
10905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10906 choke me
10907 #else
10908 $ac_func();
10909 #endif
10910
10911 ; return 0; }
10912 EOF
10913 if { (eval echo configure:10914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10914 rm -rf conftest*
10915 eval "ac_cv_func_$ac_func=yes"
10916 else
10917 echo "configure: failed program was:" >&5
10918 cat conftest.$ac_ext >&5
10919 rm -rf conftest*
10920 eval "ac_cv_func_$ac_func=no"
10921 fi
10922 rm -f conftest*
10923 fi
10924
10925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10926 echo "$ac_t""yes" 1>&6
10927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10928 cat >> confdefs.h <<EOF
10929 #define $ac_tr_func 1
10930 EOF
10931
10932 else
10933 echo "$ac_t""no" 1>&6
10934 fi
10935 done
10936
10937 fi
10938 fi
10939
10940
10941
10942 echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10943 echo "configure:10944: checking for isnan declaration" >&5
10944 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
10945 if eval "test \"`echo '$''{'glibcxx_cv_func_isnan_use'+set}'`\" = set"; then
10946 echo $ac_n "(cached) $ac_c" 1>&6
10947 else
10948
10949
10950 ac_ext=C
10951 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10952 ac_cpp='$CXXCPP $CPPFLAGS'
10953 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10954 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10955 cross_compiling=$ac_cv_prog_cxx_cross
10956
10957 cat > conftest.$ac_ext <<EOF
10958 #line 10959 "configure"
10959 #include "confdefs.h"
10960 #include <math.h>
10961 #ifdef HAVE_IEEEFP_H
10962 #include <ieeefp.h>
10963 #endif
10964
10965 int main() {
10966 isnan(0);
10967 ; return 0; }
10968 EOF
10969 if { (eval echo configure:10970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10970 rm -rf conftest*
10971 glibcxx_cv_func_isnan_use=yes
10972 else
10973 echo "configure: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10975 rm -rf conftest*
10976 glibcxx_cv_func_isnan_use=no
10977 fi
10978 rm -f conftest*
10979 ac_ext=c
10980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10981 ac_cpp='$CPP $CPPFLAGS'
10982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10984 cross_compiling=$ac_cv_prog_cc_cross
10985
10986
10987 fi
10988
10989 fi
10990 echo "$ac_t""$glibcxx_cv_func_isnan_use" 1>&6
10991
10992 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
10993 for ac_func in isnan
10994 do
10995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10996 echo "configure:10997: checking for $ac_func" >&5
10997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10998 echo $ac_n "(cached) $ac_c" 1>&6
10999 else
11000 cat > conftest.$ac_ext <<EOF
11001 #line 11002 "configure"
11002 #include "confdefs.h"
11003 /* System header to define __stub macros and hopefully few prototypes,
11004 which can conflict with char $ac_func(); below. */
11005 #include <assert.h>
11006 /* Override any gcc2 internal prototype to avoid an error. */
11007 /* We use char because int might match the return type of a gcc2
11008 builtin and then its argument prototype would still apply. */
11009 char $ac_func();
11010
11011 int main() {
11012
11013 /* The GNU C library defines this for functions which it implements
11014 to always fail with ENOSYS. Some functions are actually named
11015 something starting with __ and the normal name is an alias. */
11016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11017 choke me
11018 #else
11019 $ac_func();
11020 #endif
11021
11022 ; return 0; }
11023 EOF
11024 if { (eval echo configure:11025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11025 rm -rf conftest*
11026 eval "ac_cv_func_$ac_func=yes"
11027 else
11028 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
11030 rm -rf conftest*
11031 eval "ac_cv_func_$ac_func=no"
11032 fi
11033 rm -f conftest*
11034 fi
11035
11036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11037 echo "$ac_t""yes" 1>&6
11038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11039 cat >> confdefs.h <<EOF
11040 #define $ac_tr_func 1
11041 EOF
11042
11043 else
11044 echo "$ac_t""no" 1>&6
11045 fi
11046 done
11047
11048 else
11049
11050 echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11051 echo "configure:11052: checking for _isnan declaration" >&5
11052 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
11053 if eval "test \"`echo '$''{'glibcxx_cv_func__isnan_use'+set}'`\" = set"; then
11054 echo $ac_n "(cached) $ac_c" 1>&6
11055 else
11056
11057
11058 ac_ext=C
11059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11060 ac_cpp='$CXXCPP $CPPFLAGS'
11061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11063 cross_compiling=$ac_cv_prog_cxx_cross
11064
11065 cat > conftest.$ac_ext <<EOF
11066 #line 11067 "configure"
11067 #include "confdefs.h"
11068 #include <math.h>
11069 #ifdef HAVE_IEEEFP_H
11070 #include <ieeefp.h>
11071 #endif
11072
11073 int main() {
11074 _isnan(0);
11075 ; return 0; }
11076 EOF
11077 if { (eval echo configure:11078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11078 rm -rf conftest*
11079 glibcxx_cv_func__isnan_use=yes
11080 else
11081 echo "configure: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11083 rm -rf conftest*
11084 glibcxx_cv_func__isnan_use=no
11085 fi
11086 rm -f conftest*
11087 ac_ext=c
11088 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11089 ac_cpp='$CPP $CPPFLAGS'
11090 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11091 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11092 cross_compiling=$ac_cv_prog_cc_cross
11093
11094
11095 fi
11096
11097 fi
11098 echo "$ac_t""$glibcxx_cv_func__isnan_use" 1>&6
11099
11100 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
11101 for ac_func in _isnan
11102 do
11103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11104 echo "configure:11105: checking for $ac_func" >&5
11105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11106 echo $ac_n "(cached) $ac_c" 1>&6
11107 else
11108 cat > conftest.$ac_ext <<EOF
11109 #line 11110 "configure"
11110 #include "confdefs.h"
11111 /* System header to define __stub macros and hopefully few prototypes,
11112 which can conflict with char $ac_func(); below. */
11113 #include <assert.h>
11114 /* Override any gcc2 internal prototype to avoid an error. */
11115 /* We use char because int might match the return type of a gcc2
11116 builtin and then its argument prototype would still apply. */
11117 char $ac_func();
11118
11119 int main() {
11120
11121 /* The GNU C library defines this for functions which it implements
11122 to always fail with ENOSYS. Some functions are actually named
11123 something starting with __ and the normal name is an alias. */
11124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11125 choke me
11126 #else
11127 $ac_func();
11128 #endif
11129
11130 ; return 0; }
11131 EOF
11132 if { (eval echo configure:11133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11133 rm -rf conftest*
11134 eval "ac_cv_func_$ac_func=yes"
11135 else
11136 echo "configure: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11138 rm -rf conftest*
11139 eval "ac_cv_func_$ac_func=no"
11140 fi
11141 rm -f conftest*
11142 fi
11143
11144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11145 echo "$ac_t""yes" 1>&6
11146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11147 cat >> confdefs.h <<EOF
11148 #define $ac_tr_func 1
11149 EOF
11150
11151 else
11152 echo "$ac_t""no" 1>&6
11153 fi
11154 done
11155
11156 fi
11157 fi
11158
11159
11160
11161 echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11162 echo "configure:11163: checking for finite declaration" >&5
11163 if test x${glibcxx_cv_func_finite_use+set} != xset; then
11164 if eval "test \"`echo '$''{'glibcxx_cv_func_finite_use'+set}'`\" = set"; then
11165 echo $ac_n "(cached) $ac_c" 1>&6
11166 else
11167
11168
11169 ac_ext=C
11170 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11171 ac_cpp='$CXXCPP $CPPFLAGS'
11172 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11173 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11174 cross_compiling=$ac_cv_prog_cxx_cross
11175
11176 cat > conftest.$ac_ext <<EOF
11177 #line 11178 "configure"
11178 #include "confdefs.h"
11179 #include <math.h>
11180 #ifdef HAVE_IEEEFP_H
11181 #include <ieeefp.h>
11182 #endif
11183
11184 int main() {
11185 finite(0);
11186 ; return 0; }
11187 EOF
11188 if { (eval echo configure:11189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11189 rm -rf conftest*
11190 glibcxx_cv_func_finite_use=yes
11191 else
11192 echo "configure: failed program was:" >&5
11193 cat conftest.$ac_ext >&5
11194 rm -rf conftest*
11195 glibcxx_cv_func_finite_use=no
11196 fi
11197 rm -f conftest*
11198 ac_ext=c
11199 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11200 ac_cpp='$CPP $CPPFLAGS'
11201 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11202 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11203 cross_compiling=$ac_cv_prog_cc_cross
11204
11205
11206 fi
11207
11208 fi
11209 echo "$ac_t""$glibcxx_cv_func_finite_use" 1>&6
11210
11211 if test x$glibcxx_cv_func_finite_use = x"yes"; then
11212 for ac_func in finite
11213 do
11214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11215 echo "configure:11216: checking for $ac_func" >&5
11216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11217 echo $ac_n "(cached) $ac_c" 1>&6
11218 else
11219 cat > conftest.$ac_ext <<EOF
11220 #line 11221 "configure"
11221 #include "confdefs.h"
11222 /* System header to define __stub macros and hopefully few prototypes,
11223 which can conflict with char $ac_func(); below. */
11224 #include <assert.h>
11225 /* Override any gcc2 internal prototype to avoid an error. */
11226 /* We use char because int might match the return type of a gcc2
11227 builtin and then its argument prototype would still apply. */
11228 char $ac_func();
11229
11230 int main() {
11231
11232 /* The GNU C library defines this for functions which it implements
11233 to always fail with ENOSYS. Some functions are actually named
11234 something starting with __ and the normal name is an alias. */
11235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11236 choke me
11237 #else
11238 $ac_func();
11239 #endif
11240
11241 ; return 0; }
11242 EOF
11243 if { (eval echo configure:11244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11244 rm -rf conftest*
11245 eval "ac_cv_func_$ac_func=yes"
11246 else
11247 echo "configure: failed program was:" >&5
11248 cat conftest.$ac_ext >&5
11249 rm -rf conftest*
11250 eval "ac_cv_func_$ac_func=no"
11251 fi
11252 rm -f conftest*
11253 fi
11254
11255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11256 echo "$ac_t""yes" 1>&6
11257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11258 cat >> confdefs.h <<EOF
11259 #define $ac_tr_func 1
11260 EOF
11261
11262 else
11263 echo "$ac_t""no" 1>&6
11264 fi
11265 done
11266
11267 else
11268
11269 echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11270 echo "configure:11271: checking for _finite declaration" >&5
11271 if test x${glibcxx_cv_func__finite_use+set} != xset; then
11272 if eval "test \"`echo '$''{'glibcxx_cv_func__finite_use'+set}'`\" = set"; then
11273 echo $ac_n "(cached) $ac_c" 1>&6
11274 else
11275
11276
11277 ac_ext=C
11278 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11279 ac_cpp='$CXXCPP $CPPFLAGS'
11280 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11281 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11282 cross_compiling=$ac_cv_prog_cxx_cross
11283
11284 cat > conftest.$ac_ext <<EOF
11285 #line 11286 "configure"
11286 #include "confdefs.h"
11287 #include <math.h>
11288 #ifdef HAVE_IEEEFP_H
11289 #include <ieeefp.h>
11290 #endif
11291
11292 int main() {
11293 _finite(0);
11294 ; return 0; }
11295 EOF
11296 if { (eval echo configure:11297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11297 rm -rf conftest*
11298 glibcxx_cv_func__finite_use=yes
11299 else
11300 echo "configure: failed program was:" >&5
11301 cat conftest.$ac_ext >&5
11302 rm -rf conftest*
11303 glibcxx_cv_func__finite_use=no
11304 fi
11305 rm -f conftest*
11306 ac_ext=c
11307 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11308 ac_cpp='$CPP $CPPFLAGS'
11309 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11310 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11311 cross_compiling=$ac_cv_prog_cc_cross
11312
11313
11314 fi
11315
11316 fi
11317 echo "$ac_t""$glibcxx_cv_func__finite_use" 1>&6
11318
11319 if test x$glibcxx_cv_func__finite_use = x"yes"; then
11320 for ac_func in _finite
11321 do
11322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11323 echo "configure:11324: checking for $ac_func" >&5
11324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11325 echo $ac_n "(cached) $ac_c" 1>&6
11326 else
11327 cat > conftest.$ac_ext <<EOF
11328 #line 11329 "configure"
11329 #include "confdefs.h"
11330 /* System header to define __stub macros and hopefully few prototypes,
11331 which can conflict with char $ac_func(); below. */
11332 #include <assert.h>
11333 /* Override any gcc2 internal prototype to avoid an error. */
11334 /* We use char because int might match the return type of a gcc2
11335 builtin and then its argument prototype would still apply. */
11336 char $ac_func();
11337
11338 int main() {
11339
11340 /* The GNU C library defines this for functions which it implements
11341 to always fail with ENOSYS. Some functions are actually named
11342 something starting with __ and the normal name is an alias. */
11343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11344 choke me
11345 #else
11346 $ac_func();
11347 #endif
11348
11349 ; return 0; }
11350 EOF
11351 if { (eval echo configure:11352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11352 rm -rf conftest*
11353 eval "ac_cv_func_$ac_func=yes"
11354 else
11355 echo "configure: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11357 rm -rf conftest*
11358 eval "ac_cv_func_$ac_func=no"
11359 fi
11360 rm -f conftest*
11361 fi
11362
11363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11364 echo "$ac_t""yes" 1>&6
11365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11366 cat >> confdefs.h <<EOF
11367 #define $ac_tr_func 1
11368 EOF
11369
11370 else
11371 echo "$ac_t""no" 1>&6
11372 fi
11373 done
11374
11375 fi
11376 fi
11377
11378
11379
11380 echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11381 echo "configure:11382: checking for copysign declaration" >&5
11382 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
11383 if eval "test \"`echo '$''{'glibcxx_cv_func_copysign_use'+set}'`\" = set"; then
11384 echo $ac_n "(cached) $ac_c" 1>&6
11385 else
11386
11387
11388 ac_ext=C
11389 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11390 ac_cpp='$CXXCPP $CPPFLAGS'
11391 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11392 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11393 cross_compiling=$ac_cv_prog_cxx_cross
11394
11395 cat > conftest.$ac_ext <<EOF
11396 #line 11397 "configure"
11397 #include "confdefs.h"
11398 #include <math.h>
11399 int main() {
11400 copysign(0, 0);
11401 ; return 0; }
11402 EOF
11403 if { (eval echo configure:11404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11404 rm -rf conftest*
11405 glibcxx_cv_func_copysign_use=yes
11406 else
11407 echo "configure: failed program was:" >&5
11408 cat conftest.$ac_ext >&5
11409 rm -rf conftest*
11410 glibcxx_cv_func_copysign_use=no
11411 fi
11412 rm -f conftest*
11413 ac_ext=c
11414 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11415 ac_cpp='$CPP $CPPFLAGS'
11416 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11417 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11418 cross_compiling=$ac_cv_prog_cc_cross
11419
11420
11421 fi
11422
11423 fi
11424 echo "$ac_t""$glibcxx_cv_func_copysign_use" 1>&6
11425
11426 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
11427 for ac_func in copysign
11428 do
11429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11430 echo "configure:11431: checking for $ac_func" >&5
11431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11432 echo $ac_n "(cached) $ac_c" 1>&6
11433 else
11434 cat > conftest.$ac_ext <<EOF
11435 #line 11436 "configure"
11436 #include "confdefs.h"
11437 /* System header to define __stub macros and hopefully few prototypes,
11438 which can conflict with char $ac_func(); below. */
11439 #include <assert.h>
11440 /* Override any gcc2 internal prototype to avoid an error. */
11441 /* We use char because int might match the return type of a gcc2
11442 builtin and then its argument prototype would still apply. */
11443 char $ac_func();
11444
11445 int main() {
11446
11447 /* The GNU C library defines this for functions which it implements
11448 to always fail with ENOSYS. Some functions are actually named
11449 something starting with __ and the normal name is an alias. */
11450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11451 choke me
11452 #else
11453 $ac_func();
11454 #endif
11455
11456 ; return 0; }
11457 EOF
11458 if { (eval echo configure:11459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11459 rm -rf conftest*
11460 eval "ac_cv_func_$ac_func=yes"
11461 else
11462 echo "configure: failed program was:" >&5
11463 cat conftest.$ac_ext >&5
11464 rm -rf conftest*
11465 eval "ac_cv_func_$ac_func=no"
11466 fi
11467 rm -f conftest*
11468 fi
11469
11470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11471 echo "$ac_t""yes" 1>&6
11472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11473 cat >> confdefs.h <<EOF
11474 #define $ac_tr_func 1
11475 EOF
11476
11477 else
11478 echo "$ac_t""no" 1>&6
11479 fi
11480 done
11481
11482 else
11483
11484 echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11485 echo "configure:11486: checking for _copysign declaration" >&5
11486 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
11487 if eval "test \"`echo '$''{'glibcxx_cv_func__copysign_use'+set}'`\" = set"; then
11488 echo $ac_n "(cached) $ac_c" 1>&6
11489 else
11490
11491
11492 ac_ext=C
11493 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11494 ac_cpp='$CXXCPP $CPPFLAGS'
11495 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11496 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11497 cross_compiling=$ac_cv_prog_cxx_cross
11498
11499 cat > conftest.$ac_ext <<EOF
11500 #line 11501 "configure"
11501 #include "confdefs.h"
11502 #include <math.h>
11503 int main() {
11504 _copysign(0, 0);
11505 ; return 0; }
11506 EOF
11507 if { (eval echo configure:11508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11508 rm -rf conftest*
11509 glibcxx_cv_func__copysign_use=yes
11510 else
11511 echo "configure: failed program was:" >&5
11512 cat conftest.$ac_ext >&5
11513 rm -rf conftest*
11514 glibcxx_cv_func__copysign_use=no
11515 fi
11516 rm -f conftest*
11517 ac_ext=c
11518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11519 ac_cpp='$CPP $CPPFLAGS'
11520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11522 cross_compiling=$ac_cv_prog_cc_cross
11523
11524
11525 fi
11526
11527 fi
11528 echo "$ac_t""$glibcxx_cv_func__copysign_use" 1>&6
11529
11530 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
11531 for ac_func in _copysign
11532 do
11533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11534 echo "configure:11535: checking for $ac_func" >&5
11535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11536 echo $ac_n "(cached) $ac_c" 1>&6
11537 else
11538 cat > conftest.$ac_ext <<EOF
11539 #line 11540 "configure"
11540 #include "confdefs.h"
11541 /* System header to define __stub macros and hopefully few prototypes,
11542 which can conflict with char $ac_func(); below. */
11543 #include <assert.h>
11544 /* Override any gcc2 internal prototype to avoid an error. */
11545 /* We use char because int might match the return type of a gcc2
11546 builtin and then its argument prototype would still apply. */
11547 char $ac_func();
11548
11549 int main() {
11550
11551 /* The GNU C library defines this for functions which it implements
11552 to always fail with ENOSYS. Some functions are actually named
11553 something starting with __ and the normal name is an alias. */
11554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11555 choke me
11556 #else
11557 $ac_func();
11558 #endif
11559
11560 ; return 0; }
11561 EOF
11562 if { (eval echo configure:11563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11563 rm -rf conftest*
11564 eval "ac_cv_func_$ac_func=yes"
11565 else
11566 echo "configure: failed program was:" >&5
11567 cat conftest.$ac_ext >&5
11568 rm -rf conftest*
11569 eval "ac_cv_func_$ac_func=no"
11570 fi
11571 rm -f conftest*
11572 fi
11573
11574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11575 echo "$ac_t""yes" 1>&6
11576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11577 cat >> confdefs.h <<EOF
11578 #define $ac_tr_func 1
11579 EOF
11580
11581 else
11582 echo "$ac_t""no" 1>&6
11583 fi
11584 done
11585
11586 fi
11587 fi
11588
11589
11590
11591 echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11592 echo "configure:11593: checking for sincos declaration" >&5
11593 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
11594 if eval "test \"`echo '$''{'glibcxx_cv_func_sincos_use'+set}'`\" = set"; then
11595 echo $ac_n "(cached) $ac_c" 1>&6
11596 else
11597
11598
11599 ac_ext=C
11600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11601 ac_cpp='$CXXCPP $CPPFLAGS'
11602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11603 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11604 cross_compiling=$ac_cv_prog_cxx_cross
11605
11606 cat > conftest.$ac_ext <<EOF
11607 #line 11608 "configure"
11608 #include "confdefs.h"
11609 #include <math.h>
11610 int main() {
11611 sincos(0, 0, 0);
11612 ; return 0; }
11613 EOF
11614 if { (eval echo configure:11615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11615 rm -rf conftest*
11616 glibcxx_cv_func_sincos_use=yes
11617 else
11618 echo "configure: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 rm -rf conftest*
11621 glibcxx_cv_func_sincos_use=no
11622 fi
11623 rm -f conftest*
11624 ac_ext=c
11625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11626 ac_cpp='$CPP $CPPFLAGS'
11627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11629 cross_compiling=$ac_cv_prog_cc_cross
11630
11631
11632 fi
11633
11634 fi
11635 echo "$ac_t""$glibcxx_cv_func_sincos_use" 1>&6
11636
11637 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
11638 for ac_func in sincos
11639 do
11640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11641 echo "configure:11642: checking for $ac_func" >&5
11642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11643 echo $ac_n "(cached) $ac_c" 1>&6
11644 else
11645 cat > conftest.$ac_ext <<EOF
11646 #line 11647 "configure"
11647 #include "confdefs.h"
11648 /* System header to define __stub macros and hopefully few prototypes,
11649 which can conflict with char $ac_func(); below. */
11650 #include <assert.h>
11651 /* Override any gcc2 internal prototype to avoid an error. */
11652 /* We use char because int might match the return type of a gcc2
11653 builtin and then its argument prototype would still apply. */
11654 char $ac_func();
11655
11656 int main() {
11657
11658 /* The GNU C library defines this for functions which it implements
11659 to always fail with ENOSYS. Some functions are actually named
11660 something starting with __ and the normal name is an alias. */
11661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11662 choke me
11663 #else
11664 $ac_func();
11665 #endif
11666
11667 ; return 0; }
11668 EOF
11669 if { (eval echo configure:11670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11670 rm -rf conftest*
11671 eval "ac_cv_func_$ac_func=yes"
11672 else
11673 echo "configure: failed program was:" >&5
11674 cat conftest.$ac_ext >&5
11675 rm -rf conftest*
11676 eval "ac_cv_func_$ac_func=no"
11677 fi
11678 rm -f conftest*
11679 fi
11680
11681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11682 echo "$ac_t""yes" 1>&6
11683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11684 cat >> confdefs.h <<EOF
11685 #define $ac_tr_func 1
11686 EOF
11687
11688 else
11689 echo "$ac_t""no" 1>&6
11690 fi
11691 done
11692
11693 else
11694
11695 echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11696 echo "configure:11697: checking for _sincos declaration" >&5
11697 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
11698 if eval "test \"`echo '$''{'glibcxx_cv_func__sincos_use'+set}'`\" = set"; then
11699 echo $ac_n "(cached) $ac_c" 1>&6
11700 else
11701
11702
11703 ac_ext=C
11704 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11705 ac_cpp='$CXXCPP $CPPFLAGS'
11706 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11707 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11708 cross_compiling=$ac_cv_prog_cxx_cross
11709
11710 cat > conftest.$ac_ext <<EOF
11711 #line 11712 "configure"
11712 #include "confdefs.h"
11713 #include <math.h>
11714 int main() {
11715 _sincos(0, 0, 0);
11716 ; return 0; }
11717 EOF
11718 if { (eval echo configure:11719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11719 rm -rf conftest*
11720 glibcxx_cv_func__sincos_use=yes
11721 else
11722 echo "configure: failed program was:" >&5
11723 cat conftest.$ac_ext >&5
11724 rm -rf conftest*
11725 glibcxx_cv_func__sincos_use=no
11726 fi
11727 rm -f conftest*
11728 ac_ext=c
11729 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11730 ac_cpp='$CPP $CPPFLAGS'
11731 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11732 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11733 cross_compiling=$ac_cv_prog_cc_cross
11734
11735
11736 fi
11737
11738 fi
11739 echo "$ac_t""$glibcxx_cv_func__sincos_use" 1>&6
11740
11741 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
11742 for ac_func in _sincos
11743 do
11744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11745 echo "configure:11746: checking for $ac_func" >&5
11746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11747 echo $ac_n "(cached) $ac_c" 1>&6
11748 else
11749 cat > conftest.$ac_ext <<EOF
11750 #line 11751 "configure"
11751 #include "confdefs.h"
11752 /* System header to define __stub macros and hopefully few prototypes,
11753 which can conflict with char $ac_func(); below. */
11754 #include <assert.h>
11755 /* Override any gcc2 internal prototype to avoid an error. */
11756 /* We use char because int might match the return type of a gcc2
11757 builtin and then its argument prototype would still apply. */
11758 char $ac_func();
11759
11760 int main() {
11761
11762 /* The GNU C library defines this for functions which it implements
11763 to always fail with ENOSYS. Some functions are actually named
11764 something starting with __ and the normal name is an alias. */
11765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11766 choke me
11767 #else
11768 $ac_func();
11769 #endif
11770
11771 ; return 0; }
11772 EOF
11773 if { (eval echo configure:11774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11774 rm -rf conftest*
11775 eval "ac_cv_func_$ac_func=yes"
11776 else
11777 echo "configure: failed program was:" >&5
11778 cat conftest.$ac_ext >&5
11779 rm -rf conftest*
11780 eval "ac_cv_func_$ac_func=no"
11781 fi
11782 rm -f conftest*
11783 fi
11784
11785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11786 echo "$ac_t""yes" 1>&6
11787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11788 cat >> confdefs.h <<EOF
11789 #define $ac_tr_func 1
11790 EOF
11791
11792 else
11793 echo "$ac_t""no" 1>&6
11794 fi
11795 done
11796
11797 fi
11798 fi
11799
11800
11801
11802 echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11803 echo "configure:11804: checking for fpclass declaration" >&5
11804 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
11805 if eval "test \"`echo '$''{'glibcxx_cv_func_fpclass_use'+set}'`\" = set"; then
11806 echo $ac_n "(cached) $ac_c" 1>&6
11807 else
11808
11809
11810 ac_ext=C
11811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11812 ac_cpp='$CXXCPP $CPPFLAGS'
11813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11815 cross_compiling=$ac_cv_prog_cxx_cross
11816
11817 cat > conftest.$ac_ext <<EOF
11818 #line 11819 "configure"
11819 #include "confdefs.h"
11820 #include <math.h>
11821 #ifdef HAVE_IEEEFP_H
11822 #include <ieeefp.h>
11823 #endif
11824
11825 int main() {
11826 fpclass(0);
11827 ; return 0; }
11828 EOF
11829 if { (eval echo configure:11830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11830 rm -rf conftest*
11831 glibcxx_cv_func_fpclass_use=yes
11832 else
11833 echo "configure: failed program was:" >&5
11834 cat conftest.$ac_ext >&5
11835 rm -rf conftest*
11836 glibcxx_cv_func_fpclass_use=no
11837 fi
11838 rm -f conftest*
11839 ac_ext=c
11840 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11841 ac_cpp='$CPP $CPPFLAGS'
11842 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11843 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11844 cross_compiling=$ac_cv_prog_cc_cross
11845
11846
11847 fi
11848
11849 fi
11850 echo "$ac_t""$glibcxx_cv_func_fpclass_use" 1>&6
11851
11852 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
11853 for ac_func in fpclass
11854 do
11855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11856 echo "configure:11857: checking for $ac_func" >&5
11857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11858 echo $ac_n "(cached) $ac_c" 1>&6
11859 else
11860 cat > conftest.$ac_ext <<EOF
11861 #line 11862 "configure"
11862 #include "confdefs.h"
11863 /* System header to define __stub macros and hopefully few prototypes,
11864 which can conflict with char $ac_func(); below. */
11865 #include <assert.h>
11866 /* Override any gcc2 internal prototype to avoid an error. */
11867 /* We use char because int might match the return type of a gcc2
11868 builtin and then its argument prototype would still apply. */
11869 char $ac_func();
11870
11871 int main() {
11872
11873 /* The GNU C library defines this for functions which it implements
11874 to always fail with ENOSYS. Some functions are actually named
11875 something starting with __ and the normal name is an alias. */
11876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11877 choke me
11878 #else
11879 $ac_func();
11880 #endif
11881
11882 ; return 0; }
11883 EOF
11884 if { (eval echo configure:11885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11885 rm -rf conftest*
11886 eval "ac_cv_func_$ac_func=yes"
11887 else
11888 echo "configure: failed program was:" >&5
11889 cat conftest.$ac_ext >&5
11890 rm -rf conftest*
11891 eval "ac_cv_func_$ac_func=no"
11892 fi
11893 rm -f conftest*
11894 fi
11895
11896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11897 echo "$ac_t""yes" 1>&6
11898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11899 cat >> confdefs.h <<EOF
11900 #define $ac_tr_func 1
11901 EOF
11902
11903 else
11904 echo "$ac_t""no" 1>&6
11905 fi
11906 done
11907
11908 else
11909
11910 echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11911 echo "configure:11912: checking for _fpclass declaration" >&5
11912 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
11913 if eval "test \"`echo '$''{'glibcxx_cv_func__fpclass_use'+set}'`\" = set"; then
11914 echo $ac_n "(cached) $ac_c" 1>&6
11915 else
11916
11917
11918 ac_ext=C
11919 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11920 ac_cpp='$CXXCPP $CPPFLAGS'
11921 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11922 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11923 cross_compiling=$ac_cv_prog_cxx_cross
11924
11925 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11928 #include <math.h>
11929 #ifdef HAVE_IEEEFP_H
11930 #include <ieeefp.h>
11931 #endif
11932
11933 int main() {
11934 _fpclass(0);
11935 ; return 0; }
11936 EOF
11937 if { (eval echo configure:11938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11938 rm -rf conftest*
11939 glibcxx_cv_func__fpclass_use=yes
11940 else
11941 echo "configure: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11943 rm -rf conftest*
11944 glibcxx_cv_func__fpclass_use=no
11945 fi
11946 rm -f conftest*
11947 ac_ext=c
11948 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11949 ac_cpp='$CPP $CPPFLAGS'
11950 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11951 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11952 cross_compiling=$ac_cv_prog_cc_cross
11953
11954
11955 fi
11956
11957 fi
11958 echo "$ac_t""$glibcxx_cv_func__fpclass_use" 1>&6
11959
11960 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
11961 for ac_func in _fpclass
11962 do
11963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11964 echo "configure:11965: checking for $ac_func" >&5
11965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11966 echo $ac_n "(cached) $ac_c" 1>&6
11967 else
11968 cat > conftest.$ac_ext <<EOF
11969 #line 11970 "configure"
11970 #include "confdefs.h"
11971 /* System header to define __stub macros and hopefully few prototypes,
11972 which can conflict with char $ac_func(); below. */
11973 #include <assert.h>
11974 /* Override any gcc2 internal prototype to avoid an error. */
11975 /* We use char because int might match the return type of a gcc2
11976 builtin and then its argument prototype would still apply. */
11977 char $ac_func();
11978
11979 int main() {
11980
11981 /* The GNU C library defines this for functions which it implements
11982 to always fail with ENOSYS. Some functions are actually named
11983 something starting with __ and the normal name is an alias. */
11984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11985 choke me
11986 #else
11987 $ac_func();
11988 #endif
11989
11990 ; return 0; }
11991 EOF
11992 if { (eval echo configure:11993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11993 rm -rf conftest*
11994 eval "ac_cv_func_$ac_func=yes"
11995 else
11996 echo "configure: failed program was:" >&5
11997 cat conftest.$ac_ext >&5
11998 rm -rf conftest*
11999 eval "ac_cv_func_$ac_func=no"
12000 fi
12001 rm -f conftest*
12002 fi
12003
12004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12005 echo "$ac_t""yes" 1>&6
12006 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12007 cat >> confdefs.h <<EOF
12008 #define $ac_tr_func 1
12009 EOF
12010
12011 else
12012 echo "$ac_t""no" 1>&6
12013 fi
12014 done
12015
12016 fi
12017 fi
12018
12019
12020
12021 echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12022 echo "configure:12023: checking for qfpclass declaration" >&5
12023 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
12024 if eval "test \"`echo '$''{'glibcxx_cv_func_qfpclass_use'+set}'`\" = set"; then
12025 echo $ac_n "(cached) $ac_c" 1>&6
12026 else
12027
12028
12029 ac_ext=C
12030 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12031 ac_cpp='$CXXCPP $CPPFLAGS'
12032 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12033 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12034 cross_compiling=$ac_cv_prog_cxx_cross
12035
12036 cat > conftest.$ac_ext <<EOF
12037 #line 12038 "configure"
12038 #include "confdefs.h"
12039 #include <math.h>
12040 #ifdef HAVE_IEEEFP_H
12041 #include <ieeefp.h>
12042 #endif
12043
12044 int main() {
12045 qfpclass(0);
12046 ; return 0; }
12047 EOF
12048 if { (eval echo configure:12049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12049 rm -rf conftest*
12050 glibcxx_cv_func_qfpclass_use=yes
12051 else
12052 echo "configure: failed program was:" >&5
12053 cat conftest.$ac_ext >&5
12054 rm -rf conftest*
12055 glibcxx_cv_func_qfpclass_use=no
12056 fi
12057 rm -f conftest*
12058 ac_ext=c
12059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12060 ac_cpp='$CPP $CPPFLAGS'
12061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12063 cross_compiling=$ac_cv_prog_cc_cross
12064
12065
12066 fi
12067
12068 fi
12069 echo "$ac_t""$glibcxx_cv_func_qfpclass_use" 1>&6
12070
12071 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
12072 for ac_func in qfpclass
12073 do
12074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12075 echo "configure:12076: checking for $ac_func" >&5
12076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12077 echo $ac_n "(cached) $ac_c" 1>&6
12078 else
12079 cat > conftest.$ac_ext <<EOF
12080 #line 12081 "configure"
12081 #include "confdefs.h"
12082 /* System header to define __stub macros and hopefully few prototypes,
12083 which can conflict with char $ac_func(); below. */
12084 #include <assert.h>
12085 /* Override any gcc2 internal prototype to avoid an error. */
12086 /* We use char because int might match the return type of a gcc2
12087 builtin and then its argument prototype would still apply. */
12088 char $ac_func();
12089
12090 int main() {
12091
12092 /* The GNU C library defines this for functions which it implements
12093 to always fail with ENOSYS. Some functions are actually named
12094 something starting with __ and the normal name is an alias. */
12095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12096 choke me
12097 #else
12098 $ac_func();
12099 #endif
12100
12101 ; return 0; }
12102 EOF
12103 if { (eval echo configure:12104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12104 rm -rf conftest*
12105 eval "ac_cv_func_$ac_func=yes"
12106 else
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12109 rm -rf conftest*
12110 eval "ac_cv_func_$ac_func=no"
12111 fi
12112 rm -f conftest*
12113 fi
12114
12115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12116 echo "$ac_t""yes" 1>&6
12117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12118 cat >> confdefs.h <<EOF
12119 #define $ac_tr_func 1
12120 EOF
12121
12122 else
12123 echo "$ac_t""no" 1>&6
12124 fi
12125 done
12126
12127 else
12128
12129 echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12130 echo "configure:12131: checking for _qfpclass declaration" >&5
12131 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
12132 if eval "test \"`echo '$''{'glibcxx_cv_func__qfpclass_use'+set}'`\" = set"; then
12133 echo $ac_n "(cached) $ac_c" 1>&6
12134 else
12135
12136
12137 ac_ext=C
12138 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12139 ac_cpp='$CXXCPP $CPPFLAGS'
12140 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12141 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12142 cross_compiling=$ac_cv_prog_cxx_cross
12143
12144 cat > conftest.$ac_ext <<EOF
12145 #line 12146 "configure"
12146 #include "confdefs.h"
12147 #include <math.h>
12148 #ifdef HAVE_IEEEFP_H
12149 #include <ieeefp.h>
12150 #endif
12151
12152 int main() {
12153 _qfpclass(0);
12154 ; return 0; }
12155 EOF
12156 if { (eval echo configure:12157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12157 rm -rf conftest*
12158 glibcxx_cv_func__qfpclass_use=yes
12159 else
12160 echo "configure: failed program was:" >&5
12161 cat conftest.$ac_ext >&5
12162 rm -rf conftest*
12163 glibcxx_cv_func__qfpclass_use=no
12164 fi
12165 rm -f conftest*
12166 ac_ext=c
12167 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12168 ac_cpp='$CPP $CPPFLAGS'
12169 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12170 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12171 cross_compiling=$ac_cv_prog_cc_cross
12172
12173
12174 fi
12175
12176 fi
12177 echo "$ac_t""$glibcxx_cv_func__qfpclass_use" 1>&6
12178
12179 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
12180 for ac_func in _qfpclass
12181 do
12182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12183 echo "configure:12184: checking for $ac_func" >&5
12184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12185 echo $ac_n "(cached) $ac_c" 1>&6
12186 else
12187 cat > conftest.$ac_ext <<EOF
12188 #line 12189 "configure"
12189 #include "confdefs.h"
12190 /* System header to define __stub macros and hopefully few prototypes,
12191 which can conflict with char $ac_func(); below. */
12192 #include <assert.h>
12193 /* Override any gcc2 internal prototype to avoid an error. */
12194 /* We use char because int might match the return type of a gcc2
12195 builtin and then its argument prototype would still apply. */
12196 char $ac_func();
12197
12198 int main() {
12199
12200 /* The GNU C library defines this for functions which it implements
12201 to always fail with ENOSYS. Some functions are actually named
12202 something starting with __ and the normal name is an alias. */
12203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12204 choke me
12205 #else
12206 $ac_func();
12207 #endif
12208
12209 ; return 0; }
12210 EOF
12211 if { (eval echo configure:12212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12212 rm -rf conftest*
12213 eval "ac_cv_func_$ac_func=yes"
12214 else
12215 echo "configure: failed program was:" >&5
12216 cat conftest.$ac_ext >&5
12217 rm -rf conftest*
12218 eval "ac_cv_func_$ac_func=no"
12219 fi
12220 rm -f conftest*
12221 fi
12222
12223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12224 echo "$ac_t""yes" 1>&6
12225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12226 cat >> confdefs.h <<EOF
12227 #define $ac_tr_func 1
12228 EOF
12229
12230 else
12231 echo "$ac_t""no" 1>&6
12232 fi
12233 done
12234
12235 fi
12236 fi
12237
12238
12239
12240 echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12241 echo "configure:12242: checking for hypot declaration" >&5
12242 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
12243 if eval "test \"`echo '$''{'glibcxx_cv_func_hypot_use'+set}'`\" = set"; then
12244 echo $ac_n "(cached) $ac_c" 1>&6
12245 else
12246
12247
12248 ac_ext=C
12249 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12250 ac_cpp='$CXXCPP $CPPFLAGS'
12251 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12252 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12253 cross_compiling=$ac_cv_prog_cxx_cross
12254
12255 cat > conftest.$ac_ext <<EOF
12256 #line 12257 "configure"
12257 #include "confdefs.h"
12258 #include <math.h>
12259 int main() {
12260 hypot(0, 0);
12261 ; return 0; }
12262 EOF
12263 if { (eval echo configure:12264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12264 rm -rf conftest*
12265 glibcxx_cv_func_hypot_use=yes
12266 else
12267 echo "configure: failed program was:" >&5
12268 cat conftest.$ac_ext >&5
12269 rm -rf conftest*
12270 glibcxx_cv_func_hypot_use=no
12271 fi
12272 rm -f conftest*
12273 ac_ext=c
12274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12275 ac_cpp='$CPP $CPPFLAGS'
12276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12277 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12278 cross_compiling=$ac_cv_prog_cc_cross
12279
12280
12281 fi
12282
12283 fi
12284 echo "$ac_t""$glibcxx_cv_func_hypot_use" 1>&6
12285
12286 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
12287 for ac_func in hypot
12288 do
12289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12290 echo "configure:12291: checking for $ac_func" >&5
12291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12292 echo $ac_n "(cached) $ac_c" 1>&6
12293 else
12294 cat > conftest.$ac_ext <<EOF
12295 #line 12296 "configure"
12296 #include "confdefs.h"
12297 /* System header to define __stub macros and hopefully few prototypes,
12298 which can conflict with char $ac_func(); below. */
12299 #include <assert.h>
12300 /* Override any gcc2 internal prototype to avoid an error. */
12301 /* We use char because int might match the return type of a gcc2
12302 builtin and then its argument prototype would still apply. */
12303 char $ac_func();
12304
12305 int main() {
12306
12307 /* The GNU C library defines this for functions which it implements
12308 to always fail with ENOSYS. Some functions are actually named
12309 something starting with __ and the normal name is an alias. */
12310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12311 choke me
12312 #else
12313 $ac_func();
12314 #endif
12315
12316 ; return 0; }
12317 EOF
12318 if { (eval echo configure:12319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12319 rm -rf conftest*
12320 eval "ac_cv_func_$ac_func=yes"
12321 else
12322 echo "configure: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12324 rm -rf conftest*
12325 eval "ac_cv_func_$ac_func=no"
12326 fi
12327 rm -f conftest*
12328 fi
12329
12330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12331 echo "$ac_t""yes" 1>&6
12332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12333 cat >> confdefs.h <<EOF
12334 #define $ac_tr_func 1
12335 EOF
12336
12337 else
12338 echo "$ac_t""no" 1>&6
12339 fi
12340 done
12341
12342 else
12343
12344 echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12345 echo "configure:12346: checking for _hypot declaration" >&5
12346 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
12347 if eval "test \"`echo '$''{'glibcxx_cv_func__hypot_use'+set}'`\" = set"; then
12348 echo $ac_n "(cached) $ac_c" 1>&6
12349 else
12350
12351
12352 ac_ext=C
12353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12354 ac_cpp='$CXXCPP $CPPFLAGS'
12355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12357 cross_compiling=$ac_cv_prog_cxx_cross
12358
12359 cat > conftest.$ac_ext <<EOF
12360 #line 12361 "configure"
12361 #include "confdefs.h"
12362 #include <math.h>
12363 int main() {
12364 _hypot(0, 0);
12365 ; return 0; }
12366 EOF
12367 if { (eval echo configure:12368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12368 rm -rf conftest*
12369 glibcxx_cv_func__hypot_use=yes
12370 else
12371 echo "configure: failed program was:" >&5
12372 cat conftest.$ac_ext >&5
12373 rm -rf conftest*
12374 glibcxx_cv_func__hypot_use=no
12375 fi
12376 rm -f conftest*
12377 ac_ext=c
12378 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12379 ac_cpp='$CPP $CPPFLAGS'
12380 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12381 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12382 cross_compiling=$ac_cv_prog_cc_cross
12383
12384
12385 fi
12386
12387 fi
12388 echo "$ac_t""$glibcxx_cv_func__hypot_use" 1>&6
12389
12390 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
12391 for ac_func in _hypot
12392 do
12393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12394 echo "configure:12395: checking for $ac_func" >&5
12395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12396 echo $ac_n "(cached) $ac_c" 1>&6
12397 else
12398 cat > conftest.$ac_ext <<EOF
12399 #line 12400 "configure"
12400 #include "confdefs.h"
12401 /* System header to define __stub macros and hopefully few prototypes,
12402 which can conflict with char $ac_func(); below. */
12403 #include <assert.h>
12404 /* Override any gcc2 internal prototype to avoid an error. */
12405 /* We use char because int might match the return type of a gcc2
12406 builtin and then its argument prototype would still apply. */
12407 char $ac_func();
12408
12409 int main() {
12410
12411 /* The GNU C library defines this for functions which it implements
12412 to always fail with ENOSYS. Some functions are actually named
12413 something starting with __ and the normal name is an alias. */
12414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12415 choke me
12416 #else
12417 $ac_func();
12418 #endif
12419
12420 ; return 0; }
12421 EOF
12422 if { (eval echo configure:12423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12423 rm -rf conftest*
12424 eval "ac_cv_func_$ac_func=yes"
12425 else
12426 echo "configure: failed program was:" >&5
12427 cat conftest.$ac_ext >&5
12428 rm -rf conftest*
12429 eval "ac_cv_func_$ac_func=no"
12430 fi
12431 rm -f conftest*
12432 fi
12433
12434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12435 echo "$ac_t""yes" 1>&6
12436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12437 cat >> confdefs.h <<EOF
12438 #define $ac_tr_func 1
12439 EOF
12440
12441 else
12442 echo "$ac_t""no" 1>&6
12443 fi
12444 done
12445
12446 fi
12447 fi
12448
12449
12450
12451 echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12452 echo "configure:12453: checking for float trig functions" >&5
12453 if eval "test \"`echo '$''{'glibcxx_cv_func_float_trig_use'+set}'`\" = set"; then
12454 echo $ac_n "(cached) $ac_c" 1>&6
12455 else
12456
12457
12458 ac_ext=C
12459 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12460 ac_cpp='$CXXCPP $CPPFLAGS'
12461 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12462 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12463 cross_compiling=$ac_cv_prog_cxx_cross
12464
12465 cat > conftest.$ac_ext <<EOF
12466 #line 12467 "configure"
12467 #include "confdefs.h"
12468 #include <math.h>
12469 int main() {
12470 `for x in acosf asinf atanf \
12471 cosf sinf tanf \
12472 coshf sinhf tanhf; do echo "$x (0);"; done`
12473 ; return 0; }
12474 EOF
12475 if { (eval echo configure:12476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12476 rm -rf conftest*
12477 glibcxx_cv_func_float_trig_use=yes
12478 else
12479 echo "configure: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12481 rm -rf conftest*
12482 glibcxx_cv_func_float_trig_use=no
12483 fi
12484 rm -f conftest*
12485 ac_ext=c
12486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12487 ac_cpp='$CPP $CPPFLAGS'
12488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12490 cross_compiling=$ac_cv_prog_cc_cross
12491
12492 fi
12493
12494 echo "$ac_t""$glibcxx_cv_func_float_trig_use" 1>&6
12495 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
12496 for ac_func in acosf asinf atanf \
12497 cosf sinf tanf \
12498 coshf sinhf tanhf
12499 do
12500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12501 echo "configure:12502: checking for $ac_func" >&5
12502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12503 echo $ac_n "(cached) $ac_c" 1>&6
12504 else
12505 cat > conftest.$ac_ext <<EOF
12506 #line 12507 "configure"
12507 #include "confdefs.h"
12508 /* System header to define __stub macros and hopefully few prototypes,
12509 which can conflict with char $ac_func(); below. */
12510 #include <assert.h>
12511 /* Override any gcc2 internal prototype to avoid an error. */
12512 /* We use char because int might match the return type of a gcc2
12513 builtin and then its argument prototype would still apply. */
12514 char $ac_func();
12515
12516 int main() {
12517
12518 /* The GNU C library defines this for functions which it implements
12519 to always fail with ENOSYS. Some functions are actually named
12520 something starting with __ and the normal name is an alias. */
12521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12522 choke me
12523 #else
12524 $ac_func();
12525 #endif
12526
12527 ; return 0; }
12528 EOF
12529 if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12530 rm -rf conftest*
12531 eval "ac_cv_func_$ac_func=yes"
12532 else
12533 echo "configure: failed program was:" >&5
12534 cat conftest.$ac_ext >&5
12535 rm -rf conftest*
12536 eval "ac_cv_func_$ac_func=no"
12537 fi
12538 rm -f conftest*
12539 fi
12540
12541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12542 echo "$ac_t""yes" 1>&6
12543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12544 cat >> confdefs.h <<EOF
12545 #define $ac_tr_func 1
12546 EOF
12547
12548 else
12549 echo "$ac_t""no" 1>&6
12550 fi
12551 done
12552
12553 fi
12554
12555
12556 echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12557 echo "configure:12558: checking for float round functions" >&5
12558 if eval "test \"`echo '$''{'glibcxx_cv_func_float_round_use'+set}'`\" = set"; then
12559 echo $ac_n "(cached) $ac_c" 1>&6
12560 else
12561
12562
12563 ac_ext=C
12564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12565 ac_cpp='$CXXCPP $CPPFLAGS'
12566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12568 cross_compiling=$ac_cv_prog_cxx_cross
12569
12570 cat > conftest.$ac_ext <<EOF
12571 #line 12572 "configure"
12572 #include "confdefs.h"
12573 #include <math.h>
12574 int main() {
12575 `for x in ceilf floorf; do echo "$x (0);"; done`
12576 ; return 0; }
12577 EOF
12578 if { (eval echo configure:12579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12579 rm -rf conftest*
12580 glibcxx_cv_func_float_round_use=yes
12581 else
12582 echo "configure: failed program was:" >&5
12583 cat conftest.$ac_ext >&5
12584 rm -rf conftest*
12585 glibcxx_cv_func_float_round_use=no
12586 fi
12587 rm -f conftest*
12588 ac_ext=c
12589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12590 ac_cpp='$CPP $CPPFLAGS'
12591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12593 cross_compiling=$ac_cv_prog_cc_cross
12594
12595 fi
12596
12597 echo "$ac_t""$glibcxx_cv_func_float_round_use" 1>&6
12598 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
12599 for ac_func in ceilf floorf
12600 do
12601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12602 echo "configure:12603: checking for $ac_func" >&5
12603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12604 echo $ac_n "(cached) $ac_c" 1>&6
12605 else
12606 cat > conftest.$ac_ext <<EOF
12607 #line 12608 "configure"
12608 #include "confdefs.h"
12609 /* System header to define __stub macros and hopefully few prototypes,
12610 which can conflict with char $ac_func(); below. */
12611 #include <assert.h>
12612 /* Override any gcc2 internal prototype to avoid an error. */
12613 /* We use char because int might match the return type of a gcc2
12614 builtin and then its argument prototype would still apply. */
12615 char $ac_func();
12616
12617 int main() {
12618
12619 /* The GNU C library defines this for functions which it implements
12620 to always fail with ENOSYS. Some functions are actually named
12621 something starting with __ and the normal name is an alias. */
12622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12623 choke me
12624 #else
12625 $ac_func();
12626 #endif
12627
12628 ; return 0; }
12629 EOF
12630 if { (eval echo configure:12631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12631 rm -rf conftest*
12632 eval "ac_cv_func_$ac_func=yes"
12633 else
12634 echo "configure: failed program was:" >&5
12635 cat conftest.$ac_ext >&5
12636 rm -rf conftest*
12637 eval "ac_cv_func_$ac_func=no"
12638 fi
12639 rm -f conftest*
12640 fi
12641
12642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12643 echo "$ac_t""yes" 1>&6
12644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12645 cat >> confdefs.h <<EOF
12646 #define $ac_tr_func 1
12647 EOF
12648
12649 else
12650 echo "$ac_t""no" 1>&6
12651 fi
12652 done
12653
12654 fi
12655
12656
12657
12658 echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12659 echo "configure:12660: checking for expf declaration" >&5
12660 if test x${glibcxx_cv_func_expf_use+set} != xset; then
12661 if eval "test \"`echo '$''{'glibcxx_cv_func_expf_use'+set}'`\" = set"; then
12662 echo $ac_n "(cached) $ac_c" 1>&6
12663 else
12664
12665
12666 ac_ext=C
12667 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12668 ac_cpp='$CXXCPP $CPPFLAGS'
12669 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12670 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12671 cross_compiling=$ac_cv_prog_cxx_cross
12672
12673 cat > conftest.$ac_ext <<EOF
12674 #line 12675 "configure"
12675 #include "confdefs.h"
12676 #include <math.h>
12677 #ifdef HAVE_IEEEFP_H
12678 #include <ieeefp.h>
12679 #endif
12680
12681 int main() {
12682 expf(0);
12683 ; return 0; }
12684 EOF
12685 if { (eval echo configure:12686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12686 rm -rf conftest*
12687 glibcxx_cv_func_expf_use=yes
12688 else
12689 echo "configure: failed program was:" >&5
12690 cat conftest.$ac_ext >&5
12691 rm -rf conftest*
12692 glibcxx_cv_func_expf_use=no
12693 fi
12694 rm -f conftest*
12695 ac_ext=c
12696 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12697 ac_cpp='$CPP $CPPFLAGS'
12698 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12699 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12700 cross_compiling=$ac_cv_prog_cc_cross
12701
12702
12703 fi
12704
12705 fi
12706 echo "$ac_t""$glibcxx_cv_func_expf_use" 1>&6
12707
12708 if test x$glibcxx_cv_func_expf_use = x"yes"; then
12709 for ac_func in expf
12710 do
12711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12712 echo "configure:12713: checking for $ac_func" >&5
12713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12714 echo $ac_n "(cached) $ac_c" 1>&6
12715 else
12716 cat > conftest.$ac_ext <<EOF
12717 #line 12718 "configure"
12718 #include "confdefs.h"
12719 /* System header to define __stub macros and hopefully few prototypes,
12720 which can conflict with char $ac_func(); below. */
12721 #include <assert.h>
12722 /* Override any gcc2 internal prototype to avoid an error. */
12723 /* We use char because int might match the return type of a gcc2
12724 builtin and then its argument prototype would still apply. */
12725 char $ac_func();
12726
12727 int main() {
12728
12729 /* The GNU C library defines this for functions which it implements
12730 to always fail with ENOSYS. Some functions are actually named
12731 something starting with __ and the normal name is an alias. */
12732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12733 choke me
12734 #else
12735 $ac_func();
12736 #endif
12737
12738 ; return 0; }
12739 EOF
12740 if { (eval echo configure:12741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12741 rm -rf conftest*
12742 eval "ac_cv_func_$ac_func=yes"
12743 else
12744 echo "configure: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 rm -rf conftest*
12747 eval "ac_cv_func_$ac_func=no"
12748 fi
12749 rm -f conftest*
12750 fi
12751
12752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12753 echo "$ac_t""yes" 1>&6
12754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12755 cat >> confdefs.h <<EOF
12756 #define $ac_tr_func 1
12757 EOF
12758
12759 else
12760 echo "$ac_t""no" 1>&6
12761 fi
12762 done
12763
12764 else
12765
12766 echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12767 echo "configure:12768: checking for _expf declaration" >&5
12768 if test x${glibcxx_cv_func__expf_use+set} != xset; then
12769 if eval "test \"`echo '$''{'glibcxx_cv_func__expf_use'+set}'`\" = set"; then
12770 echo $ac_n "(cached) $ac_c" 1>&6
12771 else
12772
12773
12774 ac_ext=C
12775 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12776 ac_cpp='$CXXCPP $CPPFLAGS'
12777 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12778 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12779 cross_compiling=$ac_cv_prog_cxx_cross
12780
12781 cat > conftest.$ac_ext <<EOF
12782 #line 12783 "configure"
12783 #include "confdefs.h"
12784 #include <math.h>
12785 #ifdef HAVE_IEEEFP_H
12786 #include <ieeefp.h>
12787 #endif
12788
12789 int main() {
12790 _expf(0);
12791 ; return 0; }
12792 EOF
12793 if { (eval echo configure:12794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12794 rm -rf conftest*
12795 glibcxx_cv_func__expf_use=yes
12796 else
12797 echo "configure: failed program was:" >&5
12798 cat conftest.$ac_ext >&5
12799 rm -rf conftest*
12800 glibcxx_cv_func__expf_use=no
12801 fi
12802 rm -f conftest*
12803 ac_ext=c
12804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12805 ac_cpp='$CPP $CPPFLAGS'
12806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12808 cross_compiling=$ac_cv_prog_cc_cross
12809
12810
12811 fi
12812
12813 fi
12814 echo "$ac_t""$glibcxx_cv_func__expf_use" 1>&6
12815
12816 if test x$glibcxx_cv_func__expf_use = x"yes"; then
12817 for ac_func in _expf
12818 do
12819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12820 echo "configure:12821: checking for $ac_func" >&5
12821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12822 echo $ac_n "(cached) $ac_c" 1>&6
12823 else
12824 cat > conftest.$ac_ext <<EOF
12825 #line 12826 "configure"
12826 #include "confdefs.h"
12827 /* System header to define __stub macros and hopefully few prototypes,
12828 which can conflict with char $ac_func(); below. */
12829 #include <assert.h>
12830 /* Override any gcc2 internal prototype to avoid an error. */
12831 /* We use char because int might match the return type of a gcc2
12832 builtin and then its argument prototype would still apply. */
12833 char $ac_func();
12834
12835 int main() {
12836
12837 /* The GNU C library defines this for functions which it implements
12838 to always fail with ENOSYS. Some functions are actually named
12839 something starting with __ and the normal name is an alias. */
12840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12841 choke me
12842 #else
12843 $ac_func();
12844 #endif
12845
12846 ; return 0; }
12847 EOF
12848 if { (eval echo configure:12849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12849 rm -rf conftest*
12850 eval "ac_cv_func_$ac_func=yes"
12851 else
12852 echo "configure: failed program was:" >&5
12853 cat conftest.$ac_ext >&5
12854 rm -rf conftest*
12855 eval "ac_cv_func_$ac_func=no"
12856 fi
12857 rm -f conftest*
12858 fi
12859
12860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12861 echo "$ac_t""yes" 1>&6
12862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12863 cat >> confdefs.h <<EOF
12864 #define $ac_tr_func 1
12865 EOF
12866
12867 else
12868 echo "$ac_t""no" 1>&6
12869 fi
12870 done
12871
12872 fi
12873 fi
12874
12875
12876
12877 echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12878 echo "configure:12879: checking for isnanf declaration" >&5
12879 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
12880 if eval "test \"`echo '$''{'glibcxx_cv_func_isnanf_use'+set}'`\" = set"; then
12881 echo $ac_n "(cached) $ac_c" 1>&6
12882 else
12883
12884
12885 ac_ext=C
12886 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12887 ac_cpp='$CXXCPP $CPPFLAGS'
12888 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12889 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12890 cross_compiling=$ac_cv_prog_cxx_cross
12891
12892 cat > conftest.$ac_ext <<EOF
12893 #line 12894 "configure"
12894 #include "confdefs.h"
12895 #include <math.h>
12896 #ifdef HAVE_IEEEFP_H
12897 #include <ieeefp.h>
12898 #endif
12899
12900 int main() {
12901 isnanf(0);
12902 ; return 0; }
12903 EOF
12904 if { (eval echo configure:12905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12905 rm -rf conftest*
12906 glibcxx_cv_func_isnanf_use=yes
12907 else
12908 echo "configure: failed program was:" >&5
12909 cat conftest.$ac_ext >&5
12910 rm -rf conftest*
12911 glibcxx_cv_func_isnanf_use=no
12912 fi
12913 rm -f conftest*
12914 ac_ext=c
12915 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12916 ac_cpp='$CPP $CPPFLAGS'
12917 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12918 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12919 cross_compiling=$ac_cv_prog_cc_cross
12920
12921
12922 fi
12923
12924 fi
12925 echo "$ac_t""$glibcxx_cv_func_isnanf_use" 1>&6
12926
12927 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
12928 for ac_func in isnanf
12929 do
12930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12931 echo "configure:12932: checking for $ac_func" >&5
12932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12933 echo $ac_n "(cached) $ac_c" 1>&6
12934 else
12935 cat > conftest.$ac_ext <<EOF
12936 #line 12937 "configure"
12937 #include "confdefs.h"
12938 /* System header to define __stub macros and hopefully few prototypes,
12939 which can conflict with char $ac_func(); below. */
12940 #include <assert.h>
12941 /* Override any gcc2 internal prototype to avoid an error. */
12942 /* We use char because int might match the return type of a gcc2
12943 builtin and then its argument prototype would still apply. */
12944 char $ac_func();
12945
12946 int main() {
12947
12948 /* The GNU C library defines this for functions which it implements
12949 to always fail with ENOSYS. Some functions are actually named
12950 something starting with __ and the normal name is an alias. */
12951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12952 choke me
12953 #else
12954 $ac_func();
12955 #endif
12956
12957 ; return 0; }
12958 EOF
12959 if { (eval echo configure:12960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12960 rm -rf conftest*
12961 eval "ac_cv_func_$ac_func=yes"
12962 else
12963 echo "configure: failed program was:" >&5
12964 cat conftest.$ac_ext >&5
12965 rm -rf conftest*
12966 eval "ac_cv_func_$ac_func=no"
12967 fi
12968 rm -f conftest*
12969 fi
12970
12971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12972 echo "$ac_t""yes" 1>&6
12973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12974 cat >> confdefs.h <<EOF
12975 #define $ac_tr_func 1
12976 EOF
12977
12978 else
12979 echo "$ac_t""no" 1>&6
12980 fi
12981 done
12982
12983 else
12984
12985 echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12986 echo "configure:12987: checking for _isnanf declaration" >&5
12987 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
12988 if eval "test \"`echo '$''{'glibcxx_cv_func__isnanf_use'+set}'`\" = set"; then
12989 echo $ac_n "(cached) $ac_c" 1>&6
12990 else
12991
12992
12993 ac_ext=C
12994 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12995 ac_cpp='$CXXCPP $CPPFLAGS'
12996 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12997 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12998 cross_compiling=$ac_cv_prog_cxx_cross
12999
13000 cat > conftest.$ac_ext <<EOF
13001 #line 13002 "configure"
13002 #include "confdefs.h"
13003 #include <math.h>
13004 #ifdef HAVE_IEEEFP_H
13005 #include <ieeefp.h>
13006 #endif
13007
13008 int main() {
13009 _isnanf(0);
13010 ; return 0; }
13011 EOF
13012 if { (eval echo configure:13013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13013 rm -rf conftest*
13014 glibcxx_cv_func__isnanf_use=yes
13015 else
13016 echo "configure: failed program was:" >&5
13017 cat conftest.$ac_ext >&5
13018 rm -rf conftest*
13019 glibcxx_cv_func__isnanf_use=no
13020 fi
13021 rm -f conftest*
13022 ac_ext=c
13023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13024 ac_cpp='$CPP $CPPFLAGS'
13025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13027 cross_compiling=$ac_cv_prog_cc_cross
13028
13029
13030 fi
13031
13032 fi
13033 echo "$ac_t""$glibcxx_cv_func__isnanf_use" 1>&6
13034
13035 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
13036 for ac_func in _isnanf
13037 do
13038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13039 echo "configure:13040: checking for $ac_func" >&5
13040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13041 echo $ac_n "(cached) $ac_c" 1>&6
13042 else
13043 cat > conftest.$ac_ext <<EOF
13044 #line 13045 "configure"
13045 #include "confdefs.h"
13046 /* System header to define __stub macros and hopefully few prototypes,
13047 which can conflict with char $ac_func(); below. */
13048 #include <assert.h>
13049 /* Override any gcc2 internal prototype to avoid an error. */
13050 /* We use char because int might match the return type of a gcc2
13051 builtin and then its argument prototype would still apply. */
13052 char $ac_func();
13053
13054 int main() {
13055
13056 /* The GNU C library defines this for functions which it implements
13057 to always fail with ENOSYS. Some functions are actually named
13058 something starting with __ and the normal name is an alias. */
13059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13060 choke me
13061 #else
13062 $ac_func();
13063 #endif
13064
13065 ; return 0; }
13066 EOF
13067 if { (eval echo configure:13068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13068 rm -rf conftest*
13069 eval "ac_cv_func_$ac_func=yes"
13070 else
13071 echo "configure: failed program was:" >&5
13072 cat conftest.$ac_ext >&5
13073 rm -rf conftest*
13074 eval "ac_cv_func_$ac_func=no"
13075 fi
13076 rm -f conftest*
13077 fi
13078
13079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13080 echo "$ac_t""yes" 1>&6
13081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13082 cat >> confdefs.h <<EOF
13083 #define $ac_tr_func 1
13084 EOF
13085
13086 else
13087 echo "$ac_t""no" 1>&6
13088 fi
13089 done
13090
13091 fi
13092 fi
13093
13094
13095
13096 echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13097 echo "configure:13098: checking for isinff declaration" >&5
13098 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
13099 if eval "test \"`echo '$''{'glibcxx_cv_func_isinff_use'+set}'`\" = set"; then
13100 echo $ac_n "(cached) $ac_c" 1>&6
13101 else
13102
13103
13104 ac_ext=C
13105 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13106 ac_cpp='$CXXCPP $CPPFLAGS'
13107 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13108 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13109 cross_compiling=$ac_cv_prog_cxx_cross
13110
13111 cat > conftest.$ac_ext <<EOF
13112 #line 13113 "configure"
13113 #include "confdefs.h"
13114 #include <math.h>
13115 #ifdef HAVE_IEEEFP_H
13116 #include <ieeefp.h>
13117 #endif
13118
13119 int main() {
13120 isinff(0);
13121 ; return 0; }
13122 EOF
13123 if { (eval echo configure:13124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13124 rm -rf conftest*
13125 glibcxx_cv_func_isinff_use=yes
13126 else
13127 echo "configure: failed program was:" >&5
13128 cat conftest.$ac_ext >&5
13129 rm -rf conftest*
13130 glibcxx_cv_func_isinff_use=no
13131 fi
13132 rm -f conftest*
13133 ac_ext=c
13134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13135 ac_cpp='$CPP $CPPFLAGS'
13136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13138 cross_compiling=$ac_cv_prog_cc_cross
13139
13140
13141 fi
13142
13143 fi
13144 echo "$ac_t""$glibcxx_cv_func_isinff_use" 1>&6
13145
13146 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
13147 for ac_func in isinff
13148 do
13149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13150 echo "configure:13151: checking for $ac_func" >&5
13151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13152 echo $ac_n "(cached) $ac_c" 1>&6
13153 else
13154 cat > conftest.$ac_ext <<EOF
13155 #line 13156 "configure"
13156 #include "confdefs.h"
13157 /* System header to define __stub macros and hopefully few prototypes,
13158 which can conflict with char $ac_func(); below. */
13159 #include <assert.h>
13160 /* Override any gcc2 internal prototype to avoid an error. */
13161 /* We use char because int might match the return type of a gcc2
13162 builtin and then its argument prototype would still apply. */
13163 char $ac_func();
13164
13165 int main() {
13166
13167 /* The GNU C library defines this for functions which it implements
13168 to always fail with ENOSYS. Some functions are actually named
13169 something starting with __ and the normal name is an alias. */
13170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13171 choke me
13172 #else
13173 $ac_func();
13174 #endif
13175
13176 ; return 0; }
13177 EOF
13178 if { (eval echo configure:13179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13179 rm -rf conftest*
13180 eval "ac_cv_func_$ac_func=yes"
13181 else
13182 echo "configure: failed program was:" >&5
13183 cat conftest.$ac_ext >&5
13184 rm -rf conftest*
13185 eval "ac_cv_func_$ac_func=no"
13186 fi
13187 rm -f conftest*
13188 fi
13189
13190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13191 echo "$ac_t""yes" 1>&6
13192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13193 cat >> confdefs.h <<EOF
13194 #define $ac_tr_func 1
13195 EOF
13196
13197 else
13198 echo "$ac_t""no" 1>&6
13199 fi
13200 done
13201
13202 else
13203
13204 echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13205 echo "configure:13206: checking for _isinff declaration" >&5
13206 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
13207 if eval "test \"`echo '$''{'glibcxx_cv_func__isinff_use'+set}'`\" = set"; then
13208 echo $ac_n "(cached) $ac_c" 1>&6
13209 else
13210
13211
13212 ac_ext=C
13213 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13214 ac_cpp='$CXXCPP $CPPFLAGS'
13215 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13216 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13217 cross_compiling=$ac_cv_prog_cxx_cross
13218
13219 cat > conftest.$ac_ext <<EOF
13220 #line 13221 "configure"
13221 #include "confdefs.h"
13222 #include <math.h>
13223 #ifdef HAVE_IEEEFP_H
13224 #include <ieeefp.h>
13225 #endif
13226
13227 int main() {
13228 _isinff(0);
13229 ; return 0; }
13230 EOF
13231 if { (eval echo configure:13232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13232 rm -rf conftest*
13233 glibcxx_cv_func__isinff_use=yes
13234 else
13235 echo "configure: failed program was:" >&5
13236 cat conftest.$ac_ext >&5
13237 rm -rf conftest*
13238 glibcxx_cv_func__isinff_use=no
13239 fi
13240 rm -f conftest*
13241 ac_ext=c
13242 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13243 ac_cpp='$CPP $CPPFLAGS'
13244 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13245 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13246 cross_compiling=$ac_cv_prog_cc_cross
13247
13248
13249 fi
13250
13251 fi
13252 echo "$ac_t""$glibcxx_cv_func__isinff_use" 1>&6
13253
13254 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
13255 for ac_func in _isinff
13256 do
13257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13258 echo "configure:13259: checking for $ac_func" >&5
13259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13260 echo $ac_n "(cached) $ac_c" 1>&6
13261 else
13262 cat > conftest.$ac_ext <<EOF
13263 #line 13264 "configure"
13264 #include "confdefs.h"
13265 /* System header to define __stub macros and hopefully few prototypes,
13266 which can conflict with char $ac_func(); below. */
13267 #include <assert.h>
13268 /* Override any gcc2 internal prototype to avoid an error. */
13269 /* We use char because int might match the return type of a gcc2
13270 builtin and then its argument prototype would still apply. */
13271 char $ac_func();
13272
13273 int main() {
13274
13275 /* The GNU C library defines this for functions which it implements
13276 to always fail with ENOSYS. Some functions are actually named
13277 something starting with __ and the normal name is an alias. */
13278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13279 choke me
13280 #else
13281 $ac_func();
13282 #endif
13283
13284 ; return 0; }
13285 EOF
13286 if { (eval echo configure:13287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13287 rm -rf conftest*
13288 eval "ac_cv_func_$ac_func=yes"
13289 else
13290 echo "configure: failed program was:" >&5
13291 cat conftest.$ac_ext >&5
13292 rm -rf conftest*
13293 eval "ac_cv_func_$ac_func=no"
13294 fi
13295 rm -f conftest*
13296 fi
13297
13298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13299 echo "$ac_t""yes" 1>&6
13300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13301 cat >> confdefs.h <<EOF
13302 #define $ac_tr_func 1
13303 EOF
13304
13305 else
13306 echo "$ac_t""no" 1>&6
13307 fi
13308 done
13309
13310 fi
13311 fi
13312
13313
13314
13315 echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13316 echo "configure:13317: checking for atan2f declaration" >&5
13317 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
13318 if eval "test \"`echo '$''{'glibcxx_cv_func_atan2f_use'+set}'`\" = set"; then
13319 echo $ac_n "(cached) $ac_c" 1>&6
13320 else
13321
13322
13323 ac_ext=C
13324 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13325 ac_cpp='$CXXCPP $CPPFLAGS'
13326 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13327 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13328 cross_compiling=$ac_cv_prog_cxx_cross
13329
13330 cat > conftest.$ac_ext <<EOF
13331 #line 13332 "configure"
13332 #include "confdefs.h"
13333 #include <math.h>
13334 int main() {
13335 atan2f(0, 0);
13336 ; return 0; }
13337 EOF
13338 if { (eval echo configure:13339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13339 rm -rf conftest*
13340 glibcxx_cv_func_atan2f_use=yes
13341 else
13342 echo "configure: failed program was:" >&5
13343 cat conftest.$ac_ext >&5
13344 rm -rf conftest*
13345 glibcxx_cv_func_atan2f_use=no
13346 fi
13347 rm -f conftest*
13348 ac_ext=c
13349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13350 ac_cpp='$CPP $CPPFLAGS'
13351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13353 cross_compiling=$ac_cv_prog_cc_cross
13354
13355
13356 fi
13357
13358 fi
13359 echo "$ac_t""$glibcxx_cv_func_atan2f_use" 1>&6
13360
13361 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
13362 for ac_func in atan2f
13363 do
13364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13365 echo "configure:13366: checking for $ac_func" >&5
13366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13367 echo $ac_n "(cached) $ac_c" 1>&6
13368 else
13369 cat > conftest.$ac_ext <<EOF
13370 #line 13371 "configure"
13371 #include "confdefs.h"
13372 /* System header to define __stub macros and hopefully few prototypes,
13373 which can conflict with char $ac_func(); below. */
13374 #include <assert.h>
13375 /* Override any gcc2 internal prototype to avoid an error. */
13376 /* We use char because int might match the return type of a gcc2
13377 builtin and then its argument prototype would still apply. */
13378 char $ac_func();
13379
13380 int main() {
13381
13382 /* The GNU C library defines this for functions which it implements
13383 to always fail with ENOSYS. Some functions are actually named
13384 something starting with __ and the normal name is an alias. */
13385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13386 choke me
13387 #else
13388 $ac_func();
13389 #endif
13390
13391 ; return 0; }
13392 EOF
13393 if { (eval echo configure:13394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13394 rm -rf conftest*
13395 eval "ac_cv_func_$ac_func=yes"
13396 else
13397 echo "configure: failed program was:" >&5
13398 cat conftest.$ac_ext >&5
13399 rm -rf conftest*
13400 eval "ac_cv_func_$ac_func=no"
13401 fi
13402 rm -f conftest*
13403 fi
13404
13405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13406 echo "$ac_t""yes" 1>&6
13407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13408 cat >> confdefs.h <<EOF
13409 #define $ac_tr_func 1
13410 EOF
13411
13412 else
13413 echo "$ac_t""no" 1>&6
13414 fi
13415 done
13416
13417 else
13418
13419 echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13420 echo "configure:13421: checking for _atan2f declaration" >&5
13421 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
13422 if eval "test \"`echo '$''{'glibcxx_cv_func__atan2f_use'+set}'`\" = set"; then
13423 echo $ac_n "(cached) $ac_c" 1>&6
13424 else
13425
13426
13427 ac_ext=C
13428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13429 ac_cpp='$CXXCPP $CPPFLAGS'
13430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13432 cross_compiling=$ac_cv_prog_cxx_cross
13433
13434 cat > conftest.$ac_ext <<EOF
13435 #line 13436 "configure"
13436 #include "confdefs.h"
13437 #include <math.h>
13438 int main() {
13439 _atan2f(0, 0);
13440 ; return 0; }
13441 EOF
13442 if { (eval echo configure:13443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13443 rm -rf conftest*
13444 glibcxx_cv_func__atan2f_use=yes
13445 else
13446 echo "configure: failed program was:" >&5
13447 cat conftest.$ac_ext >&5
13448 rm -rf conftest*
13449 glibcxx_cv_func__atan2f_use=no
13450 fi
13451 rm -f conftest*
13452 ac_ext=c
13453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13454 ac_cpp='$CPP $CPPFLAGS'
13455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13457 cross_compiling=$ac_cv_prog_cc_cross
13458
13459
13460 fi
13461
13462 fi
13463 echo "$ac_t""$glibcxx_cv_func__atan2f_use" 1>&6
13464
13465 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
13466 for ac_func in _atan2f
13467 do
13468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13469 echo "configure:13470: checking for $ac_func" >&5
13470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13471 echo $ac_n "(cached) $ac_c" 1>&6
13472 else
13473 cat > conftest.$ac_ext <<EOF
13474 #line 13475 "configure"
13475 #include "confdefs.h"
13476 /* System header to define __stub macros and hopefully few prototypes,
13477 which can conflict with char $ac_func(); below. */
13478 #include <assert.h>
13479 /* Override any gcc2 internal prototype to avoid an error. */
13480 /* We use char because int might match the return type of a gcc2
13481 builtin and then its argument prototype would still apply. */
13482 char $ac_func();
13483
13484 int main() {
13485
13486 /* The GNU C library defines this for functions which it implements
13487 to always fail with ENOSYS. Some functions are actually named
13488 something starting with __ and the normal name is an alias. */
13489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13490 choke me
13491 #else
13492 $ac_func();
13493 #endif
13494
13495 ; return 0; }
13496 EOF
13497 if { (eval echo configure:13498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13498 rm -rf conftest*
13499 eval "ac_cv_func_$ac_func=yes"
13500 else
13501 echo "configure: failed program was:" >&5
13502 cat conftest.$ac_ext >&5
13503 rm -rf conftest*
13504 eval "ac_cv_func_$ac_func=no"
13505 fi
13506 rm -f conftest*
13507 fi
13508
13509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13510 echo "$ac_t""yes" 1>&6
13511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13512 cat >> confdefs.h <<EOF
13513 #define $ac_tr_func 1
13514 EOF
13515
13516 else
13517 echo "$ac_t""no" 1>&6
13518 fi
13519 done
13520
13521 fi
13522 fi
13523
13524
13525
13526 echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13527 echo "configure:13528: checking for fabsf declaration" >&5
13528 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
13529 if eval "test \"`echo '$''{'glibcxx_cv_func_fabsf_use'+set}'`\" = set"; then
13530 echo $ac_n "(cached) $ac_c" 1>&6
13531 else
13532
13533
13534 ac_ext=C
13535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13536 ac_cpp='$CXXCPP $CPPFLAGS'
13537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13539 cross_compiling=$ac_cv_prog_cxx_cross
13540
13541 cat > conftest.$ac_ext <<EOF
13542 #line 13543 "configure"
13543 #include "confdefs.h"
13544 #include <math.h>
13545 #ifdef HAVE_IEEEFP_H
13546 #include <ieeefp.h>
13547 #endif
13548
13549 int main() {
13550 fabsf(0);
13551 ; return 0; }
13552 EOF
13553 if { (eval echo configure:13554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13554 rm -rf conftest*
13555 glibcxx_cv_func_fabsf_use=yes
13556 else
13557 echo "configure: failed program was:" >&5
13558 cat conftest.$ac_ext >&5
13559 rm -rf conftest*
13560 glibcxx_cv_func_fabsf_use=no
13561 fi
13562 rm -f conftest*
13563 ac_ext=c
13564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13565 ac_cpp='$CPP $CPPFLAGS'
13566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13568 cross_compiling=$ac_cv_prog_cc_cross
13569
13570
13571 fi
13572
13573 fi
13574 echo "$ac_t""$glibcxx_cv_func_fabsf_use" 1>&6
13575
13576 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
13577 for ac_func in fabsf
13578 do
13579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13580 echo "configure:13581: checking for $ac_func" >&5
13581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13582 echo $ac_n "(cached) $ac_c" 1>&6
13583 else
13584 cat > conftest.$ac_ext <<EOF
13585 #line 13586 "configure"
13586 #include "confdefs.h"
13587 /* System header to define __stub macros and hopefully few prototypes,
13588 which can conflict with char $ac_func(); below. */
13589 #include <assert.h>
13590 /* Override any gcc2 internal prototype to avoid an error. */
13591 /* We use char because int might match the return type of a gcc2
13592 builtin and then its argument prototype would still apply. */
13593 char $ac_func();
13594
13595 int main() {
13596
13597 /* The GNU C library defines this for functions which it implements
13598 to always fail with ENOSYS. Some functions are actually named
13599 something starting with __ and the normal name is an alias. */
13600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13601 choke me
13602 #else
13603 $ac_func();
13604 #endif
13605
13606 ; return 0; }
13607 EOF
13608 if { (eval echo configure:13609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13609 rm -rf conftest*
13610 eval "ac_cv_func_$ac_func=yes"
13611 else
13612 echo "configure: failed program was:" >&5
13613 cat conftest.$ac_ext >&5
13614 rm -rf conftest*
13615 eval "ac_cv_func_$ac_func=no"
13616 fi
13617 rm -f conftest*
13618 fi
13619
13620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13621 echo "$ac_t""yes" 1>&6
13622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13623 cat >> confdefs.h <<EOF
13624 #define $ac_tr_func 1
13625 EOF
13626
13627 else
13628 echo "$ac_t""no" 1>&6
13629 fi
13630 done
13631
13632 else
13633
13634 echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13635 echo "configure:13636: checking for _fabsf declaration" >&5
13636 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
13637 if eval "test \"`echo '$''{'glibcxx_cv_func__fabsf_use'+set}'`\" = set"; then
13638 echo $ac_n "(cached) $ac_c" 1>&6
13639 else
13640
13641
13642 ac_ext=C
13643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13644 ac_cpp='$CXXCPP $CPPFLAGS'
13645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13647 cross_compiling=$ac_cv_prog_cxx_cross
13648
13649 cat > conftest.$ac_ext <<EOF
13650 #line 13651 "configure"
13651 #include "confdefs.h"
13652 #include <math.h>
13653 #ifdef HAVE_IEEEFP_H
13654 #include <ieeefp.h>
13655 #endif
13656
13657 int main() {
13658 _fabsf(0);
13659 ; return 0; }
13660 EOF
13661 if { (eval echo configure:13662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13662 rm -rf conftest*
13663 glibcxx_cv_func__fabsf_use=yes
13664 else
13665 echo "configure: failed program was:" >&5
13666 cat conftest.$ac_ext >&5
13667 rm -rf conftest*
13668 glibcxx_cv_func__fabsf_use=no
13669 fi
13670 rm -f conftest*
13671 ac_ext=c
13672 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13673 ac_cpp='$CPP $CPPFLAGS'
13674 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13675 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13676 cross_compiling=$ac_cv_prog_cc_cross
13677
13678
13679 fi
13680
13681 fi
13682 echo "$ac_t""$glibcxx_cv_func__fabsf_use" 1>&6
13683
13684 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
13685 for ac_func in _fabsf
13686 do
13687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13688 echo "configure:13689: checking for $ac_func" >&5
13689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13690 echo $ac_n "(cached) $ac_c" 1>&6
13691 else
13692 cat > conftest.$ac_ext <<EOF
13693 #line 13694 "configure"
13694 #include "confdefs.h"
13695 /* System header to define __stub macros and hopefully few prototypes,
13696 which can conflict with char $ac_func(); below. */
13697 #include <assert.h>
13698 /* Override any gcc2 internal prototype to avoid an error. */
13699 /* We use char because int might match the return type of a gcc2
13700 builtin and then its argument prototype would still apply. */
13701 char $ac_func();
13702
13703 int main() {
13704
13705 /* The GNU C library defines this for functions which it implements
13706 to always fail with ENOSYS. Some functions are actually named
13707 something starting with __ and the normal name is an alias. */
13708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13709 choke me
13710 #else
13711 $ac_func();
13712 #endif
13713
13714 ; return 0; }
13715 EOF
13716 if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13717 rm -rf conftest*
13718 eval "ac_cv_func_$ac_func=yes"
13719 else
13720 echo "configure: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13722 rm -rf conftest*
13723 eval "ac_cv_func_$ac_func=no"
13724 fi
13725 rm -f conftest*
13726 fi
13727
13728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13729 echo "$ac_t""yes" 1>&6
13730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13731 cat >> confdefs.h <<EOF
13732 #define $ac_tr_func 1
13733 EOF
13734
13735 else
13736 echo "$ac_t""no" 1>&6
13737 fi
13738 done
13739
13740 fi
13741 fi
13742
13743
13744
13745 echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13746 echo "configure:13747: checking for fmodf declaration" >&5
13747 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
13748 if eval "test \"`echo '$''{'glibcxx_cv_func_fmodf_use'+set}'`\" = set"; then
13749 echo $ac_n "(cached) $ac_c" 1>&6
13750 else
13751
13752
13753 ac_ext=C
13754 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13755 ac_cpp='$CXXCPP $CPPFLAGS'
13756 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13757 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13758 cross_compiling=$ac_cv_prog_cxx_cross
13759
13760 cat > conftest.$ac_ext <<EOF
13761 #line 13762 "configure"
13762 #include "confdefs.h"
13763 #include <math.h>
13764 int main() {
13765 fmodf(0, 0);
13766 ; return 0; }
13767 EOF
13768 if { (eval echo configure:13769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13769 rm -rf conftest*
13770 glibcxx_cv_func_fmodf_use=yes
13771 else
13772 echo "configure: failed program was:" >&5
13773 cat conftest.$ac_ext >&5
13774 rm -rf conftest*
13775 glibcxx_cv_func_fmodf_use=no
13776 fi
13777 rm -f conftest*
13778 ac_ext=c
13779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13780 ac_cpp='$CPP $CPPFLAGS'
13781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13783 cross_compiling=$ac_cv_prog_cc_cross
13784
13785
13786 fi
13787
13788 fi
13789 echo "$ac_t""$glibcxx_cv_func_fmodf_use" 1>&6
13790
13791 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
13792 for ac_func in fmodf
13793 do
13794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13795 echo "configure:13796: checking for $ac_func" >&5
13796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13797 echo $ac_n "(cached) $ac_c" 1>&6
13798 else
13799 cat > conftest.$ac_ext <<EOF
13800 #line 13801 "configure"
13801 #include "confdefs.h"
13802 /* System header to define __stub macros and hopefully few prototypes,
13803 which can conflict with char $ac_func(); below. */
13804 #include <assert.h>
13805 /* Override any gcc2 internal prototype to avoid an error. */
13806 /* We use char because int might match the return type of a gcc2
13807 builtin and then its argument prototype would still apply. */
13808 char $ac_func();
13809
13810 int main() {
13811
13812 /* The GNU C library defines this for functions which it implements
13813 to always fail with ENOSYS. Some functions are actually named
13814 something starting with __ and the normal name is an alias. */
13815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13816 choke me
13817 #else
13818 $ac_func();
13819 #endif
13820
13821 ; return 0; }
13822 EOF
13823 if { (eval echo configure:13824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13824 rm -rf conftest*
13825 eval "ac_cv_func_$ac_func=yes"
13826 else
13827 echo "configure: failed program was:" >&5
13828 cat conftest.$ac_ext >&5
13829 rm -rf conftest*
13830 eval "ac_cv_func_$ac_func=no"
13831 fi
13832 rm -f conftest*
13833 fi
13834
13835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13836 echo "$ac_t""yes" 1>&6
13837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13838 cat >> confdefs.h <<EOF
13839 #define $ac_tr_func 1
13840 EOF
13841
13842 else
13843 echo "$ac_t""no" 1>&6
13844 fi
13845 done
13846
13847 else
13848
13849 echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13850 echo "configure:13851: checking for _fmodf declaration" >&5
13851 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
13852 if eval "test \"`echo '$''{'glibcxx_cv_func__fmodf_use'+set}'`\" = set"; then
13853 echo $ac_n "(cached) $ac_c" 1>&6
13854 else
13855
13856
13857 ac_ext=C
13858 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13859 ac_cpp='$CXXCPP $CPPFLAGS'
13860 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13861 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13862 cross_compiling=$ac_cv_prog_cxx_cross
13863
13864 cat > conftest.$ac_ext <<EOF
13865 #line 13866 "configure"
13866 #include "confdefs.h"
13867 #include <math.h>
13868 int main() {
13869 _fmodf(0, 0);
13870 ; return 0; }
13871 EOF
13872 if { (eval echo configure:13873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13873 rm -rf conftest*
13874 glibcxx_cv_func__fmodf_use=yes
13875 else
13876 echo "configure: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13878 rm -rf conftest*
13879 glibcxx_cv_func__fmodf_use=no
13880 fi
13881 rm -f conftest*
13882 ac_ext=c
13883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13884 ac_cpp='$CPP $CPPFLAGS'
13885 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13886 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13887 cross_compiling=$ac_cv_prog_cc_cross
13888
13889
13890 fi
13891
13892 fi
13893 echo "$ac_t""$glibcxx_cv_func__fmodf_use" 1>&6
13894
13895 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
13896 for ac_func in _fmodf
13897 do
13898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13899 echo "configure:13900: checking for $ac_func" >&5
13900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13901 echo $ac_n "(cached) $ac_c" 1>&6
13902 else
13903 cat > conftest.$ac_ext <<EOF
13904 #line 13905 "configure"
13905 #include "confdefs.h"
13906 /* System header to define __stub macros and hopefully few prototypes,
13907 which can conflict with char $ac_func(); below. */
13908 #include <assert.h>
13909 /* Override any gcc2 internal prototype to avoid an error. */
13910 /* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */
13912 char $ac_func();
13913
13914 int main() {
13915
13916 /* The GNU C library defines this for functions which it implements
13917 to always fail with ENOSYS. Some functions are actually named
13918 something starting with __ and the normal name is an alias. */
13919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13920 choke me
13921 #else
13922 $ac_func();
13923 #endif
13924
13925 ; return 0; }
13926 EOF
13927 if { (eval echo configure:13928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13928 rm -rf conftest*
13929 eval "ac_cv_func_$ac_func=yes"
13930 else
13931 echo "configure: failed program was:" >&5
13932 cat conftest.$ac_ext >&5
13933 rm -rf conftest*
13934 eval "ac_cv_func_$ac_func=no"
13935 fi
13936 rm -f conftest*
13937 fi
13938
13939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13940 echo "$ac_t""yes" 1>&6
13941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13942 cat >> confdefs.h <<EOF
13943 #define $ac_tr_func 1
13944 EOF
13945
13946 else
13947 echo "$ac_t""no" 1>&6
13948 fi
13949 done
13950
13951 fi
13952 fi
13953
13954
13955
13956 echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13957 echo "configure:13958: checking for frexpf declaration" >&5
13958 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
13959 if eval "test \"`echo '$''{'glibcxx_cv_func_frexpf_use'+set}'`\" = set"; then
13960 echo $ac_n "(cached) $ac_c" 1>&6
13961 else
13962
13963
13964 ac_ext=C
13965 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13966 ac_cpp='$CXXCPP $CPPFLAGS'
13967 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13968 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13969 cross_compiling=$ac_cv_prog_cxx_cross
13970
13971 cat > conftest.$ac_ext <<EOF
13972 #line 13973 "configure"
13973 #include "confdefs.h"
13974 #include <math.h>
13975 int main() {
13976 frexpf(0, 0);
13977 ; return 0; }
13978 EOF
13979 if { (eval echo configure:13980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13980 rm -rf conftest*
13981 glibcxx_cv_func_frexpf_use=yes
13982 else
13983 echo "configure: failed program was:" >&5
13984 cat conftest.$ac_ext >&5
13985 rm -rf conftest*
13986 glibcxx_cv_func_frexpf_use=no
13987 fi
13988 rm -f conftest*
13989 ac_ext=c
13990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13991 ac_cpp='$CPP $CPPFLAGS'
13992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13994 cross_compiling=$ac_cv_prog_cc_cross
13995
13996
13997 fi
13998
13999 fi
14000 echo "$ac_t""$glibcxx_cv_func_frexpf_use" 1>&6
14001
14002 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
14003 for ac_func in frexpf
14004 do
14005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14006 echo "configure:14007: checking for $ac_func" >&5
14007 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14008 echo $ac_n "(cached) $ac_c" 1>&6
14009 else
14010 cat > conftest.$ac_ext <<EOF
14011 #line 14012 "configure"
14012 #include "confdefs.h"
14013 /* System header to define __stub macros and hopefully few prototypes,
14014 which can conflict with char $ac_func(); below. */
14015 #include <assert.h>
14016 /* Override any gcc2 internal prototype to avoid an error. */
14017 /* We use char because int might match the return type of a gcc2
14018 builtin and then its argument prototype would still apply. */
14019 char $ac_func();
14020
14021 int main() {
14022
14023 /* The GNU C library defines this for functions which it implements
14024 to always fail with ENOSYS. Some functions are actually named
14025 something starting with __ and the normal name is an alias. */
14026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14027 choke me
14028 #else
14029 $ac_func();
14030 #endif
14031
14032 ; return 0; }
14033 EOF
14034 if { (eval echo configure:14035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14035 rm -rf conftest*
14036 eval "ac_cv_func_$ac_func=yes"
14037 else
14038 echo "configure: failed program was:" >&5
14039 cat conftest.$ac_ext >&5
14040 rm -rf conftest*
14041 eval "ac_cv_func_$ac_func=no"
14042 fi
14043 rm -f conftest*
14044 fi
14045
14046 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14047 echo "$ac_t""yes" 1>&6
14048 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14049 cat >> confdefs.h <<EOF
14050 #define $ac_tr_func 1
14051 EOF
14052
14053 else
14054 echo "$ac_t""no" 1>&6
14055 fi
14056 done
14057
14058 else
14059
14060 echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14061 echo "configure:14062: checking for _frexpf declaration" >&5
14062 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
14063 if eval "test \"`echo '$''{'glibcxx_cv_func__frexpf_use'+set}'`\" = set"; then
14064 echo $ac_n "(cached) $ac_c" 1>&6
14065 else
14066
14067
14068 ac_ext=C
14069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14070 ac_cpp='$CXXCPP $CPPFLAGS'
14071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14073 cross_compiling=$ac_cv_prog_cxx_cross
14074
14075 cat > conftest.$ac_ext <<EOF
14076 #line 14077 "configure"
14077 #include "confdefs.h"
14078 #include <math.h>
14079 int main() {
14080 _frexpf(0, 0);
14081 ; return 0; }
14082 EOF
14083 if { (eval echo configure:14084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14084 rm -rf conftest*
14085 glibcxx_cv_func__frexpf_use=yes
14086 else
14087 echo "configure: failed program was:" >&5
14088 cat conftest.$ac_ext >&5
14089 rm -rf conftest*
14090 glibcxx_cv_func__frexpf_use=no
14091 fi
14092 rm -f conftest*
14093 ac_ext=c
14094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14095 ac_cpp='$CPP $CPPFLAGS'
14096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14098 cross_compiling=$ac_cv_prog_cc_cross
14099
14100
14101 fi
14102
14103 fi
14104 echo "$ac_t""$glibcxx_cv_func__frexpf_use" 1>&6
14105
14106 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
14107 for ac_func in _frexpf
14108 do
14109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14110 echo "configure:14111: checking for $ac_func" >&5
14111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14112 echo $ac_n "(cached) $ac_c" 1>&6
14113 else
14114 cat > conftest.$ac_ext <<EOF
14115 #line 14116 "configure"
14116 #include "confdefs.h"
14117 /* System header to define __stub macros and hopefully few prototypes,
14118 which can conflict with char $ac_func(); below. */
14119 #include <assert.h>
14120 /* Override any gcc2 internal prototype to avoid an error. */
14121 /* We use char because int might match the return type of a gcc2
14122 builtin and then its argument prototype would still apply. */
14123 char $ac_func();
14124
14125 int main() {
14126
14127 /* The GNU C library defines this for functions which it implements
14128 to always fail with ENOSYS. Some functions are actually named
14129 something starting with __ and the normal name is an alias. */
14130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14131 choke me
14132 #else
14133 $ac_func();
14134 #endif
14135
14136 ; return 0; }
14137 EOF
14138 if { (eval echo configure:14139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14139 rm -rf conftest*
14140 eval "ac_cv_func_$ac_func=yes"
14141 else
14142 echo "configure: failed program was:" >&5
14143 cat conftest.$ac_ext >&5
14144 rm -rf conftest*
14145 eval "ac_cv_func_$ac_func=no"
14146 fi
14147 rm -f conftest*
14148 fi
14149
14150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14151 echo "$ac_t""yes" 1>&6
14152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14153 cat >> confdefs.h <<EOF
14154 #define $ac_tr_func 1
14155 EOF
14156
14157 else
14158 echo "$ac_t""no" 1>&6
14159 fi
14160 done
14161
14162 fi
14163 fi
14164
14165
14166
14167 echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14168 echo "configure:14169: checking for hypotf declaration" >&5
14169 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
14170 if eval "test \"`echo '$''{'glibcxx_cv_func_hypotf_use'+set}'`\" = set"; then
14171 echo $ac_n "(cached) $ac_c" 1>&6
14172 else
14173
14174
14175 ac_ext=C
14176 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14177 ac_cpp='$CXXCPP $CPPFLAGS'
14178 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14179 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14180 cross_compiling=$ac_cv_prog_cxx_cross
14181
14182 cat > conftest.$ac_ext <<EOF
14183 #line 14184 "configure"
14184 #include "confdefs.h"
14185 #include <math.h>
14186 int main() {
14187 hypotf(0, 0);
14188 ; return 0; }
14189 EOF
14190 if { (eval echo configure:14191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14191 rm -rf conftest*
14192 glibcxx_cv_func_hypotf_use=yes
14193 else
14194 echo "configure: failed program was:" >&5
14195 cat conftest.$ac_ext >&5
14196 rm -rf conftest*
14197 glibcxx_cv_func_hypotf_use=no
14198 fi
14199 rm -f conftest*
14200 ac_ext=c
14201 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14202 ac_cpp='$CPP $CPPFLAGS'
14203 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14204 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14205 cross_compiling=$ac_cv_prog_cc_cross
14206
14207
14208 fi
14209
14210 fi
14211 echo "$ac_t""$glibcxx_cv_func_hypotf_use" 1>&6
14212
14213 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
14214 for ac_func in hypotf
14215 do
14216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14217 echo "configure:14218: checking for $ac_func" >&5
14218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14219 echo $ac_n "(cached) $ac_c" 1>&6
14220 else
14221 cat > conftest.$ac_ext <<EOF
14222 #line 14223 "configure"
14223 #include "confdefs.h"
14224 /* System header to define __stub macros and hopefully few prototypes,
14225 which can conflict with char $ac_func(); below. */
14226 #include <assert.h>
14227 /* Override any gcc2 internal prototype to avoid an error. */
14228 /* We use char because int might match the return type of a gcc2
14229 builtin and then its argument prototype would still apply. */
14230 char $ac_func();
14231
14232 int main() {
14233
14234 /* The GNU C library defines this for functions which it implements
14235 to always fail with ENOSYS. Some functions are actually named
14236 something starting with __ and the normal name is an alias. */
14237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14238 choke me
14239 #else
14240 $ac_func();
14241 #endif
14242
14243 ; return 0; }
14244 EOF
14245 if { (eval echo configure:14246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14246 rm -rf conftest*
14247 eval "ac_cv_func_$ac_func=yes"
14248 else
14249 echo "configure: failed program was:" >&5
14250 cat conftest.$ac_ext >&5
14251 rm -rf conftest*
14252 eval "ac_cv_func_$ac_func=no"
14253 fi
14254 rm -f conftest*
14255 fi
14256
14257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14258 echo "$ac_t""yes" 1>&6
14259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14260 cat >> confdefs.h <<EOF
14261 #define $ac_tr_func 1
14262 EOF
14263
14264 else
14265 echo "$ac_t""no" 1>&6
14266 fi
14267 done
14268
14269 else
14270
14271 echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14272 echo "configure:14273: checking for _hypotf declaration" >&5
14273 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
14274 if eval "test \"`echo '$''{'glibcxx_cv_func__hypotf_use'+set}'`\" = set"; then
14275 echo $ac_n "(cached) $ac_c" 1>&6
14276 else
14277
14278
14279 ac_ext=C
14280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14281 ac_cpp='$CXXCPP $CPPFLAGS'
14282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14284 cross_compiling=$ac_cv_prog_cxx_cross
14285
14286 cat > conftest.$ac_ext <<EOF
14287 #line 14288 "configure"
14288 #include "confdefs.h"
14289 #include <math.h>
14290 int main() {
14291 _hypotf(0, 0);
14292 ; return 0; }
14293 EOF
14294 if { (eval echo configure:14295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14295 rm -rf conftest*
14296 glibcxx_cv_func__hypotf_use=yes
14297 else
14298 echo "configure: failed program was:" >&5
14299 cat conftest.$ac_ext >&5
14300 rm -rf conftest*
14301 glibcxx_cv_func__hypotf_use=no
14302 fi
14303 rm -f conftest*
14304 ac_ext=c
14305 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14306 ac_cpp='$CPP $CPPFLAGS'
14307 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14308 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14309 cross_compiling=$ac_cv_prog_cc_cross
14310
14311
14312 fi
14313
14314 fi
14315 echo "$ac_t""$glibcxx_cv_func__hypotf_use" 1>&6
14316
14317 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
14318 for ac_func in _hypotf
14319 do
14320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14321 echo "configure:14322: checking for $ac_func" >&5
14322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14323 echo $ac_n "(cached) $ac_c" 1>&6
14324 else
14325 cat > conftest.$ac_ext <<EOF
14326 #line 14327 "configure"
14327 #include "confdefs.h"
14328 /* System header to define __stub macros and hopefully few prototypes,
14329 which can conflict with char $ac_func(); below. */
14330 #include <assert.h>
14331 /* Override any gcc2 internal prototype to avoid an error. */
14332 /* We use char because int might match the return type of a gcc2
14333 builtin and then its argument prototype would still apply. */
14334 char $ac_func();
14335
14336 int main() {
14337
14338 /* The GNU C library defines this for functions which it implements
14339 to always fail with ENOSYS. Some functions are actually named
14340 something starting with __ and the normal name is an alias. */
14341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14342 choke me
14343 #else
14344 $ac_func();
14345 #endif
14346
14347 ; return 0; }
14348 EOF
14349 if { (eval echo configure:14350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14350 rm -rf conftest*
14351 eval "ac_cv_func_$ac_func=yes"
14352 else
14353 echo "configure: failed program was:" >&5
14354 cat conftest.$ac_ext >&5
14355 rm -rf conftest*
14356 eval "ac_cv_func_$ac_func=no"
14357 fi
14358 rm -f conftest*
14359 fi
14360
14361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14362 echo "$ac_t""yes" 1>&6
14363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14364 cat >> confdefs.h <<EOF
14365 #define $ac_tr_func 1
14366 EOF
14367
14368 else
14369 echo "$ac_t""no" 1>&6
14370 fi
14371 done
14372
14373 fi
14374 fi
14375
14376
14377
14378 echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14379 echo "configure:14380: checking for ldexpf declaration" >&5
14380 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
14381 if eval "test \"`echo '$''{'glibcxx_cv_func_ldexpf_use'+set}'`\" = set"; then
14382 echo $ac_n "(cached) $ac_c" 1>&6
14383 else
14384
14385
14386 ac_ext=C
14387 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14388 ac_cpp='$CXXCPP $CPPFLAGS'
14389 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14390 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14391 cross_compiling=$ac_cv_prog_cxx_cross
14392
14393 cat > conftest.$ac_ext <<EOF
14394 #line 14395 "configure"
14395 #include "confdefs.h"
14396 #include <math.h>
14397 int main() {
14398 ldexpf(0, 0);
14399 ; return 0; }
14400 EOF
14401 if { (eval echo configure:14402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14402 rm -rf conftest*
14403 glibcxx_cv_func_ldexpf_use=yes
14404 else
14405 echo "configure: failed program was:" >&5
14406 cat conftest.$ac_ext >&5
14407 rm -rf conftest*
14408 glibcxx_cv_func_ldexpf_use=no
14409 fi
14410 rm -f conftest*
14411 ac_ext=c
14412 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14413 ac_cpp='$CPP $CPPFLAGS'
14414 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14415 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14416 cross_compiling=$ac_cv_prog_cc_cross
14417
14418
14419 fi
14420
14421 fi
14422 echo "$ac_t""$glibcxx_cv_func_ldexpf_use" 1>&6
14423
14424 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
14425 for ac_func in ldexpf
14426 do
14427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14428 echo "configure:14429: checking for $ac_func" >&5
14429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14430 echo $ac_n "(cached) $ac_c" 1>&6
14431 else
14432 cat > conftest.$ac_ext <<EOF
14433 #line 14434 "configure"
14434 #include "confdefs.h"
14435 /* System header to define __stub macros and hopefully few prototypes,
14436 which can conflict with char $ac_func(); below. */
14437 #include <assert.h>
14438 /* Override any gcc2 internal prototype to avoid an error. */
14439 /* We use char because int might match the return type of a gcc2
14440 builtin and then its argument prototype would still apply. */
14441 char $ac_func();
14442
14443 int main() {
14444
14445 /* The GNU C library defines this for functions which it implements
14446 to always fail with ENOSYS. Some functions are actually named
14447 something starting with __ and the normal name is an alias. */
14448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14449 choke me
14450 #else
14451 $ac_func();
14452 #endif
14453
14454 ; return 0; }
14455 EOF
14456 if { (eval echo configure:14457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14457 rm -rf conftest*
14458 eval "ac_cv_func_$ac_func=yes"
14459 else
14460 echo "configure: failed program was:" >&5
14461 cat conftest.$ac_ext >&5
14462 rm -rf conftest*
14463 eval "ac_cv_func_$ac_func=no"
14464 fi
14465 rm -f conftest*
14466 fi
14467
14468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14469 echo "$ac_t""yes" 1>&6
14470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14471 cat >> confdefs.h <<EOF
14472 #define $ac_tr_func 1
14473 EOF
14474
14475 else
14476 echo "$ac_t""no" 1>&6
14477 fi
14478 done
14479
14480 else
14481
14482 echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14483 echo "configure:14484: checking for _ldexpf declaration" >&5
14484 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
14485 if eval "test \"`echo '$''{'glibcxx_cv_func__ldexpf_use'+set}'`\" = set"; then
14486 echo $ac_n "(cached) $ac_c" 1>&6
14487 else
14488
14489
14490 ac_ext=C
14491 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14492 ac_cpp='$CXXCPP $CPPFLAGS'
14493 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14494 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14495 cross_compiling=$ac_cv_prog_cxx_cross
14496
14497 cat > conftest.$ac_ext <<EOF
14498 #line 14499 "configure"
14499 #include "confdefs.h"
14500 #include <math.h>
14501 int main() {
14502 _ldexpf(0, 0);
14503 ; return 0; }
14504 EOF
14505 if { (eval echo configure:14506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14506 rm -rf conftest*
14507 glibcxx_cv_func__ldexpf_use=yes
14508 else
14509 echo "configure: failed program was:" >&5
14510 cat conftest.$ac_ext >&5
14511 rm -rf conftest*
14512 glibcxx_cv_func__ldexpf_use=no
14513 fi
14514 rm -f conftest*
14515 ac_ext=c
14516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14517 ac_cpp='$CPP $CPPFLAGS'
14518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14520 cross_compiling=$ac_cv_prog_cc_cross
14521
14522
14523 fi
14524
14525 fi
14526 echo "$ac_t""$glibcxx_cv_func__ldexpf_use" 1>&6
14527
14528 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
14529 for ac_func in _ldexpf
14530 do
14531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14532 echo "configure:14533: checking for $ac_func" >&5
14533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14534 echo $ac_n "(cached) $ac_c" 1>&6
14535 else
14536 cat > conftest.$ac_ext <<EOF
14537 #line 14538 "configure"
14538 #include "confdefs.h"
14539 /* System header to define __stub macros and hopefully few prototypes,
14540 which can conflict with char $ac_func(); below. */
14541 #include <assert.h>
14542 /* Override any gcc2 internal prototype to avoid an error. */
14543 /* We use char because int might match the return type of a gcc2
14544 builtin and then its argument prototype would still apply. */
14545 char $ac_func();
14546
14547 int main() {
14548
14549 /* The GNU C library defines this for functions which it implements
14550 to always fail with ENOSYS. Some functions are actually named
14551 something starting with __ and the normal name is an alias. */
14552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14553 choke me
14554 #else
14555 $ac_func();
14556 #endif
14557
14558 ; return 0; }
14559 EOF
14560 if { (eval echo configure:14561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14561 rm -rf conftest*
14562 eval "ac_cv_func_$ac_func=yes"
14563 else
14564 echo "configure: failed program was:" >&5
14565 cat conftest.$ac_ext >&5
14566 rm -rf conftest*
14567 eval "ac_cv_func_$ac_func=no"
14568 fi
14569 rm -f conftest*
14570 fi
14571
14572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14573 echo "$ac_t""yes" 1>&6
14574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14575 cat >> confdefs.h <<EOF
14576 #define $ac_tr_func 1
14577 EOF
14578
14579 else
14580 echo "$ac_t""no" 1>&6
14581 fi
14582 done
14583
14584 fi
14585 fi
14586
14587
14588
14589 echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14590 echo "configure:14591: checking for logf declaration" >&5
14591 if test x${glibcxx_cv_func_logf_use+set} != xset; then
14592 if eval "test \"`echo '$''{'glibcxx_cv_func_logf_use'+set}'`\" = set"; then
14593 echo $ac_n "(cached) $ac_c" 1>&6
14594 else
14595
14596
14597 ac_ext=C
14598 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14599 ac_cpp='$CXXCPP $CPPFLAGS'
14600 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14601 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14602 cross_compiling=$ac_cv_prog_cxx_cross
14603
14604 cat > conftest.$ac_ext <<EOF
14605 #line 14606 "configure"
14606 #include "confdefs.h"
14607 #include <math.h>
14608 #ifdef HAVE_IEEEFP_H
14609 #include <ieeefp.h>
14610 #endif
14611
14612 int main() {
14613 logf(0);
14614 ; return 0; }
14615 EOF
14616 if { (eval echo configure:14617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14617 rm -rf conftest*
14618 glibcxx_cv_func_logf_use=yes
14619 else
14620 echo "configure: failed program was:" >&5
14621 cat conftest.$ac_ext >&5
14622 rm -rf conftest*
14623 glibcxx_cv_func_logf_use=no
14624 fi
14625 rm -f conftest*
14626 ac_ext=c
14627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14628 ac_cpp='$CPP $CPPFLAGS'
14629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14631 cross_compiling=$ac_cv_prog_cc_cross
14632
14633
14634 fi
14635
14636 fi
14637 echo "$ac_t""$glibcxx_cv_func_logf_use" 1>&6
14638
14639 if test x$glibcxx_cv_func_logf_use = x"yes"; then
14640 for ac_func in logf
14641 do
14642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14643 echo "configure:14644: checking for $ac_func" >&5
14644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14645 echo $ac_n "(cached) $ac_c" 1>&6
14646 else
14647 cat > conftest.$ac_ext <<EOF
14648 #line 14649 "configure"
14649 #include "confdefs.h"
14650 /* System header to define __stub macros and hopefully few prototypes,
14651 which can conflict with char $ac_func(); below. */
14652 #include <assert.h>
14653 /* Override any gcc2 internal prototype to avoid an error. */
14654 /* We use char because int might match the return type of a gcc2
14655 builtin and then its argument prototype would still apply. */
14656 char $ac_func();
14657
14658 int main() {
14659
14660 /* The GNU C library defines this for functions which it implements
14661 to always fail with ENOSYS. Some functions are actually named
14662 something starting with __ and the normal name is an alias. */
14663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14664 choke me
14665 #else
14666 $ac_func();
14667 #endif
14668
14669 ; return 0; }
14670 EOF
14671 if { (eval echo configure:14672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14672 rm -rf conftest*
14673 eval "ac_cv_func_$ac_func=yes"
14674 else
14675 echo "configure: failed program was:" >&5
14676 cat conftest.$ac_ext >&5
14677 rm -rf conftest*
14678 eval "ac_cv_func_$ac_func=no"
14679 fi
14680 rm -f conftest*
14681 fi
14682
14683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14684 echo "$ac_t""yes" 1>&6
14685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14686 cat >> confdefs.h <<EOF
14687 #define $ac_tr_func 1
14688 EOF
14689
14690 else
14691 echo "$ac_t""no" 1>&6
14692 fi
14693 done
14694
14695 else
14696
14697 echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14698 echo "configure:14699: checking for _logf declaration" >&5
14699 if test x${glibcxx_cv_func__logf_use+set} != xset; then
14700 if eval "test \"`echo '$''{'glibcxx_cv_func__logf_use'+set}'`\" = set"; then
14701 echo $ac_n "(cached) $ac_c" 1>&6
14702 else
14703
14704
14705 ac_ext=C
14706 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14707 ac_cpp='$CXXCPP $CPPFLAGS'
14708 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14709 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14710 cross_compiling=$ac_cv_prog_cxx_cross
14711
14712 cat > conftest.$ac_ext <<EOF
14713 #line 14714 "configure"
14714 #include "confdefs.h"
14715 #include <math.h>
14716 #ifdef HAVE_IEEEFP_H
14717 #include <ieeefp.h>
14718 #endif
14719
14720 int main() {
14721 _logf(0);
14722 ; return 0; }
14723 EOF
14724 if { (eval echo configure:14725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14725 rm -rf conftest*
14726 glibcxx_cv_func__logf_use=yes
14727 else
14728 echo "configure: failed program was:" >&5
14729 cat conftest.$ac_ext >&5
14730 rm -rf conftest*
14731 glibcxx_cv_func__logf_use=no
14732 fi
14733 rm -f conftest*
14734 ac_ext=c
14735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14736 ac_cpp='$CPP $CPPFLAGS'
14737 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14738 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14739 cross_compiling=$ac_cv_prog_cc_cross
14740
14741
14742 fi
14743
14744 fi
14745 echo "$ac_t""$glibcxx_cv_func__logf_use" 1>&6
14746
14747 if test x$glibcxx_cv_func__logf_use = x"yes"; then
14748 for ac_func in _logf
14749 do
14750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14751 echo "configure:14752: checking for $ac_func" >&5
14752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14753 echo $ac_n "(cached) $ac_c" 1>&6
14754 else
14755 cat > conftest.$ac_ext <<EOF
14756 #line 14757 "configure"
14757 #include "confdefs.h"
14758 /* System header to define __stub macros and hopefully few prototypes,
14759 which can conflict with char $ac_func(); below. */
14760 #include <assert.h>
14761 /* Override any gcc2 internal prototype to avoid an error. */
14762 /* We use char because int might match the return type of a gcc2
14763 builtin and then its argument prototype would still apply. */
14764 char $ac_func();
14765
14766 int main() {
14767
14768 /* The GNU C library defines this for functions which it implements
14769 to always fail with ENOSYS. Some functions are actually named
14770 something starting with __ and the normal name is an alias. */
14771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14772 choke me
14773 #else
14774 $ac_func();
14775 #endif
14776
14777 ; return 0; }
14778 EOF
14779 if { (eval echo configure:14780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14780 rm -rf conftest*
14781 eval "ac_cv_func_$ac_func=yes"
14782 else
14783 echo "configure: failed program was:" >&5
14784 cat conftest.$ac_ext >&5
14785 rm -rf conftest*
14786 eval "ac_cv_func_$ac_func=no"
14787 fi
14788 rm -f conftest*
14789 fi
14790
14791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14792 echo "$ac_t""yes" 1>&6
14793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14794 cat >> confdefs.h <<EOF
14795 #define $ac_tr_func 1
14796 EOF
14797
14798 else
14799 echo "$ac_t""no" 1>&6
14800 fi
14801 done
14802
14803 fi
14804 fi
14805
14806
14807
14808 echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14809 echo "configure:14810: checking for log10f declaration" >&5
14810 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
14811 if eval "test \"`echo '$''{'glibcxx_cv_func_log10f_use'+set}'`\" = set"; then
14812 echo $ac_n "(cached) $ac_c" 1>&6
14813 else
14814
14815
14816 ac_ext=C
14817 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14818 ac_cpp='$CXXCPP $CPPFLAGS'
14819 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14820 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14821 cross_compiling=$ac_cv_prog_cxx_cross
14822
14823 cat > conftest.$ac_ext <<EOF
14824 #line 14825 "configure"
14825 #include "confdefs.h"
14826 #include <math.h>
14827 #ifdef HAVE_IEEEFP_H
14828 #include <ieeefp.h>
14829 #endif
14830
14831 int main() {
14832 log10f(0);
14833 ; return 0; }
14834 EOF
14835 if { (eval echo configure:14836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14836 rm -rf conftest*
14837 glibcxx_cv_func_log10f_use=yes
14838 else
14839 echo "configure: failed program was:" >&5
14840 cat conftest.$ac_ext >&5
14841 rm -rf conftest*
14842 glibcxx_cv_func_log10f_use=no
14843 fi
14844 rm -f conftest*
14845 ac_ext=c
14846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14847 ac_cpp='$CPP $CPPFLAGS'
14848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14850 cross_compiling=$ac_cv_prog_cc_cross
14851
14852
14853 fi
14854
14855 fi
14856 echo "$ac_t""$glibcxx_cv_func_log10f_use" 1>&6
14857
14858 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
14859 for ac_func in log10f
14860 do
14861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14862 echo "configure:14863: checking for $ac_func" >&5
14863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14864 echo $ac_n "(cached) $ac_c" 1>&6
14865 else
14866 cat > conftest.$ac_ext <<EOF
14867 #line 14868 "configure"
14868 #include "confdefs.h"
14869 /* System header to define __stub macros and hopefully few prototypes,
14870 which can conflict with char $ac_func(); below. */
14871 #include <assert.h>
14872 /* Override any gcc2 internal prototype to avoid an error. */
14873 /* We use char because int might match the return type of a gcc2
14874 builtin and then its argument prototype would still apply. */
14875 char $ac_func();
14876
14877 int main() {
14878
14879 /* The GNU C library defines this for functions which it implements
14880 to always fail with ENOSYS. Some functions are actually named
14881 something starting with __ and the normal name is an alias. */
14882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14883 choke me
14884 #else
14885 $ac_func();
14886 #endif
14887
14888 ; return 0; }
14889 EOF
14890 if { (eval echo configure:14891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14891 rm -rf conftest*
14892 eval "ac_cv_func_$ac_func=yes"
14893 else
14894 echo "configure: failed program was:" >&5
14895 cat conftest.$ac_ext >&5
14896 rm -rf conftest*
14897 eval "ac_cv_func_$ac_func=no"
14898 fi
14899 rm -f conftest*
14900 fi
14901
14902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14903 echo "$ac_t""yes" 1>&6
14904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14905 cat >> confdefs.h <<EOF
14906 #define $ac_tr_func 1
14907 EOF
14908
14909 else
14910 echo "$ac_t""no" 1>&6
14911 fi
14912 done
14913
14914 else
14915
14916 echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14917 echo "configure:14918: checking for _log10f declaration" >&5
14918 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
14919 if eval "test \"`echo '$''{'glibcxx_cv_func__log10f_use'+set}'`\" = set"; then
14920 echo $ac_n "(cached) $ac_c" 1>&6
14921 else
14922
14923
14924 ac_ext=C
14925 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14926 ac_cpp='$CXXCPP $CPPFLAGS'
14927 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14928 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14929 cross_compiling=$ac_cv_prog_cxx_cross
14930
14931 cat > conftest.$ac_ext <<EOF
14932 #line 14933 "configure"
14933 #include "confdefs.h"
14934 #include <math.h>
14935 #ifdef HAVE_IEEEFP_H
14936 #include <ieeefp.h>
14937 #endif
14938
14939 int main() {
14940 _log10f(0);
14941 ; return 0; }
14942 EOF
14943 if { (eval echo configure:14944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14944 rm -rf conftest*
14945 glibcxx_cv_func__log10f_use=yes
14946 else
14947 echo "configure: failed program was:" >&5
14948 cat conftest.$ac_ext >&5
14949 rm -rf conftest*
14950 glibcxx_cv_func__log10f_use=no
14951 fi
14952 rm -f conftest*
14953 ac_ext=c
14954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14955 ac_cpp='$CPP $CPPFLAGS'
14956 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14957 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14958 cross_compiling=$ac_cv_prog_cc_cross
14959
14960
14961 fi
14962
14963 fi
14964 echo "$ac_t""$glibcxx_cv_func__log10f_use" 1>&6
14965
14966 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
14967 for ac_func in _log10f
14968 do
14969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14970 echo "configure:14971: checking for $ac_func" >&5
14971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14972 echo $ac_n "(cached) $ac_c" 1>&6
14973 else
14974 cat > conftest.$ac_ext <<EOF
14975 #line 14976 "configure"
14976 #include "confdefs.h"
14977 /* System header to define __stub macros and hopefully few prototypes,
14978 which can conflict with char $ac_func(); below. */
14979 #include <assert.h>
14980 /* Override any gcc2 internal prototype to avoid an error. */
14981 /* We use char because int might match the return type of a gcc2
14982 builtin and then its argument prototype would still apply. */
14983 char $ac_func();
14984
14985 int main() {
14986
14987 /* The GNU C library defines this for functions which it implements
14988 to always fail with ENOSYS. Some functions are actually named
14989 something starting with __ and the normal name is an alias. */
14990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14991 choke me
14992 #else
14993 $ac_func();
14994 #endif
14995
14996 ; return 0; }
14997 EOF
14998 if { (eval echo configure:14999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14999 rm -rf conftest*
15000 eval "ac_cv_func_$ac_func=yes"
15001 else
15002 echo "configure: failed program was:" >&5
15003 cat conftest.$ac_ext >&5
15004 rm -rf conftest*
15005 eval "ac_cv_func_$ac_func=no"
15006 fi
15007 rm -f conftest*
15008 fi
15009
15010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15011 echo "$ac_t""yes" 1>&6
15012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15013 cat >> confdefs.h <<EOF
15014 #define $ac_tr_func 1
15015 EOF
15016
15017 else
15018 echo "$ac_t""no" 1>&6
15019 fi
15020 done
15021
15022 fi
15023 fi
15024
15025
15026
15027 echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15028 echo "configure:15029: checking for modff declaration" >&5
15029 if test x${glibcxx_cv_func_modff_use+set} != xset; then
15030 if eval "test \"`echo '$''{'glibcxx_cv_func_modff_use'+set}'`\" = set"; then
15031 echo $ac_n "(cached) $ac_c" 1>&6
15032 else
15033
15034
15035 ac_ext=C
15036 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15037 ac_cpp='$CXXCPP $CPPFLAGS'
15038 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15039 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15040 cross_compiling=$ac_cv_prog_cxx_cross
15041
15042 cat > conftest.$ac_ext <<EOF
15043 #line 15044 "configure"
15044 #include "confdefs.h"
15045 #include <math.h>
15046 int main() {
15047 modff(0, 0);
15048 ; return 0; }
15049 EOF
15050 if { (eval echo configure:15051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15051 rm -rf conftest*
15052 glibcxx_cv_func_modff_use=yes
15053 else
15054 echo "configure: failed program was:" >&5
15055 cat conftest.$ac_ext >&5
15056 rm -rf conftest*
15057 glibcxx_cv_func_modff_use=no
15058 fi
15059 rm -f conftest*
15060 ac_ext=c
15061 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15062 ac_cpp='$CPP $CPPFLAGS'
15063 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15064 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15065 cross_compiling=$ac_cv_prog_cc_cross
15066
15067
15068 fi
15069
15070 fi
15071 echo "$ac_t""$glibcxx_cv_func_modff_use" 1>&6
15072
15073 if test x$glibcxx_cv_func_modff_use = x"yes"; then
15074 for ac_func in modff
15075 do
15076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15077 echo "configure:15078: checking for $ac_func" >&5
15078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15079 echo $ac_n "(cached) $ac_c" 1>&6
15080 else
15081 cat > conftest.$ac_ext <<EOF
15082 #line 15083 "configure"
15083 #include "confdefs.h"
15084 /* System header to define __stub macros and hopefully few prototypes,
15085 which can conflict with char $ac_func(); below. */
15086 #include <assert.h>
15087 /* Override any gcc2 internal prototype to avoid an error. */
15088 /* We use char because int might match the return type of a gcc2
15089 builtin and then its argument prototype would still apply. */
15090 char $ac_func();
15091
15092 int main() {
15093
15094 /* The GNU C library defines this for functions which it implements
15095 to always fail with ENOSYS. Some functions are actually named
15096 something starting with __ and the normal name is an alias. */
15097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15098 choke me
15099 #else
15100 $ac_func();
15101 #endif
15102
15103 ; return 0; }
15104 EOF
15105 if { (eval echo configure:15106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15106 rm -rf conftest*
15107 eval "ac_cv_func_$ac_func=yes"
15108 else
15109 echo "configure: failed program was:" >&5
15110 cat conftest.$ac_ext >&5
15111 rm -rf conftest*
15112 eval "ac_cv_func_$ac_func=no"
15113 fi
15114 rm -f conftest*
15115 fi
15116
15117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15118 echo "$ac_t""yes" 1>&6
15119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15120 cat >> confdefs.h <<EOF
15121 #define $ac_tr_func 1
15122 EOF
15123
15124 else
15125 echo "$ac_t""no" 1>&6
15126 fi
15127 done
15128
15129 else
15130
15131 echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15132 echo "configure:15133: checking for _modff declaration" >&5
15133 if test x${glibcxx_cv_func__modff_use+set} != xset; then
15134 if eval "test \"`echo '$''{'glibcxx_cv_func__modff_use'+set}'`\" = set"; then
15135 echo $ac_n "(cached) $ac_c" 1>&6
15136 else
15137
15138
15139 ac_ext=C
15140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15141 ac_cpp='$CXXCPP $CPPFLAGS'
15142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15144 cross_compiling=$ac_cv_prog_cxx_cross
15145
15146 cat > conftest.$ac_ext <<EOF
15147 #line 15148 "configure"
15148 #include "confdefs.h"
15149 #include <math.h>
15150 int main() {
15151 _modff(0, 0);
15152 ; return 0; }
15153 EOF
15154 if { (eval echo configure:15155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15155 rm -rf conftest*
15156 glibcxx_cv_func__modff_use=yes
15157 else
15158 echo "configure: failed program was:" >&5
15159 cat conftest.$ac_ext >&5
15160 rm -rf conftest*
15161 glibcxx_cv_func__modff_use=no
15162 fi
15163 rm -f conftest*
15164 ac_ext=c
15165 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15166 ac_cpp='$CPP $CPPFLAGS'
15167 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15168 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15169 cross_compiling=$ac_cv_prog_cc_cross
15170
15171
15172 fi
15173
15174 fi
15175 echo "$ac_t""$glibcxx_cv_func__modff_use" 1>&6
15176
15177 if test x$glibcxx_cv_func__modff_use = x"yes"; then
15178 for ac_func in _modff
15179 do
15180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15181 echo "configure:15182: checking for $ac_func" >&5
15182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15183 echo $ac_n "(cached) $ac_c" 1>&6
15184 else
15185 cat > conftest.$ac_ext <<EOF
15186 #line 15187 "configure"
15187 #include "confdefs.h"
15188 /* System header to define __stub macros and hopefully few prototypes,
15189 which can conflict with char $ac_func(); below. */
15190 #include <assert.h>
15191 /* Override any gcc2 internal prototype to avoid an error. */
15192 /* We use char because int might match the return type of a gcc2
15193 builtin and then its argument prototype would still apply. */
15194 char $ac_func();
15195
15196 int main() {
15197
15198 /* The GNU C library defines this for functions which it implements
15199 to always fail with ENOSYS. Some functions are actually named
15200 something starting with __ and the normal name is an alias. */
15201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15202 choke me
15203 #else
15204 $ac_func();
15205 #endif
15206
15207 ; return 0; }
15208 EOF
15209 if { (eval echo configure:15210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15210 rm -rf conftest*
15211 eval "ac_cv_func_$ac_func=yes"
15212 else
15213 echo "configure: failed program was:" >&5
15214 cat conftest.$ac_ext >&5
15215 rm -rf conftest*
15216 eval "ac_cv_func_$ac_func=no"
15217 fi
15218 rm -f conftest*
15219 fi
15220
15221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15222 echo "$ac_t""yes" 1>&6
15223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15224 cat >> confdefs.h <<EOF
15225 #define $ac_tr_func 1
15226 EOF
15227
15228 else
15229 echo "$ac_t""no" 1>&6
15230 fi
15231 done
15232
15233 fi
15234 fi
15235
15236
15237
15238 echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15239 echo "configure:15240: checking for powf declaration" >&5
15240 if test x${glibcxx_cv_func_powf_use+set} != xset; then
15241 if eval "test \"`echo '$''{'glibcxx_cv_func_powf_use'+set}'`\" = set"; then
15242 echo $ac_n "(cached) $ac_c" 1>&6
15243 else
15244
15245
15246 ac_ext=C
15247 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15248 ac_cpp='$CXXCPP $CPPFLAGS'
15249 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15250 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15251 cross_compiling=$ac_cv_prog_cxx_cross
15252
15253 cat > conftest.$ac_ext <<EOF
15254 #line 15255 "configure"
15255 #include "confdefs.h"
15256 #include <math.h>
15257 int main() {
15258 powf(0, 0);
15259 ; return 0; }
15260 EOF
15261 if { (eval echo configure:15262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15262 rm -rf conftest*
15263 glibcxx_cv_func_powf_use=yes
15264 else
15265 echo "configure: failed program was:" >&5
15266 cat conftest.$ac_ext >&5
15267 rm -rf conftest*
15268 glibcxx_cv_func_powf_use=no
15269 fi
15270 rm -f conftest*
15271 ac_ext=c
15272 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15273 ac_cpp='$CPP $CPPFLAGS'
15274 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15275 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15276 cross_compiling=$ac_cv_prog_cc_cross
15277
15278
15279 fi
15280
15281 fi
15282 echo "$ac_t""$glibcxx_cv_func_powf_use" 1>&6
15283
15284 if test x$glibcxx_cv_func_powf_use = x"yes"; then
15285 for ac_func in powf
15286 do
15287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15288 echo "configure:15289: checking for $ac_func" >&5
15289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15290 echo $ac_n "(cached) $ac_c" 1>&6
15291 else
15292 cat > conftest.$ac_ext <<EOF
15293 #line 15294 "configure"
15294 #include "confdefs.h"
15295 /* System header to define __stub macros and hopefully few prototypes,
15296 which can conflict with char $ac_func(); below. */
15297 #include <assert.h>
15298 /* Override any gcc2 internal prototype to avoid an error. */
15299 /* We use char because int might match the return type of a gcc2
15300 builtin and then its argument prototype would still apply. */
15301 char $ac_func();
15302
15303 int main() {
15304
15305 /* The GNU C library defines this for functions which it implements
15306 to always fail with ENOSYS. Some functions are actually named
15307 something starting with __ and the normal name is an alias. */
15308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15309 choke me
15310 #else
15311 $ac_func();
15312 #endif
15313
15314 ; return 0; }
15315 EOF
15316 if { (eval echo configure:15317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15317 rm -rf conftest*
15318 eval "ac_cv_func_$ac_func=yes"
15319 else
15320 echo "configure: failed program was:" >&5
15321 cat conftest.$ac_ext >&5
15322 rm -rf conftest*
15323 eval "ac_cv_func_$ac_func=no"
15324 fi
15325 rm -f conftest*
15326 fi
15327
15328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15329 echo "$ac_t""yes" 1>&6
15330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15331 cat >> confdefs.h <<EOF
15332 #define $ac_tr_func 1
15333 EOF
15334
15335 else
15336 echo "$ac_t""no" 1>&6
15337 fi
15338 done
15339
15340 else
15341
15342 echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15343 echo "configure:15344: checking for _powf declaration" >&5
15344 if test x${glibcxx_cv_func__powf_use+set} != xset; then
15345 if eval "test \"`echo '$''{'glibcxx_cv_func__powf_use'+set}'`\" = set"; then
15346 echo $ac_n "(cached) $ac_c" 1>&6
15347 else
15348
15349
15350 ac_ext=C
15351 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15352 ac_cpp='$CXXCPP $CPPFLAGS'
15353 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15354 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15355 cross_compiling=$ac_cv_prog_cxx_cross
15356
15357 cat > conftest.$ac_ext <<EOF
15358 #line 15359 "configure"
15359 #include "confdefs.h"
15360 #include <math.h>
15361 int main() {
15362 _powf(0, 0);
15363 ; return 0; }
15364 EOF
15365 if { (eval echo configure:15366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15366 rm -rf conftest*
15367 glibcxx_cv_func__powf_use=yes
15368 else
15369 echo "configure: failed program was:" >&5
15370 cat conftest.$ac_ext >&5
15371 rm -rf conftest*
15372 glibcxx_cv_func__powf_use=no
15373 fi
15374 rm -f conftest*
15375 ac_ext=c
15376 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15377 ac_cpp='$CPP $CPPFLAGS'
15378 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15379 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15380 cross_compiling=$ac_cv_prog_cc_cross
15381
15382
15383 fi
15384
15385 fi
15386 echo "$ac_t""$glibcxx_cv_func__powf_use" 1>&6
15387
15388 if test x$glibcxx_cv_func__powf_use = x"yes"; then
15389 for ac_func in _powf
15390 do
15391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15392 echo "configure:15393: checking for $ac_func" >&5
15393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15394 echo $ac_n "(cached) $ac_c" 1>&6
15395 else
15396 cat > conftest.$ac_ext <<EOF
15397 #line 15398 "configure"
15398 #include "confdefs.h"
15399 /* System header to define __stub macros and hopefully few prototypes,
15400 which can conflict with char $ac_func(); below. */
15401 #include <assert.h>
15402 /* Override any gcc2 internal prototype to avoid an error. */
15403 /* We use char because int might match the return type of a gcc2
15404 builtin and then its argument prototype would still apply. */
15405 char $ac_func();
15406
15407 int main() {
15408
15409 /* The GNU C library defines this for functions which it implements
15410 to always fail with ENOSYS. Some functions are actually named
15411 something starting with __ and the normal name is an alias. */
15412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15413 choke me
15414 #else
15415 $ac_func();
15416 #endif
15417
15418 ; return 0; }
15419 EOF
15420 if { (eval echo configure:15421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15421 rm -rf conftest*
15422 eval "ac_cv_func_$ac_func=yes"
15423 else
15424 echo "configure: failed program was:" >&5
15425 cat conftest.$ac_ext >&5
15426 rm -rf conftest*
15427 eval "ac_cv_func_$ac_func=no"
15428 fi
15429 rm -f conftest*
15430 fi
15431
15432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15433 echo "$ac_t""yes" 1>&6
15434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15435 cat >> confdefs.h <<EOF
15436 #define $ac_tr_func 1
15437 EOF
15438
15439 else
15440 echo "$ac_t""no" 1>&6
15441 fi
15442 done
15443
15444 fi
15445 fi
15446
15447
15448
15449 echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15450 echo "configure:15451: checking for sqrtf declaration" >&5
15451 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
15452 if eval "test \"`echo '$''{'glibcxx_cv_func_sqrtf_use'+set}'`\" = set"; then
15453 echo $ac_n "(cached) $ac_c" 1>&6
15454 else
15455
15456
15457 ac_ext=C
15458 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15459 ac_cpp='$CXXCPP $CPPFLAGS'
15460 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15461 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15462 cross_compiling=$ac_cv_prog_cxx_cross
15463
15464 cat > conftest.$ac_ext <<EOF
15465 #line 15466 "configure"
15466 #include "confdefs.h"
15467 #include <math.h>
15468 #ifdef HAVE_IEEEFP_H
15469 #include <ieeefp.h>
15470 #endif
15471
15472 int main() {
15473 sqrtf(0);
15474 ; return 0; }
15475 EOF
15476 if { (eval echo configure:15477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15477 rm -rf conftest*
15478 glibcxx_cv_func_sqrtf_use=yes
15479 else
15480 echo "configure: failed program was:" >&5
15481 cat conftest.$ac_ext >&5
15482 rm -rf conftest*
15483 glibcxx_cv_func_sqrtf_use=no
15484 fi
15485 rm -f conftest*
15486 ac_ext=c
15487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15488 ac_cpp='$CPP $CPPFLAGS'
15489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15491 cross_compiling=$ac_cv_prog_cc_cross
15492
15493
15494 fi
15495
15496 fi
15497 echo "$ac_t""$glibcxx_cv_func_sqrtf_use" 1>&6
15498
15499 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
15500 for ac_func in sqrtf
15501 do
15502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15503 echo "configure:15504: checking for $ac_func" >&5
15504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15505 echo $ac_n "(cached) $ac_c" 1>&6
15506 else
15507 cat > conftest.$ac_ext <<EOF
15508 #line 15509 "configure"
15509 #include "confdefs.h"
15510 /* System header to define __stub macros and hopefully few prototypes,
15511 which can conflict with char $ac_func(); below. */
15512 #include <assert.h>
15513 /* Override any gcc2 internal prototype to avoid an error. */
15514 /* We use char because int might match the return type of a gcc2
15515 builtin and then its argument prototype would still apply. */
15516 char $ac_func();
15517
15518 int main() {
15519
15520 /* The GNU C library defines this for functions which it implements
15521 to always fail with ENOSYS. Some functions are actually named
15522 something starting with __ and the normal name is an alias. */
15523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15524 choke me
15525 #else
15526 $ac_func();
15527 #endif
15528
15529 ; return 0; }
15530 EOF
15531 if { (eval echo configure:15532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15532 rm -rf conftest*
15533 eval "ac_cv_func_$ac_func=yes"
15534 else
15535 echo "configure: failed program was:" >&5
15536 cat conftest.$ac_ext >&5
15537 rm -rf conftest*
15538 eval "ac_cv_func_$ac_func=no"
15539 fi
15540 rm -f conftest*
15541 fi
15542
15543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15544 echo "$ac_t""yes" 1>&6
15545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15546 cat >> confdefs.h <<EOF
15547 #define $ac_tr_func 1
15548 EOF
15549
15550 else
15551 echo "$ac_t""no" 1>&6
15552 fi
15553 done
15554
15555 else
15556
15557 echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15558 echo "configure:15559: checking for _sqrtf declaration" >&5
15559 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
15560 if eval "test \"`echo '$''{'glibcxx_cv_func__sqrtf_use'+set}'`\" = set"; then
15561 echo $ac_n "(cached) $ac_c" 1>&6
15562 else
15563
15564
15565 ac_ext=C
15566 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15567 ac_cpp='$CXXCPP $CPPFLAGS'
15568 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15569 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15570 cross_compiling=$ac_cv_prog_cxx_cross
15571
15572 cat > conftest.$ac_ext <<EOF
15573 #line 15574 "configure"
15574 #include "confdefs.h"
15575 #include <math.h>
15576 #ifdef HAVE_IEEEFP_H
15577 #include <ieeefp.h>
15578 #endif
15579
15580 int main() {
15581 _sqrtf(0);
15582 ; return 0; }
15583 EOF
15584 if { (eval echo configure:15585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15585 rm -rf conftest*
15586 glibcxx_cv_func__sqrtf_use=yes
15587 else
15588 echo "configure: failed program was:" >&5
15589 cat conftest.$ac_ext >&5
15590 rm -rf conftest*
15591 glibcxx_cv_func__sqrtf_use=no
15592 fi
15593 rm -f conftest*
15594 ac_ext=c
15595 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15596 ac_cpp='$CPP $CPPFLAGS'
15597 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15598 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15599 cross_compiling=$ac_cv_prog_cc_cross
15600
15601
15602 fi
15603
15604 fi
15605 echo "$ac_t""$glibcxx_cv_func__sqrtf_use" 1>&6
15606
15607 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
15608 for ac_func in _sqrtf
15609 do
15610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15611 echo "configure:15612: checking for $ac_func" >&5
15612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15613 echo $ac_n "(cached) $ac_c" 1>&6
15614 else
15615 cat > conftest.$ac_ext <<EOF
15616 #line 15617 "configure"
15617 #include "confdefs.h"
15618 /* System header to define __stub macros and hopefully few prototypes,
15619 which can conflict with char $ac_func(); below. */
15620 #include <assert.h>
15621 /* Override any gcc2 internal prototype to avoid an error. */
15622 /* We use char because int might match the return type of a gcc2
15623 builtin and then its argument prototype would still apply. */
15624 char $ac_func();
15625
15626 int main() {
15627
15628 /* The GNU C library defines this for functions which it implements
15629 to always fail with ENOSYS. Some functions are actually named
15630 something starting with __ and the normal name is an alias. */
15631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15632 choke me
15633 #else
15634 $ac_func();
15635 #endif
15636
15637 ; return 0; }
15638 EOF
15639 if { (eval echo configure:15640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15640 rm -rf conftest*
15641 eval "ac_cv_func_$ac_func=yes"
15642 else
15643 echo "configure: failed program was:" >&5
15644 cat conftest.$ac_ext >&5
15645 rm -rf conftest*
15646 eval "ac_cv_func_$ac_func=no"
15647 fi
15648 rm -f conftest*
15649 fi
15650
15651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15652 echo "$ac_t""yes" 1>&6
15653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15654 cat >> confdefs.h <<EOF
15655 #define $ac_tr_func 1
15656 EOF
15657
15658 else
15659 echo "$ac_t""no" 1>&6
15660 fi
15661 done
15662
15663 fi
15664 fi
15665
15666
15667
15668 echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15669 echo "configure:15670: checking for sincosf declaration" >&5
15670 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
15671 if eval "test \"`echo '$''{'glibcxx_cv_func_sincosf_use'+set}'`\" = set"; then
15672 echo $ac_n "(cached) $ac_c" 1>&6
15673 else
15674
15675
15676 ac_ext=C
15677 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15678 ac_cpp='$CXXCPP $CPPFLAGS'
15679 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15680 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15681 cross_compiling=$ac_cv_prog_cxx_cross
15682
15683 cat > conftest.$ac_ext <<EOF
15684 #line 15685 "configure"
15685 #include "confdefs.h"
15686 #include <math.h>
15687 int main() {
15688 sincosf(0, 0, 0);
15689 ; return 0; }
15690 EOF
15691 if { (eval echo configure:15692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15692 rm -rf conftest*
15693 glibcxx_cv_func_sincosf_use=yes
15694 else
15695 echo "configure: failed program was:" >&5
15696 cat conftest.$ac_ext >&5
15697 rm -rf conftest*
15698 glibcxx_cv_func_sincosf_use=no
15699 fi
15700 rm -f conftest*
15701 ac_ext=c
15702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15703 ac_cpp='$CPP $CPPFLAGS'
15704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15706 cross_compiling=$ac_cv_prog_cc_cross
15707
15708
15709 fi
15710
15711 fi
15712 echo "$ac_t""$glibcxx_cv_func_sincosf_use" 1>&6
15713
15714 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
15715 for ac_func in sincosf
15716 do
15717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15718 echo "configure:15719: checking for $ac_func" >&5
15719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15720 echo $ac_n "(cached) $ac_c" 1>&6
15721 else
15722 cat > conftest.$ac_ext <<EOF
15723 #line 15724 "configure"
15724 #include "confdefs.h"
15725 /* System header to define __stub macros and hopefully few prototypes,
15726 which can conflict with char $ac_func(); below. */
15727 #include <assert.h>
15728 /* Override any gcc2 internal prototype to avoid an error. */
15729 /* We use char because int might match the return type of a gcc2
15730 builtin and then its argument prototype would still apply. */
15731 char $ac_func();
15732
15733 int main() {
15734
15735 /* The GNU C library defines this for functions which it implements
15736 to always fail with ENOSYS. Some functions are actually named
15737 something starting with __ and the normal name is an alias. */
15738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15739 choke me
15740 #else
15741 $ac_func();
15742 #endif
15743
15744 ; return 0; }
15745 EOF
15746 if { (eval echo configure:15747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15747 rm -rf conftest*
15748 eval "ac_cv_func_$ac_func=yes"
15749 else
15750 echo "configure: failed program was:" >&5
15751 cat conftest.$ac_ext >&5
15752 rm -rf conftest*
15753 eval "ac_cv_func_$ac_func=no"
15754 fi
15755 rm -f conftest*
15756 fi
15757
15758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15759 echo "$ac_t""yes" 1>&6
15760 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15761 cat >> confdefs.h <<EOF
15762 #define $ac_tr_func 1
15763 EOF
15764
15765 else
15766 echo "$ac_t""no" 1>&6
15767 fi
15768 done
15769
15770 else
15771
15772 echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15773 echo "configure:15774: checking for _sincosf declaration" >&5
15774 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
15775 if eval "test \"`echo '$''{'glibcxx_cv_func__sincosf_use'+set}'`\" = set"; then
15776 echo $ac_n "(cached) $ac_c" 1>&6
15777 else
15778
15779
15780 ac_ext=C
15781 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15782 ac_cpp='$CXXCPP $CPPFLAGS'
15783 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15784 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15785 cross_compiling=$ac_cv_prog_cxx_cross
15786
15787 cat > conftest.$ac_ext <<EOF
15788 #line 15789 "configure"
15789 #include "confdefs.h"
15790 #include <math.h>
15791 int main() {
15792 _sincosf(0, 0, 0);
15793 ; return 0; }
15794 EOF
15795 if { (eval echo configure:15796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15796 rm -rf conftest*
15797 glibcxx_cv_func__sincosf_use=yes
15798 else
15799 echo "configure: failed program was:" >&5
15800 cat conftest.$ac_ext >&5
15801 rm -rf conftest*
15802 glibcxx_cv_func__sincosf_use=no
15803 fi
15804 rm -f conftest*
15805 ac_ext=c
15806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15807 ac_cpp='$CPP $CPPFLAGS'
15808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15810 cross_compiling=$ac_cv_prog_cc_cross
15811
15812
15813 fi
15814
15815 fi
15816 echo "$ac_t""$glibcxx_cv_func__sincosf_use" 1>&6
15817
15818 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
15819 for ac_func in _sincosf
15820 do
15821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15822 echo "configure:15823: checking for $ac_func" >&5
15823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15824 echo $ac_n "(cached) $ac_c" 1>&6
15825 else
15826 cat > conftest.$ac_ext <<EOF
15827 #line 15828 "configure"
15828 #include "confdefs.h"
15829 /* System header to define __stub macros and hopefully few prototypes,
15830 which can conflict with char $ac_func(); below. */
15831 #include <assert.h>
15832 /* Override any gcc2 internal prototype to avoid an error. */
15833 /* We use char because int might match the return type of a gcc2
15834 builtin and then its argument prototype would still apply. */
15835 char $ac_func();
15836
15837 int main() {
15838
15839 /* The GNU C library defines this for functions which it implements
15840 to always fail with ENOSYS. Some functions are actually named
15841 something starting with __ and the normal name is an alias. */
15842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15843 choke me
15844 #else
15845 $ac_func();
15846 #endif
15847
15848 ; return 0; }
15849 EOF
15850 if { (eval echo configure:15851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15851 rm -rf conftest*
15852 eval "ac_cv_func_$ac_func=yes"
15853 else
15854 echo "configure: failed program was:" >&5
15855 cat conftest.$ac_ext >&5
15856 rm -rf conftest*
15857 eval "ac_cv_func_$ac_func=no"
15858 fi
15859 rm -f conftest*
15860 fi
15861
15862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15863 echo "$ac_t""yes" 1>&6
15864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15865 cat >> confdefs.h <<EOF
15866 #define $ac_tr_func 1
15867 EOF
15868
15869 else
15870 echo "$ac_t""no" 1>&6
15871 fi
15872 done
15873
15874 fi
15875 fi
15876
15877
15878
15879 echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15880 echo "configure:15881: checking for finitef declaration" >&5
15881 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
15882 if eval "test \"`echo '$''{'glibcxx_cv_func_finitef_use'+set}'`\" = set"; then
15883 echo $ac_n "(cached) $ac_c" 1>&6
15884 else
15885
15886
15887 ac_ext=C
15888 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15889 ac_cpp='$CXXCPP $CPPFLAGS'
15890 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15891 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15892 cross_compiling=$ac_cv_prog_cxx_cross
15893
15894 cat > conftest.$ac_ext <<EOF
15895 #line 15896 "configure"
15896 #include "confdefs.h"
15897 #include <math.h>
15898 #ifdef HAVE_IEEEFP_H
15899 #include <ieeefp.h>
15900 #endif
15901
15902 int main() {
15903 finitef(0);
15904 ; return 0; }
15905 EOF
15906 if { (eval echo configure:15907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15907 rm -rf conftest*
15908 glibcxx_cv_func_finitef_use=yes
15909 else
15910 echo "configure: failed program was:" >&5
15911 cat conftest.$ac_ext >&5
15912 rm -rf conftest*
15913 glibcxx_cv_func_finitef_use=no
15914 fi
15915 rm -f conftest*
15916 ac_ext=c
15917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15918 ac_cpp='$CPP $CPPFLAGS'
15919 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15920 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15921 cross_compiling=$ac_cv_prog_cc_cross
15922
15923
15924 fi
15925
15926 fi
15927 echo "$ac_t""$glibcxx_cv_func_finitef_use" 1>&6
15928
15929 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
15930 for ac_func in finitef
15931 do
15932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15933 echo "configure:15934: checking for $ac_func" >&5
15934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15935 echo $ac_n "(cached) $ac_c" 1>&6
15936 else
15937 cat > conftest.$ac_ext <<EOF
15938 #line 15939 "configure"
15939 #include "confdefs.h"
15940 /* System header to define __stub macros and hopefully few prototypes,
15941 which can conflict with char $ac_func(); below. */
15942 #include <assert.h>
15943 /* Override any gcc2 internal prototype to avoid an error. */
15944 /* We use char because int might match the return type of a gcc2
15945 builtin and then its argument prototype would still apply. */
15946 char $ac_func();
15947
15948 int main() {
15949
15950 /* The GNU C library defines this for functions which it implements
15951 to always fail with ENOSYS. Some functions are actually named
15952 something starting with __ and the normal name is an alias. */
15953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15954 choke me
15955 #else
15956 $ac_func();
15957 #endif
15958
15959 ; return 0; }
15960 EOF
15961 if { (eval echo configure:15962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15962 rm -rf conftest*
15963 eval "ac_cv_func_$ac_func=yes"
15964 else
15965 echo "configure: failed program was:" >&5
15966 cat conftest.$ac_ext >&5
15967 rm -rf conftest*
15968 eval "ac_cv_func_$ac_func=no"
15969 fi
15970 rm -f conftest*
15971 fi
15972
15973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15974 echo "$ac_t""yes" 1>&6
15975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15976 cat >> confdefs.h <<EOF
15977 #define $ac_tr_func 1
15978 EOF
15979
15980 else
15981 echo "$ac_t""no" 1>&6
15982 fi
15983 done
15984
15985 else
15986
15987 echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15988 echo "configure:15989: checking for _finitef declaration" >&5
15989 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
15990 if eval "test \"`echo '$''{'glibcxx_cv_func__finitef_use'+set}'`\" = set"; then
15991 echo $ac_n "(cached) $ac_c" 1>&6
15992 else
15993
15994
15995 ac_ext=C
15996 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15997 ac_cpp='$CXXCPP $CPPFLAGS'
15998 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15999 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16000 cross_compiling=$ac_cv_prog_cxx_cross
16001
16002 cat > conftest.$ac_ext <<EOF
16003 #line 16004 "configure"
16004 #include "confdefs.h"
16005 #include <math.h>
16006 #ifdef HAVE_IEEEFP_H
16007 #include <ieeefp.h>
16008 #endif
16009
16010 int main() {
16011 _finitef(0);
16012 ; return 0; }
16013 EOF
16014 if { (eval echo configure:16015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16015 rm -rf conftest*
16016 glibcxx_cv_func__finitef_use=yes
16017 else
16018 echo "configure: failed program was:" >&5
16019 cat conftest.$ac_ext >&5
16020 rm -rf conftest*
16021 glibcxx_cv_func__finitef_use=no
16022 fi
16023 rm -f conftest*
16024 ac_ext=c
16025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16026 ac_cpp='$CPP $CPPFLAGS'
16027 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16028 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16029 cross_compiling=$ac_cv_prog_cc_cross
16030
16031
16032 fi
16033
16034 fi
16035 echo "$ac_t""$glibcxx_cv_func__finitef_use" 1>&6
16036
16037 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
16038 for ac_func in _finitef
16039 do
16040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16041 echo "configure:16042: checking for $ac_func" >&5
16042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16043 echo $ac_n "(cached) $ac_c" 1>&6
16044 else
16045 cat > conftest.$ac_ext <<EOF
16046 #line 16047 "configure"
16047 #include "confdefs.h"
16048 /* System header to define __stub macros and hopefully few prototypes,
16049 which can conflict with char $ac_func(); below. */
16050 #include <assert.h>
16051 /* Override any gcc2 internal prototype to avoid an error. */
16052 /* We use char because int might match the return type of a gcc2
16053 builtin and then its argument prototype would still apply. */
16054 char $ac_func();
16055
16056 int main() {
16057
16058 /* The GNU C library defines this for functions which it implements
16059 to always fail with ENOSYS. Some functions are actually named
16060 something starting with __ and the normal name is an alias. */
16061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16062 choke me
16063 #else
16064 $ac_func();
16065 #endif
16066
16067 ; return 0; }
16068 EOF
16069 if { (eval echo configure:16070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16070 rm -rf conftest*
16071 eval "ac_cv_func_$ac_func=yes"
16072 else
16073 echo "configure: failed program was:" >&5
16074 cat conftest.$ac_ext >&5
16075 rm -rf conftest*
16076 eval "ac_cv_func_$ac_func=no"
16077 fi
16078 rm -f conftest*
16079 fi
16080
16081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16082 echo "$ac_t""yes" 1>&6
16083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16084 cat >> confdefs.h <<EOF
16085 #define $ac_tr_func 1
16086 EOF
16087
16088 else
16089 echo "$ac_t""no" 1>&6
16090 fi
16091 done
16092
16093 fi
16094 fi
16095
16096
16097
16098 echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16099 echo "configure:16100: checking for long double trig functions" >&5
16100 if eval "test \"`echo '$''{'glibcxx_cv_func_long_double_trig_use'+set}'`\" = set"; then
16101 echo $ac_n "(cached) $ac_c" 1>&6
16102 else
16103
16104
16105 ac_ext=C
16106 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16107 ac_cpp='$CXXCPP $CPPFLAGS'
16108 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16109 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16110 cross_compiling=$ac_cv_prog_cxx_cross
16111
16112 cat > conftest.$ac_ext <<EOF
16113 #line 16114 "configure"
16114 #include "confdefs.h"
16115 #include <math.h>
16116 int main() {
16117 `for x in acosl asinl atanl \
16118 cosl sinl tanl \
16119 coshl sinhl tanhl; do echo "$x (0);"; done`
16120 ; return 0; }
16121 EOF
16122 if { (eval echo configure:16123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16123 rm -rf conftest*
16124 glibcxx_cv_func_long_double_trig_use=yes
16125 else
16126 echo "configure: failed program was:" >&5
16127 cat conftest.$ac_ext >&5
16128 rm -rf conftest*
16129 glibcxx_cv_func_long_double_trig_use=no
16130 fi
16131 rm -f conftest*
16132 ac_ext=c
16133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16134 ac_cpp='$CPP $CPPFLAGS'
16135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16137 cross_compiling=$ac_cv_prog_cc_cross
16138
16139 fi
16140
16141 echo "$ac_t""$glibcxx_cv_func_long_double_trig_use" 1>&6
16142 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
16143 for ac_func in acosl asinl atanl \
16144 cosl sinl tanl \
16145 coshl sinhl tanhl
16146 do
16147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16148 echo "configure:16149: checking for $ac_func" >&5
16149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16150 echo $ac_n "(cached) $ac_c" 1>&6
16151 else
16152 cat > conftest.$ac_ext <<EOF
16153 #line 16154 "configure"
16154 #include "confdefs.h"
16155 /* System header to define __stub macros and hopefully few prototypes,
16156 which can conflict with char $ac_func(); below. */
16157 #include <assert.h>
16158 /* Override any gcc2 internal prototype to avoid an error. */
16159 /* We use char because int might match the return type of a gcc2
16160 builtin and then its argument prototype would still apply. */
16161 char $ac_func();
16162
16163 int main() {
16164
16165 /* The GNU C library defines this for functions which it implements
16166 to always fail with ENOSYS. Some functions are actually named
16167 something starting with __ and the normal name is an alias. */
16168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16169 choke me
16170 #else
16171 $ac_func();
16172 #endif
16173
16174 ; return 0; }
16175 EOF
16176 if { (eval echo configure:16177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16177 rm -rf conftest*
16178 eval "ac_cv_func_$ac_func=yes"
16179 else
16180 echo "configure: failed program was:" >&5
16181 cat conftest.$ac_ext >&5
16182 rm -rf conftest*
16183 eval "ac_cv_func_$ac_func=no"
16184 fi
16185 rm -f conftest*
16186 fi
16187
16188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16189 echo "$ac_t""yes" 1>&6
16190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16191 cat >> confdefs.h <<EOF
16192 #define $ac_tr_func 1
16193 EOF
16194
16195 else
16196 echo "$ac_t""no" 1>&6
16197 fi
16198 done
16199
16200 fi
16201
16202
16203 echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16204 echo "configure:16205: checking for long double round functions" >&5
16205 if eval "test \"`echo '$''{'glibcxx_cv_func_long_double_round_use'+set}'`\" = set"; then
16206 echo $ac_n "(cached) $ac_c" 1>&6
16207 else
16208
16209
16210 ac_ext=C
16211 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16212 ac_cpp='$CXXCPP $CPPFLAGS'
16213 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16214 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16215 cross_compiling=$ac_cv_prog_cxx_cross
16216
16217 cat > conftest.$ac_ext <<EOF
16218 #line 16219 "configure"
16219 #include "confdefs.h"
16220 #include <math.h>
16221 int main() {
16222 `for x in ceill floorl; do echo "$x (0);"; done`
16223 ; return 0; }
16224 EOF
16225 if { (eval echo configure:16226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16226 rm -rf conftest*
16227 glibcxx_cv_func_long_double_round_use=yes
16228 else
16229 echo "configure: failed program was:" >&5
16230 cat conftest.$ac_ext >&5
16231 rm -rf conftest*
16232 glibcxx_cv_func_long_double_round_use=no
16233 fi
16234 rm -f conftest*
16235 ac_ext=c
16236 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16237 ac_cpp='$CPP $CPPFLAGS'
16238 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16239 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16240 cross_compiling=$ac_cv_prog_cc_cross
16241
16242 fi
16243
16244 echo "$ac_t""$glibcxx_cv_func_long_double_round_use" 1>&6
16245 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
16246 for ac_func in ceill floorl
16247 do
16248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16249 echo "configure:16250: checking for $ac_func" >&5
16250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16251 echo $ac_n "(cached) $ac_c" 1>&6
16252 else
16253 cat > conftest.$ac_ext <<EOF
16254 #line 16255 "configure"
16255 #include "confdefs.h"
16256 /* System header to define __stub macros and hopefully few prototypes,
16257 which can conflict with char $ac_func(); below. */
16258 #include <assert.h>
16259 /* Override any gcc2 internal prototype to avoid an error. */
16260 /* We use char because int might match the return type of a gcc2
16261 builtin and then its argument prototype would still apply. */
16262 char $ac_func();
16263
16264 int main() {
16265
16266 /* The GNU C library defines this for functions which it implements
16267 to always fail with ENOSYS. Some functions are actually named
16268 something starting with __ and the normal name is an alias. */
16269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16270 choke me
16271 #else
16272 $ac_func();
16273 #endif
16274
16275 ; return 0; }
16276 EOF
16277 if { (eval echo configure:16278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16278 rm -rf conftest*
16279 eval "ac_cv_func_$ac_func=yes"
16280 else
16281 echo "configure: failed program was:" >&5
16282 cat conftest.$ac_ext >&5
16283 rm -rf conftest*
16284 eval "ac_cv_func_$ac_func=no"
16285 fi
16286 rm -f conftest*
16287 fi
16288
16289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16290 echo "$ac_t""yes" 1>&6
16291 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16292 cat >> confdefs.h <<EOF
16293 #define $ac_tr_func 1
16294 EOF
16295
16296 else
16297 echo "$ac_t""no" 1>&6
16298 fi
16299 done
16300
16301 fi
16302
16303
16304
16305 echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16306 echo "configure:16307: checking for isnanl declaration" >&5
16307 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
16308 if eval "test \"`echo '$''{'glibcxx_cv_func_isnanl_use'+set}'`\" = set"; then
16309 echo $ac_n "(cached) $ac_c" 1>&6
16310 else
16311
16312
16313 ac_ext=C
16314 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16315 ac_cpp='$CXXCPP $CPPFLAGS'
16316 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16317 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16318 cross_compiling=$ac_cv_prog_cxx_cross
16319
16320 cat > conftest.$ac_ext <<EOF
16321 #line 16322 "configure"
16322 #include "confdefs.h"
16323 #include <math.h>
16324 #ifdef HAVE_IEEEFP_H
16325 #include <ieeefp.h>
16326 #endif
16327
16328 int main() {
16329 isnanl(0);
16330 ; return 0; }
16331 EOF
16332 if { (eval echo configure:16333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16333 rm -rf conftest*
16334 glibcxx_cv_func_isnanl_use=yes
16335 else
16336 echo "configure: failed program was:" >&5
16337 cat conftest.$ac_ext >&5
16338 rm -rf conftest*
16339 glibcxx_cv_func_isnanl_use=no
16340 fi
16341 rm -f conftest*
16342 ac_ext=c
16343 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16344 ac_cpp='$CPP $CPPFLAGS'
16345 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16346 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16347 cross_compiling=$ac_cv_prog_cc_cross
16348
16349
16350 fi
16351
16352 fi
16353 echo "$ac_t""$glibcxx_cv_func_isnanl_use" 1>&6
16354
16355 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
16356 for ac_func in isnanl
16357 do
16358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16359 echo "configure:16360: checking for $ac_func" >&5
16360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16361 echo $ac_n "(cached) $ac_c" 1>&6
16362 else
16363 cat > conftest.$ac_ext <<EOF
16364 #line 16365 "configure"
16365 #include "confdefs.h"
16366 /* System header to define __stub macros and hopefully few prototypes,
16367 which can conflict with char $ac_func(); below. */
16368 #include <assert.h>
16369 /* Override any gcc2 internal prototype to avoid an error. */
16370 /* We use char because int might match the return type of a gcc2
16371 builtin and then its argument prototype would still apply. */
16372 char $ac_func();
16373
16374 int main() {
16375
16376 /* The GNU C library defines this for functions which it implements
16377 to always fail with ENOSYS. Some functions are actually named
16378 something starting with __ and the normal name is an alias. */
16379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16380 choke me
16381 #else
16382 $ac_func();
16383 #endif
16384
16385 ; return 0; }
16386 EOF
16387 if { (eval echo configure:16388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16388 rm -rf conftest*
16389 eval "ac_cv_func_$ac_func=yes"
16390 else
16391 echo "configure: failed program was:" >&5
16392 cat conftest.$ac_ext >&5
16393 rm -rf conftest*
16394 eval "ac_cv_func_$ac_func=no"
16395 fi
16396 rm -f conftest*
16397 fi
16398
16399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16400 echo "$ac_t""yes" 1>&6
16401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16402 cat >> confdefs.h <<EOF
16403 #define $ac_tr_func 1
16404 EOF
16405
16406 else
16407 echo "$ac_t""no" 1>&6
16408 fi
16409 done
16410
16411 else
16412
16413 echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16414 echo "configure:16415: checking for _isnanl declaration" >&5
16415 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
16416 if eval "test \"`echo '$''{'glibcxx_cv_func__isnanl_use'+set}'`\" = set"; then
16417 echo $ac_n "(cached) $ac_c" 1>&6
16418 else
16419
16420
16421 ac_ext=C
16422 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16423 ac_cpp='$CXXCPP $CPPFLAGS'
16424 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16425 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16426 cross_compiling=$ac_cv_prog_cxx_cross
16427
16428 cat > conftest.$ac_ext <<EOF
16429 #line 16430 "configure"
16430 #include "confdefs.h"
16431 #include <math.h>
16432 #ifdef HAVE_IEEEFP_H
16433 #include <ieeefp.h>
16434 #endif
16435
16436 int main() {
16437 _isnanl(0);
16438 ; return 0; }
16439 EOF
16440 if { (eval echo configure:16441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16441 rm -rf conftest*
16442 glibcxx_cv_func__isnanl_use=yes
16443 else
16444 echo "configure: failed program was:" >&5
16445 cat conftest.$ac_ext >&5
16446 rm -rf conftest*
16447 glibcxx_cv_func__isnanl_use=no
16448 fi
16449 rm -f conftest*
16450 ac_ext=c
16451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16452 ac_cpp='$CPP $CPPFLAGS'
16453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16455 cross_compiling=$ac_cv_prog_cc_cross
16456
16457
16458 fi
16459
16460 fi
16461 echo "$ac_t""$glibcxx_cv_func__isnanl_use" 1>&6
16462
16463 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
16464 for ac_func in _isnanl
16465 do
16466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16467 echo "configure:16468: checking for $ac_func" >&5
16468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16469 echo $ac_n "(cached) $ac_c" 1>&6
16470 else
16471 cat > conftest.$ac_ext <<EOF
16472 #line 16473 "configure"
16473 #include "confdefs.h"
16474 /* System header to define __stub macros and hopefully few prototypes,
16475 which can conflict with char $ac_func(); below. */
16476 #include <assert.h>
16477 /* Override any gcc2 internal prototype to avoid an error. */
16478 /* We use char because int might match the return type of a gcc2
16479 builtin and then its argument prototype would still apply. */
16480 char $ac_func();
16481
16482 int main() {
16483
16484 /* The GNU C library defines this for functions which it implements
16485 to always fail with ENOSYS. Some functions are actually named
16486 something starting with __ and the normal name is an alias. */
16487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16488 choke me
16489 #else
16490 $ac_func();
16491 #endif
16492
16493 ; return 0; }
16494 EOF
16495 if { (eval echo configure:16496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16496 rm -rf conftest*
16497 eval "ac_cv_func_$ac_func=yes"
16498 else
16499 echo "configure: failed program was:" >&5
16500 cat conftest.$ac_ext >&5
16501 rm -rf conftest*
16502 eval "ac_cv_func_$ac_func=no"
16503 fi
16504 rm -f conftest*
16505 fi
16506
16507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16508 echo "$ac_t""yes" 1>&6
16509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16510 cat >> confdefs.h <<EOF
16511 #define $ac_tr_func 1
16512 EOF
16513
16514 else
16515 echo "$ac_t""no" 1>&6
16516 fi
16517 done
16518
16519 fi
16520 fi
16521
16522
16523
16524 echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16525 echo "configure:16526: checking for isinfl declaration" >&5
16526 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
16527 if eval "test \"`echo '$''{'glibcxx_cv_func_isinfl_use'+set}'`\" = set"; then
16528 echo $ac_n "(cached) $ac_c" 1>&6
16529 else
16530
16531
16532 ac_ext=C
16533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16534 ac_cpp='$CXXCPP $CPPFLAGS'
16535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16537 cross_compiling=$ac_cv_prog_cxx_cross
16538
16539 cat > conftest.$ac_ext <<EOF
16540 #line 16541 "configure"
16541 #include "confdefs.h"
16542 #include <math.h>
16543 #ifdef HAVE_IEEEFP_H
16544 #include <ieeefp.h>
16545 #endif
16546
16547 int main() {
16548 isinfl(0);
16549 ; return 0; }
16550 EOF
16551 if { (eval echo configure:16552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16552 rm -rf conftest*
16553 glibcxx_cv_func_isinfl_use=yes
16554 else
16555 echo "configure: failed program was:" >&5
16556 cat conftest.$ac_ext >&5
16557 rm -rf conftest*
16558 glibcxx_cv_func_isinfl_use=no
16559 fi
16560 rm -f conftest*
16561 ac_ext=c
16562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16563 ac_cpp='$CPP $CPPFLAGS'
16564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16566 cross_compiling=$ac_cv_prog_cc_cross
16567
16568
16569 fi
16570
16571 fi
16572 echo "$ac_t""$glibcxx_cv_func_isinfl_use" 1>&6
16573
16574 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
16575 for ac_func in isinfl
16576 do
16577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16578 echo "configure:16579: checking for $ac_func" >&5
16579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16580 echo $ac_n "(cached) $ac_c" 1>&6
16581 else
16582 cat > conftest.$ac_ext <<EOF
16583 #line 16584 "configure"
16584 #include "confdefs.h"
16585 /* System header to define __stub macros and hopefully few prototypes,
16586 which can conflict with char $ac_func(); below. */
16587 #include <assert.h>
16588 /* Override any gcc2 internal prototype to avoid an error. */
16589 /* We use char because int might match the return type of a gcc2
16590 builtin and then its argument prototype would still apply. */
16591 char $ac_func();
16592
16593 int main() {
16594
16595 /* The GNU C library defines this for functions which it implements
16596 to always fail with ENOSYS. Some functions are actually named
16597 something starting with __ and the normal name is an alias. */
16598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16599 choke me
16600 #else
16601 $ac_func();
16602 #endif
16603
16604 ; return 0; }
16605 EOF
16606 if { (eval echo configure:16607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16607 rm -rf conftest*
16608 eval "ac_cv_func_$ac_func=yes"
16609 else
16610 echo "configure: failed program was:" >&5
16611 cat conftest.$ac_ext >&5
16612 rm -rf conftest*
16613 eval "ac_cv_func_$ac_func=no"
16614 fi
16615 rm -f conftest*
16616 fi
16617
16618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16619 echo "$ac_t""yes" 1>&6
16620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16621 cat >> confdefs.h <<EOF
16622 #define $ac_tr_func 1
16623 EOF
16624
16625 else
16626 echo "$ac_t""no" 1>&6
16627 fi
16628 done
16629
16630 else
16631
16632 echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16633 echo "configure:16634: checking for _isinfl declaration" >&5
16634 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
16635 if eval "test \"`echo '$''{'glibcxx_cv_func__isinfl_use'+set}'`\" = set"; then
16636 echo $ac_n "(cached) $ac_c" 1>&6
16637 else
16638
16639
16640 ac_ext=C
16641 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16642 ac_cpp='$CXXCPP $CPPFLAGS'
16643 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16644 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16645 cross_compiling=$ac_cv_prog_cxx_cross
16646
16647 cat > conftest.$ac_ext <<EOF
16648 #line 16649 "configure"
16649 #include "confdefs.h"
16650 #include <math.h>
16651 #ifdef HAVE_IEEEFP_H
16652 #include <ieeefp.h>
16653 #endif
16654
16655 int main() {
16656 _isinfl(0);
16657 ; return 0; }
16658 EOF
16659 if { (eval echo configure:16660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16660 rm -rf conftest*
16661 glibcxx_cv_func__isinfl_use=yes
16662 else
16663 echo "configure: failed program was:" >&5
16664 cat conftest.$ac_ext >&5
16665 rm -rf conftest*
16666 glibcxx_cv_func__isinfl_use=no
16667 fi
16668 rm -f conftest*
16669 ac_ext=c
16670 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16671 ac_cpp='$CPP $CPPFLAGS'
16672 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16673 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16674 cross_compiling=$ac_cv_prog_cc_cross
16675
16676
16677 fi
16678
16679 fi
16680 echo "$ac_t""$glibcxx_cv_func__isinfl_use" 1>&6
16681
16682 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
16683 for ac_func in _isinfl
16684 do
16685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16686 echo "configure:16687: checking for $ac_func" >&5
16687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16688 echo $ac_n "(cached) $ac_c" 1>&6
16689 else
16690 cat > conftest.$ac_ext <<EOF
16691 #line 16692 "configure"
16692 #include "confdefs.h"
16693 /* System header to define __stub macros and hopefully few prototypes,
16694 which can conflict with char $ac_func(); below. */
16695 #include <assert.h>
16696 /* Override any gcc2 internal prototype to avoid an error. */
16697 /* We use char because int might match the return type of a gcc2
16698 builtin and then its argument prototype would still apply. */
16699 char $ac_func();
16700
16701 int main() {
16702
16703 /* The GNU C library defines this for functions which it implements
16704 to always fail with ENOSYS. Some functions are actually named
16705 something starting with __ and the normal name is an alias. */
16706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16707 choke me
16708 #else
16709 $ac_func();
16710 #endif
16711
16712 ; return 0; }
16713 EOF
16714 if { (eval echo configure:16715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16715 rm -rf conftest*
16716 eval "ac_cv_func_$ac_func=yes"
16717 else
16718 echo "configure: failed program was:" >&5
16719 cat conftest.$ac_ext >&5
16720 rm -rf conftest*
16721 eval "ac_cv_func_$ac_func=no"
16722 fi
16723 rm -f conftest*
16724 fi
16725
16726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16727 echo "$ac_t""yes" 1>&6
16728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16729 cat >> confdefs.h <<EOF
16730 #define $ac_tr_func 1
16731 EOF
16732
16733 else
16734 echo "$ac_t""no" 1>&6
16735 fi
16736 done
16737
16738 fi
16739 fi
16740
16741
16742
16743 echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16744 echo "configure:16745: checking for copysignl declaration" >&5
16745 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
16746 if eval "test \"`echo '$''{'glibcxx_cv_func_copysignl_use'+set}'`\" = set"; then
16747 echo $ac_n "(cached) $ac_c" 1>&6
16748 else
16749
16750
16751 ac_ext=C
16752 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16753 ac_cpp='$CXXCPP $CPPFLAGS'
16754 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16755 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16756 cross_compiling=$ac_cv_prog_cxx_cross
16757
16758 cat > conftest.$ac_ext <<EOF
16759 #line 16760 "configure"
16760 #include "confdefs.h"
16761 #include <math.h>
16762 int main() {
16763 copysignl(0, 0);
16764 ; return 0; }
16765 EOF
16766 if { (eval echo configure:16767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16767 rm -rf conftest*
16768 glibcxx_cv_func_copysignl_use=yes
16769 else
16770 echo "configure: failed program was:" >&5
16771 cat conftest.$ac_ext >&5
16772 rm -rf conftest*
16773 glibcxx_cv_func_copysignl_use=no
16774 fi
16775 rm -f conftest*
16776 ac_ext=c
16777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16778 ac_cpp='$CPP $CPPFLAGS'
16779 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16780 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16781 cross_compiling=$ac_cv_prog_cc_cross
16782
16783
16784 fi
16785
16786 fi
16787 echo "$ac_t""$glibcxx_cv_func_copysignl_use" 1>&6
16788
16789 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
16790 for ac_func in copysignl
16791 do
16792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16793 echo "configure:16794: checking for $ac_func" >&5
16794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16795 echo $ac_n "(cached) $ac_c" 1>&6
16796 else
16797 cat > conftest.$ac_ext <<EOF
16798 #line 16799 "configure"
16799 #include "confdefs.h"
16800 /* System header to define __stub macros and hopefully few prototypes,
16801 which can conflict with char $ac_func(); below. */
16802 #include <assert.h>
16803 /* Override any gcc2 internal prototype to avoid an error. */
16804 /* We use char because int might match the return type of a gcc2
16805 builtin and then its argument prototype would still apply. */
16806 char $ac_func();
16807
16808 int main() {
16809
16810 /* The GNU C library defines this for functions which it implements
16811 to always fail with ENOSYS. Some functions are actually named
16812 something starting with __ and the normal name is an alias. */
16813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16814 choke me
16815 #else
16816 $ac_func();
16817 #endif
16818
16819 ; return 0; }
16820 EOF
16821 if { (eval echo configure:16822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16822 rm -rf conftest*
16823 eval "ac_cv_func_$ac_func=yes"
16824 else
16825 echo "configure: failed program was:" >&5
16826 cat conftest.$ac_ext >&5
16827 rm -rf conftest*
16828 eval "ac_cv_func_$ac_func=no"
16829 fi
16830 rm -f conftest*
16831 fi
16832
16833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16834 echo "$ac_t""yes" 1>&6
16835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16836 cat >> confdefs.h <<EOF
16837 #define $ac_tr_func 1
16838 EOF
16839
16840 else
16841 echo "$ac_t""no" 1>&6
16842 fi
16843 done
16844
16845 else
16846
16847 echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16848 echo "configure:16849: checking for _copysignl declaration" >&5
16849 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
16850 if eval "test \"`echo '$''{'glibcxx_cv_func__copysignl_use'+set}'`\" = set"; then
16851 echo $ac_n "(cached) $ac_c" 1>&6
16852 else
16853
16854
16855 ac_ext=C
16856 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16857 ac_cpp='$CXXCPP $CPPFLAGS'
16858 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16859 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16860 cross_compiling=$ac_cv_prog_cxx_cross
16861
16862 cat > conftest.$ac_ext <<EOF
16863 #line 16864 "configure"
16864 #include "confdefs.h"
16865 #include <math.h>
16866 int main() {
16867 _copysignl(0, 0);
16868 ; return 0; }
16869 EOF
16870 if { (eval echo configure:16871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16871 rm -rf conftest*
16872 glibcxx_cv_func__copysignl_use=yes
16873 else
16874 echo "configure: failed program was:" >&5
16875 cat conftest.$ac_ext >&5
16876 rm -rf conftest*
16877 glibcxx_cv_func__copysignl_use=no
16878 fi
16879 rm -f conftest*
16880 ac_ext=c
16881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16882 ac_cpp='$CPP $CPPFLAGS'
16883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16885 cross_compiling=$ac_cv_prog_cc_cross
16886
16887
16888 fi
16889
16890 fi
16891 echo "$ac_t""$glibcxx_cv_func__copysignl_use" 1>&6
16892
16893 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
16894 for ac_func in _copysignl
16895 do
16896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16897 echo "configure:16898: checking for $ac_func" >&5
16898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16899 echo $ac_n "(cached) $ac_c" 1>&6
16900 else
16901 cat > conftest.$ac_ext <<EOF
16902 #line 16903 "configure"
16903 #include "confdefs.h"
16904 /* System header to define __stub macros and hopefully few prototypes,
16905 which can conflict with char $ac_func(); below. */
16906 #include <assert.h>
16907 /* Override any gcc2 internal prototype to avoid an error. */
16908 /* We use char because int might match the return type of a gcc2
16909 builtin and then its argument prototype would still apply. */
16910 char $ac_func();
16911
16912 int main() {
16913
16914 /* The GNU C library defines this for functions which it implements
16915 to always fail with ENOSYS. Some functions are actually named
16916 something starting with __ and the normal name is an alias. */
16917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16918 choke me
16919 #else
16920 $ac_func();
16921 #endif
16922
16923 ; return 0; }
16924 EOF
16925 if { (eval echo configure:16926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16926 rm -rf conftest*
16927 eval "ac_cv_func_$ac_func=yes"
16928 else
16929 echo "configure: failed program was:" >&5
16930 cat conftest.$ac_ext >&5
16931 rm -rf conftest*
16932 eval "ac_cv_func_$ac_func=no"
16933 fi
16934 rm -f conftest*
16935 fi
16936
16937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16938 echo "$ac_t""yes" 1>&6
16939 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16940 cat >> confdefs.h <<EOF
16941 #define $ac_tr_func 1
16942 EOF
16943
16944 else
16945 echo "$ac_t""no" 1>&6
16946 fi
16947 done
16948
16949 fi
16950 fi
16951
16952
16953
16954 echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16955 echo "configure:16956: checking for atan2l declaration" >&5
16956 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
16957 if eval "test \"`echo '$''{'glibcxx_cv_func_atan2l_use'+set}'`\" = set"; then
16958 echo $ac_n "(cached) $ac_c" 1>&6
16959 else
16960
16961
16962 ac_ext=C
16963 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16964 ac_cpp='$CXXCPP $CPPFLAGS'
16965 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16966 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16967 cross_compiling=$ac_cv_prog_cxx_cross
16968
16969 cat > conftest.$ac_ext <<EOF
16970 #line 16971 "configure"
16971 #include "confdefs.h"
16972 #include <math.h>
16973 int main() {
16974 atan2l(0, 0);
16975 ; return 0; }
16976 EOF
16977 if { (eval echo configure:16978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16978 rm -rf conftest*
16979 glibcxx_cv_func_atan2l_use=yes
16980 else
16981 echo "configure: failed program was:" >&5
16982 cat conftest.$ac_ext >&5
16983 rm -rf conftest*
16984 glibcxx_cv_func_atan2l_use=no
16985 fi
16986 rm -f conftest*
16987 ac_ext=c
16988 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16989 ac_cpp='$CPP $CPPFLAGS'
16990 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16991 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16992 cross_compiling=$ac_cv_prog_cc_cross
16993
16994
16995 fi
16996
16997 fi
16998 echo "$ac_t""$glibcxx_cv_func_atan2l_use" 1>&6
16999
17000 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
17001 for ac_func in atan2l
17002 do
17003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17004 echo "configure:17005: checking for $ac_func" >&5
17005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17006 echo $ac_n "(cached) $ac_c" 1>&6
17007 else
17008 cat > conftest.$ac_ext <<EOF
17009 #line 17010 "configure"
17010 #include "confdefs.h"
17011 /* System header to define __stub macros and hopefully few prototypes,
17012 which can conflict with char $ac_func(); below. */
17013 #include <assert.h>
17014 /* Override any gcc2 internal prototype to avoid an error. */
17015 /* We use char because int might match the return type of a gcc2
17016 builtin and then its argument prototype would still apply. */
17017 char $ac_func();
17018
17019 int main() {
17020
17021 /* The GNU C library defines this for functions which it implements
17022 to always fail with ENOSYS. Some functions are actually named
17023 something starting with __ and the normal name is an alias. */
17024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17025 choke me
17026 #else
17027 $ac_func();
17028 #endif
17029
17030 ; return 0; }
17031 EOF
17032 if { (eval echo configure:17033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17033 rm -rf conftest*
17034 eval "ac_cv_func_$ac_func=yes"
17035 else
17036 echo "configure: failed program was:" >&5
17037 cat conftest.$ac_ext >&5
17038 rm -rf conftest*
17039 eval "ac_cv_func_$ac_func=no"
17040 fi
17041 rm -f conftest*
17042 fi
17043
17044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17045 echo "$ac_t""yes" 1>&6
17046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17047 cat >> confdefs.h <<EOF
17048 #define $ac_tr_func 1
17049 EOF
17050
17051 else
17052 echo "$ac_t""no" 1>&6
17053 fi
17054 done
17055
17056 else
17057
17058 echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17059 echo "configure:17060: checking for _atan2l declaration" >&5
17060 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
17061 if eval "test \"`echo '$''{'glibcxx_cv_func__atan2l_use'+set}'`\" = set"; then
17062 echo $ac_n "(cached) $ac_c" 1>&6
17063 else
17064
17065
17066 ac_ext=C
17067 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17068 ac_cpp='$CXXCPP $CPPFLAGS'
17069 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17070 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17071 cross_compiling=$ac_cv_prog_cxx_cross
17072
17073 cat > conftest.$ac_ext <<EOF
17074 #line 17075 "configure"
17075 #include "confdefs.h"
17076 #include <math.h>
17077 int main() {
17078 _atan2l(0, 0);
17079 ; return 0; }
17080 EOF
17081 if { (eval echo configure:17082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17082 rm -rf conftest*
17083 glibcxx_cv_func__atan2l_use=yes
17084 else
17085 echo "configure: failed program was:" >&5
17086 cat conftest.$ac_ext >&5
17087 rm -rf conftest*
17088 glibcxx_cv_func__atan2l_use=no
17089 fi
17090 rm -f conftest*
17091 ac_ext=c
17092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17093 ac_cpp='$CPP $CPPFLAGS'
17094 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17095 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17096 cross_compiling=$ac_cv_prog_cc_cross
17097
17098
17099 fi
17100
17101 fi
17102 echo "$ac_t""$glibcxx_cv_func__atan2l_use" 1>&6
17103
17104 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
17105 for ac_func in _atan2l
17106 do
17107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17108 echo "configure:17109: checking for $ac_func" >&5
17109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17110 echo $ac_n "(cached) $ac_c" 1>&6
17111 else
17112 cat > conftest.$ac_ext <<EOF
17113 #line 17114 "configure"
17114 #include "confdefs.h"
17115 /* System header to define __stub macros and hopefully few prototypes,
17116 which can conflict with char $ac_func(); below. */
17117 #include <assert.h>
17118 /* Override any gcc2 internal prototype to avoid an error. */
17119 /* We use char because int might match the return type of a gcc2
17120 builtin and then its argument prototype would still apply. */
17121 char $ac_func();
17122
17123 int main() {
17124
17125 /* The GNU C library defines this for functions which it implements
17126 to always fail with ENOSYS. Some functions are actually named
17127 something starting with __ and the normal name is an alias. */
17128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17129 choke me
17130 #else
17131 $ac_func();
17132 #endif
17133
17134 ; return 0; }
17135 EOF
17136 if { (eval echo configure:17137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17137 rm -rf conftest*
17138 eval "ac_cv_func_$ac_func=yes"
17139 else
17140 echo "configure: failed program was:" >&5
17141 cat conftest.$ac_ext >&5
17142 rm -rf conftest*
17143 eval "ac_cv_func_$ac_func=no"
17144 fi
17145 rm -f conftest*
17146 fi
17147
17148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17149 echo "$ac_t""yes" 1>&6
17150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17151 cat >> confdefs.h <<EOF
17152 #define $ac_tr_func 1
17153 EOF
17154
17155 else
17156 echo "$ac_t""no" 1>&6
17157 fi
17158 done
17159
17160 fi
17161 fi
17162
17163
17164
17165 echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17166 echo "configure:17167: checking for expl declaration" >&5
17167 if test x${glibcxx_cv_func_expl_use+set} != xset; then
17168 if eval "test \"`echo '$''{'glibcxx_cv_func_expl_use'+set}'`\" = set"; then
17169 echo $ac_n "(cached) $ac_c" 1>&6
17170 else
17171
17172
17173 ac_ext=C
17174 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17175 ac_cpp='$CXXCPP $CPPFLAGS'
17176 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17177 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17178 cross_compiling=$ac_cv_prog_cxx_cross
17179
17180 cat > conftest.$ac_ext <<EOF
17181 #line 17182 "configure"
17182 #include "confdefs.h"
17183 #include <math.h>
17184 #ifdef HAVE_IEEEFP_H
17185 #include <ieeefp.h>
17186 #endif
17187
17188 int main() {
17189 expl(0);
17190 ; return 0; }
17191 EOF
17192 if { (eval echo configure:17193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17193 rm -rf conftest*
17194 glibcxx_cv_func_expl_use=yes
17195 else
17196 echo "configure: failed program was:" >&5
17197 cat conftest.$ac_ext >&5
17198 rm -rf conftest*
17199 glibcxx_cv_func_expl_use=no
17200 fi
17201 rm -f conftest*
17202 ac_ext=c
17203 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17204 ac_cpp='$CPP $CPPFLAGS'
17205 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17206 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17207 cross_compiling=$ac_cv_prog_cc_cross
17208
17209
17210 fi
17211
17212 fi
17213 echo "$ac_t""$glibcxx_cv_func_expl_use" 1>&6
17214
17215 if test x$glibcxx_cv_func_expl_use = x"yes"; then
17216 for ac_func in expl
17217 do
17218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17219 echo "configure:17220: checking for $ac_func" >&5
17220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17221 echo $ac_n "(cached) $ac_c" 1>&6
17222 else
17223 cat > conftest.$ac_ext <<EOF
17224 #line 17225 "configure"
17225 #include "confdefs.h"
17226 /* System header to define __stub macros and hopefully few prototypes,
17227 which can conflict with char $ac_func(); below. */
17228 #include <assert.h>
17229 /* Override any gcc2 internal prototype to avoid an error. */
17230 /* We use char because int might match the return type of a gcc2
17231 builtin and then its argument prototype would still apply. */
17232 char $ac_func();
17233
17234 int main() {
17235
17236 /* The GNU C library defines this for functions which it implements
17237 to always fail with ENOSYS. Some functions are actually named
17238 something starting with __ and the normal name is an alias. */
17239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17240 choke me
17241 #else
17242 $ac_func();
17243 #endif
17244
17245 ; return 0; }
17246 EOF
17247 if { (eval echo configure:17248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17248 rm -rf conftest*
17249 eval "ac_cv_func_$ac_func=yes"
17250 else
17251 echo "configure: failed program was:" >&5
17252 cat conftest.$ac_ext >&5
17253 rm -rf conftest*
17254 eval "ac_cv_func_$ac_func=no"
17255 fi
17256 rm -f conftest*
17257 fi
17258
17259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17260 echo "$ac_t""yes" 1>&6
17261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17262 cat >> confdefs.h <<EOF
17263 #define $ac_tr_func 1
17264 EOF
17265
17266 else
17267 echo "$ac_t""no" 1>&6
17268 fi
17269 done
17270
17271 else
17272
17273 echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17274 echo "configure:17275: checking for _expl declaration" >&5
17275 if test x${glibcxx_cv_func__expl_use+set} != xset; then
17276 if eval "test \"`echo '$''{'glibcxx_cv_func__expl_use'+set}'`\" = set"; then
17277 echo $ac_n "(cached) $ac_c" 1>&6
17278 else
17279
17280
17281 ac_ext=C
17282 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17283 ac_cpp='$CXXCPP $CPPFLAGS'
17284 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17285 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17286 cross_compiling=$ac_cv_prog_cxx_cross
17287
17288 cat > conftest.$ac_ext <<EOF
17289 #line 17290 "configure"
17290 #include "confdefs.h"
17291 #include <math.h>
17292 #ifdef HAVE_IEEEFP_H
17293 #include <ieeefp.h>
17294 #endif
17295
17296 int main() {
17297 _expl(0);
17298 ; return 0; }
17299 EOF
17300 if { (eval echo configure:17301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17301 rm -rf conftest*
17302 glibcxx_cv_func__expl_use=yes
17303 else
17304 echo "configure: failed program was:" >&5
17305 cat conftest.$ac_ext >&5
17306 rm -rf conftest*
17307 glibcxx_cv_func__expl_use=no
17308 fi
17309 rm -f conftest*
17310 ac_ext=c
17311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17312 ac_cpp='$CPP $CPPFLAGS'
17313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17315 cross_compiling=$ac_cv_prog_cc_cross
17316
17317
17318 fi
17319
17320 fi
17321 echo "$ac_t""$glibcxx_cv_func__expl_use" 1>&6
17322
17323 if test x$glibcxx_cv_func__expl_use = x"yes"; then
17324 for ac_func in _expl
17325 do
17326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17327 echo "configure:17328: checking for $ac_func" >&5
17328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17329 echo $ac_n "(cached) $ac_c" 1>&6
17330 else
17331 cat > conftest.$ac_ext <<EOF
17332 #line 17333 "configure"
17333 #include "confdefs.h"
17334 /* System header to define __stub macros and hopefully few prototypes,
17335 which can conflict with char $ac_func(); below. */
17336 #include <assert.h>
17337 /* Override any gcc2 internal prototype to avoid an error. */
17338 /* We use char because int might match the return type of a gcc2
17339 builtin and then its argument prototype would still apply. */
17340 char $ac_func();
17341
17342 int main() {
17343
17344 /* The GNU C library defines this for functions which it implements
17345 to always fail with ENOSYS. Some functions are actually named
17346 something starting with __ and the normal name is an alias. */
17347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17348 choke me
17349 #else
17350 $ac_func();
17351 #endif
17352
17353 ; return 0; }
17354 EOF
17355 if { (eval echo configure:17356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17356 rm -rf conftest*
17357 eval "ac_cv_func_$ac_func=yes"
17358 else
17359 echo "configure: failed program was:" >&5
17360 cat conftest.$ac_ext >&5
17361 rm -rf conftest*
17362 eval "ac_cv_func_$ac_func=no"
17363 fi
17364 rm -f conftest*
17365 fi
17366
17367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17368 echo "$ac_t""yes" 1>&6
17369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17370 cat >> confdefs.h <<EOF
17371 #define $ac_tr_func 1
17372 EOF
17373
17374 else
17375 echo "$ac_t""no" 1>&6
17376 fi
17377 done
17378
17379 fi
17380 fi
17381
17382
17383
17384 echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17385 echo "configure:17386: checking for fabsl declaration" >&5
17386 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
17387 if eval "test \"`echo '$''{'glibcxx_cv_func_fabsl_use'+set}'`\" = set"; then
17388 echo $ac_n "(cached) $ac_c" 1>&6
17389 else
17390
17391
17392 ac_ext=C
17393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17394 ac_cpp='$CXXCPP $CPPFLAGS'
17395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17397 cross_compiling=$ac_cv_prog_cxx_cross
17398
17399 cat > conftest.$ac_ext <<EOF
17400 #line 17401 "configure"
17401 #include "confdefs.h"
17402 #include <math.h>
17403 #ifdef HAVE_IEEEFP_H
17404 #include <ieeefp.h>
17405 #endif
17406
17407 int main() {
17408 fabsl(0);
17409 ; return 0; }
17410 EOF
17411 if { (eval echo configure:17412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17412 rm -rf conftest*
17413 glibcxx_cv_func_fabsl_use=yes
17414 else
17415 echo "configure: failed program was:" >&5
17416 cat conftest.$ac_ext >&5
17417 rm -rf conftest*
17418 glibcxx_cv_func_fabsl_use=no
17419 fi
17420 rm -f conftest*
17421 ac_ext=c
17422 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17423 ac_cpp='$CPP $CPPFLAGS'
17424 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17425 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17426 cross_compiling=$ac_cv_prog_cc_cross
17427
17428
17429 fi
17430
17431 fi
17432 echo "$ac_t""$glibcxx_cv_func_fabsl_use" 1>&6
17433
17434 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
17435 for ac_func in fabsl
17436 do
17437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17438 echo "configure:17439: checking for $ac_func" >&5
17439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17440 echo $ac_n "(cached) $ac_c" 1>&6
17441 else
17442 cat > conftest.$ac_ext <<EOF
17443 #line 17444 "configure"
17444 #include "confdefs.h"
17445 /* System header to define __stub macros and hopefully few prototypes,
17446 which can conflict with char $ac_func(); below. */
17447 #include <assert.h>
17448 /* Override any gcc2 internal prototype to avoid an error. */
17449 /* We use char because int might match the return type of a gcc2
17450 builtin and then its argument prototype would still apply. */
17451 char $ac_func();
17452
17453 int main() {
17454
17455 /* The GNU C library defines this for functions which it implements
17456 to always fail with ENOSYS. Some functions are actually named
17457 something starting with __ and the normal name is an alias. */
17458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17459 choke me
17460 #else
17461 $ac_func();
17462 #endif
17463
17464 ; return 0; }
17465 EOF
17466 if { (eval echo configure:17467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17467 rm -rf conftest*
17468 eval "ac_cv_func_$ac_func=yes"
17469 else
17470 echo "configure: failed program was:" >&5
17471 cat conftest.$ac_ext >&5
17472 rm -rf conftest*
17473 eval "ac_cv_func_$ac_func=no"
17474 fi
17475 rm -f conftest*
17476 fi
17477
17478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17479 echo "$ac_t""yes" 1>&6
17480 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17481 cat >> confdefs.h <<EOF
17482 #define $ac_tr_func 1
17483 EOF
17484
17485 else
17486 echo "$ac_t""no" 1>&6
17487 fi
17488 done
17489
17490 else
17491
17492 echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17493 echo "configure:17494: checking for _fabsl declaration" >&5
17494 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
17495 if eval "test \"`echo '$''{'glibcxx_cv_func__fabsl_use'+set}'`\" = set"; then
17496 echo $ac_n "(cached) $ac_c" 1>&6
17497 else
17498
17499
17500 ac_ext=C
17501 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17502 ac_cpp='$CXXCPP $CPPFLAGS'
17503 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17504 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17505 cross_compiling=$ac_cv_prog_cxx_cross
17506
17507 cat > conftest.$ac_ext <<EOF
17508 #line 17509 "configure"
17509 #include "confdefs.h"
17510 #include <math.h>
17511 #ifdef HAVE_IEEEFP_H
17512 #include <ieeefp.h>
17513 #endif
17514
17515 int main() {
17516 _fabsl(0);
17517 ; return 0; }
17518 EOF
17519 if { (eval echo configure:17520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17520 rm -rf conftest*
17521 glibcxx_cv_func__fabsl_use=yes
17522 else
17523 echo "configure: failed program was:" >&5
17524 cat conftest.$ac_ext >&5
17525 rm -rf conftest*
17526 glibcxx_cv_func__fabsl_use=no
17527 fi
17528 rm -f conftest*
17529 ac_ext=c
17530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17531 ac_cpp='$CPP $CPPFLAGS'
17532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17534 cross_compiling=$ac_cv_prog_cc_cross
17535
17536
17537 fi
17538
17539 fi
17540 echo "$ac_t""$glibcxx_cv_func__fabsl_use" 1>&6
17541
17542 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
17543 for ac_func in _fabsl
17544 do
17545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17546 echo "configure:17547: checking for $ac_func" >&5
17547 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17548 echo $ac_n "(cached) $ac_c" 1>&6
17549 else
17550 cat > conftest.$ac_ext <<EOF
17551 #line 17552 "configure"
17552 #include "confdefs.h"
17553 /* System header to define __stub macros and hopefully few prototypes,
17554 which can conflict with char $ac_func(); below. */
17555 #include <assert.h>
17556 /* Override any gcc2 internal prototype to avoid an error. */
17557 /* We use char because int might match the return type of a gcc2
17558 builtin and then its argument prototype would still apply. */
17559 char $ac_func();
17560
17561 int main() {
17562
17563 /* The GNU C library defines this for functions which it implements
17564 to always fail with ENOSYS. Some functions are actually named
17565 something starting with __ and the normal name is an alias. */
17566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17567 choke me
17568 #else
17569 $ac_func();
17570 #endif
17571
17572 ; return 0; }
17573 EOF
17574 if { (eval echo configure:17575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17575 rm -rf conftest*
17576 eval "ac_cv_func_$ac_func=yes"
17577 else
17578 echo "configure: failed program was:" >&5
17579 cat conftest.$ac_ext >&5
17580 rm -rf conftest*
17581 eval "ac_cv_func_$ac_func=no"
17582 fi
17583 rm -f conftest*
17584 fi
17585
17586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17587 echo "$ac_t""yes" 1>&6
17588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17589 cat >> confdefs.h <<EOF
17590 #define $ac_tr_func 1
17591 EOF
17592
17593 else
17594 echo "$ac_t""no" 1>&6
17595 fi
17596 done
17597
17598 fi
17599 fi
17600
17601
17602
17603 echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17604 echo "configure:17605: checking for fmodl declaration" >&5
17605 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
17606 if eval "test \"`echo '$''{'glibcxx_cv_func_fmodl_use'+set}'`\" = set"; then
17607 echo $ac_n "(cached) $ac_c" 1>&6
17608 else
17609
17610
17611 ac_ext=C
17612 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17613 ac_cpp='$CXXCPP $CPPFLAGS'
17614 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17615 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17616 cross_compiling=$ac_cv_prog_cxx_cross
17617
17618 cat > conftest.$ac_ext <<EOF
17619 #line 17620 "configure"
17620 #include "confdefs.h"
17621 #include <math.h>
17622 int main() {
17623 fmodl(0, 0);
17624 ; return 0; }
17625 EOF
17626 if { (eval echo configure:17627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17627 rm -rf conftest*
17628 glibcxx_cv_func_fmodl_use=yes
17629 else
17630 echo "configure: failed program was:" >&5
17631 cat conftest.$ac_ext >&5
17632 rm -rf conftest*
17633 glibcxx_cv_func_fmodl_use=no
17634 fi
17635 rm -f conftest*
17636 ac_ext=c
17637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17638 ac_cpp='$CPP $CPPFLAGS'
17639 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17640 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17641 cross_compiling=$ac_cv_prog_cc_cross
17642
17643
17644 fi
17645
17646 fi
17647 echo "$ac_t""$glibcxx_cv_func_fmodl_use" 1>&6
17648
17649 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
17650 for ac_func in fmodl
17651 do
17652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17653 echo "configure:17654: checking for $ac_func" >&5
17654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17655 echo $ac_n "(cached) $ac_c" 1>&6
17656 else
17657 cat > conftest.$ac_ext <<EOF
17658 #line 17659 "configure"
17659 #include "confdefs.h"
17660 /* System header to define __stub macros and hopefully few prototypes,
17661 which can conflict with char $ac_func(); below. */
17662 #include <assert.h>
17663 /* Override any gcc2 internal prototype to avoid an error. */
17664 /* We use char because int might match the return type of a gcc2
17665 builtin and then its argument prototype would still apply. */
17666 char $ac_func();
17667
17668 int main() {
17669
17670 /* The GNU C library defines this for functions which it implements
17671 to always fail with ENOSYS. Some functions are actually named
17672 something starting with __ and the normal name is an alias. */
17673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17674 choke me
17675 #else
17676 $ac_func();
17677 #endif
17678
17679 ; return 0; }
17680 EOF
17681 if { (eval echo configure:17682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17682 rm -rf conftest*
17683 eval "ac_cv_func_$ac_func=yes"
17684 else
17685 echo "configure: failed program was:" >&5
17686 cat conftest.$ac_ext >&5
17687 rm -rf conftest*
17688 eval "ac_cv_func_$ac_func=no"
17689 fi
17690 rm -f conftest*
17691 fi
17692
17693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17694 echo "$ac_t""yes" 1>&6
17695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17696 cat >> confdefs.h <<EOF
17697 #define $ac_tr_func 1
17698 EOF
17699
17700 else
17701 echo "$ac_t""no" 1>&6
17702 fi
17703 done
17704
17705 else
17706
17707 echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17708 echo "configure:17709: checking for _fmodl declaration" >&5
17709 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
17710 if eval "test \"`echo '$''{'glibcxx_cv_func__fmodl_use'+set}'`\" = set"; then
17711 echo $ac_n "(cached) $ac_c" 1>&6
17712 else
17713
17714
17715 ac_ext=C
17716 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17717 ac_cpp='$CXXCPP $CPPFLAGS'
17718 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17719 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17720 cross_compiling=$ac_cv_prog_cxx_cross
17721
17722 cat > conftest.$ac_ext <<EOF
17723 #line 17724 "configure"
17724 #include "confdefs.h"
17725 #include <math.h>
17726 int main() {
17727 _fmodl(0, 0);
17728 ; return 0; }
17729 EOF
17730 if { (eval echo configure:17731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17731 rm -rf conftest*
17732 glibcxx_cv_func__fmodl_use=yes
17733 else
17734 echo "configure: failed program was:" >&5
17735 cat conftest.$ac_ext >&5
17736 rm -rf conftest*
17737 glibcxx_cv_func__fmodl_use=no
17738 fi
17739 rm -f conftest*
17740 ac_ext=c
17741 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17742 ac_cpp='$CPP $CPPFLAGS'
17743 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17744 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17745 cross_compiling=$ac_cv_prog_cc_cross
17746
17747
17748 fi
17749
17750 fi
17751 echo "$ac_t""$glibcxx_cv_func__fmodl_use" 1>&6
17752
17753 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
17754 for ac_func in _fmodl
17755 do
17756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17757 echo "configure:17758: checking for $ac_func" >&5
17758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17759 echo $ac_n "(cached) $ac_c" 1>&6
17760 else
17761 cat > conftest.$ac_ext <<EOF
17762 #line 17763 "configure"
17763 #include "confdefs.h"
17764 /* System header to define __stub macros and hopefully few prototypes,
17765 which can conflict with char $ac_func(); below. */
17766 #include <assert.h>
17767 /* Override any gcc2 internal prototype to avoid an error. */
17768 /* We use char because int might match the return type of a gcc2
17769 builtin and then its argument prototype would still apply. */
17770 char $ac_func();
17771
17772 int main() {
17773
17774 /* The GNU C library defines this for functions which it implements
17775 to always fail with ENOSYS. Some functions are actually named
17776 something starting with __ and the normal name is an alias. */
17777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17778 choke me
17779 #else
17780 $ac_func();
17781 #endif
17782
17783 ; return 0; }
17784 EOF
17785 if { (eval echo configure:17786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17786 rm -rf conftest*
17787 eval "ac_cv_func_$ac_func=yes"
17788 else
17789 echo "configure: failed program was:" >&5
17790 cat conftest.$ac_ext >&5
17791 rm -rf conftest*
17792 eval "ac_cv_func_$ac_func=no"
17793 fi
17794 rm -f conftest*
17795 fi
17796
17797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17798 echo "$ac_t""yes" 1>&6
17799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17800 cat >> confdefs.h <<EOF
17801 #define $ac_tr_func 1
17802 EOF
17803
17804 else
17805 echo "$ac_t""no" 1>&6
17806 fi
17807 done
17808
17809 fi
17810 fi
17811
17812
17813
17814 echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17815 echo "configure:17816: checking for frexpl declaration" >&5
17816 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
17817 if eval "test \"`echo '$''{'glibcxx_cv_func_frexpl_use'+set}'`\" = set"; then
17818 echo $ac_n "(cached) $ac_c" 1>&6
17819 else
17820
17821
17822 ac_ext=C
17823 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17824 ac_cpp='$CXXCPP $CPPFLAGS'
17825 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17826 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17827 cross_compiling=$ac_cv_prog_cxx_cross
17828
17829 cat > conftest.$ac_ext <<EOF
17830 #line 17831 "configure"
17831 #include "confdefs.h"
17832 #include <math.h>
17833 int main() {
17834 frexpl(0, 0);
17835 ; return 0; }
17836 EOF
17837 if { (eval echo configure:17838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17838 rm -rf conftest*
17839 glibcxx_cv_func_frexpl_use=yes
17840 else
17841 echo "configure: failed program was:" >&5
17842 cat conftest.$ac_ext >&5
17843 rm -rf conftest*
17844 glibcxx_cv_func_frexpl_use=no
17845 fi
17846 rm -f conftest*
17847 ac_ext=c
17848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17849 ac_cpp='$CPP $CPPFLAGS'
17850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17852 cross_compiling=$ac_cv_prog_cc_cross
17853
17854
17855 fi
17856
17857 fi
17858 echo "$ac_t""$glibcxx_cv_func_frexpl_use" 1>&6
17859
17860 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
17861 for ac_func in frexpl
17862 do
17863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17864 echo "configure:17865: checking for $ac_func" >&5
17865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17866 echo $ac_n "(cached) $ac_c" 1>&6
17867 else
17868 cat > conftest.$ac_ext <<EOF
17869 #line 17870 "configure"
17870 #include "confdefs.h"
17871 /* System header to define __stub macros and hopefully few prototypes,
17872 which can conflict with char $ac_func(); below. */
17873 #include <assert.h>
17874 /* Override any gcc2 internal prototype to avoid an error. */
17875 /* We use char because int might match the return type of a gcc2
17876 builtin and then its argument prototype would still apply. */
17877 char $ac_func();
17878
17879 int main() {
17880
17881 /* The GNU C library defines this for functions which it implements
17882 to always fail with ENOSYS. Some functions are actually named
17883 something starting with __ and the normal name is an alias. */
17884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17885 choke me
17886 #else
17887 $ac_func();
17888 #endif
17889
17890 ; return 0; }
17891 EOF
17892 if { (eval echo configure:17893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17893 rm -rf conftest*
17894 eval "ac_cv_func_$ac_func=yes"
17895 else
17896 echo "configure: failed program was:" >&5
17897 cat conftest.$ac_ext >&5
17898 rm -rf conftest*
17899 eval "ac_cv_func_$ac_func=no"
17900 fi
17901 rm -f conftest*
17902 fi
17903
17904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17905 echo "$ac_t""yes" 1>&6
17906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17907 cat >> confdefs.h <<EOF
17908 #define $ac_tr_func 1
17909 EOF
17910
17911 else
17912 echo "$ac_t""no" 1>&6
17913 fi
17914 done
17915
17916 else
17917
17918 echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17919 echo "configure:17920: checking for _frexpl declaration" >&5
17920 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
17921 if eval "test \"`echo '$''{'glibcxx_cv_func__frexpl_use'+set}'`\" = set"; then
17922 echo $ac_n "(cached) $ac_c" 1>&6
17923 else
17924
17925
17926 ac_ext=C
17927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17928 ac_cpp='$CXXCPP $CPPFLAGS'
17929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17931 cross_compiling=$ac_cv_prog_cxx_cross
17932
17933 cat > conftest.$ac_ext <<EOF
17934 #line 17935 "configure"
17935 #include "confdefs.h"
17936 #include <math.h>
17937 int main() {
17938 _frexpl(0, 0);
17939 ; return 0; }
17940 EOF
17941 if { (eval echo configure:17942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17942 rm -rf conftest*
17943 glibcxx_cv_func__frexpl_use=yes
17944 else
17945 echo "configure: failed program was:" >&5
17946 cat conftest.$ac_ext >&5
17947 rm -rf conftest*
17948 glibcxx_cv_func__frexpl_use=no
17949 fi
17950 rm -f conftest*
17951 ac_ext=c
17952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17953 ac_cpp='$CPP $CPPFLAGS'
17954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17956 cross_compiling=$ac_cv_prog_cc_cross
17957
17958
17959 fi
17960
17961 fi
17962 echo "$ac_t""$glibcxx_cv_func__frexpl_use" 1>&6
17963
17964 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
17965 for ac_func in _frexpl
17966 do
17967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17968 echo "configure:17969: checking for $ac_func" >&5
17969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17970 echo $ac_n "(cached) $ac_c" 1>&6
17971 else
17972 cat > conftest.$ac_ext <<EOF
17973 #line 17974 "configure"
17974 #include "confdefs.h"
17975 /* System header to define __stub macros and hopefully few prototypes,
17976 which can conflict with char $ac_func(); below. */
17977 #include <assert.h>
17978 /* Override any gcc2 internal prototype to avoid an error. */
17979 /* We use char because int might match the return type of a gcc2
17980 builtin and then its argument prototype would still apply. */
17981 char $ac_func();
17982
17983 int main() {
17984
17985 /* The GNU C library defines this for functions which it implements
17986 to always fail with ENOSYS. Some functions are actually named
17987 something starting with __ and the normal name is an alias. */
17988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17989 choke me
17990 #else
17991 $ac_func();
17992 #endif
17993
17994 ; return 0; }
17995 EOF
17996 if { (eval echo configure:17997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17997 rm -rf conftest*
17998 eval "ac_cv_func_$ac_func=yes"
17999 else
18000 echo "configure: failed program was:" >&5
18001 cat conftest.$ac_ext >&5
18002 rm -rf conftest*
18003 eval "ac_cv_func_$ac_func=no"
18004 fi
18005 rm -f conftest*
18006 fi
18007
18008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18009 echo "$ac_t""yes" 1>&6
18010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18011 cat >> confdefs.h <<EOF
18012 #define $ac_tr_func 1
18013 EOF
18014
18015 else
18016 echo "$ac_t""no" 1>&6
18017 fi
18018 done
18019
18020 fi
18021 fi
18022
18023
18024
18025 echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18026 echo "configure:18027: checking for hypotl declaration" >&5
18027 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
18028 if eval "test \"`echo '$''{'glibcxx_cv_func_hypotl_use'+set}'`\" = set"; then
18029 echo $ac_n "(cached) $ac_c" 1>&6
18030 else
18031
18032
18033 ac_ext=C
18034 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18035 ac_cpp='$CXXCPP $CPPFLAGS'
18036 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18037 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18038 cross_compiling=$ac_cv_prog_cxx_cross
18039
18040 cat > conftest.$ac_ext <<EOF
18041 #line 18042 "configure"
18042 #include "confdefs.h"
18043 #include <math.h>
18044 int main() {
18045 hypotl(0, 0);
18046 ; return 0; }
18047 EOF
18048 if { (eval echo configure:18049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18049 rm -rf conftest*
18050 glibcxx_cv_func_hypotl_use=yes
18051 else
18052 echo "configure: failed program was:" >&5
18053 cat conftest.$ac_ext >&5
18054 rm -rf conftest*
18055 glibcxx_cv_func_hypotl_use=no
18056 fi
18057 rm -f conftest*
18058 ac_ext=c
18059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18060 ac_cpp='$CPP $CPPFLAGS'
18061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18063 cross_compiling=$ac_cv_prog_cc_cross
18064
18065
18066 fi
18067
18068 fi
18069 echo "$ac_t""$glibcxx_cv_func_hypotl_use" 1>&6
18070
18071 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
18072 for ac_func in hypotl
18073 do
18074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18075 echo "configure:18076: checking for $ac_func" >&5
18076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18077 echo $ac_n "(cached) $ac_c" 1>&6
18078 else
18079 cat > conftest.$ac_ext <<EOF
18080 #line 18081 "configure"
18081 #include "confdefs.h"
18082 /* System header to define __stub macros and hopefully few prototypes,
18083 which can conflict with char $ac_func(); below. */
18084 #include <assert.h>
18085 /* Override any gcc2 internal prototype to avoid an error. */
18086 /* We use char because int might match the return type of a gcc2
18087 builtin and then its argument prototype would still apply. */
18088 char $ac_func();
18089
18090 int main() {
18091
18092 /* The GNU C library defines this for functions which it implements
18093 to always fail with ENOSYS. Some functions are actually named
18094 something starting with __ and the normal name is an alias. */
18095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18096 choke me
18097 #else
18098 $ac_func();
18099 #endif
18100
18101 ; return 0; }
18102 EOF
18103 if { (eval echo configure:18104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18104 rm -rf conftest*
18105 eval "ac_cv_func_$ac_func=yes"
18106 else
18107 echo "configure: failed program was:" >&5
18108 cat conftest.$ac_ext >&5
18109 rm -rf conftest*
18110 eval "ac_cv_func_$ac_func=no"
18111 fi
18112 rm -f conftest*
18113 fi
18114
18115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18116 echo "$ac_t""yes" 1>&6
18117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18118 cat >> confdefs.h <<EOF
18119 #define $ac_tr_func 1
18120 EOF
18121
18122 else
18123 echo "$ac_t""no" 1>&6
18124 fi
18125 done
18126
18127 else
18128
18129 echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18130 echo "configure:18131: checking for _hypotl declaration" >&5
18131 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
18132 if eval "test \"`echo '$''{'glibcxx_cv_func__hypotl_use'+set}'`\" = set"; then
18133 echo $ac_n "(cached) $ac_c" 1>&6
18134 else
18135
18136
18137 ac_ext=C
18138 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18139 ac_cpp='$CXXCPP $CPPFLAGS'
18140 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18141 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18142 cross_compiling=$ac_cv_prog_cxx_cross
18143
18144 cat > conftest.$ac_ext <<EOF
18145 #line 18146 "configure"
18146 #include "confdefs.h"
18147 #include <math.h>
18148 int main() {
18149 _hypotl(0, 0);
18150 ; return 0; }
18151 EOF
18152 if { (eval echo configure:18153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18153 rm -rf conftest*
18154 glibcxx_cv_func__hypotl_use=yes
18155 else
18156 echo "configure: failed program was:" >&5
18157 cat conftest.$ac_ext >&5
18158 rm -rf conftest*
18159 glibcxx_cv_func__hypotl_use=no
18160 fi
18161 rm -f conftest*
18162 ac_ext=c
18163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18164 ac_cpp='$CPP $CPPFLAGS'
18165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18167 cross_compiling=$ac_cv_prog_cc_cross
18168
18169
18170 fi
18171
18172 fi
18173 echo "$ac_t""$glibcxx_cv_func__hypotl_use" 1>&6
18174
18175 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
18176 for ac_func in _hypotl
18177 do
18178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18179 echo "configure:18180: checking for $ac_func" >&5
18180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18181 echo $ac_n "(cached) $ac_c" 1>&6
18182 else
18183 cat > conftest.$ac_ext <<EOF
18184 #line 18185 "configure"
18185 #include "confdefs.h"
18186 /* System header to define __stub macros and hopefully few prototypes,
18187 which can conflict with char $ac_func(); below. */
18188 #include <assert.h>
18189 /* Override any gcc2 internal prototype to avoid an error. */
18190 /* We use char because int might match the return type of a gcc2
18191 builtin and then its argument prototype would still apply. */
18192 char $ac_func();
18193
18194 int main() {
18195
18196 /* The GNU C library defines this for functions which it implements
18197 to always fail with ENOSYS. Some functions are actually named
18198 something starting with __ and the normal name is an alias. */
18199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18200 choke me
18201 #else
18202 $ac_func();
18203 #endif
18204
18205 ; return 0; }
18206 EOF
18207 if { (eval echo configure:18208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18208 rm -rf conftest*
18209 eval "ac_cv_func_$ac_func=yes"
18210 else
18211 echo "configure: failed program was:" >&5
18212 cat conftest.$ac_ext >&5
18213 rm -rf conftest*
18214 eval "ac_cv_func_$ac_func=no"
18215 fi
18216 rm -f conftest*
18217 fi
18218
18219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18220 echo "$ac_t""yes" 1>&6
18221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18222 cat >> confdefs.h <<EOF
18223 #define $ac_tr_func 1
18224 EOF
18225
18226 else
18227 echo "$ac_t""no" 1>&6
18228 fi
18229 done
18230
18231 fi
18232 fi
18233
18234
18235
18236 echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18237 echo "configure:18238: checking for ldexpl declaration" >&5
18238 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
18239 if eval "test \"`echo '$''{'glibcxx_cv_func_ldexpl_use'+set}'`\" = set"; then
18240 echo $ac_n "(cached) $ac_c" 1>&6
18241 else
18242
18243
18244 ac_ext=C
18245 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18246 ac_cpp='$CXXCPP $CPPFLAGS'
18247 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18248 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18249 cross_compiling=$ac_cv_prog_cxx_cross
18250
18251 cat > conftest.$ac_ext <<EOF
18252 #line 18253 "configure"
18253 #include "confdefs.h"
18254 #include <math.h>
18255 int main() {
18256 ldexpl(0, 0);
18257 ; return 0; }
18258 EOF
18259 if { (eval echo configure:18260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18260 rm -rf conftest*
18261 glibcxx_cv_func_ldexpl_use=yes
18262 else
18263 echo "configure: failed program was:" >&5
18264 cat conftest.$ac_ext >&5
18265 rm -rf conftest*
18266 glibcxx_cv_func_ldexpl_use=no
18267 fi
18268 rm -f conftest*
18269 ac_ext=c
18270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18271 ac_cpp='$CPP $CPPFLAGS'
18272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18273 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18274 cross_compiling=$ac_cv_prog_cc_cross
18275
18276
18277 fi
18278
18279 fi
18280 echo "$ac_t""$glibcxx_cv_func_ldexpl_use" 1>&6
18281
18282 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
18283 for ac_func in ldexpl
18284 do
18285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18286 echo "configure:18287: checking for $ac_func" >&5
18287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18288 echo $ac_n "(cached) $ac_c" 1>&6
18289 else
18290 cat > conftest.$ac_ext <<EOF
18291 #line 18292 "configure"
18292 #include "confdefs.h"
18293 /* System header to define __stub macros and hopefully few prototypes,
18294 which can conflict with char $ac_func(); below. */
18295 #include <assert.h>
18296 /* Override any gcc2 internal prototype to avoid an error. */
18297 /* We use char because int might match the return type of a gcc2
18298 builtin and then its argument prototype would still apply. */
18299 char $ac_func();
18300
18301 int main() {
18302
18303 /* The GNU C library defines this for functions which it implements
18304 to always fail with ENOSYS. Some functions are actually named
18305 something starting with __ and the normal name is an alias. */
18306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18307 choke me
18308 #else
18309 $ac_func();
18310 #endif
18311
18312 ; return 0; }
18313 EOF
18314 if { (eval echo configure:18315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18315 rm -rf conftest*
18316 eval "ac_cv_func_$ac_func=yes"
18317 else
18318 echo "configure: failed program was:" >&5
18319 cat conftest.$ac_ext >&5
18320 rm -rf conftest*
18321 eval "ac_cv_func_$ac_func=no"
18322 fi
18323 rm -f conftest*
18324 fi
18325
18326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18327 echo "$ac_t""yes" 1>&6
18328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18329 cat >> confdefs.h <<EOF
18330 #define $ac_tr_func 1
18331 EOF
18332
18333 else
18334 echo "$ac_t""no" 1>&6
18335 fi
18336 done
18337
18338 else
18339
18340 echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18341 echo "configure:18342: checking for _ldexpl declaration" >&5
18342 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
18343 if eval "test \"`echo '$''{'glibcxx_cv_func__ldexpl_use'+set}'`\" = set"; then
18344 echo $ac_n "(cached) $ac_c" 1>&6
18345 else
18346
18347
18348 ac_ext=C
18349 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18350 ac_cpp='$CXXCPP $CPPFLAGS'
18351 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18352 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18353 cross_compiling=$ac_cv_prog_cxx_cross
18354
18355 cat > conftest.$ac_ext <<EOF
18356 #line 18357 "configure"
18357 #include "confdefs.h"
18358 #include <math.h>
18359 int main() {
18360 _ldexpl(0, 0);
18361 ; return 0; }
18362 EOF
18363 if { (eval echo configure:18364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18364 rm -rf conftest*
18365 glibcxx_cv_func__ldexpl_use=yes
18366 else
18367 echo "configure: failed program was:" >&5
18368 cat conftest.$ac_ext >&5
18369 rm -rf conftest*
18370 glibcxx_cv_func__ldexpl_use=no
18371 fi
18372 rm -f conftest*
18373 ac_ext=c
18374 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18375 ac_cpp='$CPP $CPPFLAGS'
18376 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18377 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18378 cross_compiling=$ac_cv_prog_cc_cross
18379
18380
18381 fi
18382
18383 fi
18384 echo "$ac_t""$glibcxx_cv_func__ldexpl_use" 1>&6
18385
18386 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
18387 for ac_func in _ldexpl
18388 do
18389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18390 echo "configure:18391: checking for $ac_func" >&5
18391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18392 echo $ac_n "(cached) $ac_c" 1>&6
18393 else
18394 cat > conftest.$ac_ext <<EOF
18395 #line 18396 "configure"
18396 #include "confdefs.h"
18397 /* System header to define __stub macros and hopefully few prototypes,
18398 which can conflict with char $ac_func(); below. */
18399 #include <assert.h>
18400 /* Override any gcc2 internal prototype to avoid an error. */
18401 /* We use char because int might match the return type of a gcc2
18402 builtin and then its argument prototype would still apply. */
18403 char $ac_func();
18404
18405 int main() {
18406
18407 /* The GNU C library defines this for functions which it implements
18408 to always fail with ENOSYS. Some functions are actually named
18409 something starting with __ and the normal name is an alias. */
18410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18411 choke me
18412 #else
18413 $ac_func();
18414 #endif
18415
18416 ; return 0; }
18417 EOF
18418 if { (eval echo configure:18419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18419 rm -rf conftest*
18420 eval "ac_cv_func_$ac_func=yes"
18421 else
18422 echo "configure: failed program was:" >&5
18423 cat conftest.$ac_ext >&5
18424 rm -rf conftest*
18425 eval "ac_cv_func_$ac_func=no"
18426 fi
18427 rm -f conftest*
18428 fi
18429
18430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18431 echo "$ac_t""yes" 1>&6
18432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18433 cat >> confdefs.h <<EOF
18434 #define $ac_tr_func 1
18435 EOF
18436
18437 else
18438 echo "$ac_t""no" 1>&6
18439 fi
18440 done
18441
18442 fi
18443 fi
18444
18445
18446
18447 echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18448 echo "configure:18449: checking for logl declaration" >&5
18449 if test x${glibcxx_cv_func_logl_use+set} != xset; then
18450 if eval "test \"`echo '$''{'glibcxx_cv_func_logl_use'+set}'`\" = set"; then
18451 echo $ac_n "(cached) $ac_c" 1>&6
18452 else
18453
18454
18455 ac_ext=C
18456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18457 ac_cpp='$CXXCPP $CPPFLAGS'
18458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18460 cross_compiling=$ac_cv_prog_cxx_cross
18461
18462 cat > conftest.$ac_ext <<EOF
18463 #line 18464 "configure"
18464 #include "confdefs.h"
18465 #include <math.h>
18466 #ifdef HAVE_IEEEFP_H
18467 #include <ieeefp.h>
18468 #endif
18469
18470 int main() {
18471 logl(0);
18472 ; return 0; }
18473 EOF
18474 if { (eval echo configure:18475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18475 rm -rf conftest*
18476 glibcxx_cv_func_logl_use=yes
18477 else
18478 echo "configure: failed program was:" >&5
18479 cat conftest.$ac_ext >&5
18480 rm -rf conftest*
18481 glibcxx_cv_func_logl_use=no
18482 fi
18483 rm -f conftest*
18484 ac_ext=c
18485 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18486 ac_cpp='$CPP $CPPFLAGS'
18487 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18488 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18489 cross_compiling=$ac_cv_prog_cc_cross
18490
18491
18492 fi
18493
18494 fi
18495 echo "$ac_t""$glibcxx_cv_func_logl_use" 1>&6
18496
18497 if test x$glibcxx_cv_func_logl_use = x"yes"; then
18498 for ac_func in logl
18499 do
18500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18501 echo "configure:18502: checking for $ac_func" >&5
18502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18503 echo $ac_n "(cached) $ac_c" 1>&6
18504 else
18505 cat > conftest.$ac_ext <<EOF
18506 #line 18507 "configure"
18507 #include "confdefs.h"
18508 /* System header to define __stub macros and hopefully few prototypes,
18509 which can conflict with char $ac_func(); below. */
18510 #include <assert.h>
18511 /* Override any gcc2 internal prototype to avoid an error. */
18512 /* We use char because int might match the return type of a gcc2
18513 builtin and then its argument prototype would still apply. */
18514 char $ac_func();
18515
18516 int main() {
18517
18518 /* The GNU C library defines this for functions which it implements
18519 to always fail with ENOSYS. Some functions are actually named
18520 something starting with __ and the normal name is an alias. */
18521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18522 choke me
18523 #else
18524 $ac_func();
18525 #endif
18526
18527 ; return 0; }
18528 EOF
18529 if { (eval echo configure:18530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18530 rm -rf conftest*
18531 eval "ac_cv_func_$ac_func=yes"
18532 else
18533 echo "configure: failed program was:" >&5
18534 cat conftest.$ac_ext >&5
18535 rm -rf conftest*
18536 eval "ac_cv_func_$ac_func=no"
18537 fi
18538 rm -f conftest*
18539 fi
18540
18541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18542 echo "$ac_t""yes" 1>&6
18543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18544 cat >> confdefs.h <<EOF
18545 #define $ac_tr_func 1
18546 EOF
18547
18548 else
18549 echo "$ac_t""no" 1>&6
18550 fi
18551 done
18552
18553 else
18554
18555 echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18556 echo "configure:18557: checking for _logl declaration" >&5
18557 if test x${glibcxx_cv_func__logl_use+set} != xset; then
18558 if eval "test \"`echo '$''{'glibcxx_cv_func__logl_use'+set}'`\" = set"; then
18559 echo $ac_n "(cached) $ac_c" 1>&6
18560 else
18561
18562
18563 ac_ext=C
18564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18565 ac_cpp='$CXXCPP $CPPFLAGS'
18566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18568 cross_compiling=$ac_cv_prog_cxx_cross
18569
18570 cat > conftest.$ac_ext <<EOF
18571 #line 18572 "configure"
18572 #include "confdefs.h"
18573 #include <math.h>
18574 #ifdef HAVE_IEEEFP_H
18575 #include <ieeefp.h>
18576 #endif
18577
18578 int main() {
18579 _logl(0);
18580 ; return 0; }
18581 EOF
18582 if { (eval echo configure:18583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18583 rm -rf conftest*
18584 glibcxx_cv_func__logl_use=yes
18585 else
18586 echo "configure: failed program was:" >&5
18587 cat conftest.$ac_ext >&5
18588 rm -rf conftest*
18589 glibcxx_cv_func__logl_use=no
18590 fi
18591 rm -f conftest*
18592 ac_ext=c
18593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18594 ac_cpp='$CPP $CPPFLAGS'
18595 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18596 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18597 cross_compiling=$ac_cv_prog_cc_cross
18598
18599
18600 fi
18601
18602 fi
18603 echo "$ac_t""$glibcxx_cv_func__logl_use" 1>&6
18604
18605 if test x$glibcxx_cv_func__logl_use = x"yes"; then
18606 for ac_func in _logl
18607 do
18608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18609 echo "configure:18610: checking for $ac_func" >&5
18610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18611 echo $ac_n "(cached) $ac_c" 1>&6
18612 else
18613 cat > conftest.$ac_ext <<EOF
18614 #line 18615 "configure"
18615 #include "confdefs.h"
18616 /* System header to define __stub macros and hopefully few prototypes,
18617 which can conflict with char $ac_func(); below. */
18618 #include <assert.h>
18619 /* Override any gcc2 internal prototype to avoid an error. */
18620 /* We use char because int might match the return type of a gcc2
18621 builtin and then its argument prototype would still apply. */
18622 char $ac_func();
18623
18624 int main() {
18625
18626 /* The GNU C library defines this for functions which it implements
18627 to always fail with ENOSYS. Some functions are actually named
18628 something starting with __ and the normal name is an alias. */
18629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18630 choke me
18631 #else
18632 $ac_func();
18633 #endif
18634
18635 ; return 0; }
18636 EOF
18637 if { (eval echo configure:18638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18638 rm -rf conftest*
18639 eval "ac_cv_func_$ac_func=yes"
18640 else
18641 echo "configure: failed program was:" >&5
18642 cat conftest.$ac_ext >&5
18643 rm -rf conftest*
18644 eval "ac_cv_func_$ac_func=no"
18645 fi
18646 rm -f conftest*
18647 fi
18648
18649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18650 echo "$ac_t""yes" 1>&6
18651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18652 cat >> confdefs.h <<EOF
18653 #define $ac_tr_func 1
18654 EOF
18655
18656 else
18657 echo "$ac_t""no" 1>&6
18658 fi
18659 done
18660
18661 fi
18662 fi
18663
18664
18665
18666 echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18667 echo "configure:18668: checking for log10l declaration" >&5
18668 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
18669 if eval "test \"`echo '$''{'glibcxx_cv_func_log10l_use'+set}'`\" = set"; then
18670 echo $ac_n "(cached) $ac_c" 1>&6
18671 else
18672
18673
18674 ac_ext=C
18675 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18676 ac_cpp='$CXXCPP $CPPFLAGS'
18677 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18678 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18679 cross_compiling=$ac_cv_prog_cxx_cross
18680
18681 cat > conftest.$ac_ext <<EOF
18682 #line 18683 "configure"
18683 #include "confdefs.h"
18684 #include <math.h>
18685 #ifdef HAVE_IEEEFP_H
18686 #include <ieeefp.h>
18687 #endif
18688
18689 int main() {
18690 log10l(0);
18691 ; return 0; }
18692 EOF
18693 if { (eval echo configure:18694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18694 rm -rf conftest*
18695 glibcxx_cv_func_log10l_use=yes
18696 else
18697 echo "configure: failed program was:" >&5
18698 cat conftest.$ac_ext >&5
18699 rm -rf conftest*
18700 glibcxx_cv_func_log10l_use=no
18701 fi
18702 rm -f conftest*
18703 ac_ext=c
18704 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18705 ac_cpp='$CPP $CPPFLAGS'
18706 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18707 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18708 cross_compiling=$ac_cv_prog_cc_cross
18709
18710
18711 fi
18712
18713 fi
18714 echo "$ac_t""$glibcxx_cv_func_log10l_use" 1>&6
18715
18716 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
18717 for ac_func in log10l
18718 do
18719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18720 echo "configure:18721: checking for $ac_func" >&5
18721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18722 echo $ac_n "(cached) $ac_c" 1>&6
18723 else
18724 cat > conftest.$ac_ext <<EOF
18725 #line 18726 "configure"
18726 #include "confdefs.h"
18727 /* System header to define __stub macros and hopefully few prototypes,
18728 which can conflict with char $ac_func(); below. */
18729 #include <assert.h>
18730 /* Override any gcc2 internal prototype to avoid an error. */
18731 /* We use char because int might match the return type of a gcc2
18732 builtin and then its argument prototype would still apply. */
18733 char $ac_func();
18734
18735 int main() {
18736
18737 /* The GNU C library defines this for functions which it implements
18738 to always fail with ENOSYS. Some functions are actually named
18739 something starting with __ and the normal name is an alias. */
18740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18741 choke me
18742 #else
18743 $ac_func();
18744 #endif
18745
18746 ; return 0; }
18747 EOF
18748 if { (eval echo configure:18749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18749 rm -rf conftest*
18750 eval "ac_cv_func_$ac_func=yes"
18751 else
18752 echo "configure: failed program was:" >&5
18753 cat conftest.$ac_ext >&5
18754 rm -rf conftest*
18755 eval "ac_cv_func_$ac_func=no"
18756 fi
18757 rm -f conftest*
18758 fi
18759
18760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18761 echo "$ac_t""yes" 1>&6
18762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18763 cat >> confdefs.h <<EOF
18764 #define $ac_tr_func 1
18765 EOF
18766
18767 else
18768 echo "$ac_t""no" 1>&6
18769 fi
18770 done
18771
18772 else
18773
18774 echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18775 echo "configure:18776: checking for _log10l declaration" >&5
18776 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
18777 if eval "test \"`echo '$''{'glibcxx_cv_func__log10l_use'+set}'`\" = set"; then
18778 echo $ac_n "(cached) $ac_c" 1>&6
18779 else
18780
18781
18782 ac_ext=C
18783 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18784 ac_cpp='$CXXCPP $CPPFLAGS'
18785 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18786 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18787 cross_compiling=$ac_cv_prog_cxx_cross
18788
18789 cat > conftest.$ac_ext <<EOF
18790 #line 18791 "configure"
18791 #include "confdefs.h"
18792 #include <math.h>
18793 #ifdef HAVE_IEEEFP_H
18794 #include <ieeefp.h>
18795 #endif
18796
18797 int main() {
18798 _log10l(0);
18799 ; return 0; }
18800 EOF
18801 if { (eval echo configure:18802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18802 rm -rf conftest*
18803 glibcxx_cv_func__log10l_use=yes
18804 else
18805 echo "configure: failed program was:" >&5
18806 cat conftest.$ac_ext >&5
18807 rm -rf conftest*
18808 glibcxx_cv_func__log10l_use=no
18809 fi
18810 rm -f conftest*
18811 ac_ext=c
18812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18813 ac_cpp='$CPP $CPPFLAGS'
18814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18816 cross_compiling=$ac_cv_prog_cc_cross
18817
18818
18819 fi
18820
18821 fi
18822 echo "$ac_t""$glibcxx_cv_func__log10l_use" 1>&6
18823
18824 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
18825 for ac_func in _log10l
18826 do
18827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18828 echo "configure:18829: checking for $ac_func" >&5
18829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18830 echo $ac_n "(cached) $ac_c" 1>&6
18831 else
18832 cat > conftest.$ac_ext <<EOF
18833 #line 18834 "configure"
18834 #include "confdefs.h"
18835 /* System header to define __stub macros and hopefully few prototypes,
18836 which can conflict with char $ac_func(); below. */
18837 #include <assert.h>
18838 /* Override any gcc2 internal prototype to avoid an error. */
18839 /* We use char because int might match the return type of a gcc2
18840 builtin and then its argument prototype would still apply. */
18841 char $ac_func();
18842
18843 int main() {
18844
18845 /* The GNU C library defines this for functions which it implements
18846 to always fail with ENOSYS. Some functions are actually named
18847 something starting with __ and the normal name is an alias. */
18848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18849 choke me
18850 #else
18851 $ac_func();
18852 #endif
18853
18854 ; return 0; }
18855 EOF
18856 if { (eval echo configure:18857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18857 rm -rf conftest*
18858 eval "ac_cv_func_$ac_func=yes"
18859 else
18860 echo "configure: failed program was:" >&5
18861 cat conftest.$ac_ext >&5
18862 rm -rf conftest*
18863 eval "ac_cv_func_$ac_func=no"
18864 fi
18865 rm -f conftest*
18866 fi
18867
18868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18869 echo "$ac_t""yes" 1>&6
18870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18871 cat >> confdefs.h <<EOF
18872 #define $ac_tr_func 1
18873 EOF
18874
18875 else
18876 echo "$ac_t""no" 1>&6
18877 fi
18878 done
18879
18880 fi
18881 fi
18882
18883
18884
18885 echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18886 echo "configure:18887: checking for modfl declaration" >&5
18887 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
18888 if eval "test \"`echo '$''{'glibcxx_cv_func_modfl_use'+set}'`\" = set"; then
18889 echo $ac_n "(cached) $ac_c" 1>&6
18890 else
18891
18892
18893 ac_ext=C
18894 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18895 ac_cpp='$CXXCPP $CPPFLAGS'
18896 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18897 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18898 cross_compiling=$ac_cv_prog_cxx_cross
18899
18900 cat > conftest.$ac_ext <<EOF
18901 #line 18902 "configure"
18902 #include "confdefs.h"
18903 #include <math.h>
18904 int main() {
18905 modfl(0, 0);
18906 ; return 0; }
18907 EOF
18908 if { (eval echo configure:18909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18909 rm -rf conftest*
18910 glibcxx_cv_func_modfl_use=yes
18911 else
18912 echo "configure: failed program was:" >&5
18913 cat conftest.$ac_ext >&5
18914 rm -rf conftest*
18915 glibcxx_cv_func_modfl_use=no
18916 fi
18917 rm -f conftest*
18918 ac_ext=c
18919 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18920 ac_cpp='$CPP $CPPFLAGS'
18921 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18922 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18923 cross_compiling=$ac_cv_prog_cc_cross
18924
18925
18926 fi
18927
18928 fi
18929 echo "$ac_t""$glibcxx_cv_func_modfl_use" 1>&6
18930
18931 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
18932 for ac_func in modfl
18933 do
18934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18935 echo "configure:18936: checking for $ac_func" >&5
18936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18937 echo $ac_n "(cached) $ac_c" 1>&6
18938 else
18939 cat > conftest.$ac_ext <<EOF
18940 #line 18941 "configure"
18941 #include "confdefs.h"
18942 /* System header to define __stub macros and hopefully few prototypes,
18943 which can conflict with char $ac_func(); below. */
18944 #include <assert.h>
18945 /* Override any gcc2 internal prototype to avoid an error. */
18946 /* We use char because int might match the return type of a gcc2
18947 builtin and then its argument prototype would still apply. */
18948 char $ac_func();
18949
18950 int main() {
18951
18952 /* The GNU C library defines this for functions which it implements
18953 to always fail with ENOSYS. Some functions are actually named
18954 something starting with __ and the normal name is an alias. */
18955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18956 choke me
18957 #else
18958 $ac_func();
18959 #endif
18960
18961 ; return 0; }
18962 EOF
18963 if { (eval echo configure:18964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18964 rm -rf conftest*
18965 eval "ac_cv_func_$ac_func=yes"
18966 else
18967 echo "configure: failed program was:" >&5
18968 cat conftest.$ac_ext >&5
18969 rm -rf conftest*
18970 eval "ac_cv_func_$ac_func=no"
18971 fi
18972 rm -f conftest*
18973 fi
18974
18975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18976 echo "$ac_t""yes" 1>&6
18977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18978 cat >> confdefs.h <<EOF
18979 #define $ac_tr_func 1
18980 EOF
18981
18982 else
18983 echo "$ac_t""no" 1>&6
18984 fi
18985 done
18986
18987 else
18988
18989 echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18990 echo "configure:18991: checking for _modfl declaration" >&5
18991 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
18992 if eval "test \"`echo '$''{'glibcxx_cv_func__modfl_use'+set}'`\" = set"; then
18993 echo $ac_n "(cached) $ac_c" 1>&6
18994 else
18995
18996
18997 ac_ext=C
18998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18999 ac_cpp='$CXXCPP $CPPFLAGS'
19000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19001 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19002 cross_compiling=$ac_cv_prog_cxx_cross
19003
19004 cat > conftest.$ac_ext <<EOF
19005 #line 19006 "configure"
19006 #include "confdefs.h"
19007 #include <math.h>
19008 int main() {
19009 _modfl(0, 0);
19010 ; return 0; }
19011 EOF
19012 if { (eval echo configure:19013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19013 rm -rf conftest*
19014 glibcxx_cv_func__modfl_use=yes
19015 else
19016 echo "configure: failed program was:" >&5
19017 cat conftest.$ac_ext >&5
19018 rm -rf conftest*
19019 glibcxx_cv_func__modfl_use=no
19020 fi
19021 rm -f conftest*
19022 ac_ext=c
19023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19024 ac_cpp='$CPP $CPPFLAGS'
19025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19027 cross_compiling=$ac_cv_prog_cc_cross
19028
19029
19030 fi
19031
19032 fi
19033 echo "$ac_t""$glibcxx_cv_func__modfl_use" 1>&6
19034
19035 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
19036 for ac_func in _modfl
19037 do
19038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19039 echo "configure:19040: checking for $ac_func" >&5
19040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19041 echo $ac_n "(cached) $ac_c" 1>&6
19042 else
19043 cat > conftest.$ac_ext <<EOF
19044 #line 19045 "configure"
19045 #include "confdefs.h"
19046 /* System header to define __stub macros and hopefully few prototypes,
19047 which can conflict with char $ac_func(); below. */
19048 #include <assert.h>
19049 /* Override any gcc2 internal prototype to avoid an error. */
19050 /* We use char because int might match the return type of a gcc2
19051 builtin and then its argument prototype would still apply. */
19052 char $ac_func();
19053
19054 int main() {
19055
19056 /* The GNU C library defines this for functions which it implements
19057 to always fail with ENOSYS. Some functions are actually named
19058 something starting with __ and the normal name is an alias. */
19059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19060 choke me
19061 #else
19062 $ac_func();
19063 #endif
19064
19065 ; return 0; }
19066 EOF
19067 if { (eval echo configure:19068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19068 rm -rf conftest*
19069 eval "ac_cv_func_$ac_func=yes"
19070 else
19071 echo "configure: failed program was:" >&5
19072 cat conftest.$ac_ext >&5
19073 rm -rf conftest*
19074 eval "ac_cv_func_$ac_func=no"
19075 fi
19076 rm -f conftest*
19077 fi
19078
19079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19080 echo "$ac_t""yes" 1>&6
19081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19082 cat >> confdefs.h <<EOF
19083 #define $ac_tr_func 1
19084 EOF
19085
19086 else
19087 echo "$ac_t""no" 1>&6
19088 fi
19089 done
19090
19091 fi
19092 fi
19093
19094
19095
19096 echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19097 echo "configure:19098: checking for powl declaration" >&5
19098 if test x${glibcxx_cv_func_powl_use+set} != xset; then
19099 if eval "test \"`echo '$''{'glibcxx_cv_func_powl_use'+set}'`\" = set"; then
19100 echo $ac_n "(cached) $ac_c" 1>&6
19101 else
19102
19103
19104 ac_ext=C
19105 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19106 ac_cpp='$CXXCPP $CPPFLAGS'
19107 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19108 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19109 cross_compiling=$ac_cv_prog_cxx_cross
19110
19111 cat > conftest.$ac_ext <<EOF
19112 #line 19113 "configure"
19113 #include "confdefs.h"
19114 #include <math.h>
19115 int main() {
19116 powl(0, 0);
19117 ; return 0; }
19118 EOF
19119 if { (eval echo configure:19120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19120 rm -rf conftest*
19121 glibcxx_cv_func_powl_use=yes
19122 else
19123 echo "configure: failed program was:" >&5
19124 cat conftest.$ac_ext >&5
19125 rm -rf conftest*
19126 glibcxx_cv_func_powl_use=no
19127 fi
19128 rm -f conftest*
19129 ac_ext=c
19130 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19131 ac_cpp='$CPP $CPPFLAGS'
19132 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19133 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19134 cross_compiling=$ac_cv_prog_cc_cross
19135
19136
19137 fi
19138
19139 fi
19140 echo "$ac_t""$glibcxx_cv_func_powl_use" 1>&6
19141
19142 if test x$glibcxx_cv_func_powl_use = x"yes"; then
19143 for ac_func in powl
19144 do
19145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19146 echo "configure:19147: checking for $ac_func" >&5
19147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19148 echo $ac_n "(cached) $ac_c" 1>&6
19149 else
19150 cat > conftest.$ac_ext <<EOF
19151 #line 19152 "configure"
19152 #include "confdefs.h"
19153 /* System header to define __stub macros and hopefully few prototypes,
19154 which can conflict with char $ac_func(); below. */
19155 #include <assert.h>
19156 /* Override any gcc2 internal prototype to avoid an error. */
19157 /* We use char because int might match the return type of a gcc2
19158 builtin and then its argument prototype would still apply. */
19159 char $ac_func();
19160
19161 int main() {
19162
19163 /* The GNU C library defines this for functions which it implements
19164 to always fail with ENOSYS. Some functions are actually named
19165 something starting with __ and the normal name is an alias. */
19166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19167 choke me
19168 #else
19169 $ac_func();
19170 #endif
19171
19172 ; return 0; }
19173 EOF
19174 if { (eval echo configure:19175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19175 rm -rf conftest*
19176 eval "ac_cv_func_$ac_func=yes"
19177 else
19178 echo "configure: failed program was:" >&5
19179 cat conftest.$ac_ext >&5
19180 rm -rf conftest*
19181 eval "ac_cv_func_$ac_func=no"
19182 fi
19183 rm -f conftest*
19184 fi
19185
19186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19187 echo "$ac_t""yes" 1>&6
19188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19189 cat >> confdefs.h <<EOF
19190 #define $ac_tr_func 1
19191 EOF
19192
19193 else
19194 echo "$ac_t""no" 1>&6
19195 fi
19196 done
19197
19198 else
19199
19200 echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19201 echo "configure:19202: checking for _powl declaration" >&5
19202 if test x${glibcxx_cv_func__powl_use+set} != xset; then
19203 if eval "test \"`echo '$''{'glibcxx_cv_func__powl_use'+set}'`\" = set"; then
19204 echo $ac_n "(cached) $ac_c" 1>&6
19205 else
19206
19207
19208 ac_ext=C
19209 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19210 ac_cpp='$CXXCPP $CPPFLAGS'
19211 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19212 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19213 cross_compiling=$ac_cv_prog_cxx_cross
19214
19215 cat > conftest.$ac_ext <<EOF
19216 #line 19217 "configure"
19217 #include "confdefs.h"
19218 #include <math.h>
19219 int main() {
19220 _powl(0, 0);
19221 ; return 0; }
19222 EOF
19223 if { (eval echo configure:19224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19224 rm -rf conftest*
19225 glibcxx_cv_func__powl_use=yes
19226 else
19227 echo "configure: failed program was:" >&5
19228 cat conftest.$ac_ext >&5
19229 rm -rf conftest*
19230 glibcxx_cv_func__powl_use=no
19231 fi
19232 rm -f conftest*
19233 ac_ext=c
19234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19235 ac_cpp='$CPP $CPPFLAGS'
19236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19238 cross_compiling=$ac_cv_prog_cc_cross
19239
19240
19241 fi
19242
19243 fi
19244 echo "$ac_t""$glibcxx_cv_func__powl_use" 1>&6
19245
19246 if test x$glibcxx_cv_func__powl_use = x"yes"; then
19247 for ac_func in _powl
19248 do
19249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19250 echo "configure:19251: checking for $ac_func" >&5
19251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19252 echo $ac_n "(cached) $ac_c" 1>&6
19253 else
19254 cat > conftest.$ac_ext <<EOF
19255 #line 19256 "configure"
19256 #include "confdefs.h"
19257 /* System header to define __stub macros and hopefully few prototypes,
19258 which can conflict with char $ac_func(); below. */
19259 #include <assert.h>
19260 /* Override any gcc2 internal prototype to avoid an error. */
19261 /* We use char because int might match the return type of a gcc2
19262 builtin and then its argument prototype would still apply. */
19263 char $ac_func();
19264
19265 int main() {
19266
19267 /* The GNU C library defines this for functions which it implements
19268 to always fail with ENOSYS. Some functions are actually named
19269 something starting with __ and the normal name is an alias. */
19270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19271 choke me
19272 #else
19273 $ac_func();
19274 #endif
19275
19276 ; return 0; }
19277 EOF
19278 if { (eval echo configure:19279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19279 rm -rf conftest*
19280 eval "ac_cv_func_$ac_func=yes"
19281 else
19282 echo "configure: failed program was:" >&5
19283 cat conftest.$ac_ext >&5
19284 rm -rf conftest*
19285 eval "ac_cv_func_$ac_func=no"
19286 fi
19287 rm -f conftest*
19288 fi
19289
19290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19291 echo "$ac_t""yes" 1>&6
19292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19293 cat >> confdefs.h <<EOF
19294 #define $ac_tr_func 1
19295 EOF
19296
19297 else
19298 echo "$ac_t""no" 1>&6
19299 fi
19300 done
19301
19302 fi
19303 fi
19304
19305
19306
19307 echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19308 echo "configure:19309: checking for sqrtl declaration" >&5
19309 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
19310 if eval "test \"`echo '$''{'glibcxx_cv_func_sqrtl_use'+set}'`\" = set"; then
19311 echo $ac_n "(cached) $ac_c" 1>&6
19312 else
19313
19314
19315 ac_ext=C
19316 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19317 ac_cpp='$CXXCPP $CPPFLAGS'
19318 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19319 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19320 cross_compiling=$ac_cv_prog_cxx_cross
19321
19322 cat > conftest.$ac_ext <<EOF
19323 #line 19324 "configure"
19324 #include "confdefs.h"
19325 #include <math.h>
19326 #ifdef HAVE_IEEEFP_H
19327 #include <ieeefp.h>
19328 #endif
19329
19330 int main() {
19331 sqrtl(0);
19332 ; return 0; }
19333 EOF
19334 if { (eval echo configure:19335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19335 rm -rf conftest*
19336 glibcxx_cv_func_sqrtl_use=yes
19337 else
19338 echo "configure: failed program was:" >&5
19339 cat conftest.$ac_ext >&5
19340 rm -rf conftest*
19341 glibcxx_cv_func_sqrtl_use=no
19342 fi
19343 rm -f conftest*
19344 ac_ext=c
19345 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19346 ac_cpp='$CPP $CPPFLAGS'
19347 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19348 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19349 cross_compiling=$ac_cv_prog_cc_cross
19350
19351
19352 fi
19353
19354 fi
19355 echo "$ac_t""$glibcxx_cv_func_sqrtl_use" 1>&6
19356
19357 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
19358 for ac_func in sqrtl
19359 do
19360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19361 echo "configure:19362: checking for $ac_func" >&5
19362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19363 echo $ac_n "(cached) $ac_c" 1>&6
19364 else
19365 cat > conftest.$ac_ext <<EOF
19366 #line 19367 "configure"
19367 #include "confdefs.h"
19368 /* System header to define __stub macros and hopefully few prototypes,
19369 which can conflict with char $ac_func(); below. */
19370 #include <assert.h>
19371 /* Override any gcc2 internal prototype to avoid an error. */
19372 /* We use char because int might match the return type of a gcc2
19373 builtin and then its argument prototype would still apply. */
19374 char $ac_func();
19375
19376 int main() {
19377
19378 /* The GNU C library defines this for functions which it implements
19379 to always fail with ENOSYS. Some functions are actually named
19380 something starting with __ and the normal name is an alias. */
19381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19382 choke me
19383 #else
19384 $ac_func();
19385 #endif
19386
19387 ; return 0; }
19388 EOF
19389 if { (eval echo configure:19390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19390 rm -rf conftest*
19391 eval "ac_cv_func_$ac_func=yes"
19392 else
19393 echo "configure: failed program was:" >&5
19394 cat conftest.$ac_ext >&5
19395 rm -rf conftest*
19396 eval "ac_cv_func_$ac_func=no"
19397 fi
19398 rm -f conftest*
19399 fi
19400
19401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19402 echo "$ac_t""yes" 1>&6
19403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19404 cat >> confdefs.h <<EOF
19405 #define $ac_tr_func 1
19406 EOF
19407
19408 else
19409 echo "$ac_t""no" 1>&6
19410 fi
19411 done
19412
19413 else
19414
19415 echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19416 echo "configure:19417: checking for _sqrtl declaration" >&5
19417 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
19418 if eval "test \"`echo '$''{'glibcxx_cv_func__sqrtl_use'+set}'`\" = set"; then
19419 echo $ac_n "(cached) $ac_c" 1>&6
19420 else
19421
19422
19423 ac_ext=C
19424 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19425 ac_cpp='$CXXCPP $CPPFLAGS'
19426 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19427 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19428 cross_compiling=$ac_cv_prog_cxx_cross
19429
19430 cat > conftest.$ac_ext <<EOF
19431 #line 19432 "configure"
19432 #include "confdefs.h"
19433 #include <math.h>
19434 #ifdef HAVE_IEEEFP_H
19435 #include <ieeefp.h>
19436 #endif
19437
19438 int main() {
19439 _sqrtl(0);
19440 ; return 0; }
19441 EOF
19442 if { (eval echo configure:19443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19443 rm -rf conftest*
19444 glibcxx_cv_func__sqrtl_use=yes
19445 else
19446 echo "configure: failed program was:" >&5
19447 cat conftest.$ac_ext >&5
19448 rm -rf conftest*
19449 glibcxx_cv_func__sqrtl_use=no
19450 fi
19451 rm -f conftest*
19452 ac_ext=c
19453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19454 ac_cpp='$CPP $CPPFLAGS'
19455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19457 cross_compiling=$ac_cv_prog_cc_cross
19458
19459
19460 fi
19461
19462 fi
19463 echo "$ac_t""$glibcxx_cv_func__sqrtl_use" 1>&6
19464
19465 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
19466 for ac_func in _sqrtl
19467 do
19468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19469 echo "configure:19470: checking for $ac_func" >&5
19470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19471 echo $ac_n "(cached) $ac_c" 1>&6
19472 else
19473 cat > conftest.$ac_ext <<EOF
19474 #line 19475 "configure"
19475 #include "confdefs.h"
19476 /* System header to define __stub macros and hopefully few prototypes,
19477 which can conflict with char $ac_func(); below. */
19478 #include <assert.h>
19479 /* Override any gcc2 internal prototype to avoid an error. */
19480 /* We use char because int might match the return type of a gcc2
19481 builtin and then its argument prototype would still apply. */
19482 char $ac_func();
19483
19484 int main() {
19485
19486 /* The GNU C library defines this for functions which it implements
19487 to always fail with ENOSYS. Some functions are actually named
19488 something starting with __ and the normal name is an alias. */
19489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19490 choke me
19491 #else
19492 $ac_func();
19493 #endif
19494
19495 ; return 0; }
19496 EOF
19497 if { (eval echo configure:19498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19498 rm -rf conftest*
19499 eval "ac_cv_func_$ac_func=yes"
19500 else
19501 echo "configure: failed program was:" >&5
19502 cat conftest.$ac_ext >&5
19503 rm -rf conftest*
19504 eval "ac_cv_func_$ac_func=no"
19505 fi
19506 rm -f conftest*
19507 fi
19508
19509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19510 echo "$ac_t""yes" 1>&6
19511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19512 cat >> confdefs.h <<EOF
19513 #define $ac_tr_func 1
19514 EOF
19515
19516 else
19517 echo "$ac_t""no" 1>&6
19518 fi
19519 done
19520
19521 fi
19522 fi
19523
19524
19525
19526 echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19527 echo "configure:19528: checking for sincosl declaration" >&5
19528 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
19529 if eval "test \"`echo '$''{'glibcxx_cv_func_sincosl_use'+set}'`\" = set"; then
19530 echo $ac_n "(cached) $ac_c" 1>&6
19531 else
19532
19533
19534 ac_ext=C
19535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19536 ac_cpp='$CXXCPP $CPPFLAGS'
19537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19539 cross_compiling=$ac_cv_prog_cxx_cross
19540
19541 cat > conftest.$ac_ext <<EOF
19542 #line 19543 "configure"
19543 #include "confdefs.h"
19544 #include <math.h>
19545 int main() {
19546 sincosl(0, 0, 0);
19547 ; return 0; }
19548 EOF
19549 if { (eval echo configure:19550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19550 rm -rf conftest*
19551 glibcxx_cv_func_sincosl_use=yes
19552 else
19553 echo "configure: failed program was:" >&5
19554 cat conftest.$ac_ext >&5
19555 rm -rf conftest*
19556 glibcxx_cv_func_sincosl_use=no
19557 fi
19558 rm -f conftest*
19559 ac_ext=c
19560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19561 ac_cpp='$CPP $CPPFLAGS'
19562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19564 cross_compiling=$ac_cv_prog_cc_cross
19565
19566
19567 fi
19568
19569 fi
19570 echo "$ac_t""$glibcxx_cv_func_sincosl_use" 1>&6
19571
19572 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
19573 for ac_func in sincosl
19574 do
19575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19576 echo "configure:19577: checking for $ac_func" >&5
19577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19578 echo $ac_n "(cached) $ac_c" 1>&6
19579 else
19580 cat > conftest.$ac_ext <<EOF
19581 #line 19582 "configure"
19582 #include "confdefs.h"
19583 /* System header to define __stub macros and hopefully few prototypes,
19584 which can conflict with char $ac_func(); below. */
19585 #include <assert.h>
19586 /* Override any gcc2 internal prototype to avoid an error. */
19587 /* We use char because int might match the return type of a gcc2
19588 builtin and then its argument prototype would still apply. */
19589 char $ac_func();
19590
19591 int main() {
19592
19593 /* The GNU C library defines this for functions which it implements
19594 to always fail with ENOSYS. Some functions are actually named
19595 something starting with __ and the normal name is an alias. */
19596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19597 choke me
19598 #else
19599 $ac_func();
19600 #endif
19601
19602 ; return 0; }
19603 EOF
19604 if { (eval echo configure:19605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19605 rm -rf conftest*
19606 eval "ac_cv_func_$ac_func=yes"
19607 else
19608 echo "configure: failed program was:" >&5
19609 cat conftest.$ac_ext >&5
19610 rm -rf conftest*
19611 eval "ac_cv_func_$ac_func=no"
19612 fi
19613 rm -f conftest*
19614 fi
19615
19616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19617 echo "$ac_t""yes" 1>&6
19618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19619 cat >> confdefs.h <<EOF
19620 #define $ac_tr_func 1
19621 EOF
19622
19623 else
19624 echo "$ac_t""no" 1>&6
19625 fi
19626 done
19627
19628 else
19629
19630 echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19631 echo "configure:19632: checking for _sincosl declaration" >&5
19632 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
19633 if eval "test \"`echo '$''{'glibcxx_cv_func__sincosl_use'+set}'`\" = set"; then
19634 echo $ac_n "(cached) $ac_c" 1>&6
19635 else
19636
19637
19638 ac_ext=C
19639 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19640 ac_cpp='$CXXCPP $CPPFLAGS'
19641 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19642 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19643 cross_compiling=$ac_cv_prog_cxx_cross
19644
19645 cat > conftest.$ac_ext <<EOF
19646 #line 19647 "configure"
19647 #include "confdefs.h"
19648 #include <math.h>
19649 int main() {
19650 _sincosl(0, 0, 0);
19651 ; return 0; }
19652 EOF
19653 if { (eval echo configure:19654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19654 rm -rf conftest*
19655 glibcxx_cv_func__sincosl_use=yes
19656 else
19657 echo "configure: failed program was:" >&5
19658 cat conftest.$ac_ext >&5
19659 rm -rf conftest*
19660 glibcxx_cv_func__sincosl_use=no
19661 fi
19662 rm -f conftest*
19663 ac_ext=c
19664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19665 ac_cpp='$CPP $CPPFLAGS'
19666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19668 cross_compiling=$ac_cv_prog_cc_cross
19669
19670
19671 fi
19672
19673 fi
19674 echo "$ac_t""$glibcxx_cv_func__sincosl_use" 1>&6
19675
19676 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
19677 for ac_func in _sincosl
19678 do
19679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19680 echo "configure:19681: checking for $ac_func" >&5
19681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19682 echo $ac_n "(cached) $ac_c" 1>&6
19683 else
19684 cat > conftest.$ac_ext <<EOF
19685 #line 19686 "configure"
19686 #include "confdefs.h"
19687 /* System header to define __stub macros and hopefully few prototypes,
19688 which can conflict with char $ac_func(); below. */
19689 #include <assert.h>
19690 /* Override any gcc2 internal prototype to avoid an error. */
19691 /* We use char because int might match the return type of a gcc2
19692 builtin and then its argument prototype would still apply. */
19693 char $ac_func();
19694
19695 int main() {
19696
19697 /* The GNU C library defines this for functions which it implements
19698 to always fail with ENOSYS. Some functions are actually named
19699 something starting with __ and the normal name is an alias. */
19700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19701 choke me
19702 #else
19703 $ac_func();
19704 #endif
19705
19706 ; return 0; }
19707 EOF
19708 if { (eval echo configure:19709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19709 rm -rf conftest*
19710 eval "ac_cv_func_$ac_func=yes"
19711 else
19712 echo "configure: failed program was:" >&5
19713 cat conftest.$ac_ext >&5
19714 rm -rf conftest*
19715 eval "ac_cv_func_$ac_func=no"
19716 fi
19717 rm -f conftest*
19718 fi
19719
19720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19721 echo "$ac_t""yes" 1>&6
19722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19723 cat >> confdefs.h <<EOF
19724 #define $ac_tr_func 1
19725 EOF
19726
19727 else
19728 echo "$ac_t""no" 1>&6
19729 fi
19730 done
19731
19732 fi
19733 fi
19734
19735
19736
19737 echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19738 echo "configure:19739: checking for finitel declaration" >&5
19739 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
19740 if eval "test \"`echo '$''{'glibcxx_cv_func_finitel_use'+set}'`\" = set"; then
19741 echo $ac_n "(cached) $ac_c" 1>&6
19742 else
19743
19744
19745 ac_ext=C
19746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19747 ac_cpp='$CXXCPP $CPPFLAGS'
19748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19750 cross_compiling=$ac_cv_prog_cxx_cross
19751
19752 cat > conftest.$ac_ext <<EOF
19753 #line 19754 "configure"
19754 #include "confdefs.h"
19755 #include <math.h>
19756 #ifdef HAVE_IEEEFP_H
19757 #include <ieeefp.h>
19758 #endif
19759
19760 int main() {
19761 finitel(0);
19762 ; return 0; }
19763 EOF
19764 if { (eval echo configure:19765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19765 rm -rf conftest*
19766 glibcxx_cv_func_finitel_use=yes
19767 else
19768 echo "configure: failed program was:" >&5
19769 cat conftest.$ac_ext >&5
19770 rm -rf conftest*
19771 glibcxx_cv_func_finitel_use=no
19772 fi
19773 rm -f conftest*
19774 ac_ext=c
19775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19776 ac_cpp='$CPP $CPPFLAGS'
19777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19779 cross_compiling=$ac_cv_prog_cc_cross
19780
19781
19782 fi
19783
19784 fi
19785 echo "$ac_t""$glibcxx_cv_func_finitel_use" 1>&6
19786
19787 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
19788 for ac_func in finitel
19789 do
19790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19791 echo "configure:19792: checking for $ac_func" >&5
19792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19793 echo $ac_n "(cached) $ac_c" 1>&6
19794 else
19795 cat > conftest.$ac_ext <<EOF
19796 #line 19797 "configure"
19797 #include "confdefs.h"
19798 /* System header to define __stub macros and hopefully few prototypes,
19799 which can conflict with char $ac_func(); below. */
19800 #include <assert.h>
19801 /* Override any gcc2 internal prototype to avoid an error. */
19802 /* We use char because int might match the return type of a gcc2
19803 builtin and then its argument prototype would still apply. */
19804 char $ac_func();
19805
19806 int main() {
19807
19808 /* The GNU C library defines this for functions which it implements
19809 to always fail with ENOSYS. Some functions are actually named
19810 something starting with __ and the normal name is an alias. */
19811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19812 choke me
19813 #else
19814 $ac_func();
19815 #endif
19816
19817 ; return 0; }
19818 EOF
19819 if { (eval echo configure:19820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19820 rm -rf conftest*
19821 eval "ac_cv_func_$ac_func=yes"
19822 else
19823 echo "configure: failed program was:" >&5
19824 cat conftest.$ac_ext >&5
19825 rm -rf conftest*
19826 eval "ac_cv_func_$ac_func=no"
19827 fi
19828 rm -f conftest*
19829 fi
19830
19831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19832 echo "$ac_t""yes" 1>&6
19833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19834 cat >> confdefs.h <<EOF
19835 #define $ac_tr_func 1
19836 EOF
19837
19838 else
19839 echo "$ac_t""no" 1>&6
19840 fi
19841 done
19842
19843 else
19844
19845 echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19846 echo "configure:19847: checking for _finitel declaration" >&5
19847 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
19848 if eval "test \"`echo '$''{'glibcxx_cv_func__finitel_use'+set}'`\" = set"; then
19849 echo $ac_n "(cached) $ac_c" 1>&6
19850 else
19851
19852
19853 ac_ext=C
19854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19855 ac_cpp='$CXXCPP $CPPFLAGS'
19856 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19857 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19858 cross_compiling=$ac_cv_prog_cxx_cross
19859
19860 cat > conftest.$ac_ext <<EOF
19861 #line 19862 "configure"
19862 #include "confdefs.h"
19863 #include <math.h>
19864 #ifdef HAVE_IEEEFP_H
19865 #include <ieeefp.h>
19866 #endif
19867
19868 int main() {
19869 _finitel(0);
19870 ; return 0; }
19871 EOF
19872 if { (eval echo configure:19873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19873 rm -rf conftest*
19874 glibcxx_cv_func__finitel_use=yes
19875 else
19876 echo "configure: failed program was:" >&5
19877 cat conftest.$ac_ext >&5
19878 rm -rf conftest*
19879 glibcxx_cv_func__finitel_use=no
19880 fi
19881 rm -f conftest*
19882 ac_ext=c
19883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19884 ac_cpp='$CPP $CPPFLAGS'
19885 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19886 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19887 cross_compiling=$ac_cv_prog_cc_cross
19888
19889
19890 fi
19891
19892 fi
19893 echo "$ac_t""$glibcxx_cv_func__finitel_use" 1>&6
19894
19895 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
19896 for ac_func in _finitel
19897 do
19898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19899 echo "configure:19900: checking for $ac_func" >&5
19900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19901 echo $ac_n "(cached) $ac_c" 1>&6
19902 else
19903 cat > conftest.$ac_ext <<EOF
19904 #line 19905 "configure"
19905 #include "confdefs.h"
19906 /* System header to define __stub macros and hopefully few prototypes,
19907 which can conflict with char $ac_func(); below. */
19908 #include <assert.h>
19909 /* Override any gcc2 internal prototype to avoid an error. */
19910 /* We use char because int might match the return type of a gcc2
19911 builtin and then its argument prototype would still apply. */
19912 char $ac_func();
19913
19914 int main() {
19915
19916 /* The GNU C library defines this for functions which it implements
19917 to always fail with ENOSYS. Some functions are actually named
19918 something starting with __ and the normal name is an alias. */
19919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19920 choke me
19921 #else
19922 $ac_func();
19923 #endif
19924
19925 ; return 0; }
19926 EOF
19927 if { (eval echo configure:19928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19928 rm -rf conftest*
19929 eval "ac_cv_func_$ac_func=yes"
19930 else
19931 echo "configure: failed program was:" >&5
19932 cat conftest.$ac_ext >&5
19933 rm -rf conftest*
19934 eval "ac_cv_func_$ac_func=no"
19935 fi
19936 rm -f conftest*
19937 fi
19938
19939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19940 echo "$ac_t""yes" 1>&6
19941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19942 cat >> confdefs.h <<EOF
19943 #define $ac_tr_func 1
19944 EOF
19945
19946 else
19947 echo "$ac_t""no" 1>&6
19948 fi
19949 done
19950
19951 fi
19952 fi
19953
19954
19955
19956
19957 echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19958 echo "configure:19959: checking for _float trig functions" >&5
19959 if eval "test \"`echo '$''{'glibcxx_cv_func__float_trig_use'+set}'`\" = set"; then
19960 echo $ac_n "(cached) $ac_c" 1>&6
19961 else
19962
19963
19964 ac_ext=C
19965 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19966 ac_cpp='$CXXCPP $CPPFLAGS'
19967 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19968 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19969 cross_compiling=$ac_cv_prog_cxx_cross
19970
19971 cat > conftest.$ac_ext <<EOF
19972 #line 19973 "configure"
19973 #include "confdefs.h"
19974 #include <math.h>
19975 int main() {
19976 `for x in _acosf _asinf _atanf \
19977 _cosf _sinf _tanf \
19978 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
19979 ; return 0; }
19980 EOF
19981 if { (eval echo configure:19982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19982 rm -rf conftest*
19983 glibcxx_cv_func__float_trig_use=yes
19984 else
19985 echo "configure: failed program was:" >&5
19986 cat conftest.$ac_ext >&5
19987 rm -rf conftest*
19988 glibcxx_cv_func__float_trig_use=no
19989 fi
19990 rm -f conftest*
19991 ac_ext=c
19992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19993 ac_cpp='$CPP $CPPFLAGS'
19994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19996 cross_compiling=$ac_cv_prog_cc_cross
19997
19998 fi
19999
20000 echo "$ac_t""$glibcxx_cv_func__float_trig_use" 1>&6
20001 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
20002 for ac_func in _acosf _asinf _atanf \
20003 _cosf _sinf _tanf \
20004 _coshf _sinhf _tanhf
20005 do
20006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20007 echo "configure:20008: checking for $ac_func" >&5
20008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20009 echo $ac_n "(cached) $ac_c" 1>&6
20010 else
20011 cat > conftest.$ac_ext <<EOF
20012 #line 20013 "configure"
20013 #include "confdefs.h"
20014 /* System header to define __stub macros and hopefully few prototypes,
20015 which can conflict with char $ac_func(); below. */
20016 #include <assert.h>
20017 /* Override any gcc2 internal prototype to avoid an error. */
20018 /* We use char because int might match the return type of a gcc2
20019 builtin and then its argument prototype would still apply. */
20020 char $ac_func();
20021
20022 int main() {
20023
20024 /* The GNU C library defines this for functions which it implements
20025 to always fail with ENOSYS. Some functions are actually named
20026 something starting with __ and the normal name is an alias. */
20027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20028 choke me
20029 #else
20030 $ac_func();
20031 #endif
20032
20033 ; return 0; }
20034 EOF
20035 if { (eval echo configure:20036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20036 rm -rf conftest*
20037 eval "ac_cv_func_$ac_func=yes"
20038 else
20039 echo "configure: failed program was:" >&5
20040 cat conftest.$ac_ext >&5
20041 rm -rf conftest*
20042 eval "ac_cv_func_$ac_func=no"
20043 fi
20044 rm -f conftest*
20045 fi
20046
20047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20048 echo "$ac_t""yes" 1>&6
20049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20050 cat >> confdefs.h <<EOF
20051 #define $ac_tr_func 1
20052 EOF
20053
20054 else
20055 echo "$ac_t""no" 1>&6
20056 fi
20057 done
20058
20059 fi
20060
20061
20062 echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20063 echo "configure:20064: checking for _float round functions" >&5
20064 if eval "test \"`echo '$''{'glibcxx_cv_func__float_round_use'+set}'`\" = set"; then
20065 echo $ac_n "(cached) $ac_c" 1>&6
20066 else
20067
20068
20069 ac_ext=C
20070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20071 ac_cpp='$CXXCPP $CPPFLAGS'
20072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20074 cross_compiling=$ac_cv_prog_cxx_cross
20075
20076 cat > conftest.$ac_ext <<EOF
20077 #line 20078 "configure"
20078 #include "confdefs.h"
20079 #include <math.h>
20080 int main() {
20081 `for x in _ceilf _floorf; do echo "$x (0);"; done`
20082 ; return 0; }
20083 EOF
20084 if { (eval echo configure:20085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20085 rm -rf conftest*
20086 glibcxx_cv_func__float_round_use=yes
20087 else
20088 echo "configure: failed program was:" >&5
20089 cat conftest.$ac_ext >&5
20090 rm -rf conftest*
20091 glibcxx_cv_func__float_round_use=no
20092 fi
20093 rm -f conftest*
20094 ac_ext=c
20095 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20096 ac_cpp='$CPP $CPPFLAGS'
20097 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20098 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20099 cross_compiling=$ac_cv_prog_cc_cross
20100
20101 fi
20102
20103 echo "$ac_t""$glibcxx_cv_func__float_round_use" 1>&6
20104 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
20105 for ac_func in _ceilf _floorf
20106 do
20107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20108 echo "configure:20109: checking for $ac_func" >&5
20109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20110 echo $ac_n "(cached) $ac_c" 1>&6
20111 else
20112 cat > conftest.$ac_ext <<EOF
20113 #line 20114 "configure"
20114 #include "confdefs.h"
20115 /* System header to define __stub macros and hopefully few prototypes,
20116 which can conflict with char $ac_func(); below. */
20117 #include <assert.h>
20118 /* Override any gcc2 internal prototype to avoid an error. */
20119 /* We use char because int might match the return type of a gcc2
20120 builtin and then its argument prototype would still apply. */
20121 char $ac_func();
20122
20123 int main() {
20124
20125 /* The GNU C library defines this for functions which it implements
20126 to always fail with ENOSYS. Some functions are actually named
20127 something starting with __ and the normal name is an alias. */
20128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20129 choke me
20130 #else
20131 $ac_func();
20132 #endif
20133
20134 ; return 0; }
20135 EOF
20136 if { (eval echo configure:20137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20137 rm -rf conftest*
20138 eval "ac_cv_func_$ac_func=yes"
20139 else
20140 echo "configure: failed program was:" >&5
20141 cat conftest.$ac_ext >&5
20142 rm -rf conftest*
20143 eval "ac_cv_func_$ac_func=no"
20144 fi
20145 rm -f conftest*
20146 fi
20147
20148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20149 echo "$ac_t""yes" 1>&6
20150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20151 cat >> confdefs.h <<EOF
20152 #define $ac_tr_func 1
20153 EOF
20154
20155 else
20156 echo "$ac_t""no" 1>&6
20157 fi
20158 done
20159
20160 fi
20161
20162
20163
20164 echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20165 echo "configure:20166: checking for _long double trig functions" >&5
20166 if eval "test \"`echo '$''{'glibcxx_cv_func__long_double_trig_use'+set}'`\" = set"; then
20167 echo $ac_n "(cached) $ac_c" 1>&6
20168 else
20169
20170
20171 ac_ext=C
20172 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20173 ac_cpp='$CXXCPP $CPPFLAGS'
20174 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20175 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20176 cross_compiling=$ac_cv_prog_cxx_cross
20177
20178 cat > conftest.$ac_ext <<EOF
20179 #line 20180 "configure"
20180 #include "confdefs.h"
20181 #include <math.h>
20182 int main() {
20183 `for x in _acosl _asinl _atanl \
20184 _cosl _sinl _tanl \
20185 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
20186 ; return 0; }
20187 EOF
20188 if { (eval echo configure:20189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20189 rm -rf conftest*
20190 glibcxx_cv_func__long_double_trig_use=yes
20191 else
20192 echo "configure: failed program was:" >&5
20193 cat conftest.$ac_ext >&5
20194 rm -rf conftest*
20195 glibcxx_cv_func__long_double_trig_use=no
20196 fi
20197 rm -f conftest*
20198 ac_ext=c
20199 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20200 ac_cpp='$CPP $CPPFLAGS'
20201 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20202 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20203 cross_compiling=$ac_cv_prog_cc_cross
20204
20205 fi
20206
20207 echo "$ac_t""$glibcxx_cv_func__long_double_trig_use" 1>&6
20208 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
20209 for ac_func in _acosl _asinl _atanl \
20210 _cosl _sinl _tanl \
20211 _coshl _sinhl _tanhl
20212 do
20213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20214 echo "configure:20215: checking for $ac_func" >&5
20215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20216 echo $ac_n "(cached) $ac_c" 1>&6
20217 else
20218 cat > conftest.$ac_ext <<EOF
20219 #line 20220 "configure"
20220 #include "confdefs.h"
20221 /* System header to define __stub macros and hopefully few prototypes,
20222 which can conflict with char $ac_func(); below. */
20223 #include <assert.h>
20224 /* Override any gcc2 internal prototype to avoid an error. */
20225 /* We use char because int might match the return type of a gcc2
20226 builtin and then its argument prototype would still apply. */
20227 char $ac_func();
20228
20229 int main() {
20230
20231 /* The GNU C library defines this for functions which it implements
20232 to always fail with ENOSYS. Some functions are actually named
20233 something starting with __ and the normal name is an alias. */
20234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20235 choke me
20236 #else
20237 $ac_func();
20238 #endif
20239
20240 ; return 0; }
20241 EOF
20242 if { (eval echo configure:20243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20243 rm -rf conftest*
20244 eval "ac_cv_func_$ac_func=yes"
20245 else
20246 echo "configure: failed program was:" >&5
20247 cat conftest.$ac_ext >&5
20248 rm -rf conftest*
20249 eval "ac_cv_func_$ac_func=no"
20250 fi
20251 rm -f conftest*
20252 fi
20253
20254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20255 echo "$ac_t""yes" 1>&6
20256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20257 cat >> confdefs.h <<EOF
20258 #define $ac_tr_func 1
20259 EOF
20260
20261 else
20262 echo "$ac_t""no" 1>&6
20263 fi
20264 done
20265
20266 fi
20267
20268
20269 echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20270 echo "configure:20271: checking for _long double round functions" >&5
20271 if eval "test \"`echo '$''{'glibcxx_cv_func__long_double_round_use'+set}'`\" = set"; then
20272 echo $ac_n "(cached) $ac_c" 1>&6
20273 else
20274
20275
20276 ac_ext=C
20277 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20278 ac_cpp='$CXXCPP $CPPFLAGS'
20279 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20280 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20281 cross_compiling=$ac_cv_prog_cxx_cross
20282
20283 cat > conftest.$ac_ext <<EOF
20284 #line 20285 "configure"
20285 #include "confdefs.h"
20286 #include <math.h>
20287 int main() {
20288 `for x in _ceill _floorl; do echo "$x (0);"; done`
20289 ; return 0; }
20290 EOF
20291 if { (eval echo configure:20292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20292 rm -rf conftest*
20293 glibcxx_cv_func__long_double_round_use=yes
20294 else
20295 echo "configure: failed program was:" >&5
20296 cat conftest.$ac_ext >&5
20297 rm -rf conftest*
20298 glibcxx_cv_func__long_double_round_use=no
20299 fi
20300 rm -f conftest*
20301 ac_ext=c
20302 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20303 ac_cpp='$CPP $CPPFLAGS'
20304 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20305 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20306 cross_compiling=$ac_cv_prog_cc_cross
20307
20308 fi
20309
20310 echo "$ac_t""$glibcxx_cv_func__long_double_round_use" 1>&6
20311 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
20312 for ac_func in _ceill _floorl
20313 do
20314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20315 echo "configure:20316: checking for $ac_func" >&5
20316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20317 echo $ac_n "(cached) $ac_c" 1>&6
20318 else
20319 cat > conftest.$ac_ext <<EOF
20320 #line 20321 "configure"
20321 #include "confdefs.h"
20322 /* System header to define __stub macros and hopefully few prototypes,
20323 which can conflict with char $ac_func(); below. */
20324 #include <assert.h>
20325 /* Override any gcc2 internal prototype to avoid an error. */
20326 /* We use char because int might match the return type of a gcc2
20327 builtin and then its argument prototype would still apply. */
20328 char $ac_func();
20329
20330 int main() {
20331
20332 /* The GNU C library defines this for functions which it implements
20333 to always fail with ENOSYS. Some functions are actually named
20334 something starting with __ and the normal name is an alias. */
20335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20336 choke me
20337 #else
20338 $ac_func();
20339 #endif
20340
20341 ; return 0; }
20342 EOF
20343 if { (eval echo configure:20344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20344 rm -rf conftest*
20345 eval "ac_cv_func_$ac_func=yes"
20346 else
20347 echo "configure: failed program was:" >&5
20348 cat conftest.$ac_ext >&5
20349 rm -rf conftest*
20350 eval "ac_cv_func_$ac_func=no"
20351 fi
20352 rm -f conftest*
20353 fi
20354
20355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20356 echo "$ac_t""yes" 1>&6
20357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20358 cat >> confdefs.h <<EOF
20359 #define $ac_tr_func 1
20360 EOF
20361
20362 else
20363 echo "$ac_t""no" 1>&6
20364 fi
20365 done
20366
20367 fi
20368
20369
20370 LIBS="$ac_save_LIBS"
20371 CXXFLAGS="$ac_save_CXXFLAGS"
20372
20373
20374
20375 echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20376 echo "configure:20377: checking for __builtin_abs declaration" >&5
20377 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
20378 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_abs_use'+set}'`\" = set"; then
20379 echo $ac_n "(cached) $ac_c" 1>&6
20380 else
20381
20382
20383 ac_ext=C
20384 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20385 ac_cpp='$CXXCPP $CPPFLAGS'
20386 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20387 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20388 cross_compiling=$ac_cv_prog_cxx_cross
20389
20390 cat > conftest.$ac_ext <<EOF
20391 #line 20392 "configure"
20392 #include "confdefs.h"
20393 #include <math.h>
20394 int main() {
20395 __builtin_abs(0);
20396 ; return 0; }
20397 EOF
20398 if { (eval echo configure:20399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20399 rm -rf conftest*
20400 glibcxx_cv_func___builtin_abs_use=yes
20401 else
20402 echo "configure: failed program was:" >&5
20403 cat conftest.$ac_ext >&5
20404 rm -rf conftest*
20405 glibcxx_cv_func___builtin_abs_use=no
20406 fi
20407 rm -f conftest*
20408 ac_ext=c
20409 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20410 ac_cpp='$CPP $CPPFLAGS'
20411 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20412 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20413 cross_compiling=$ac_cv_prog_cc_cross
20414
20415
20416 fi
20417
20418 fi
20419 echo "$ac_t""$glibcxx_cv_func___builtin_abs_use" 1>&6
20420 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
20421 echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20422 echo "configure:20423: checking for __builtin_abs linkage" >&5
20423 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
20424 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_abs_link'+set}'`\" = set"; then
20425 echo $ac_n "(cached) $ac_c" 1>&6
20426 else
20427
20428 cat > conftest.$ac_ext <<EOF
20429 #line 20430 "configure"
20430 #include "confdefs.h"
20431 #include <math.h>
20432 int main() {
20433 __builtin_abs(0);
20434 ; return 0; }
20435 EOF
20436 if { (eval echo configure:20437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20437 rm -rf conftest*
20438 glibcxx_cv_func___builtin_abs_link=yes
20439 else
20440 echo "configure: failed program was:" >&5
20441 cat conftest.$ac_ext >&5
20442 rm -rf conftest*
20443 glibcxx_cv_func___builtin_abs_link=no
20444 fi
20445 rm -f conftest*
20446
20447 fi
20448
20449 fi
20450 echo "$ac_t""$glibcxx_cv_func___builtin_abs_link" 1>&6
20451 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
20452 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20453 cat >> confdefs.h <<EOF
20454 #define ${ac_tr_func} 1
20455 EOF
20456
20457 fi
20458 fi
20459
20460
20461 echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20462 echo "configure:20463: checking for __builtin_fabsf declaration" >&5
20463 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
20464 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20465 echo $ac_n "(cached) $ac_c" 1>&6
20466 else
20467
20468
20469 ac_ext=C
20470 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20471 ac_cpp='$CXXCPP $CPPFLAGS'
20472 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20473 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20474 cross_compiling=$ac_cv_prog_cxx_cross
20475
20476 cat > conftest.$ac_ext <<EOF
20477 #line 20478 "configure"
20478 #include "confdefs.h"
20479 #include <math.h>
20480 int main() {
20481 __builtin_fabsf(0);
20482 ; return 0; }
20483 EOF
20484 if { (eval echo configure:20485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20485 rm -rf conftest*
20486 glibcxx_cv_func___builtin_fabsf_use=yes
20487 else
20488 echo "configure: failed program was:" >&5
20489 cat conftest.$ac_ext >&5
20490 rm -rf conftest*
20491 glibcxx_cv_func___builtin_fabsf_use=no
20492 fi
20493 rm -f conftest*
20494 ac_ext=c
20495 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20496 ac_cpp='$CPP $CPPFLAGS'
20497 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20498 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20499 cross_compiling=$ac_cv_prog_cc_cross
20500
20501
20502 fi
20503
20504 fi
20505 echo "$ac_t""$glibcxx_cv_func___builtin_fabsf_use" 1>&6
20506 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
20507 echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20508 echo "configure:20509: checking for __builtin_fabsf linkage" >&5
20509 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
20510 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20511 echo $ac_n "(cached) $ac_c" 1>&6
20512 else
20513
20514 cat > conftest.$ac_ext <<EOF
20515 #line 20516 "configure"
20516 #include "confdefs.h"
20517 #include <math.h>
20518 int main() {
20519 __builtin_fabsf(0);
20520 ; return 0; }
20521 EOF
20522 if { (eval echo configure:20523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20523 rm -rf conftest*
20524 glibcxx_cv_func___builtin_fabsf_link=yes
20525 else
20526 echo "configure: failed program was:" >&5
20527 cat conftest.$ac_ext >&5
20528 rm -rf conftest*
20529 glibcxx_cv_func___builtin_fabsf_link=no
20530 fi
20531 rm -f conftest*
20532
20533 fi
20534
20535 fi
20536 echo "$ac_t""$glibcxx_cv_func___builtin_fabsf_link" 1>&6
20537 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
20538 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20539 cat >> confdefs.h <<EOF
20540 #define ${ac_tr_func} 1
20541 EOF
20542
20543 fi
20544 fi
20545
20546
20547 echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20548 echo "configure:20549: checking for __builtin_fabs declaration" >&5
20549 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
20550 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabs_use'+set}'`\" = set"; then
20551 echo $ac_n "(cached) $ac_c" 1>&6
20552 else
20553
20554
20555 ac_ext=C
20556 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20557 ac_cpp='$CXXCPP $CPPFLAGS'
20558 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20559 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20560 cross_compiling=$ac_cv_prog_cxx_cross
20561
20562 cat > conftest.$ac_ext <<EOF
20563 #line 20564 "configure"
20564 #include "confdefs.h"
20565 #include <math.h>
20566 int main() {
20567 __builtin_fabs(0);
20568 ; return 0; }
20569 EOF
20570 if { (eval echo configure:20571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20571 rm -rf conftest*
20572 glibcxx_cv_func___builtin_fabs_use=yes
20573 else
20574 echo "configure: failed program was:" >&5
20575 cat conftest.$ac_ext >&5
20576 rm -rf conftest*
20577 glibcxx_cv_func___builtin_fabs_use=no
20578 fi
20579 rm -f conftest*
20580 ac_ext=c
20581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20582 ac_cpp='$CPP $CPPFLAGS'
20583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20585 cross_compiling=$ac_cv_prog_cc_cross
20586
20587
20588 fi
20589
20590 fi
20591 echo "$ac_t""$glibcxx_cv_func___builtin_fabs_use" 1>&6
20592 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
20593 echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20594 echo "configure:20595: checking for __builtin_fabs linkage" >&5
20595 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
20596 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20597 echo $ac_n "(cached) $ac_c" 1>&6
20598 else
20599
20600 cat > conftest.$ac_ext <<EOF
20601 #line 20602 "configure"
20602 #include "confdefs.h"
20603 #include <math.h>
20604 int main() {
20605 __builtin_fabs(0);
20606 ; return 0; }
20607 EOF
20608 if { (eval echo configure:20609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20609 rm -rf conftest*
20610 glibcxx_cv_func___builtin_fabs_link=yes
20611 else
20612 echo "configure: failed program was:" >&5
20613 cat conftest.$ac_ext >&5
20614 rm -rf conftest*
20615 glibcxx_cv_func___builtin_fabs_link=no
20616 fi
20617 rm -f conftest*
20618
20619 fi
20620
20621 fi
20622 echo "$ac_t""$glibcxx_cv_func___builtin_fabs_link" 1>&6
20623 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
20624 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20625 cat >> confdefs.h <<EOF
20626 #define ${ac_tr_func} 1
20627 EOF
20628
20629 fi
20630 fi
20631
20632
20633 echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20634 echo "configure:20635: checking for __builtin_fabsl declaration" >&5
20635 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
20636 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20637 echo $ac_n "(cached) $ac_c" 1>&6
20638 else
20639
20640
20641 ac_ext=C
20642 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20643 ac_cpp='$CXXCPP $CPPFLAGS'
20644 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20645 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20646 cross_compiling=$ac_cv_prog_cxx_cross
20647
20648 cat > conftest.$ac_ext <<EOF
20649 #line 20650 "configure"
20650 #include "confdefs.h"
20651 #include <math.h>
20652 int main() {
20653 __builtin_fabsl(0);
20654 ; return 0; }
20655 EOF
20656 if { (eval echo configure:20657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20657 rm -rf conftest*
20658 glibcxx_cv_func___builtin_fabsl_use=yes
20659 else
20660 echo "configure: failed program was:" >&5
20661 cat conftest.$ac_ext >&5
20662 rm -rf conftest*
20663 glibcxx_cv_func___builtin_fabsl_use=no
20664 fi
20665 rm -f conftest*
20666 ac_ext=c
20667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20668 ac_cpp='$CPP $CPPFLAGS'
20669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20671 cross_compiling=$ac_cv_prog_cc_cross
20672
20673
20674 fi
20675
20676 fi
20677 echo "$ac_t""$glibcxx_cv_func___builtin_fabsl_use" 1>&6
20678 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
20679 echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20680 echo "configure:20681: checking for __builtin_fabsl linkage" >&5
20681 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
20682 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20683 echo $ac_n "(cached) $ac_c" 1>&6
20684 else
20685
20686 cat > conftest.$ac_ext <<EOF
20687 #line 20688 "configure"
20688 #include "confdefs.h"
20689 #include <math.h>
20690 int main() {
20691 __builtin_fabsl(0);
20692 ; return 0; }
20693 EOF
20694 if { (eval echo configure:20695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20695 rm -rf conftest*
20696 glibcxx_cv_func___builtin_fabsl_link=yes
20697 else
20698 echo "configure: failed program was:" >&5
20699 cat conftest.$ac_ext >&5
20700 rm -rf conftest*
20701 glibcxx_cv_func___builtin_fabsl_link=no
20702 fi
20703 rm -f conftest*
20704
20705 fi
20706
20707 fi
20708 echo "$ac_t""$glibcxx_cv_func___builtin_fabsl_link" 1>&6
20709 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
20710 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20711 cat >> confdefs.h <<EOF
20712 #define ${ac_tr_func} 1
20713 EOF
20714
20715 fi
20716 fi
20717
20718
20719 echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20720 echo "configure:20721: checking for __builtin_labs declaration" >&5
20721 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
20722 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_labs_use'+set}'`\" = set"; then
20723 echo $ac_n "(cached) $ac_c" 1>&6
20724 else
20725
20726
20727 ac_ext=C
20728 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20729 ac_cpp='$CXXCPP $CPPFLAGS'
20730 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20731 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20732 cross_compiling=$ac_cv_prog_cxx_cross
20733
20734 cat > conftest.$ac_ext <<EOF
20735 #line 20736 "configure"
20736 #include "confdefs.h"
20737 #include <math.h>
20738 int main() {
20739 __builtin_labs(0);
20740 ; return 0; }
20741 EOF
20742 if { (eval echo configure:20743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20743 rm -rf conftest*
20744 glibcxx_cv_func___builtin_labs_use=yes
20745 else
20746 echo "configure: failed program was:" >&5
20747 cat conftest.$ac_ext >&5
20748 rm -rf conftest*
20749 glibcxx_cv_func___builtin_labs_use=no
20750 fi
20751 rm -f conftest*
20752 ac_ext=c
20753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20754 ac_cpp='$CPP $CPPFLAGS'
20755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20757 cross_compiling=$ac_cv_prog_cc_cross
20758
20759
20760 fi
20761
20762 fi
20763 echo "$ac_t""$glibcxx_cv_func___builtin_labs_use" 1>&6
20764 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
20765 echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20766 echo "configure:20767: checking for __builtin_labs linkage" >&5
20767 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
20768 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_labs_link'+set}'`\" = set"; then
20769 echo $ac_n "(cached) $ac_c" 1>&6
20770 else
20771
20772 cat > conftest.$ac_ext <<EOF
20773 #line 20774 "configure"
20774 #include "confdefs.h"
20775 #include <math.h>
20776 int main() {
20777 __builtin_labs(0);
20778 ; return 0; }
20779 EOF
20780 if { (eval echo configure:20781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20781 rm -rf conftest*
20782 glibcxx_cv_func___builtin_labs_link=yes
20783 else
20784 echo "configure: failed program was:" >&5
20785 cat conftest.$ac_ext >&5
20786 rm -rf conftest*
20787 glibcxx_cv_func___builtin_labs_link=no
20788 fi
20789 rm -f conftest*
20790
20791 fi
20792
20793 fi
20794 echo "$ac_t""$glibcxx_cv_func___builtin_labs_link" 1>&6
20795 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
20796 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20797 cat >> confdefs.h <<EOF
20798 #define ${ac_tr_func} 1
20799 EOF
20800
20801 fi
20802 fi
20803
20804
20805
20806 echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
20807 echo "configure:20808: checking for __builtin_sqrtf declaration" >&5
20808 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
20809 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
20810 echo $ac_n "(cached) $ac_c" 1>&6
20811 else
20812
20813
20814 ac_ext=C
20815 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20816 ac_cpp='$CXXCPP $CPPFLAGS'
20817 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20818 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20819 cross_compiling=$ac_cv_prog_cxx_cross
20820
20821 cat > conftest.$ac_ext <<EOF
20822 #line 20823 "configure"
20823 #include "confdefs.h"
20824 #include <math.h>
20825 int main() {
20826 __builtin_sqrtf(0);
20827 ; return 0; }
20828 EOF
20829 if { (eval echo configure:20830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20830 rm -rf conftest*
20831 glibcxx_cv_func___builtin_sqrtf_use=yes
20832 else
20833 echo "configure: failed program was:" >&5
20834 cat conftest.$ac_ext >&5
20835 rm -rf conftest*
20836 glibcxx_cv_func___builtin_sqrtf_use=no
20837 fi
20838 rm -f conftest*
20839 ac_ext=c
20840 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20841 ac_cpp='$CPP $CPPFLAGS'
20842 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20843 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20844 cross_compiling=$ac_cv_prog_cc_cross
20845
20846
20847 fi
20848
20849 fi
20850 echo "$ac_t""$glibcxx_cv_func___builtin_sqrtf_use" 1>&6
20851 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
20852 echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
20853 echo "configure:20854: checking for __builtin_sqrtf linkage" >&5
20854 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
20855 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
20856 echo $ac_n "(cached) $ac_c" 1>&6
20857 else
20858
20859 cat > conftest.$ac_ext <<EOF
20860 #line 20861 "configure"
20861 #include "confdefs.h"
20862 #include <math.h>
20863 int main() {
20864 __builtin_sqrtf(0);
20865 ; return 0; }
20866 EOF
20867 if { (eval echo configure:20868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20868 rm -rf conftest*
20869 glibcxx_cv_func___builtin_sqrtf_link=yes
20870 else
20871 echo "configure: failed program was:" >&5
20872 cat conftest.$ac_ext >&5
20873 rm -rf conftest*
20874 glibcxx_cv_func___builtin_sqrtf_link=no
20875 fi
20876 rm -f conftest*
20877
20878 fi
20879
20880 fi
20881 echo "$ac_t""$glibcxx_cv_func___builtin_sqrtf_link" 1>&6
20882 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
20883 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20884 cat >> confdefs.h <<EOF
20885 #define ${ac_tr_func} 1
20886 EOF
20887
20888 fi
20889 fi
20890
20891
20892 echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
20893 echo "configure:20894: checking for __builtin_sqrt declaration" >&5
20894 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
20895 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
20896 echo $ac_n "(cached) $ac_c" 1>&6
20897 else
20898
20899
20900 ac_ext=C
20901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20902 ac_cpp='$CXXCPP $CPPFLAGS'
20903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20905 cross_compiling=$ac_cv_prog_cxx_cross
20906
20907 cat > conftest.$ac_ext <<EOF
20908 #line 20909 "configure"
20909 #include "confdefs.h"
20910 #include <math.h>
20911 int main() {
20912 __builtin_sqrt(0);
20913 ; return 0; }
20914 EOF
20915 if { (eval echo configure:20916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20916 rm -rf conftest*
20917 glibcxx_cv_func___builtin_sqrt_use=yes
20918 else
20919 echo "configure: failed program was:" >&5
20920 cat conftest.$ac_ext >&5
20921 rm -rf conftest*
20922 glibcxx_cv_func___builtin_sqrt_use=no
20923 fi
20924 rm -f conftest*
20925 ac_ext=c
20926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20927 ac_cpp='$CPP $CPPFLAGS'
20928 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20929 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20930 cross_compiling=$ac_cv_prog_cc_cross
20931
20932
20933 fi
20934
20935 fi
20936 echo "$ac_t""$glibcxx_cv_func___builtin_sqrt_use" 1>&6
20937 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
20938 echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
20939 echo "configure:20940: checking for __builtin_sqrt linkage" >&5
20940 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
20941 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
20942 echo $ac_n "(cached) $ac_c" 1>&6
20943 else
20944
20945 cat > conftest.$ac_ext <<EOF
20946 #line 20947 "configure"
20947 #include "confdefs.h"
20948 #include <math.h>
20949 int main() {
20950 __builtin_sqrt(0);
20951 ; return 0; }
20952 EOF
20953 if { (eval echo configure:20954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20954 rm -rf conftest*
20955 glibcxx_cv_func___builtin_sqrt_link=yes
20956 else
20957 echo "configure: failed program was:" >&5
20958 cat conftest.$ac_ext >&5
20959 rm -rf conftest*
20960 glibcxx_cv_func___builtin_sqrt_link=no
20961 fi
20962 rm -f conftest*
20963
20964 fi
20965
20966 fi
20967 echo "$ac_t""$glibcxx_cv_func___builtin_sqrt_link" 1>&6
20968 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
20969 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20970 cat >> confdefs.h <<EOF
20971 #define ${ac_tr_func} 1
20972 EOF
20973
20974 fi
20975 fi
20976
20977
20978 echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
20979 echo "configure:20980: checking for __builtin_sqrtl declaration" >&5
20980 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
20981 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
20982 echo $ac_n "(cached) $ac_c" 1>&6
20983 else
20984
20985
20986 ac_ext=C
20987 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20988 ac_cpp='$CXXCPP $CPPFLAGS'
20989 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20990 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20991 cross_compiling=$ac_cv_prog_cxx_cross
20992
20993 cat > conftest.$ac_ext <<EOF
20994 #line 20995 "configure"
20995 #include "confdefs.h"
20996 #include <math.h>
20997 int main() {
20998 __builtin_sqrtl(0);
20999 ; return 0; }
21000 EOF
21001 if { (eval echo configure:21002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21002 rm -rf conftest*
21003 glibcxx_cv_func___builtin_sqrtl_use=yes
21004 else
21005 echo "configure: failed program was:" >&5
21006 cat conftest.$ac_ext >&5
21007 rm -rf conftest*
21008 glibcxx_cv_func___builtin_sqrtl_use=no
21009 fi
21010 rm -f conftest*
21011 ac_ext=c
21012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21013 ac_cpp='$CPP $CPPFLAGS'
21014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21016 cross_compiling=$ac_cv_prog_cc_cross
21017
21018
21019 fi
21020
21021 fi
21022 echo "$ac_t""$glibcxx_cv_func___builtin_sqrtl_use" 1>&6
21023 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
21024 echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
21025 echo "configure:21026: checking for __builtin_sqrtl linkage" >&5
21026 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
21027 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
21028 echo $ac_n "(cached) $ac_c" 1>&6
21029 else
21030
21031 cat > conftest.$ac_ext <<EOF
21032 #line 21033 "configure"
21033 #include "confdefs.h"
21034 #include <math.h>
21035 int main() {
21036 __builtin_sqrtl(0);
21037 ; return 0; }
21038 EOF
21039 if { (eval echo configure:21040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21040 rm -rf conftest*
21041 glibcxx_cv_func___builtin_sqrtl_link=yes
21042 else
21043 echo "configure: failed program was:" >&5
21044 cat conftest.$ac_ext >&5
21045 rm -rf conftest*
21046 glibcxx_cv_func___builtin_sqrtl_link=no
21047 fi
21048 rm -f conftest*
21049
21050 fi
21051
21052 fi
21053 echo "$ac_t""$glibcxx_cv_func___builtin_sqrtl_link" 1>&6
21054 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
21055 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21056 cat >> confdefs.h <<EOF
21057 #define ${ac_tr_func} 1
21058 EOF
21059
21060 fi
21061 fi
21062
21063
21064
21065 echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21066 echo "configure:21067: checking for __builtin_sinf declaration" >&5
21067 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
21068 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21069 echo $ac_n "(cached) $ac_c" 1>&6
21070 else
21071
21072
21073 ac_ext=C
21074 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21075 ac_cpp='$CXXCPP $CPPFLAGS'
21076 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21077 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21078 cross_compiling=$ac_cv_prog_cxx_cross
21079
21080 cat > conftest.$ac_ext <<EOF
21081 #line 21082 "configure"
21082 #include "confdefs.h"
21083 #include <math.h>
21084 int main() {
21085 __builtin_sinf(0);
21086 ; return 0; }
21087 EOF
21088 if { (eval echo configure:21089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21089 rm -rf conftest*
21090 glibcxx_cv_func___builtin_sinf_use=yes
21091 else
21092 echo "configure: failed program was:" >&5
21093 cat conftest.$ac_ext >&5
21094 rm -rf conftest*
21095 glibcxx_cv_func___builtin_sinf_use=no
21096 fi
21097 rm -f conftest*
21098 ac_ext=c
21099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21100 ac_cpp='$CPP $CPPFLAGS'
21101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21103 cross_compiling=$ac_cv_prog_cc_cross
21104
21105
21106 fi
21107
21108 fi
21109 echo "$ac_t""$glibcxx_cv_func___builtin_sinf_use" 1>&6
21110 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
21111 echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21112 echo "configure:21113: checking for __builtin_sinf linkage" >&5
21113 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
21114 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21115 echo $ac_n "(cached) $ac_c" 1>&6
21116 else
21117
21118 cat > conftest.$ac_ext <<EOF
21119 #line 21120 "configure"
21120 #include "confdefs.h"
21121 #include <math.h>
21122 int main() {
21123 __builtin_sinf(0);
21124 ; return 0; }
21125 EOF
21126 if { (eval echo configure:21127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21127 rm -rf conftest*
21128 glibcxx_cv_func___builtin_sinf_link=yes
21129 else
21130 echo "configure: failed program was:" >&5
21131 cat conftest.$ac_ext >&5
21132 rm -rf conftest*
21133 glibcxx_cv_func___builtin_sinf_link=no
21134 fi
21135 rm -f conftest*
21136
21137 fi
21138
21139 fi
21140 echo "$ac_t""$glibcxx_cv_func___builtin_sinf_link" 1>&6
21141 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
21142 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21143 cat >> confdefs.h <<EOF
21144 #define ${ac_tr_func} 1
21145 EOF
21146
21147 fi
21148 fi
21149
21150
21151 echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21152 echo "configure:21153: checking for __builtin_sin declaration" >&5
21153 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
21154 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sin_use'+set}'`\" = set"; then
21155 echo $ac_n "(cached) $ac_c" 1>&6
21156 else
21157
21158
21159 ac_ext=C
21160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21161 ac_cpp='$CXXCPP $CPPFLAGS'
21162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21164 cross_compiling=$ac_cv_prog_cxx_cross
21165
21166 cat > conftest.$ac_ext <<EOF
21167 #line 21168 "configure"
21168 #include "confdefs.h"
21169 #include <math.h>
21170 int main() {
21171 __builtin_sin(0);
21172 ; return 0; }
21173 EOF
21174 if { (eval echo configure:21175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21175 rm -rf conftest*
21176 glibcxx_cv_func___builtin_sin_use=yes
21177 else
21178 echo "configure: failed program was:" >&5
21179 cat conftest.$ac_ext >&5
21180 rm -rf conftest*
21181 glibcxx_cv_func___builtin_sin_use=no
21182 fi
21183 rm -f conftest*
21184 ac_ext=c
21185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21186 ac_cpp='$CPP $CPPFLAGS'
21187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21189 cross_compiling=$ac_cv_prog_cc_cross
21190
21191
21192 fi
21193
21194 fi
21195 echo "$ac_t""$glibcxx_cv_func___builtin_sin_use" 1>&6
21196 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
21197 echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21198 echo "configure:21199: checking for __builtin_sin linkage" >&5
21199 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
21200 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sin_link'+set}'`\" = set"; then
21201 echo $ac_n "(cached) $ac_c" 1>&6
21202 else
21203
21204 cat > conftest.$ac_ext <<EOF
21205 #line 21206 "configure"
21206 #include "confdefs.h"
21207 #include <math.h>
21208 int main() {
21209 __builtin_sin(0);
21210 ; return 0; }
21211 EOF
21212 if { (eval echo configure:21213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21213 rm -rf conftest*
21214 glibcxx_cv_func___builtin_sin_link=yes
21215 else
21216 echo "configure: failed program was:" >&5
21217 cat conftest.$ac_ext >&5
21218 rm -rf conftest*
21219 glibcxx_cv_func___builtin_sin_link=no
21220 fi
21221 rm -f conftest*
21222
21223 fi
21224
21225 fi
21226 echo "$ac_t""$glibcxx_cv_func___builtin_sin_link" 1>&6
21227 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
21228 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21229 cat >> confdefs.h <<EOF
21230 #define ${ac_tr_func} 1
21231 EOF
21232
21233 fi
21234 fi
21235
21236
21237 echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21238 echo "configure:21239: checking for __builtin_sinl declaration" >&5
21239 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
21240 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21241 echo $ac_n "(cached) $ac_c" 1>&6
21242 else
21243
21244
21245 ac_ext=C
21246 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21247 ac_cpp='$CXXCPP $CPPFLAGS'
21248 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21249 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21250 cross_compiling=$ac_cv_prog_cxx_cross
21251
21252 cat > conftest.$ac_ext <<EOF
21253 #line 21254 "configure"
21254 #include "confdefs.h"
21255 #include <math.h>
21256 int main() {
21257 __builtin_sinl(0);
21258 ; return 0; }
21259 EOF
21260 if { (eval echo configure:21261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21261 rm -rf conftest*
21262 glibcxx_cv_func___builtin_sinl_use=yes
21263 else
21264 echo "configure: failed program was:" >&5
21265 cat conftest.$ac_ext >&5
21266 rm -rf conftest*
21267 glibcxx_cv_func___builtin_sinl_use=no
21268 fi
21269 rm -f conftest*
21270 ac_ext=c
21271 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21272 ac_cpp='$CPP $CPPFLAGS'
21273 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21274 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21275 cross_compiling=$ac_cv_prog_cc_cross
21276
21277
21278 fi
21279
21280 fi
21281 echo "$ac_t""$glibcxx_cv_func___builtin_sinl_use" 1>&6
21282 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
21283 echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21284 echo "configure:21285: checking for __builtin_sinl linkage" >&5
21285 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
21286 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21287 echo $ac_n "(cached) $ac_c" 1>&6
21288 else
21289
21290 cat > conftest.$ac_ext <<EOF
21291 #line 21292 "configure"
21292 #include "confdefs.h"
21293 #include <math.h>
21294 int main() {
21295 __builtin_sinl(0);
21296 ; return 0; }
21297 EOF
21298 if { (eval echo configure:21299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21299 rm -rf conftest*
21300 glibcxx_cv_func___builtin_sinl_link=yes
21301 else
21302 echo "configure: failed program was:" >&5
21303 cat conftest.$ac_ext >&5
21304 rm -rf conftest*
21305 glibcxx_cv_func___builtin_sinl_link=no
21306 fi
21307 rm -f conftest*
21308
21309 fi
21310
21311 fi
21312 echo "$ac_t""$glibcxx_cv_func___builtin_sinl_link" 1>&6
21313 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
21314 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21315 cat >> confdefs.h <<EOF
21316 #define ${ac_tr_func} 1
21317 EOF
21318
21319 fi
21320 fi
21321
21322
21323
21324 echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21325 echo "configure:21326: checking for __builtin_cosf declaration" >&5
21326 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
21327 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21328 echo $ac_n "(cached) $ac_c" 1>&6
21329 else
21330
21331
21332 ac_ext=C
21333 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21334 ac_cpp='$CXXCPP $CPPFLAGS'
21335 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21336 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21337 cross_compiling=$ac_cv_prog_cxx_cross
21338
21339 cat > conftest.$ac_ext <<EOF
21340 #line 21341 "configure"
21341 #include "confdefs.h"
21342 #include <math.h>
21343 int main() {
21344 __builtin_cosf(0);
21345 ; return 0; }
21346 EOF
21347 if { (eval echo configure:21348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21348 rm -rf conftest*
21349 glibcxx_cv_func___builtin_cosf_use=yes
21350 else
21351 echo "configure: failed program was:" >&5
21352 cat conftest.$ac_ext >&5
21353 rm -rf conftest*
21354 glibcxx_cv_func___builtin_cosf_use=no
21355 fi
21356 rm -f conftest*
21357 ac_ext=c
21358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21359 ac_cpp='$CPP $CPPFLAGS'
21360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21362 cross_compiling=$ac_cv_prog_cc_cross
21363
21364
21365 fi
21366
21367 fi
21368 echo "$ac_t""$glibcxx_cv_func___builtin_cosf_use" 1>&6
21369 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
21370 echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21371 echo "configure:21372: checking for __builtin_cosf linkage" >&5
21372 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
21373 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21374 echo $ac_n "(cached) $ac_c" 1>&6
21375 else
21376
21377 cat > conftest.$ac_ext <<EOF
21378 #line 21379 "configure"
21379 #include "confdefs.h"
21380 #include <math.h>
21381 int main() {
21382 __builtin_cosf(0);
21383 ; return 0; }
21384 EOF
21385 if { (eval echo configure:21386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21386 rm -rf conftest*
21387 glibcxx_cv_func___builtin_cosf_link=yes
21388 else
21389 echo "configure: failed program was:" >&5
21390 cat conftest.$ac_ext >&5
21391 rm -rf conftest*
21392 glibcxx_cv_func___builtin_cosf_link=no
21393 fi
21394 rm -f conftest*
21395
21396 fi
21397
21398 fi
21399 echo "$ac_t""$glibcxx_cv_func___builtin_cosf_link" 1>&6
21400 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
21401 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21402 cat >> confdefs.h <<EOF
21403 #define ${ac_tr_func} 1
21404 EOF
21405
21406 fi
21407 fi
21408
21409
21410 echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21411 echo "configure:21412: checking for __builtin_cos declaration" >&5
21412 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
21413 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cos_use'+set}'`\" = set"; then
21414 echo $ac_n "(cached) $ac_c" 1>&6
21415 else
21416
21417
21418 ac_ext=C
21419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21420 ac_cpp='$CXXCPP $CPPFLAGS'
21421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21423 cross_compiling=$ac_cv_prog_cxx_cross
21424
21425 cat > conftest.$ac_ext <<EOF
21426 #line 21427 "configure"
21427 #include "confdefs.h"
21428 #include <math.h>
21429 int main() {
21430 __builtin_cos(0);
21431 ; return 0; }
21432 EOF
21433 if { (eval echo configure:21434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21434 rm -rf conftest*
21435 glibcxx_cv_func___builtin_cos_use=yes
21436 else
21437 echo "configure: failed program was:" >&5
21438 cat conftest.$ac_ext >&5
21439 rm -rf conftest*
21440 glibcxx_cv_func___builtin_cos_use=no
21441 fi
21442 rm -f conftest*
21443 ac_ext=c
21444 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21445 ac_cpp='$CPP $CPPFLAGS'
21446 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21447 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21448 cross_compiling=$ac_cv_prog_cc_cross
21449
21450
21451 fi
21452
21453 fi
21454 echo "$ac_t""$glibcxx_cv_func___builtin_cos_use" 1>&6
21455 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
21456 echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21457 echo "configure:21458: checking for __builtin_cos linkage" >&5
21458 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
21459 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cos_link'+set}'`\" = set"; then
21460 echo $ac_n "(cached) $ac_c" 1>&6
21461 else
21462
21463 cat > conftest.$ac_ext <<EOF
21464 #line 21465 "configure"
21465 #include "confdefs.h"
21466 #include <math.h>
21467 int main() {
21468 __builtin_cos(0);
21469 ; return 0; }
21470 EOF
21471 if { (eval echo configure:21472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21472 rm -rf conftest*
21473 glibcxx_cv_func___builtin_cos_link=yes
21474 else
21475 echo "configure: failed program was:" >&5
21476 cat conftest.$ac_ext >&5
21477 rm -rf conftest*
21478 glibcxx_cv_func___builtin_cos_link=no
21479 fi
21480 rm -f conftest*
21481
21482 fi
21483
21484 fi
21485 echo "$ac_t""$glibcxx_cv_func___builtin_cos_link" 1>&6
21486 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
21487 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21488 cat >> confdefs.h <<EOF
21489 #define ${ac_tr_func} 1
21490 EOF
21491
21492 fi
21493 fi
21494
21495
21496 echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21497 echo "configure:21498: checking for __builtin_cosl declaration" >&5
21498 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
21499 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21500 echo $ac_n "(cached) $ac_c" 1>&6
21501 else
21502
21503
21504 ac_ext=C
21505 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21506 ac_cpp='$CXXCPP $CPPFLAGS'
21507 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21508 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21509 cross_compiling=$ac_cv_prog_cxx_cross
21510
21511 cat > conftest.$ac_ext <<EOF
21512 #line 21513 "configure"
21513 #include "confdefs.h"
21514 #include <math.h>
21515 int main() {
21516 __builtin_cosl(0);
21517 ; return 0; }
21518 EOF
21519 if { (eval echo configure:21520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21520 rm -rf conftest*
21521 glibcxx_cv_func___builtin_cosl_use=yes
21522 else
21523 echo "configure: failed program was:" >&5
21524 cat conftest.$ac_ext >&5
21525 rm -rf conftest*
21526 glibcxx_cv_func___builtin_cosl_use=no
21527 fi
21528 rm -f conftest*
21529 ac_ext=c
21530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21531 ac_cpp='$CPP $CPPFLAGS'
21532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21534 cross_compiling=$ac_cv_prog_cc_cross
21535
21536
21537 fi
21538
21539 fi
21540 echo "$ac_t""$glibcxx_cv_func___builtin_cosl_use" 1>&6
21541 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
21542 echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21543 echo "configure:21544: checking for __builtin_cosl linkage" >&5
21544 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
21545 if eval "test \"`echo '$''{'glibcxx_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21546 echo $ac_n "(cached) $ac_c" 1>&6
21547 else
21548
21549 cat > conftest.$ac_ext <<EOF
21550 #line 21551 "configure"
21551 #include "confdefs.h"
21552 #include <math.h>
21553 int main() {
21554 __builtin_cosl(0);
21555 ; return 0; }
21556 EOF
21557 if { (eval echo configure:21558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21558 rm -rf conftest*
21559 glibcxx_cv_func___builtin_cosl_link=yes
21560 else
21561 echo "configure: failed program was:" >&5
21562 cat conftest.$ac_ext >&5
21563 rm -rf conftest*
21564 glibcxx_cv_func___builtin_cosl_link=no
21565 fi
21566 rm -f conftest*
21567
21568 fi
21569
21570 fi
21571 echo "$ac_t""$glibcxx_cv_func___builtin_cosl_link" 1>&6
21572 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
21573 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21574 cat >> confdefs.h <<EOF
21575 #define ${ac_tr_func} 1
21576 EOF
21577
21578 fi
21579 fi
21580
21581
21582 dummyvar=no
21583 if test x$dummyvar = x"yes"; then
21584 cat >> confdefs.h <<\EOF
21585 #define HAVE___BUILTIN_ABS 1
21586 EOF
21587
21588 cat >> confdefs.h <<\EOF
21589 #define HAVE___BUILTIN_LABS 1
21590 EOF
21591
21592 cat >> confdefs.h <<\EOF
21593 #define HAVE___BUILTIN_COS 1
21594 EOF
21595
21596 cat >> confdefs.h <<\EOF
21597 #define HAVE___BUILTIN_COSF 1
21598 EOF
21599
21600 cat >> confdefs.h <<\EOF
21601 #define HAVE___BUILTIN_COSL 1
21602 EOF
21603
21604 cat >> confdefs.h <<\EOF
21605 #define HAVE___BUILTIN_FABS 1
21606 EOF
21607
21608 cat >> confdefs.h <<\EOF
21609 #define HAVE___BUILTIN_FABSF 1
21610 EOF
21611
21612 cat >> confdefs.h <<\EOF
21613 #define HAVE___BUILTIN_FABSL 1
21614 EOF
21615
21616 cat >> confdefs.h <<\EOF
21617 #define HAVE___BUILTIN_SIN 1
21618 EOF
21619
21620 cat >> confdefs.h <<\EOF
21621 #define HAVE___BUILTIN_SINF 1
21622 EOF
21623
21624 cat >> confdefs.h <<\EOF
21625 #define HAVE___BUILTIN_SINL 1
21626 EOF
21627
21628 cat >> confdefs.h <<\EOF
21629 #define HAVE___BUILTIN_SQRT 1
21630 EOF
21631
21632 cat >> confdefs.h <<\EOF
21633 #define HAVE___BUILTIN_SQRTF 1
21634 EOF
21635
21636 cat >> confdefs.h <<\EOF
21637 #define HAVE___BUILTIN_SQRTL 1
21638 EOF
21639
21640 fi
21641
21642
21643 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21644 echo "configure:21645: checking for main in -lm" >&5
21645 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21647 echo $ac_n "(cached) $ac_c" 1>&6
21648 else
21649 ac_save_LIBS="$LIBS"
21650 LIBS="-lm $LIBS"
21651 cat > conftest.$ac_ext <<EOF
21652 #line 21653 "configure"
21653 #include "confdefs.h"
21654
21655 int main() {
21656 main()
21657 ; return 0; }
21658 EOF
21659 if { (eval echo configure:21660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21660 rm -rf conftest*
21661 eval "ac_cv_lib_$ac_lib_var=yes"
21662 else
21663 echo "configure: failed program was:" >&5
21664 cat conftest.$ac_ext >&5
21665 rm -rf conftest*
21666 eval "ac_cv_lib_$ac_lib_var=no"
21667 fi
21668 rm -f conftest*
21669 LIBS="$ac_save_LIBS"
21670
21671 fi
21672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21673 echo "$ac_t""yes" 1>&6
21674 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21675 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21676 cat >> confdefs.h <<EOF
21677 #define $ac_tr_lib 1
21678 EOF
21679
21680 LIBS="-lm $LIBS"
21681
21682 else
21683 echo "$ac_t""no" 1>&6
21684 fi
21685
21686 for ac_func in nan copysignf
21687 do
21688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21689 echo "configure:21690: checking for $ac_func" >&5
21690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21691 echo $ac_n "(cached) $ac_c" 1>&6
21692 else
21693 cat > conftest.$ac_ext <<EOF
21694 #line 21695 "configure"
21695 #include "confdefs.h"
21696 /* System header to define __stub macros and hopefully few prototypes,
21697 which can conflict with char $ac_func(); below. */
21698 #include <assert.h>
21699 /* Override any gcc2 internal prototype to avoid an error. */
21700 /* We use char because int might match the return type of a gcc2
21701 builtin and then its argument prototype would still apply. */
21702 char $ac_func();
21703
21704 int main() {
21705
21706 /* The GNU C library defines this for functions which it implements
21707 to always fail with ENOSYS. Some functions are actually named
21708 something starting with __ and the normal name is an alias. */
21709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21710 choke me
21711 #else
21712 $ac_func();
21713 #endif
21714
21715 ; return 0; }
21716 EOF
21717 if { (eval echo configure:21718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21718 rm -rf conftest*
21719 eval "ac_cv_func_$ac_func=yes"
21720 else
21721 echo "configure: failed program was:" >&5
21722 cat conftest.$ac_ext >&5
21723 rm -rf conftest*
21724 eval "ac_cv_func_$ac_func=no"
21725 fi
21726 rm -f conftest*
21727 fi
21728
21729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21730 echo "$ac_t""yes" 1>&6
21731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21732 cat >> confdefs.h <<EOF
21733 #define $ac_tr_func 1
21734 EOF
21735
21736 else
21737 echo "$ac_t""no" 1>&6
21738 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21739 fi
21740 done
21741
21742
21743 for ac_func in __signbit
21744 do
21745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21746 echo "configure:21747: checking for $ac_func" >&5
21747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21748 echo $ac_n "(cached) $ac_c" 1>&6
21749 else
21750 cat > conftest.$ac_ext <<EOF
21751 #line 21752 "configure"
21752 #include "confdefs.h"
21753 /* System header to define __stub macros and hopefully few prototypes,
21754 which can conflict with char $ac_func(); below. */
21755 #include <assert.h>
21756 /* Override any gcc2 internal prototype to avoid an error. */
21757 /* We use char because int might match the return type of a gcc2
21758 builtin and then its argument prototype would still apply. */
21759 char $ac_func();
21760
21761 int main() {
21762
21763 /* The GNU C library defines this for functions which it implements
21764 to always fail with ENOSYS. Some functions are actually named
21765 something starting with __ and the normal name is an alias. */
21766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21767 choke me
21768 #else
21769 $ac_func();
21770 #endif
21771
21772 ; return 0; }
21773 EOF
21774 if { (eval echo configure:21775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21775 rm -rf conftest*
21776 eval "ac_cv_func_$ac_func=yes"
21777 else
21778 echo "configure: failed program was:" >&5
21779 cat conftest.$ac_ext >&5
21780 rm -rf conftest*
21781 eval "ac_cv_func_$ac_func=no"
21782 fi
21783 rm -f conftest*
21784 fi
21785
21786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21787 echo "$ac_t""yes" 1>&6
21788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21789 cat >> confdefs.h <<EOF
21790 #define $ac_tr_func 1
21791 EOF
21792
21793 else
21794 echo "$ac_t""no" 1>&6
21795 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21796 fi
21797 done
21798
21799 for ac_func in __signbitf
21800 do
21801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21802 echo "configure:21803: checking for $ac_func" >&5
21803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21804 echo $ac_n "(cached) $ac_c" 1>&6
21805 else
21806 cat > conftest.$ac_ext <<EOF
21807 #line 21808 "configure"
21808 #include "confdefs.h"
21809 /* System header to define __stub macros and hopefully few prototypes,
21810 which can conflict with char $ac_func(); below. */
21811 #include <assert.h>
21812 /* Override any gcc2 internal prototype to avoid an error. */
21813 /* We use char because int might match the return type of a gcc2
21814 builtin and then its argument prototype would still apply. */
21815 char $ac_func();
21816
21817 int main() {
21818
21819 /* The GNU C library defines this for functions which it implements
21820 to always fail with ENOSYS. Some functions are actually named
21821 something starting with __ and the normal name is an alias. */
21822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21823 choke me
21824 #else
21825 $ac_func();
21826 #endif
21827
21828 ; return 0; }
21829 EOF
21830 if { (eval echo configure:21831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21831 rm -rf conftest*
21832 eval "ac_cv_func_$ac_func=yes"
21833 else
21834 echo "configure: failed program was:" >&5
21835 cat conftest.$ac_ext >&5
21836 rm -rf conftest*
21837 eval "ac_cv_func_$ac_func=no"
21838 fi
21839 rm -f conftest*
21840 fi
21841
21842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21843 echo "$ac_t""yes" 1>&6
21844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21845 cat >> confdefs.h <<EOF
21846 #define $ac_tr_func 1
21847 EOF
21848
21849 else
21850 echo "$ac_t""no" 1>&6
21851 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21852 fi
21853 done
21854
21855
21856 if test x$ac_cv_func_copysignl = x"yes"; then
21857 for ac_func in __signbitl
21858 do
21859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21860 echo "configure:21861: checking for $ac_func" >&5
21861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21862 echo $ac_n "(cached) $ac_c" 1>&6
21863 else
21864 cat > conftest.$ac_ext <<EOF
21865 #line 21866 "configure"
21866 #include "confdefs.h"
21867 /* System header to define __stub macros and hopefully few prototypes,
21868 which can conflict with char $ac_func(); below. */
21869 #include <assert.h>
21870 /* Override any gcc2 internal prototype to avoid an error. */
21871 /* We use char because int might match the return type of a gcc2
21872 builtin and then its argument prototype would still apply. */
21873 char $ac_func();
21874
21875 int main() {
21876
21877 /* The GNU C library defines this for functions which it implements
21878 to always fail with ENOSYS. Some functions are actually named
21879 something starting with __ and the normal name is an alias. */
21880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21881 choke me
21882 #else
21883 $ac_func();
21884 #endif
21885
21886 ; return 0; }
21887 EOF
21888 if { (eval echo configure:21889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21889 rm -rf conftest*
21890 eval "ac_cv_func_$ac_func=yes"
21891 else
21892 echo "configure: failed program was:" >&5
21893 cat conftest.$ac_ext >&5
21894 rm -rf conftest*
21895 eval "ac_cv_func_$ac_func=no"
21896 fi
21897 rm -f conftest*
21898 fi
21899
21900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21901 echo "$ac_t""yes" 1>&6
21902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21903 cat >> confdefs.h <<EOF
21904 #define $ac_tr_func 1
21905 EOF
21906
21907 else
21908 echo "$ac_t""no" 1>&6
21909 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21910 fi
21911 done
21912
21913 fi
21914
21915 if test -n "$LIBMATHOBJS"; then
21916 need_libmath=yes
21917 fi
21918
21919
21920
21921
21922 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21923 echo "configure:21924: checking for mbstate_t" >&5
21924 cat > conftest.$ac_ext <<EOF
21925 #line 21926 "configure"
21926 #include "confdefs.h"
21927 #include <wchar.h>
21928 int main() {
21929 mbstate_t teststate;
21930 ; return 0; }
21931 EOF
21932 if { (eval echo configure:21933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21933 rm -rf conftest*
21934 have_mbstate_t=yes
21935 else
21936 echo "configure: failed program was:" >&5
21937 cat conftest.$ac_ext >&5
21938 rm -rf conftest*
21939 have_mbstate_t=no
21940 fi
21941 rm -f conftest*
21942 echo "$ac_t""$have_mbstate_t" 1>&6
21943 if test x"$have_mbstate_t" = xyes; then
21944 cat >> confdefs.h <<\EOF
21945 #define HAVE_MBSTATE_T 1
21946 EOF
21947
21948 fi
21949
21950 for ac_hdr in wchar.h
21951 do
21952 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21953 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21954 echo "configure:21955: checking for $ac_hdr" >&5
21955 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21956 echo $ac_n "(cached) $ac_c" 1>&6
21957 else
21958 cat > conftest.$ac_ext <<EOF
21959 #line 21960 "configure"
21960 #include "confdefs.h"
21961 #include <$ac_hdr>
21962 EOF
21963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21964 { (eval echo configure:21965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21966 if test -z "$ac_err"; then
21967 rm -rf conftest*
21968 eval "ac_cv_header_$ac_safe=yes"
21969 else
21970 echo "$ac_err" >&5
21971 echo "configure: failed program was:" >&5
21972 cat conftest.$ac_ext >&5
21973 rm -rf conftest*
21974 eval "ac_cv_header_$ac_safe=no"
21975 fi
21976 rm -f conftest*
21977 fi
21978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21979 echo "$ac_t""yes" 1>&6
21980 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21981 cat >> confdefs.h <<EOF
21982 #define $ac_tr_hdr 1
21983 EOF
21984 ac_has_wchar_h=yes
21985 else
21986 echo "$ac_t""no" 1>&6
21987 ac_has_wchar_h=no
21988 fi
21989 done
21990
21991 for ac_hdr in wctype.h
21992 do
21993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21995 echo "configure:21996: checking for $ac_hdr" >&5
21996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21997 echo $ac_n "(cached) $ac_c" 1>&6
21998 else
21999 cat > conftest.$ac_ext <<EOF
22000 #line 22001 "configure"
22001 #include "confdefs.h"
22002 #include <$ac_hdr>
22003 EOF
22004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22005 { (eval echo configure:22006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22007 if test -z "$ac_err"; then
22008 rm -rf conftest*
22009 eval "ac_cv_header_$ac_safe=yes"
22010 else
22011 echo "$ac_err" >&5
22012 echo "configure: failed program was:" >&5
22013 cat conftest.$ac_ext >&5
22014 rm -rf conftest*
22015 eval "ac_cv_header_$ac_safe=no"
22016 fi
22017 rm -f conftest*
22018 fi
22019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22020 echo "$ac_t""yes" 1>&6
22021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22022 cat >> confdefs.h <<EOF
22023 #define $ac_tr_hdr 1
22024 EOF
22025 ac_has_wctype_h=yes
22026 else
22027 echo "$ac_t""no" 1>&6
22028 ac_has_wctype_h=no
22029 fi
22030 done
22031
22032
22033 if test x"$ac_has_wchar_h" = xyes &&
22034 test x"$ac_has_wctype_h" = xyes &&
22035 test x"$enable_c_mbchar" != xno; then
22036
22037 echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22038 echo "configure:22039: checking for WCHAR_MIN and WCHAR_MAX" >&5
22039 cat > conftest.$ac_ext <<EOF
22040 #line 22041 "configure"
22041 #include "confdefs.h"
22042 #include <wchar.h>
22043 int main() {
22044 int i = WCHAR_MIN; int j = WCHAR_MAX;
22045 ; return 0; }
22046 EOF
22047 if { (eval echo configure:22048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22048 rm -rf conftest*
22049 has_wchar_minmax=yes
22050 else
22051 echo "configure: failed program was:" >&5
22052 cat conftest.$ac_ext >&5
22053 rm -rf conftest*
22054 has_wchar_minmax=no
22055 fi
22056 rm -f conftest*
22057 echo "$ac_t""$has_wchar_minmax" 1>&6
22058
22059 echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22060 echo "configure:22061: checking for WEOF" >&5
22061 cat > conftest.$ac_ext <<EOF
22062 #line 22063 "configure"
22063 #include "confdefs.h"
22064
22065 #include <wchar.h>
22066 #include <stddef.h>
22067 int main() {
22068 wint_t i = WEOF;
22069 ; return 0; }
22070 EOF
22071 if { (eval echo configure:22072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22072 rm -rf conftest*
22073 has_weof=yes
22074 else
22075 echo "configure: failed program was:" >&5
22076 cat conftest.$ac_ext >&5
22077 rm -rf conftest*
22078 has_weof=no
22079 fi
22080 rm -f conftest*
22081 echo "$ac_t""$has_weof" 1>&6
22082
22083 ac_wfuncs=yes
22084 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22085 do
22086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22087 echo "configure:22088: checking for $ac_func" >&5
22088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22089 echo $ac_n "(cached) $ac_c" 1>&6
22090 else
22091 cat > conftest.$ac_ext <<EOF
22092 #line 22093 "configure"
22093 #include "confdefs.h"
22094 /* System header to define __stub macros and hopefully few prototypes,
22095 which can conflict with char $ac_func(); below. */
22096 #include <assert.h>
22097 /* Override any gcc2 internal prototype to avoid an error. */
22098 /* We use char because int might match the return type of a gcc2
22099 builtin and then its argument prototype would still apply. */
22100 char $ac_func();
22101
22102 int main() {
22103
22104 /* The GNU C library defines this for functions which it implements
22105 to always fail with ENOSYS. Some functions are actually named
22106 something starting with __ and the normal name is an alias. */
22107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22108 choke me
22109 #else
22110 $ac_func();
22111 #endif
22112
22113 ; return 0; }
22114 EOF
22115 if { (eval echo configure:22116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22116 rm -rf conftest*
22117 eval "ac_cv_func_$ac_func=yes"
22118 else
22119 echo "configure: failed program was:" >&5
22120 cat conftest.$ac_ext >&5
22121 rm -rf conftest*
22122 eval "ac_cv_func_$ac_func=no"
22123 fi
22124 rm -f conftest*
22125 fi
22126
22127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22128 echo "$ac_t""yes" 1>&6
22129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22130 cat >> confdefs.h <<EOF
22131 #define $ac_tr_func 1
22132 EOF
22133
22134 else
22135 echo "$ac_t""no" 1>&6
22136 \
22137 ac_wfuncs=no
22138 fi
22139 done
22140
22141
22142 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22143 fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22144 vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22145 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22146 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22147 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22148 do
22149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22150 echo "configure:22151: checking for $ac_func" >&5
22151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22152 echo $ac_n "(cached) $ac_c" 1>&6
22153 else
22154 cat > conftest.$ac_ext <<EOF
22155 #line 22156 "configure"
22156 #include "confdefs.h"
22157 /* System header to define __stub macros and hopefully few prototypes,
22158 which can conflict with char $ac_func(); below. */
22159 #include <assert.h>
22160 /* Override any gcc2 internal prototype to avoid an error. */
22161 /* We use char because int might match the return type of a gcc2
22162 builtin and then its argument prototype would still apply. */
22163 char $ac_func();
22164
22165 int main() {
22166
22167 /* The GNU C library defines this for functions which it implements
22168 to always fail with ENOSYS. Some functions are actually named
22169 something starting with __ and the normal name is an alias. */
22170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22171 choke me
22172 #else
22173 $ac_func();
22174 #endif
22175
22176 ; return 0; }
22177 EOF
22178 if { (eval echo configure:22179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22179 rm -rf conftest*
22180 eval "ac_cv_func_$ac_func=yes"
22181 else
22182 echo "configure: failed program was:" >&5
22183 cat conftest.$ac_ext >&5
22184 rm -rf conftest*
22185 eval "ac_cv_func_$ac_func=no"
22186 fi
22187 rm -f conftest*
22188 fi
22189
22190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22191 echo "$ac_t""yes" 1>&6
22192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22193 cat >> confdefs.h <<EOF
22194 #define $ac_tr_func 1
22195 EOF
22196
22197 else
22198 echo "$ac_t""no" 1>&6
22199 \
22200 ac_wfuncs=no
22201 fi
22202 done
22203
22204
22205 echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22206 echo "configure:22207: checking for ISO C99 wchar_t support" >&5
22207 if test x"$has_weof" = xyes &&
22208 test x"$has_wchar_minmax" = xyes &&
22209 test x"$ac_wfuncs" = xyes; then
22210 ac_isoC99_wchar_t=yes
22211 else
22212 ac_isoC99_wchar_t=no
22213 fi
22214 echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22215
22216 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22217 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22218 echo "configure:22219: checking for iconv.h" >&5
22219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22220 echo $ac_n "(cached) $ac_c" 1>&6
22221 else
22222 cat > conftest.$ac_ext <<EOF
22223 #line 22224 "configure"
22224 #include "confdefs.h"
22225 #include <iconv.h>
22226 EOF
22227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22228 { (eval echo configure:22229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22230 if test -z "$ac_err"; then
22231 rm -rf conftest*
22232 eval "ac_cv_header_$ac_safe=yes"
22233 else
22234 echo "$ac_err" >&5
22235 echo "configure: failed program was:" >&5
22236 cat conftest.$ac_ext >&5
22237 rm -rf conftest*
22238 eval "ac_cv_header_$ac_safe=no"
22239 fi
22240 rm -f conftest*
22241 fi
22242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22243 echo "$ac_t""yes" 1>&6
22244 ac_has_iconv_h=yes
22245 else
22246 echo "$ac_t""no" 1>&6
22247 ac_has_iconv_h=no
22248 fi
22249
22250 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22251 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22252 echo "configure:22253: checking for langinfo.h" >&5
22253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22254 echo $ac_n "(cached) $ac_c" 1>&6
22255 else
22256 cat > conftest.$ac_ext <<EOF
22257 #line 22258 "configure"
22258 #include "confdefs.h"
22259 #include <langinfo.h>
22260 EOF
22261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22262 { (eval echo configure:22263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22264 if test -z "$ac_err"; then
22265 rm -rf conftest*
22266 eval "ac_cv_header_$ac_safe=yes"
22267 else
22268 echo "$ac_err" >&5
22269 echo "configure: failed program was:" >&5
22270 cat conftest.$ac_ext >&5
22271 rm -rf conftest*
22272 eval "ac_cv_header_$ac_safe=no"
22273 fi
22274 rm -f conftest*
22275 fi
22276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22277 echo "$ac_t""yes" 1>&6
22278 ac_has_langinfo_h=yes
22279 else
22280 echo "$ac_t""no" 1>&6
22281 ac_has_langinfo_h=no
22282 fi
22283
22284
22285 echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22286 echo "configure:22287: checking for iconv in -liconv" >&5
22287 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22289 echo $ac_n "(cached) $ac_c" 1>&6
22290 else
22291 ac_save_LIBS="$LIBS"
22292 LIBS="-liconv $LIBS"
22293 cat > conftest.$ac_ext <<EOF
22294 #line 22295 "configure"
22295 #include "confdefs.h"
22296 /* Override any gcc2 internal prototype to avoid an error. */
22297 /* We use char because int might match the return type of a gcc2
22298 builtin and then its argument prototype would still apply. */
22299 char iconv();
22300
22301 int main() {
22302 iconv()
22303 ; return 0; }
22304 EOF
22305 if { (eval echo configure:22306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22306 rm -rf conftest*
22307 eval "ac_cv_lib_$ac_lib_var=yes"
22308 else
22309 echo "configure: failed program was:" >&5
22310 cat conftest.$ac_ext >&5
22311 rm -rf conftest*
22312 eval "ac_cv_lib_$ac_lib_var=no"
22313 fi
22314 rm -f conftest*
22315 LIBS="$ac_save_LIBS"
22316
22317 fi
22318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22319 echo "$ac_t""yes" 1>&6
22320 libiconv="-liconv"
22321 else
22322 echo "$ac_t""no" 1>&6
22323 fi
22324
22325 ac_save_LIBS="$LIBS"
22326 LIBS="$LIBS $libiconv"
22327
22328 for ac_func in iconv_open iconv_close iconv nl_langinfo
22329 do
22330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22331 echo "configure:22332: checking for $ac_func" >&5
22332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22333 echo $ac_n "(cached) $ac_c" 1>&6
22334 else
22335 cat > conftest.$ac_ext <<EOF
22336 #line 22337 "configure"
22337 #include "confdefs.h"
22338 /* System header to define __stub macros and hopefully few prototypes,
22339 which can conflict with char $ac_func(); below. */
22340 #include <assert.h>
22341 /* Override any gcc2 internal prototype to avoid an error. */
22342 /* We use char because int might match the return type of a gcc2
22343 builtin and then its argument prototype would still apply. */
22344 char $ac_func();
22345
22346 int main() {
22347
22348 /* The GNU C library defines this for functions which it implements
22349 to always fail with ENOSYS. Some functions are actually named
22350 something starting with __ and the normal name is an alias. */
22351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22352 choke me
22353 #else
22354 $ac_func();
22355 #endif
22356
22357 ; return 0; }
22358 EOF
22359 if { (eval echo configure:22360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22360 rm -rf conftest*
22361 eval "ac_cv_func_$ac_func=yes"
22362 else
22363 echo "configure: failed program was:" >&5
22364 cat conftest.$ac_ext >&5
22365 rm -rf conftest*
22366 eval "ac_cv_func_$ac_func=no"
22367 fi
22368 rm -f conftest*
22369 fi
22370
22371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22372 echo "$ac_t""yes" 1>&6
22373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22374 cat >> confdefs.h <<EOF
22375 #define $ac_tr_func 1
22376 EOF
22377 \
22378 ac_XPG2funcs=yes
22379 else
22380 echo "$ac_t""no" 1>&6
22381 ac_XPG2funcs=no
22382 fi
22383 done
22384
22385
22386 LIBS="$ac_save_LIBS"
22387
22388 echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22389 echo "configure:22390: checking for XPG2 wchar_t support" >&5
22390 if test x"$ac_has_iconv_h" = xyes &&
22391 test x"$ac_has_langinfo_h" = xyes &&
22392 test x"$ac_XPG2funcs" = xyes; then
22393 ac_XPG2_wchar_t=yes
22394 else
22395 ac_XPG2_wchar_t=no
22396 fi
22397 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22398
22399 if test x"$ac_isoC99_wchar_t" = xyes &&
22400 test x"$ac_XPG2_wchar_t" = xyes; then
22401 cat >> confdefs.h <<\EOF
22402 #define _GLIBCXX_USE_WCHAR_T 1
22403 EOF
22404
22405 enable_wchar_t=yes
22406 fi
22407 fi
22408 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22409 echo "configure:22410: checking for enabled wchar_t specializations" >&5
22410 echo "$ac_t""$enable_wchar_t" 1>&6
22411
22412
22413 ac_test_CXXFLAGS="${CXXFLAGS+set}"
22414 ac_save_CXXFLAGS="$CXXFLAGS"
22415 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
22416
22417
22418 echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22419 echo "configure:22420: checking for strtold declaration" >&5
22420 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
22421 if eval "test \"`echo '$''{'glibcxx_cv_func_strtold_use'+set}'`\" = set"; then
22422 echo $ac_n "(cached) $ac_c" 1>&6
22423 else
22424
22425
22426 ac_ext=C
22427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22428 ac_cpp='$CXXCPP $CPPFLAGS'
22429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22431 cross_compiling=$ac_cv_prog_cxx_cross
22432
22433 cat > conftest.$ac_ext <<EOF
22434 #line 22435 "configure"
22435 #include "confdefs.h"
22436 #include <stdlib.h>
22437 int main() {
22438 strtold(0, 0);
22439 ; return 0; }
22440 EOF
22441 if { (eval echo configure:22442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22442 rm -rf conftest*
22443 glibcxx_cv_func_strtold_use=yes
22444 else
22445 echo "configure: failed program was:" >&5
22446 cat conftest.$ac_ext >&5
22447 rm -rf conftest*
22448 glibcxx_cv_func_strtold_use=no
22449 fi
22450 rm -f conftest*
22451 ac_ext=c
22452 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22453 ac_cpp='$CPP $CPPFLAGS'
22454 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22455 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22456 cross_compiling=$ac_cv_prog_cc_cross
22457
22458
22459 fi
22460
22461 fi
22462 echo "$ac_t""$glibcxx_cv_func_strtold_use" 1>&6
22463 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
22464 for ac_func in strtold
22465 do
22466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22467 echo "configure:22468: checking for $ac_func" >&5
22468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22469 echo $ac_n "(cached) $ac_c" 1>&6
22470 else
22471 cat > conftest.$ac_ext <<EOF
22472 #line 22473 "configure"
22473 #include "confdefs.h"
22474 /* System header to define __stub macros and hopefully few prototypes,
22475 which can conflict with char $ac_func(); below. */
22476 #include <assert.h>
22477 /* Override any gcc2 internal prototype to avoid an error. */
22478 /* We use char because int might match the return type of a gcc2
22479 builtin and then its argument prototype would still apply. */
22480 char $ac_func();
22481
22482 int main() {
22483
22484 /* The GNU C library defines this for functions which it implements
22485 to always fail with ENOSYS. Some functions are actually named
22486 something starting with __ and the normal name is an alias. */
22487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22488 choke me
22489 #else
22490 $ac_func();
22491 #endif
22492
22493 ; return 0; }
22494 EOF
22495 if { (eval echo configure:22496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22496 rm -rf conftest*
22497 eval "ac_cv_func_$ac_func=yes"
22498 else
22499 echo "configure: failed program was:" >&5
22500 cat conftest.$ac_ext >&5
22501 rm -rf conftest*
22502 eval "ac_cv_func_$ac_func=no"
22503 fi
22504 rm -f conftest*
22505 fi
22506
22507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22508 echo "$ac_t""yes" 1>&6
22509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22510 cat >> confdefs.h <<EOF
22511 #define $ac_tr_func 1
22512 EOF
22513
22514 else
22515 echo "$ac_t""no" 1>&6
22516 fi
22517 done
22518
22519 fi
22520
22521
22522 echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22523 echo "configure:22524: checking for strtof declaration" >&5
22524 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
22525 if eval "test \"`echo '$''{'glibcxx_cv_func_strtof_use'+set}'`\" = set"; then
22526 echo $ac_n "(cached) $ac_c" 1>&6
22527 else
22528
22529
22530 ac_ext=C
22531 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22532 ac_cpp='$CXXCPP $CPPFLAGS'
22533 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22534 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22535 cross_compiling=$ac_cv_prog_cxx_cross
22536
22537 cat > conftest.$ac_ext <<EOF
22538 #line 22539 "configure"
22539 #include "confdefs.h"
22540 #include <stdlib.h>
22541 int main() {
22542 strtof(0, 0);
22543 ; return 0; }
22544 EOF
22545 if { (eval echo configure:22546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22546 rm -rf conftest*
22547 glibcxx_cv_func_strtof_use=yes
22548 else
22549 echo "configure: failed program was:" >&5
22550 cat conftest.$ac_ext >&5
22551 rm -rf conftest*
22552 glibcxx_cv_func_strtof_use=no
22553 fi
22554 rm -f conftest*
22555 ac_ext=c
22556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22557 ac_cpp='$CPP $CPPFLAGS'
22558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22560 cross_compiling=$ac_cv_prog_cc_cross
22561
22562
22563 fi
22564
22565 fi
22566 echo "$ac_t""$glibcxx_cv_func_strtof_use" 1>&6
22567 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
22568 for ac_func in strtof
22569 do
22570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22571 echo "configure:22572: checking for $ac_func" >&5
22572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22573 echo $ac_n "(cached) $ac_c" 1>&6
22574 else
22575 cat > conftest.$ac_ext <<EOF
22576 #line 22577 "configure"
22577 #include "confdefs.h"
22578 /* System header to define __stub macros and hopefully few prototypes,
22579 which can conflict with char $ac_func(); below. */
22580 #include <assert.h>
22581 /* Override any gcc2 internal prototype to avoid an error. */
22582 /* We use char because int might match the return type of a gcc2
22583 builtin and then its argument prototype would still apply. */
22584 char $ac_func();
22585
22586 int main() {
22587
22588 /* The GNU C library defines this for functions which it implements
22589 to always fail with ENOSYS. Some functions are actually named
22590 something starting with __ and the normal name is an alias. */
22591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22592 choke me
22593 #else
22594 $ac_func();
22595 #endif
22596
22597 ; return 0; }
22598 EOF
22599 if { (eval echo configure:22600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22600 rm -rf conftest*
22601 eval "ac_cv_func_$ac_func=yes"
22602 else
22603 echo "configure: failed program was:" >&5
22604 cat conftest.$ac_ext >&5
22605 rm -rf conftest*
22606 eval "ac_cv_func_$ac_func=no"
22607 fi
22608 rm -f conftest*
22609 fi
22610
22611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22612 echo "$ac_t""yes" 1>&6
22613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22614 cat >> confdefs.h <<EOF
22615 #define $ac_tr_func 1
22616 EOF
22617
22618 else
22619 echo "$ac_t""no" 1>&6
22620 fi
22621 done
22622
22623 fi
22624
22625 for ac_func in drand48
22626 do
22627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22628 echo "configure:22629: checking for $ac_func" >&5
22629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22630 echo $ac_n "(cached) $ac_c" 1>&6
22631 else
22632 cat > conftest.$ac_ext <<EOF
22633 #line 22634 "configure"
22634 #include "confdefs.h"
22635 /* System header to define __stub macros and hopefully few prototypes,
22636 which can conflict with char $ac_func(); below. */
22637 #include <assert.h>
22638 /* Override any gcc2 internal prototype to avoid an error. */
22639 /* We use char because int might match the return type of a gcc2
22640 builtin and then its argument prototype would still apply. */
22641 char $ac_func();
22642
22643 int main() {
22644
22645 /* The GNU C library defines this for functions which it implements
22646 to always fail with ENOSYS. Some functions are actually named
22647 something starting with __ and the normal name is an alias. */
22648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22649 choke me
22650 #else
22651 $ac_func();
22652 #endif
22653
22654 ; return 0; }
22655 EOF
22656 if { (eval echo configure:22657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22657 rm -rf conftest*
22658 eval "ac_cv_func_$ac_func=yes"
22659 else
22660 echo "configure: failed program was:" >&5
22661 cat conftest.$ac_ext >&5
22662 rm -rf conftest*
22663 eval "ac_cv_func_$ac_func=no"
22664 fi
22665 rm -f conftest*
22666 fi
22667
22668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22669 echo "$ac_t""yes" 1>&6
22670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22671 cat >> confdefs.h <<EOF
22672 #define $ac_tr_func 1
22673 EOF
22674
22675 else
22676 echo "$ac_t""no" 1>&6
22677 fi
22678 done
22679
22680
22681 CXXFLAGS="$ac_save_CXXFLAGS"
22682
22683
22684 # For showmanyc_helper().
22685 for ac_hdr in sys/ioctl.h sys/filio.h
22686 do
22687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22689 echo "configure:22690: checking for $ac_hdr" >&5
22690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22691 echo $ac_n "(cached) $ac_c" 1>&6
22692 else
22693 cat > conftest.$ac_ext <<EOF
22694 #line 22695 "configure"
22695 #include "confdefs.h"
22696 #include <$ac_hdr>
22697 EOF
22698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22699 { (eval echo configure:22700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22701 if test -z "$ac_err"; then
22702 rm -rf conftest*
22703 eval "ac_cv_header_$ac_safe=yes"
22704 else
22705 echo "$ac_err" >&5
22706 echo "configure: failed program was:" >&5
22707 cat conftest.$ac_ext >&5
22708 rm -rf conftest*
22709 eval "ac_cv_header_$ac_safe=no"
22710 fi
22711 rm -f conftest*
22712 fi
22713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22714 echo "$ac_t""yes" 1>&6
22715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22716 cat >> confdefs.h <<EOF
22717 #define $ac_tr_hdr 1
22718 EOF
22719
22720 else
22721 echo "$ac_t""no" 1>&6
22722 fi
22723 done
22724
22725
22726 if eval "test \"`echo '$''{'glibcxx_cv_POLL'+set}'`\" = set"; then
22727 echo $ac_n "(cached) $ac_c" 1>&6
22728 else
22729
22730 cat > conftest.$ac_ext <<EOF
22731 #line 22732 "configure"
22732 #include "confdefs.h"
22733 #include <poll.h>
22734 int main() {
22735 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0);
22736 ; return 0; }
22737 EOF
22738 if { (eval echo configure:22739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22739 rm -rf conftest*
22740 glibcxx_cv_POLL=yes
22741 else
22742 echo "configure: failed program was:" >&5
22743 cat conftest.$ac_ext >&5
22744 rm -rf conftest*
22745 glibcxx_cv_POLL=no
22746 fi
22747 rm -f conftest*
22748
22749 fi
22750
22751 if test x$glibcxx_cv_POLL = xyes; then
22752 cat >> confdefs.h <<\EOF
22753 #define HAVE_POLL 1
22754 EOF
22755
22756 fi
22757
22758
22759 if eval "test \"`echo '$''{'glibcxx_cv_S_ISREG'+set}'`\" = set"; then
22760 echo $ac_n "(cached) $ac_c" 1>&6
22761 else
22762
22763 cat > conftest.$ac_ext <<EOF
22764 #line 22765 "configure"
22765 #include "confdefs.h"
22766 #include <sys/stat.h>
22767 int main() {
22768 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode);
22769 ; return 0; }
22770 EOF
22771 if { (eval echo configure:22772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22772 rm -rf conftest*
22773 glibcxx_cv_S_ISREG=yes
22774 else
22775 echo "configure: failed program was:" >&5
22776 cat conftest.$ac_ext >&5
22777 rm -rf conftest*
22778 glibcxx_cv_S_ISREG=no
22779 fi
22780 rm -f conftest*
22781
22782 fi
22783
22784 if eval "test \"`echo '$''{'glibcxx_cv_S_IFREG'+set}'`\" = set"; then
22785 echo $ac_n "(cached) $ac_c" 1>&6
22786 else
22787
22788 cat > conftest.$ac_ext <<EOF
22789 #line 22790 "configure"
22790 #include "confdefs.h"
22791 #include <sys/stat.h>
22792 int main() {
22793 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode;
22794 ; return 0; }
22795 EOF
22796 if { (eval echo configure:22797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22797 rm -rf conftest*
22798 glibcxx_cv_S_IFREG=yes
22799 else
22800 echo "configure: failed program was:" >&5
22801 cat conftest.$ac_ext >&5
22802 rm -rf conftest*
22803 glibcxx_cv_S_IFREG=no
22804 fi
22805 rm -f conftest*
22806
22807 fi
22808
22809 if test x$glibcxx_cv_S_ISREG = xyes; then
22810 cat >> confdefs.h <<\EOF
22811 #define HAVE_S_ISREG 1
22812 EOF
22813
22814 elif test x$glibcxx_cv_S_IFREG = xyes; then
22815 cat >> confdefs.h <<\EOF
22816 #define HAVE_S_IFREG 1
22817 EOF
22818
22819 fi
22820
22821
22822
22823 ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22824 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22825 echo "configure:22826: checking for locale.h" >&5
22826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22827 echo $ac_n "(cached) $ac_c" 1>&6
22828 else
22829 cat > conftest.$ac_ext <<EOF
22830 #line 22831 "configure"
22831 #include "confdefs.h"
22832 #include <locale.h>
22833 EOF
22834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22835 { (eval echo configure:22836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22837 if test -z "$ac_err"; then
22838 rm -rf conftest*
22839 eval "ac_cv_header_$ac_safe=yes"
22840 else
22841 echo "$ac_err" >&5
22842 echo "configure: failed program was:" >&5
22843 cat conftest.$ac_ext >&5
22844 rm -rf conftest*
22845 eval "ac_cv_header_$ac_safe=no"
22846 fi
22847 rm -f conftest*
22848 fi
22849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22850 echo "$ac_t""yes" 1>&6
22851
22852 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22853 echo "configure:22854: checking for LC_MESSAGES" >&5
22854 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22855 echo $ac_n "(cached) $ac_c" 1>&6
22856 else
22857 cat > conftest.$ac_ext <<EOF
22858 #line 22859 "configure"
22859 #include "confdefs.h"
22860 #include <locale.h>
22861 int main() {
22862 return LC_MESSAGES
22863 ; return 0; }
22864 EOF
22865 if { (eval echo configure:22866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22866 rm -rf conftest*
22867 ac_cv_val_LC_MESSAGES=yes
22868 else
22869 echo "configure: failed program was:" >&5
22870 cat conftest.$ac_ext >&5
22871 rm -rf conftest*
22872 ac_cv_val_LC_MESSAGES=no
22873 fi
22874 rm -f conftest*
22875 fi
22876
22877 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22878 if test $ac_cv_val_LC_MESSAGES = yes; then
22879 cat >> confdefs.h <<\EOF
22880 #define HAVE_LC_MESSAGES 1
22881 EOF
22882
22883 fi
22884
22885 else
22886 echo "$ac_t""no" 1>&6
22887 fi
22888
22889
22890
22891 cat > conftest.$ac_ext <<EOF
22892 #line 22893 "configure"
22893 #include "confdefs.h"
22894
22895 #include <setjmp.h>
22896
22897 int main() {
22898 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22899 ; return 0; }
22900 EOF
22901 if { (eval echo configure:22902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22902 rm -rf conftest*
22903 cat >> confdefs.h <<\EOF
22904 #define HAVE_SIGSETJMP 1
22905 EOF
22906
22907
22908 else
22909 echo "configure: failed program was:" >&5
22910 cat conftest.$ac_ext >&5
22911 fi
22912 rm -f conftest*
22913
22914 for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
22915 do
22916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22918 echo "configure:22919: checking for $ac_hdr" >&5
22919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22920 echo $ac_n "(cached) $ac_c" 1>&6
22921 else
22922 cat > conftest.$ac_ext <<EOF
22923 #line 22924 "configure"
22924 #include "confdefs.h"
22925 #include <$ac_hdr>
22926 EOF
22927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22928 { (eval echo configure:22929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22930 if test -z "$ac_err"; then
22931 rm -rf conftest*
22932 eval "ac_cv_header_$ac_safe=yes"
22933 else
22934 echo "$ac_err" >&5
22935 echo "configure: failed program was:" >&5
22936 cat conftest.$ac_ext >&5
22937 rm -rf conftest*
22938 eval "ac_cv_header_$ac_safe=no"
22939 fi
22940 rm -f conftest*
22941 fi
22942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22943 echo "$ac_t""yes" 1>&6
22944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22945 cat >> confdefs.h <<EOF
22946 #define $ac_tr_hdr 1
22947 EOF
22948
22949 else
22950 echo "$ac_t""no" 1>&6
22951 fi
22952 done
22953
22954 for ac_func in getpagesize
22955 do
22956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22957 echo "configure:22958: checking for $ac_func" >&5
22958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22959 echo $ac_n "(cached) $ac_c" 1>&6
22960 else
22961 cat > conftest.$ac_ext <<EOF
22962 #line 22963 "configure"
22963 #include "confdefs.h"
22964 /* System header to define __stub macros and hopefully few prototypes,
22965 which can conflict with char $ac_func(); below. */
22966 #include <assert.h>
22967 /* Override any gcc2 internal prototype to avoid an error. */
22968 /* We use char because int might match the return type of a gcc2
22969 builtin and then its argument prototype would still apply. */
22970 char $ac_func();
22971
22972 int main() {
22973
22974 /* The GNU C library defines this for functions which it implements
22975 to always fail with ENOSYS. Some functions are actually named
22976 something starting with __ and the normal name is an alias. */
22977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22978 choke me
22979 #else
22980 $ac_func();
22981 #endif
22982
22983 ; return 0; }
22984 EOF
22985 if { (eval echo configure:22986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22986 rm -rf conftest*
22987 eval "ac_cv_func_$ac_func=yes"
22988 else
22989 echo "configure: failed program was:" >&5
22990 cat conftest.$ac_ext >&5
22991 rm -rf conftest*
22992 eval "ac_cv_func_$ac_func=no"
22993 fi
22994 rm -f conftest*
22995 fi
22996
22997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22998 echo "$ac_t""yes" 1>&6
22999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23000 cat >> confdefs.h <<EOF
23001 #define $ac_tr_func 1
23002 EOF
23003
23004 else
23005 echo "$ac_t""no" 1>&6
23006 fi
23007 done
23008
23009 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23010 echo "configure:23011: checking for working mmap" >&5
23011 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23012 echo $ac_n "(cached) $ac_c" 1>&6
23013 else
23014 if test "$cross_compiling" = yes; then
23015 ac_cv_func_mmap_fixed_mapped=no
23016 else
23017 cat > conftest.$ac_ext <<EOF
23018 #line 23019 "configure"
23019 #include "confdefs.h"
23020
23021 /* Thanks to Mike Haertel and Jim Avera for this test.
23022 Here is a matrix of mmap possibilities:
23023 mmap private not fixed
23024 mmap private fixed at somewhere currently unmapped
23025 mmap private fixed at somewhere already mapped
23026 mmap shared not fixed
23027 mmap shared fixed at somewhere currently unmapped
23028 mmap shared fixed at somewhere already mapped
23029 For private mappings, we should verify that changes cannot be read()
23030 back from the file, nor mmap's back from the file at a different
23031 address. (There have been systems where private was not correctly
23032 implemented like the infamous i386 svr4.0, and systems where the
23033 VM page cache was not coherent with the filesystem buffer cache
23034 like early versions of FreeBSD and possibly contemporary NetBSD.)
23035 For shared mappings, we should conversely verify that changes get
23036 propogated back to all the places they're supposed to be.
23037
23038 Grep wants private fixed already mapped.
23039 The main things grep needs to know about mmap are:
23040 * does it exist and is it safe to write into the mmap'd area
23041 * how to use it (BSD variants) */
23042 #include <sys/types.h>
23043 #include <fcntl.h>
23044 #include <sys/mman.h>
23045
23046 #if HAVE_SYS_TYPES_H
23047 # include <sys/types.h>
23048 #endif
23049
23050 #if HAVE_STDLIB_H
23051 # include <stdlib.h>
23052 #endif
23053
23054 #if HAVE_SYS_STAT_H
23055 # include <sys/stat.h>
23056 #endif
23057
23058 #if HAVE_UNISTD_H
23059 # include <unistd.h>
23060 #endif
23061
23062 /* This mess was copied from the GNU getpagesize.h. */
23063 #ifndef HAVE_GETPAGESIZE
23064
23065 /* Assume that all systems that can run configure have sys/param.h. */
23066 # ifndef HAVE_SYS_PARAM_H
23067 # define HAVE_SYS_PARAM_H 1
23068 # endif
23069
23070 # ifdef _SC_PAGESIZE
23071 # define getpagesize() sysconf(_SC_PAGESIZE)
23072 # else /* no _SC_PAGESIZE */
23073 # ifdef HAVE_SYS_PARAM_H
23074 # include <sys/param.h>
23075 # ifdef EXEC_PAGESIZE
23076 # define getpagesize() EXEC_PAGESIZE
23077 # else /* no EXEC_PAGESIZE */
23078 # ifdef NBPG
23079 # define getpagesize() NBPG * CLSIZE
23080 # ifndef CLSIZE
23081 # define CLSIZE 1
23082 # endif /* no CLSIZE */
23083 # else /* no NBPG */
23084 # ifdef NBPC
23085 # define getpagesize() NBPC
23086 # else /* no NBPC */
23087 # ifdef PAGESIZE
23088 # define getpagesize() PAGESIZE
23089 # endif /* PAGESIZE */
23090 # endif /* no NBPC */
23091 # endif /* no NBPG */
23092 # endif /* no EXEC_PAGESIZE */
23093 # else /* no HAVE_SYS_PARAM_H */
23094 # define getpagesize() 8192 /* punt totally */
23095 # endif /* no HAVE_SYS_PARAM_H */
23096 # endif /* no _SC_PAGESIZE */
23097
23098 #endif /* no HAVE_GETPAGESIZE */
23099
23100 #ifdef __cplusplus
23101 extern "C" { void *malloc(unsigned); }
23102 #else
23103 char *malloc();
23104 #endif
23105
23106 int
23107 main()
23108 {
23109 char *data, *data2, *data3;
23110 int i, pagesize;
23111 int fd;
23112
23113 pagesize = getpagesize();
23114
23115 /*
23116 * First, make a file with some known garbage in it.
23117 */
23118 data = malloc(pagesize);
23119 if (!data)
23120 exit(1);
23121 for (i = 0; i < pagesize; ++i)
23122 *(data + i) = rand();
23123 umask(0);
23124 fd = creat("conftestmmap", 0600);
23125 if (fd < 0)
23126 exit(1);
23127 if (write(fd, data, pagesize) != pagesize)
23128 exit(1);
23129 close(fd);
23130
23131 /*
23132 * Next, try to mmap the file at a fixed address which
23133 * already has something else allocated at it. If we can,
23134 * also make sure that we see the same garbage.
23135 */
23136 fd = open("conftestmmap", O_RDWR);
23137 if (fd < 0)
23138 exit(1);
23139 data2 = malloc(2 * pagesize);
23140 if (!data2)
23141 exit(1);
23142 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23143 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23144 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23145 exit(1);
23146 for (i = 0; i < pagesize; ++i)
23147 if (*(data + i) != *(data2 + i))
23148 exit(1);
23149
23150 /*
23151 * Finally, make sure that changes to the mapped area
23152 * do not percolate back to the file as seen by read().
23153 * (This is a bug on some variants of i386 svr4.0.)
23154 */
23155 for (i = 0; i < pagesize; ++i)
23156 *(data2 + i) = *(data2 + i) + 1;
23157 data3 = malloc(pagesize);
23158 if (!data3)
23159 exit(1);
23160 if (read(fd, data3, pagesize) != pagesize)
23161 exit(1);
23162 for (i = 0; i < pagesize; ++i)
23163 if (*(data + i) != *(data3 + i))
23164 exit(1);
23165 close(fd);
23166 unlink("conftestmmap");
23167 exit(0);
23168 }
23169
23170 EOF
23171 if { (eval echo configure:23172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23172 then
23173 ac_cv_func_mmap_fixed_mapped=yes
23174 else
23175 echo "configure: failed program was:" >&5
23176 cat conftest.$ac_ext >&5
23177 rm -fr conftest*
23178 ac_cv_func_mmap_fixed_mapped=no
23179 fi
23180 rm -fr conftest*
23181 fi
23182
23183 fi
23184
23185 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23186 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23187 cat >> confdefs.h <<\EOF
23188 #define HAVE_MMAP 1
23189 EOF
23190
23191 fi
23192
23193 fi
23194
23195 # This depends on GLIBCXX_CHECK_LINKER_FEATURES, but without it assumes no.
23196 # Check whether --enable-symvers or --disable-symvers was given.
23197 if test "${enable_symvers+set}" = set; then
23198 enableval="$enable_symvers"
23199 case "$enableval" in
23200 yes) enable_symvers=yes ;;
23201 no) enable_symvers=no ;;
23202 # other names here, just as sanity checks
23203 #gnu|sun|etcetera) enable_symvers=$enableval ;;
23204 gnu) enable_symvers=$enableval ;;
23205 *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23206 esac
23207 else
23208 enable_symvers=yes
23209 fi
23210
23211 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
23212 # don't know enough about $LD to do tricks...
23213 if test x$enable_shared = xno ||
23214 test "x$LD" = x ||
23215 test x$glibcxx_gnu_ld_version = x; then
23216 enable_symvers=no
23217 fi
23218
23219 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23220 if test $enable_symvers != no; then
23221 echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23222 echo "configure:23223: checking for shared libgcc" >&5
23223 ac_save_CFLAGS="$CFLAGS"
23224 CFLAGS=' -lgcc_s'
23225 cat > conftest.$ac_ext <<EOF
23226 #line 23227 "configure"
23227 #include "confdefs.h"
23228
23229 int main() {
23230 return 0
23231 ; return 0; }
23232 EOF
23233 if { (eval echo configure:23234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23234 rm -rf conftest*
23235 glibcxx_shared_libgcc=yes
23236 else
23237 echo "configure: failed program was:" >&5
23238 cat conftest.$ac_ext >&5
23239 rm -rf conftest*
23240 glibcxx_shared_libgcc=no
23241 fi
23242 rm -f conftest*
23243 CFLAGS="$ac_save_CFLAGS"
23244 echo "$ac_t""$glibcxx_shared_libgcc" 1>&6
23245 fi
23246
23247 # For GNU ld, we need at least this version. It's 2.12 in the same format
23248 # as the tested-for version. See GLIBCXX_CHECK_LINKER_FEATURES for more.
23249 glibcxx_min_gnu_ld_version=21200
23250
23251 # Check to see if unspecified "yes" value can win, given results
23252 # above.
23253 if test $enable_symvers = yes ; then
23254 if test $with_gnu_ld = yes &&
23255 test $glibcxx_shared_libgcc = yes ;
23256 then
23257 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
23258 enable_symvers=gnu
23259 else
23260 ac_test_CFLAGS="${CFLAGS+set}"
23261 ac_save_CFLAGS="$CFLAGS"
23262 CFLAGS='-shared -Wl,--version-script,conftest.map'
23263 enable_symvers=no
23264
23265 echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23266
23267 cat > conftest.$ac_ext <<EOF
23268 #line 23269 "configure"
23269 #include "confdefs.h"
23270 int foo;
23271 int main() {
23272
23273 ; return 0; }
23274 EOF
23275 if { (eval echo configure:23276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23276 rm -rf conftest*
23277 enable_symvers=gnu
23278 else
23279 echo "configure: failed program was:" >&5
23280 cat conftest.$ac_ext >&5
23281 fi
23282 rm -f conftest*
23283 if test "$ac_test_CFLAGS" = set; then
23284 CFLAGS="$ac_save_CFLAGS"
23285 else
23286 # this is the suspicious part
23287 CFLAGS=''
23288 fi
23289 rm -f conftest.map
23290 fi
23291 else
23292 # just fail for now
23293 enable_symvers=no
23294 fi
23295 fi
23296
23297 case $enable_symvers in
23298 no)
23299 SYMVER_MAP=config/linker-map.dummy
23300 ;;
23301 gnu)
23302 SYMVER_MAP=config/linker-map.gnu
23303 cat >> confdefs.h <<\EOF
23304 #define _GLIBCXX_SYMVER 1
23305 EOF
23306
23307 ;;
23308 esac
23309
23310
23311
23312
23313 if test $enable_symvers != no; then
23314 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
23315 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
23316 else
23317 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
23318 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
23319 fi
23320 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23321 echo "configure:23322: checking versioning on shared library symbols" >&5
23322 echo "$ac_t""$enable_symvers" 1>&6
23323
23324
23325 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_CROSS_COMPILING.
23326
23327
23328 if test x"$GLIBCXX_IS_CROSS_COMPILING" = xfalse; then
23329 # Do checks for memory limit functions.
23330
23331 setrlimit_have_headers=yes
23332 for ac_hdr in unistd.h sys/time.h sys/resource.h
23333 do
23334 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23335 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23336 echo "configure:23337: checking for $ac_hdr" >&5
23337 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23338 echo $ac_n "(cached) $ac_c" 1>&6
23339 else
23340 cat > conftest.$ac_ext <<EOF
23341 #line 23342 "configure"
23342 #include "confdefs.h"
23343 #include <$ac_hdr>
23344 EOF
23345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23346 { (eval echo configure:23347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23348 if test -z "$ac_err"; then
23349 rm -rf conftest*
23350 eval "ac_cv_header_$ac_safe=yes"
23351 else
23352 echo "$ac_err" >&5
23353 echo "configure: failed program was:" >&5
23354 cat conftest.$ac_ext >&5
23355 rm -rf conftest*
23356 eval "ac_cv_header_$ac_safe=no"
23357 fi
23358 rm -f conftest*
23359 fi
23360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23361 echo "$ac_t""yes" 1>&6
23362 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23363 cat >> confdefs.h <<EOF
23364 #define $ac_tr_hdr 1
23365 EOF
23366
23367 else
23368 echo "$ac_t""no" 1>&6
23369 setrlimit_have_headers=no
23370 fi
23371 done
23372
23373 # If don't have the headers, then we can't run the tests now, and we
23374 # won't be seeing any of these during testsuite compilation.
23375 if test $setrlimit_have_headers = yes; then
23376 # Can't do these in a loop, else the resulting syntax is wrong.
23377
23378 cat > conftest.$ac_ext <<EOF
23379 #line 23380 "configure"
23380 #include "confdefs.h"
23381 #include <unistd.h>
23382 #include <sys/time.h>
23383 #include <sys/resource.h>
23384
23385 int main() {
23386 int f = RLIMIT_DATA ;
23387 ; return 0; }
23388 EOF
23389 if { (eval echo configure:23390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23390 rm -rf conftest*
23391 glibcxx_mresult=1
23392 else
23393 echo "configure: failed program was:" >&5
23394 cat conftest.$ac_ext >&5
23395 rm -rf conftest*
23396 glibcxx_mresult=0
23397 fi
23398 rm -f conftest*
23399 cat >> confdefs.h <<EOF
23400 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
23401 EOF
23402
23403
23404
23405 cat > conftest.$ac_ext <<EOF
23406 #line 23407 "configure"
23407 #include "confdefs.h"
23408 #include <unistd.h>
23409 #include <sys/time.h>
23410 #include <sys/resource.h>
23411
23412 int main() {
23413 int f = RLIMIT_RSS ;
23414 ; return 0; }
23415 EOF
23416 if { (eval echo configure:23417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23417 rm -rf conftest*
23418 glibcxx_mresult=1
23419 else
23420 echo "configure: failed program was:" >&5
23421 cat conftest.$ac_ext >&5
23422 rm -rf conftest*
23423 glibcxx_mresult=0
23424 fi
23425 rm -f conftest*
23426 cat >> confdefs.h <<EOF
23427 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
23428 EOF
23429
23430
23431
23432 cat > conftest.$ac_ext <<EOF
23433 #line 23434 "configure"
23434 #include "confdefs.h"
23435 #include <unistd.h>
23436 #include <sys/time.h>
23437 #include <sys/resource.h>
23438
23439 int main() {
23440 int f = RLIMIT_VMEM ;
23441 ; return 0; }
23442 EOF
23443 if { (eval echo configure:23444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23444 rm -rf conftest*
23445 glibcxx_mresult=1
23446 else
23447 echo "configure: failed program was:" >&5
23448 cat conftest.$ac_ext >&5
23449 rm -rf conftest*
23450 glibcxx_mresult=0
23451 fi
23452 rm -f conftest*
23453 cat >> confdefs.h <<EOF
23454 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
23455 EOF
23456
23457
23458
23459 cat > conftest.$ac_ext <<EOF
23460 #line 23461 "configure"
23461 #include "confdefs.h"
23462 #include <unistd.h>
23463 #include <sys/time.h>
23464 #include <sys/resource.h>
23465
23466 int main() {
23467 int f = RLIMIT_AS ;
23468 ; return 0; }
23469 EOF
23470 if { (eval echo configure:23471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23471 rm -rf conftest*
23472 glibcxx_mresult=1
23473 else
23474 echo "configure: failed program was:" >&5
23475 cat conftest.$ac_ext >&5
23476 rm -rf conftest*
23477 glibcxx_mresult=0
23478 fi
23479 rm -f conftest*
23480 cat >> confdefs.h <<EOF
23481 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
23482 EOF
23483
23484
23485
23486 # Check for rlimit, setrlimit.
23487 if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23488 echo $ac_n "(cached) $ac_c" 1>&6
23489 else
23490
23491 cat > conftest.$ac_ext <<EOF
23492 #line 23493 "configure"
23493 #include "confdefs.h"
23494 #include <unistd.h>
23495 #include <sys/time.h>
23496 #include <sys/resource.h>
23497
23498 int main() {
23499 struct rlimit r; setrlimit(0, &r);
23500 ; return 0; }
23501 EOF
23502 if { (eval echo configure:23503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23503 rm -rf conftest*
23504 ac_setrlimit=yes
23505 else
23506 echo "configure: failed program was:" >&5
23507 cat conftest.$ac_ext >&5
23508 rm -rf conftest*
23509 ac_setrlimit=no
23510 fi
23511 rm -f conftest*
23512
23513 fi
23514
23515 fi
23516
23517 echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23518 echo "configure:23519: checking for testsuite memory limit support" >&5
23519 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23520 ac_mem_limits=yes
23521 cat >> confdefs.h <<\EOF
23522 #define _GLIBCXX_MEM_LIMITS 1
23523 EOF
23524
23525 else
23526 ac_mem_limits=no
23527 fi
23528 echo "$ac_t""$ac_mem_limits" 1>&6
23529
23530
23531 # Look for setenv, so that extended locale tests can be performed.
23532
23533 echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23534 echo "configure:23535: checking for setenv declaration" >&5
23535 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
23536 if eval "test \"`echo '$''{'glibcxx_cv_func_setenv_use'+set}'`\" = set"; then
23537 echo $ac_n "(cached) $ac_c" 1>&6
23538 else
23539
23540
23541 ac_ext=C
23542 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23543 ac_cpp='$CXXCPP $CPPFLAGS'
23544 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23545 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23546 cross_compiling=$ac_cv_prog_cxx_cross
23547
23548 cat > conftest.$ac_ext <<EOF
23549 #line 23550 "configure"
23550 #include "confdefs.h"
23551 #include <stdlib.h>
23552 int main() {
23553 setenv(0, 0, 0);
23554 ; return 0; }
23555 EOF
23556 if { (eval echo configure:23557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23557 rm -rf conftest*
23558 glibcxx_cv_func_setenv_use=yes
23559 else
23560 echo "configure: failed program was:" >&5
23561 cat conftest.$ac_ext >&5
23562 rm -rf conftest*
23563 glibcxx_cv_func_setenv_use=no
23564 fi
23565 rm -f conftest*
23566 ac_ext=c
23567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23568 ac_cpp='$CPP $CPPFLAGS'
23569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23571 cross_compiling=$ac_cv_prog_cc_cross
23572
23573
23574 fi
23575
23576 fi
23577 echo "$ac_t""$glibcxx_cv_func_setenv_use" 1>&6
23578 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
23579 for ac_func in setenv
23580 do
23581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23582 echo "configure:23583: checking for $ac_func" >&5
23583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23584 echo $ac_n "(cached) $ac_c" 1>&6
23585 else
23586 cat > conftest.$ac_ext <<EOF
23587 #line 23588 "configure"
23588 #include "confdefs.h"
23589 /* System header to define __stub macros and hopefully few prototypes,
23590 which can conflict with char $ac_func(); below. */
23591 #include <assert.h>
23592 /* Override any gcc2 internal prototype to avoid an error. */
23593 /* We use char because int might match the return type of a gcc2
23594 builtin and then its argument prototype would still apply. */
23595 char $ac_func();
23596
23597 int main() {
23598
23599 /* The GNU C library defines this for functions which it implements
23600 to always fail with ENOSYS. Some functions are actually named
23601 something starting with __ and the normal name is an alias. */
23602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23603 choke me
23604 #else
23605 $ac_func();
23606 #endif
23607
23608 ; return 0; }
23609 EOF
23610 if { (eval echo configure:23611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23611 rm -rf conftest*
23612 eval "ac_cv_func_$ac_func=yes"
23613 else
23614 echo "configure: failed program was:" >&5
23615 cat conftest.$ac_ext >&5
23616 rm -rf conftest*
23617 eval "ac_cv_func_$ac_func=no"
23618 fi
23619 rm -f conftest*
23620 fi
23621
23622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23623 echo "$ac_t""yes" 1>&6
23624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23625 cat >> confdefs.h <<EOF
23626 #define $ac_tr_func 1
23627 EOF
23628
23629 else
23630 echo "$ac_t""no" 1>&6
23631 fi
23632 done
23633
23634 fi
23635
23636 fi
23637
23638 # Export file names for ABI checking.
23639 baseline_dir="${glibcxx_srcdir}/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
23640
23641
23642 # Determine if checking the ABI is desirable.
23643 if test x$enable_symvers = xno; then
23644 enable_abi_check=no
23645 else
23646 case "$host" in
23647 *-*-cygwin*)
23648 enable_abi_check=no ;;
23649 *)
23650 enable_abi_check=yes ;;
23651 esac
23652 fi
23653
23654
23655
23656 if test "$enable_wchar_t" = yes; then
23657 GLIBCXX_TEST_WCHAR_T_TRUE=
23658 GLIBCXX_TEST_WCHAR_T_FALSE='#'
23659 else
23660 GLIBCXX_TEST_WCHAR_T_TRUE='#'
23661 GLIBCXX_TEST_WCHAR_T_FALSE=
23662 fi
23663
23664
23665 if test "$enable_abi_check" = yes; then
23666 GLIBCXX_TEST_ABI_TRUE=
23667 GLIBCXX_TEST_ABI_FALSE='#'
23668 else
23669 GLIBCXX_TEST_ABI_TRUE='#'
23670 GLIBCXX_TEST_ABI_FALSE=
23671 fi
23672
23673
23674 # Propagate the target-specific source directories through the build chain.
23675 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH
23676 # uses it, and it only gets used in this file.)
23677 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23678 OS_INC_SRCDIR=config/${os_include_dir}
23679 FPOS_INC_SRCDIR=config/${fpos_include_dir}
23680
23681
23682
23683
23684
23685 # Determine cross-compile flags and all AM_CONDITIONALs.
23686
23687
23688
23689 if test "$CANADIAN" = yes; then
23690 CANADIAN_TRUE=
23691 CANADIAN_FALSE='#'
23692 else
23693 CANADIAN_TRUE='#'
23694 CANADIAN_FALSE=
23695 fi
23696
23697
23698 if test "$need_libmath" = yes; then
23699 GLIBCXX_BUILD_LIBMATH_TRUE=
23700 GLIBCXX_BUILD_LIBMATH_FALSE='#'
23701 else
23702 GLIBCXX_BUILD_LIBMATH_TRUE='#'
23703 GLIBCXX_BUILD_LIBMATH_FALSE=
23704 fi
23705
23706 cat > confcache <<\EOF
23707 # This file is a shell script that caches the results of configure
23708 # tests run on this system so they can be shared between configure
23709 # scripts and configure runs. It is not useful on other systems.
23710 # If it contains results you don't want to keep, you may remove or edit it.
23711 #
23712 # By default, configure uses ./config.cache as the cache file,
23713 # creating it if it does not exist already. You can give configure
23714 # the --cache-file=FILE option to use a different cache file; that is
23715 # what configure does when it calls configure scripts in
23716 # subdirectories, so they share the cache.
23717 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23718 # config.status only pays attention to the cache file if you give it the
23719 # --recheck option to rerun configure.
23720 #
23721 EOF
23722 # The following way of writing the cache mishandles newlines in values,
23723 # but we know of no workaround that is simple, portable, and efficient.
23724 # So, don't put newlines in cache variables' values.
23725 # Ultrix sh set writes to stderr and can't be redirected directly,
23726 # and sets the high bit in the cache file unless we assign to the vars.
23727 (set) 2>&1 |
23728 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23729 *ac_space=\ *)
23730 # `set' does not quote correctly, so add quotes (double-quote substitution
23731 # turns \\\\ into \\, and sed turns \\ into \).
23732 sed -n \
23733 -e "s/'/'\\\\''/g" \
23734 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23735 ;;
23736 *)
23737 # `set' quotes correctly as required by POSIX, so do not add quotes.
23738 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23739 ;;
23740 esac >> confcache
23741 if cmp -s $cache_file confcache; then
23742 :
23743 else
23744 if test -w $cache_file; then
23745 echo "updating cache $cache_file"
23746 cat confcache > $cache_file
23747 else
23748 echo "not updating unwritable cache $cache_file"
23749 fi
23750 fi
23751 rm -f confcache
23752
23753
23754 if test "${multilib}" = "yes"; then
23755 multilib_arg="--enable-multilib"
23756 else
23757 multilib_arg=
23758 fi
23759
23760 # Export all the install information
23761
23762 # Assumes glibcxx_builddir, glibcxx_srcdir are alreay set up and
23763 # exported correctly in GLIBCXX_CONFIGURE.
23764 glibcxx_toolexecdir=no
23765 glibcxx_toolexeclibdir=no
23766 glibcxx_prefixdir=${prefix}
23767
23768 # Process the option --with-gxx-include-dir=<path to include-files directory>
23769 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23770 echo "configure:23771: checking for --with-gxx-include-dir" >&5
23771 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23772 if test "${with_gxx_include_dir+set}" = set; then
23773 withval="$with_gxx_include_dir"
23774 case "${withval}" in
23775 yes)
23776 { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23777 gxx_include_dir=no
23778 ;;
23779 no)
23780 gxx_include_dir=no
23781 ;;
23782 *)
23783 gxx_include_dir=${withval}
23784 ;;
23785 esac
23786 else
23787 gxx_include_dir=no
23788 fi
23789
23790 echo "$ac_t""$gxx_include_dir" 1>&6
23791
23792 # Process the option "--enable-version-specific-runtime-libs"
23793 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23794 echo "configure:23795: checking for --enable-version-specific-runtime-libs" >&5
23795 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23796 if test "${enable_version_specific_runtime_libs+set}" = set; then
23797 enableval="$enable_version_specific_runtime_libs"
23798 case "$enableval" in
23799 yes) version_specific_libs=yes ;;
23800 no) version_specific_libs=no ;;
23801 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23802 esac
23803 else
23804 version_specific_libs=no
23805 fi
23806 # Option set, now we can test it.
23807 echo "$ac_t""$version_specific_libs" 1>&6
23808
23809 # Default case for install directory for include files.
23810 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23811 gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23812 fi
23813
23814 # Version-specific runtime libs processing.
23815 if test $version_specific_libs = yes; then
23816 # Need the gcc compiler version to know where to install libraries
23817 # and header files if --enable-version-specific-runtime-libs option
23818 # is selected.
23819 if test x"$gxx_include_dir" = x"no"; then
23820 gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23821 fi
23822 glibcxx_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23823 glibcxx_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23824 fi
23825
23826 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
23827 # Install a library built with a cross compiler in tooldir, not libdir.
23828 if test x"$glibcxx_toolexecdir" = x"no"; then
23829 if test -n "$with_cross_host" &&
23830 test x"$with_cross_host" != x"no"; then
23831 glibcxx_toolexecdir='$(exec_prefix)/$(target_alias)'
23832 glibcxx_toolexeclibdir='$(toolexecdir)/lib'
23833 else
23834 glibcxx_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23835 glibcxx_toolexeclibdir='$(libdir)'
23836 fi
23837 multi_os_directory=`$CC -print-multi-os-directory`
23838 case $multi_os_directory in
23839 .) ;; # Avoid trailing /.
23840 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
23841 esac
23842 fi
23843
23844 echo $ac_n "checking for install location""... $ac_c" 1>&6
23845 echo "configure:23846: checking for install location" >&5
23846 echo "$ac_t""$gxx_include_dir" 1>&6
23847
23848
23849
23850
23851
23852
23853
23854 # Export all the include and flag information to Makefiles.
23855
23856 # Root level of the build directory include sources.
23857 GLIBCXX_INCLUDES="-I${glibcxx_builddir}/include/${target_alias} -I${glibcxx_builddir}/include"
23858
23859 # Passed down for canadian crosses.
23860 if test x"$CANADIAN" = xyes; then
23861 TOPLEVEL_INCLUDES='-I$(includedir)'
23862 fi
23863
23864 LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23865
23866 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23867
23868 # Now, export this to all the little Makefiles....
23869
23870
23871
23872
23873
23874
23875 # Optimization flags that are probably a good idea for thrill-seekers. Just
23876 # uncomment the lines below and make, everything else is ready to go...
23877 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23878 OPTIMIZE_CXXFLAGS=
23879
23880
23881 WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
23882
23883
23884
23885 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23886 grep "enable shared" > /dev/null; then
23887 LIBSUPCXX_PICFLAGS=-prefer-pic
23888 else
23889 LIBSUPCXX_PICFLAGS=
23890 fi
23891
23892
23893 # Generate the various Makefiles, include files, and scripts.
23894 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am,
23895 # libsupc++/Makefile.am and testsuite/Makefile.am so that multilib installs
23896 # will end up installed in the correct place. To work around this not being
23897 # passed # down from config-ml.in -> top_srcdir/Makefile.am ->
23898 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23899 trap '' 1 2 15
23900 cat > confcache <<\EOF
23901 # This file is a shell script that caches the results of configure
23902 # tests run on this system so they can be shared between configure
23903 # scripts and configure runs. It is not useful on other systems.
23904 # If it contains results you don't want to keep, you may remove or edit it.
23905 #
23906 # By default, configure uses ./config.cache as the cache file,
23907 # creating it if it does not exist already. You can give configure
23908 # the --cache-file=FILE option to use a different cache file; that is
23909 # what configure does when it calls configure scripts in
23910 # subdirectories, so they share the cache.
23911 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23912 # config.status only pays attention to the cache file if you give it the
23913 # --recheck option to rerun configure.
23914 #
23915 EOF
23916 # The following way of writing the cache mishandles newlines in values,
23917 # but we know of no workaround that is simple, portable, and efficient.
23918 # So, don't put newlines in cache variables' values.
23919 # Ultrix sh set writes to stderr and can't be redirected directly,
23920 # and sets the high bit in the cache file unless we assign to the vars.
23921 (set) 2>&1 |
23922 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23923 *ac_space=\ *)
23924 # `set' does not quote correctly, so add quotes (double-quote substitution
23925 # turns \\\\ into \\, and sed turns \\ into \).
23926 sed -n \
23927 -e "s/'/'\\\\''/g" \
23928 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23929 ;;
23930 *)
23931 # `set' quotes correctly as required by POSIX, so do not add quotes.
23932 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23933 ;;
23934 esac >> confcache
23935 if cmp -s $cache_file confcache; then
23936 :
23937 else
23938 if test -w $cache_file; then
23939 echo "updating cache $cache_file"
23940 cat confcache > $cache_file
23941 else
23942 echo "not updating unwritable cache $cache_file"
23943 fi
23944 fi
23945 rm -f confcache
23946
23947 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23948
23949 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23950 # Let make expand exec_prefix.
23951 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23952
23953 # Any assignment to VPATH causes Sun make to only execute
23954 # the first set of double-colon rules, so remove it if not needed.
23955 # If there is a colon in the path, we need to keep it.
23956 if test "x$srcdir" = x.; then
23957 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23958 fi
23959
23960 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23961
23962 DEFS=-DHAVE_CONFIG_H
23963
23964 # Without the "./", some shells look in PATH for config.status.
23965 : ${CONFIG_STATUS=./config.status}
23966
23967 echo creating $CONFIG_STATUS
23968 rm -f $CONFIG_STATUS
23969 cat > $CONFIG_STATUS <<EOF
23970 #! /bin/sh
23971 # Generated automatically by configure.
23972 # Run this file to recreate the current configuration.
23973 # This directory was configured as follows,
23974 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23975 #
23976 # $0 $ac_configure_args
23977 #
23978 # Compiler output produced by configure, useful for debugging
23979 # configure, is in ./config.log if it exists.
23980
23981 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23982 for ac_option
23983 do
23984 case "\$ac_option" in
23985 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23986 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23987 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23988 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23989 echo "$CONFIG_STATUS generated by autoconf version 2.13"
23990 exit 0 ;;
23991 -help | --help | --hel | --he | --h)
23992 echo "\$ac_cs_usage"; exit 0 ;;
23993 *) echo "\$ac_cs_usage"; exit 1 ;;
23994 esac
23995 done
23996
23997 ac_given_srcdir=$srcdir
23998 ac_given_INSTALL="$INSTALL"
23999
24000 trap 'rm -fr `echo "Makefile \
24001 include/Makefile src/Makefile \
24002 libmath/Makefile libsupc++/Makefile \
24003 po/Makefile testsuite/Makefile scripts/check_survey scripts/testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24004 EOF
24005 cat >> $CONFIG_STATUS <<EOF
24006
24007 # Protect against being on the right side of a sed subst in config.status.
24008 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24009 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24010 $ac_vpsub
24011 $extrasub
24012 s%@SHELL@%$SHELL%g
24013 s%@CFLAGS@%$CFLAGS%g
24014 s%@CPPFLAGS@%$CPPFLAGS%g
24015 s%@CXXFLAGS@%$CXXFLAGS%g
24016 s%@FFLAGS@%$FFLAGS%g
24017 s%@DEFS@%$DEFS%g
24018 s%@LDFLAGS@%$LDFLAGS%g
24019 s%@LIBS@%$LIBS%g
24020 s%@exec_prefix@%$exec_prefix%g
24021 s%@prefix@%$prefix%g
24022 s%@program_transform_name@%$program_transform_name%g
24023 s%@bindir@%$bindir%g
24024 s%@sbindir@%$sbindir%g
24025 s%@libexecdir@%$libexecdir%g
24026 s%@datadir@%$datadir%g
24027 s%@sysconfdir@%$sysconfdir%g
24028 s%@sharedstatedir@%$sharedstatedir%g
24029 s%@localstatedir@%$localstatedir%g
24030 s%@libdir@%$libdir%g
24031 s%@includedir@%$includedir%g
24032 s%@oldincludedir@%$oldincludedir%g
24033 s%@infodir@%$infodir%g
24034 s%@mandir@%$mandir%g
24035 s%@PACKAGE@%$PACKAGE%g
24036 s%@libtool_VERSION@%$libtool_VERSION%g
24037 s%@toplevel_srcdir@%$toplevel_srcdir%g
24038 s%@host@%$host%g
24039 s%@host_alias@%$host_alias%g
24040 s%@host_cpu@%$host_cpu%g
24041 s%@host_vendor@%$host_vendor%g
24042 s%@host_os@%$host_os%g
24043 s%@target@%$target%g
24044 s%@target_alias@%$target_alias%g
24045 s%@target_cpu@%$target_cpu%g
24046 s%@target_vendor@%$target_vendor%g
24047 s%@target_os@%$target_os%g
24048 s%@build@%$build%g
24049 s%@build_alias@%$build_alias%g
24050 s%@build_cpu@%$build_cpu%g
24051 s%@build_vendor@%$build_vendor%g
24052 s%@build_os@%$build_os%g
24053 s%@glibcxx_builddir@%$glibcxx_builddir%g
24054 s%@glibcxx_srcdir@%$glibcxx_srcdir%g
24055 s%@AWK@%$AWK%g
24056 s%@LN_S@%$LN_S%g
24057 s%@glibcxx_basedir@%$glibcxx_basedir%g
24058 s%@CC@%$CC%g
24059 s%@glibcxx_CXX@%$glibcxx_CXX%g
24060 s%@AS@%$AS%g
24061 s%@AR@%$AR%g
24062 s%@RANLIB@%$RANLIB%g
24063 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24064 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24065 s%@INSTALL_DATA@%$INSTALL_DATA%g
24066 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24067 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24068 s%@MAINT@%$MAINT%g
24069 s%@EXEEXT@%$EXEEXT%g
24070 s%@VERSION@%$VERSION%g
24071 s%@ACLOCAL@%$ACLOCAL%g
24072 s%@AUTOCONF@%$AUTOCONF%g
24073 s%@AUTOMAKE@%$AUTOMAKE%g
24074 s%@AUTOHEADER@%$AUTOHEADER%g
24075 s%@MAKEINFO@%$MAKEINFO%g
24076 s%@SET_MAKE@%$SET_MAKE%g
24077 s%@OBJEXT@%$OBJEXT%g
24078 s%@STRIP@%$STRIP%g
24079 s%@LIBTOOL@%$LIBTOOL%g
24080 s%@CXXCPP@%$CXXCPP%g
24081 s%@enable_shared@%$enable_shared%g
24082 s%@enable_static@%$enable_static%g
24083 s%@ifGNUmake@%$ifGNUmake%g
24084 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24085 s%@GLIBCXX_BUILD_PCH_TRUE@%$GLIBCXX_BUILD_PCH_TRUE%g
24086 s%@GLIBCXX_BUILD_PCH_FALSE@%$GLIBCXX_BUILD_PCH_FALSE%g
24087 s%@glibcxx_PCHFLAGS@%$glibcxx_PCHFLAGS%g
24088 s%@CSTDIO_H@%$CSTDIO_H%g
24089 s%@FPOS_H@%$FPOS_H%g
24090 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24091 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24092 s%@CPP@%$CPP%g
24093 s%@check_msgfmt@%$check_msgfmt%g
24094 s%@glibcxx_MOFILES@%$glibcxx_MOFILES%g
24095 s%@glibcxx_POFILES@%$glibcxx_POFILES%g
24096 s%@glibcxx_localedir@%$glibcxx_localedir%g
24097 s%@USE_NLS@%$USE_NLS%g
24098 s%@CLOCALE_H@%$CLOCALE_H%g
24099 s%@CCODECVT_H@%$CCODECVT_H%g
24100 s%@CMESSAGES_H@%$CMESSAGES_H%g
24101 s%@CCODECVT_CC@%$CCODECVT_CC%g
24102 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24103 s%@CCTYPE_CC@%$CCTYPE_CC%g
24104 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24105 s%@CMONEY_CC@%$CMONEY_CC%g
24106 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24107 s%@CTIME_H@%$CTIME_H%g
24108 s%@CTIME_CC@%$CTIME_CC%g
24109 s%@CLOCALE_CC@%$CLOCALE_CC%g
24110 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24111 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24112 s%@GLIBCXX_C_HEADERS_C_TRUE@%$GLIBCXX_C_HEADERS_C_TRUE%g
24113 s%@GLIBCXX_C_HEADERS_C_FALSE@%$GLIBCXX_C_HEADERS_C_FALSE%g
24114 s%@GLIBCXX_C_HEADERS_C_STD_TRUE@%$GLIBCXX_C_HEADERS_C_STD_TRUE%g
24115 s%@GLIBCXX_C_HEADERS_C_STD_FALSE@%$GLIBCXX_C_HEADERS_C_STD_FALSE%g
24116 s%@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE%g
24117 s%@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE%g
24118 s%@glibcxx_thread_h@%$glibcxx_thread_h%g
24119 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24120 s%@GLIBCXX_BUILD_DEBUG_TRUE@%$GLIBCXX_BUILD_DEBUG_TRUE%g
24121 s%@GLIBCXX_BUILD_DEBUG_FALSE@%$GLIBCXX_BUILD_DEBUG_FALSE%g
24122 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24123 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24124 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24125 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24126 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24127 s%@WERROR@%$WERROR%g
24128 s%@SYMVER_MAP@%$SYMVER_MAP%g
24129 s%@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE%g
24130 s%@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE%g
24131 s%@baseline_dir@%$baseline_dir%g
24132 s%@GLIBCXX_TEST_WCHAR_T_TRUE@%$GLIBCXX_TEST_WCHAR_T_TRUE%g
24133 s%@GLIBCXX_TEST_WCHAR_T_FALSE@%$GLIBCXX_TEST_WCHAR_T_FALSE%g
24134 s%@GLIBCXX_TEST_ABI_TRUE@%$GLIBCXX_TEST_ABI_TRUE%g
24135 s%@GLIBCXX_TEST_ABI_FALSE@%$GLIBCXX_TEST_ABI_FALSE%g
24136 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24137 s%@FPOS_INC_SRCDIR@%$FPOS_INC_SRCDIR%g
24138 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24139 s%@GLIBCXX_IS_CROSS_COMPILING@%$GLIBCXX_IS_CROSS_COMPILING%g
24140 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24141 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24142 s%@GLIBCXX_BUILD_LIBMATH_TRUE@%$GLIBCXX_BUILD_LIBMATH_TRUE%g
24143 s%@GLIBCXX_BUILD_LIBMATH_FALSE@%$GLIBCXX_BUILD_LIBMATH_FALSE%g
24144 s%@glibcxx_prefixdir@%$glibcxx_prefixdir%g
24145 s%@gxx_include_dir@%$gxx_include_dir%g
24146 s%@glibcxx_toolexecdir@%$glibcxx_toolexecdir%g
24147 s%@glibcxx_toolexeclibdir@%$glibcxx_toolexeclibdir%g
24148 s%@GLIBCXX_INCLUDES@%$GLIBCXX_INCLUDES%g
24149 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24150 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24151 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24152 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24153 s%@WARN_FLAGS@%$WARN_FLAGS%g
24154 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24155
24156 CEOF
24157 EOF
24158
24159 cat >> $CONFIG_STATUS <<\EOF
24160
24161 # Split the substitutions into bite-sized pieces for seds with
24162 # small command number limits, like on Digital OSF/1 and HP-UX.
24163 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24164 ac_file=1 # Number of current file.
24165 ac_beg=1 # First line for current file.
24166 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24167 ac_more_lines=:
24168 ac_sed_cmds=""
24169 while $ac_more_lines; do
24170 if test $ac_beg -gt 1; then
24171 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24172 else
24173 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24174 fi
24175 if test ! -s conftest.s$ac_file; then
24176 ac_more_lines=false
24177 rm -f conftest.s$ac_file
24178 else
24179 if test -z "$ac_sed_cmds"; then
24180 ac_sed_cmds="sed -f conftest.s$ac_file"
24181 else
24182 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24183 fi
24184 ac_file=`expr $ac_file + 1`
24185 ac_beg=$ac_end
24186 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24187 fi
24188 done
24189 if test -z "$ac_sed_cmds"; then
24190 ac_sed_cmds=cat
24191 fi
24192 EOF
24193
24194 cat >> $CONFIG_STATUS <<EOF
24195
24196 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24197 include/Makefile src/Makefile \
24198 libmath/Makefile libsupc++/Makefile \
24199 po/Makefile testsuite/Makefile scripts/check_survey scripts/testsuite_flags"}
24200 EOF
24201 cat >> $CONFIG_STATUS <<\EOF
24202 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24203 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24204 case "$ac_file" in
24205 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24206 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24207 *) ac_file_in="${ac_file}.in" ;;
24208 esac
24209
24210 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24211
24212 # Remove last slash and all that follows it. Not all systems have dirname.
24213 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24214 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24215 # The file is in a subdirectory.
24216 test ! -d "$ac_dir" && mkdir "$ac_dir"
24217 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24218 # A "../" for each directory in $ac_dir_suffix.
24219 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24220 else
24221 ac_dir_suffix= ac_dots=
24222 fi
24223
24224 case "$ac_given_srcdir" in
24225 .) srcdir=.
24226 if test -z "$ac_dots"; then top_srcdir=.
24227 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24228 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24229 *) # Relative path.
24230 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24231 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24232 esac
24233
24234 case "$ac_given_INSTALL" in
24235 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24236 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24237 esac
24238
24239 echo creating "$ac_file"
24240 rm -f "$ac_file"
24241 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24242 case "$ac_file" in
24243 *Makefile*) ac_comsub="1i\\
24244 # $configure_input" ;;
24245 *) ac_comsub= ;;
24246 esac
24247
24248 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24249 sed -e "$ac_comsub
24250 s%@configure_input@%$configure_input%g
24251 s%@srcdir@%$srcdir%g
24252 s%@top_srcdir@%$top_srcdir%g
24253 s%@INSTALL@%$INSTALL%g
24254 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24255 fi; done
24256 rm -f conftest.s*
24257
24258 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24259 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24260 #
24261 # ac_d sets the value in "#define NAME VALUE" lines.
24262 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24263 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24264 ac_dC='\3'
24265 ac_dD='%g'
24266 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24267 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24268 ac_uB='\([ ]\)%\1#\2define\3'
24269 ac_uC=' '
24270 ac_uD='\4%g'
24271 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24272 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24273 ac_eB='$%\1#\2define\3'
24274 ac_eC=' '
24275 ac_eD='%g'
24276
24277 if test "${CONFIG_HEADERS+set}" != set; then
24278 EOF
24279 cat >> $CONFIG_STATUS <<EOF
24280 CONFIG_HEADERS="config.h"
24281 EOF
24282 cat >> $CONFIG_STATUS <<\EOF
24283 fi
24284 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24285 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24286 case "$ac_file" in
24287 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24288 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24289 *) ac_file_in="${ac_file}.in" ;;
24290 esac
24291
24292 echo creating $ac_file
24293
24294 rm -f conftest.frag conftest.in conftest.out
24295 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24296 cat $ac_file_inputs > conftest.in
24297
24298 EOF
24299
24300 # Transform confdefs.h into a sed script conftest.vals that substitutes
24301 # the proper values into config.h.in to produce config.h. And first:
24302 # Protect against being on the right side of a sed subst in config.status.
24303 # Protect against being in an unquoted here document in config.status.
24304 rm -f conftest.vals
24305 cat > conftest.hdr <<\EOF
24306 s/[\\&%]/\\&/g
24307 s%[\\$`]%\\&%g
24308 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24309 s%ac_d%ac_u%gp
24310 s%ac_u%ac_e%gp
24311 EOF
24312 sed -n -f conftest.hdr confdefs.h > conftest.vals
24313 rm -f conftest.hdr
24314
24315 # This sed command replaces #undef with comments. This is necessary, for
24316 # example, in the case of _POSIX_SOURCE, which is predefined and required
24317 # on some systems where configure will not decide to define it.
24318 cat >> conftest.vals <<\EOF
24319 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24320 EOF
24321
24322 # Break up conftest.vals because some shells have a limit on
24323 # the size of here documents, and old seds have small limits too.
24324
24325 rm -f conftest.tail
24326 while :
24327 do
24328 ac_lines=`grep -c . conftest.vals`
24329 # grep -c gives empty output for an empty file on some AIX systems.
24330 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24331 # Write a limited-size here document to conftest.frag.
24332 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24333 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24334 echo 'CEOF
24335 sed -f conftest.frag conftest.in > conftest.out
24336 rm -f conftest.in
24337 mv conftest.out conftest.in
24338 ' >> $CONFIG_STATUS
24339 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24340 rm -f conftest.vals
24341 mv conftest.tail conftest.vals
24342 done
24343 rm -f conftest.vals
24344
24345 cat >> $CONFIG_STATUS <<\EOF
24346 rm -f conftest.frag conftest.h
24347 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24348 cat conftest.in >> conftest.h
24349 rm -f conftest.in
24350 if cmp -s $ac_file conftest.h 2>/dev/null; then
24351 echo "$ac_file is unchanged"
24352 rm -f conftest.h
24353 else
24354 # Remove last slash and all that follows it. Not all systems have dirname.
24355 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24356 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24357 # The file is in a subdirectory.
24358 test ! -d "$ac_dir" && mkdir "$ac_dir"
24359 fi
24360 rm -f $ac_file
24361 mv conftest.h $ac_file
24362 fi
24363 fi; done
24364
24365 EOF
24366 cat >> $CONFIG_STATUS <<EOF
24367
24368 srcdir=${srcdir}
24369 host=${host}
24370 target=${target}
24371 with_target_subdir=${with_target_subdir}
24372 with_build_subdir=${with_build_subdir}
24373 with_multisubdir=${with_multisubdir}
24374 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24375 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24376 glibcxx_basedir=${glibcxx_basedir}
24377 CC="${CC}"
24378 CXX="${CXX}"
24379 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24380
24381 EOF
24382 cat >> $CONFIG_STATUS <<\EOF
24383 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24384 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24385 if test -n "$CONFIG_FILES"; then
24386 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24387 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24388 # Ony modify Makefiles that are just being created.
24389 case " $CONFIG_FILES" in
24390 *" Makefile"*)
24391 ac_file=Makefile . ${glibcxx_basedir}/../config-ml.in
24392 ;;
24393 esac
24394 case $CONFIG_FILES in
24395 *src/Makefile*)
24396 grep '^MULTISUBDIR =' Makefile >> src/Makefile
24397 ;;
24398 esac
24399 case $CONFIG_FILES in
24400 *libsupc++/Makefile*)
24401 grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24402 ;;
24403 esac
24404 case $CONFIG_FILES in
24405 *testsuite/Makefile*)
24406 grep '^MULTISUBDIR =' Makefile >> testsuite/Makefile
24407 ;;
24408 esac
24409 fi
24410 fi
24411 chmod +x scripts/check_survey
24412 chmod +x scripts/testsuite_flags
24413 exit 0
24414 EOF
24415 chmod +x $CONFIG_STATUS
24416 rm -fr confdefs* $ac_clean_files
24417 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24418
24419
24420
24421 # Sanity checking & User-visible messages.
24422 # Checks down here, otherwise they get scrolled off before
24423 # the user will notice.
24424
24425 # Trying to get more people to read documentation. Possibly remove
24426 # check and warn all the time. There is no "informational" AC_MSG_
24427 # macro, so these are going to be printed even when --quiet/--silent
24428 # is given.
24429 if test ! -f stamp-sanity-warned; then
24430 touch stamp-sanity-warned
24431 echo ""
24432 echo "Please make certain that you read the installation information here:"
24433 echo " faster => ${srcdir}/docs/html/install.html"
24434 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24435 echo ""
24436 echo "and the configuration information here:"
24437 echo " faster => ${srcdir}/docs/html/configopts.html"
24438 echo " slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24439 echo ""
24440 echo "before proceeding with ${_cv_gnu_make_command}."
24441 echo ""
24442 fi